parsim(): Simulation output much larger than sim()

4 visualizaciones (últimos 30 días)
S_L
S_L el 28 de Jun. de 2021
Comentada: Alvaro el 22 de Nov. de 2022
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 comentario
Alvaro
Alvaro el 22 de Nov. de 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).

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Programmatic Model Editing en Help Center y File Exchange.

Productos


Versión

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by