First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
1 | initial version |
Parsing the log file is probably the best way. Also you will end up with zero length .out files that may also be used to detect such a condition.
Be advised, some simulations may halt and not terminate causing your script to hang up. I use python multiprocessing to launch each dynamics run in its own process. While running, I monitor the file sizes of the .out and .log files. If they stop growing larger and the case is still running, it gets terminated. An ever increasing size of these two files means it’s still working.