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:
Assume all WSMSimulationData result objects that were created before deleting, will be completely unusable after deleting
Here is the command to delete all temporary result files from WSMLink:
WSMLink`Library`ClearTemporaryFiles[-1]
This command is not documented, so may change or disappear in future versions.
As an alternative, if you have control over the models, you can try to move as many variables as possible into protected sections in the Modelica code. Protected variables are not saved to the result by default (version 4.2 and newer).
For future versions we are looking into ways to further reduce the amount of temporary data stored to file in cases like yours, where one is only interested in a small subset of the data.