I'm running into the same problem. When I use
MATLAB stores loads of data in "AppData\Local\Temp".
I already tried
after all simulations are done. But this is a just kind of a "cleanUpFcn" and does not prevent MATLAB to increasingly consume memory while performing parallel simulations.
I don't know where to integrate:
parfevalOnAll(gcp, @sdi.Repository.clearRepositoryFile, 0)
Is there a way to implement a "cleanUpFcn" that deletes all the unused temporary files in the simIn.postSimFcn? This would clean temporary working folders after each simulation.