I am running a large batch of SystemModeler simulations using Mathematica to build a table of data. However after the code has been running for a while and many simulations have been run, my computer says my hard drive is full. I am not (or at least do not want to) store all the variables and time series data, I am just extract one scalar number from each simulation run, and I can discard the rest.
Upon further investigation I found that the folder:
"C:\Users\NAME\AppData\Local\Temp\WolframSystemModeler\WSMLink "
is full of very large temp files (>50GB) during the batch run.
If I kill the kernal of Mathematica the folder cleans out, but I loose all my data.
How can I limit how WSMLink uses this temp folder?