I am doing a large batch run of SystemModeler simulations using Mathematica to map out a surface. For each simulation run I am pulling only 3 scalar values and storing them in a data file before going to the next run. I am using a Do loop structure to call the simulation, pull the data of interest and save to file. I need to run about 50000 simulations to map out a space, so the batch may take a long time to run.
I posted last week about one problem I was having at first with temporary file space, which I was able to fix with:
WSMLinkLibrary
ClearTemporaryFiles[-1]
However, now I having stability problems with Mathematic pertaining to dynamic updates. The batch run will chug along fine for a few hours, but then throw an error seemingly randomly about dynamic update taking too long, I then have to kill the kernal and start the run again where it left off. Or, in a few instances, a couple hours into the run Mathematica just is locked up and I have to kill the Windows process completly before I re-start Mathematic and start my run again.
I have also had this problem in the past (last year) doing batch runs of SystemModeler through Mathematica. I can not find any logical reason why these problems are happening, but it is very frustrating to have to keep re-starting my code.
Does anyone have any suggestions?