GEKKO error when running remote = False on Windows 10 Pro
--
Track title: CC G Dvoks String Quartet No 12 Ame 2
--
Chapters
00:00 Question
02:26 Accepted answer (Score 0)
03:49 Thank you
--
Full question
https://stackoverflow.com/questions/6054...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python #gekko
#avk47
ACCEPTED ANSWER
Score 0
Even though you stopped the Python script with Ctrl-C, your prior job sub-process may still be running in the background and consuming resources when running with remote=False. If you were able to run it previously, I recommend that you check if apm is running in the background with top at the command terminal. You can locate the PID of apm with:
pidof apm
You can either kill (stop) the process with the PID identifier or else kill all of the apm processes with:
killall -9 apm
This should release the resources (RAM, CPU) necessary to run your next job. The apm executable allocates memory dynamically at run-time based on how much the solver and model will need. If you are consistently running out of memory then I recommend the APOPT solver that uses fewer resources than IPOPT (default solver). You can switch to APOPT with m.options.SOLVER=1. I don't think you did anything to your installation. If disk space is an issue, you can clear out the temp folder m.path where the Gekko problem is staged.