Significant performance degradation with Multi-Instance FMU export
Afficher commentaires plus anciens
Hello,
I am experiencing a significant performance degradation when exporting a Simulink model as an FMU with the Multi-Instance option enabled.
The main issue is that I need to enable Multi-Instance because I want to create multiple instances of the same FMU in PSCAD and use them to represent different equipment and potentially parallelize their execution. However, enabling this option causes a substantial increase in simulation time.
I have tested the same model in two configurations:
- Multi-Instance = OFF: 314.973159 s
- Multi-Instance = ON: 427.165040 s
These are the simulation times obtained when running the exported FMU directly within the Simulink environment. Therefore, the performance degradation is already present at the FMU level.
Could you please clarify:
- What changes internally in the generated code or FMU runtime when Multi-Instance is enabled that could explain this performance degradation?
- Are there any known performance limitations or overheads associated with Multi-Instance FMUs?
- Is there any recommended configuration or code-generation option that can minimize this overhead while still allowing multiple instances of the FMU within the same process?
- Is this behavior expected, or could it indicate a performance issue/bug in the FMU export implementation?
Best regards,
Víctor Sánchez Suárez
Réponses (0)
Catégories
En savoir plus sur FMU Importing dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!