parsim(): Simulation output much larger than sim()
1 view (last 30 days)
Show older comments
Hi,
since my parsim setup now works, I ran into the next issue:
When saving the simulation result that I received from my parallel workers (simOut.fetchOutput), the resulting files are way larger than what I get from sim().
On average, sim-result per run is 50MB while a parsim result with the same input is 560MB. In sim() I use "To Workspace" Blocks for data export.
In the configuration parameters under Data Import/Export, i only have the following options enabled:
Time
Final states
Single simulation output
Can someone please guide me to the error? Unfortunately, this issue leads to a scenario where saving of the parsim result takes twice the time of the simulation itself and sums up for having 8 concurrent setups in parsim ....
1 Comment
Alvaro
on 22 Nov 2022
Based on a quick test I just ran (see attached), there does not appear to be anything inherent to 'parsim' that would make your saved files larger than when the same model is run iteratively with 'sim'.
Could you include more details of the model that you are trying to run and the commands being used to run that model?
Also, for an accurate comparison, ensure that the logging is happening the same way in the single threaded and multi-threaded runs (for example, you may want to also consider using 'To Workspace" blocks in the multi-threaded run).
Answers (0)
See Also
Categories
Find more on Run Multiple Simulations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!