Simscape model initialization spends too much time

I built the following model in two parts seperately, after the compilation, they can start to simulate quickly. But when I connect them together, it spends nearly 15 minutes after the complation in the stage of in “Running : Initializing equation systems for Simscape physcial networks: Started”.
Maybe it is due to some bad initial variabes setting, can someone teach me how to find out the problem ?
Thanks.

Réponses (1)

Yifeng Tang
Yifeng Tang le 3 Mai 2023
Déplacé(e) : Sabin le 2 Jan 2026

0 votes

It's likely some inconsistency in the specified initial conditions that's causing this. The model is large and seems to contain customer specific information, which may make it inappropriate to discuss further on MATLAB Answer. Do you have access to MathWorks support team? It may be a good idea to continue through that route.
If you'd like to continue with MATLAB Answer, it'll be helpful to include the two "separate" models that initialize quickly. It's hard to read the picture and separate the model manually. It's possible to record a full set of initial conditions and ask Simscape to initialize from that. The set of data from different sources can be combined/merged, too. More info:

1 commentaire

轩
le 6 Mai 2023
Déplacé(e) : Sabin le 2 Jan 2026
Thank you for your advice, I will apply a support cas later.

Connectez-vous pour commenter.

Catégories

Produits

Version

R2022b

Question posée :

轩
le 23 Avr 2023

Déplacé(e) :

le 2 Jan 2026

Community Treasure Hunt

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

Start Hunting!

Translated by