GAMS return code not 0 (407)

Hi, I am trying to solve a model with the python API but I am got this error

File "gams\execution.py", line 883, in gams.execution.GamsJob.run (execution.c:22299)
gams.workspace.GamsExceptionExecution: GAMS return code not 0 (407)

I have two formulations in the same .gms file. The first one an only one big problem and the second one I split this problem into sub-problems and the model is solved whit a loop. When I solve the big one problem the model run well. The error appears when I try to run the split model.

Someone can help me to solve this problem, please.

Thanks
j.

The error code means “unexpected error” (see https://www.gams.com/latest/docs/UG_GAMSReturnCodes.html). You need to look at the log file of this run call. This hopefully will tell you more. When you create the workspace you can provide some option to keep the temporary directory and the files.

-Michael

hi bussieck thanks for your reply, I checked the _gams_py_gjo0.lst file but the problem is that does not say anything. The model performed a x number of iterations and then suddenly stopped.

Attached is the .lst file. I changed the format to a txt in order to upload the file.
_gams_py_gjo0.txt (119 KB)