Why does it take a long time to open files with the Simulink Model Linearizer app?

3 visualizaciones (últimos 30 días)
I am working with the "Model Linearizer App" for my Simulink model. I have data from a saved linear analysis session that I'd like to work with which contains a snapshot of my model at a certain time. When I load this data, I notice that it takes a very long time for the file to open within the Model Linearizer App. I would like to know if there's anything I can do to make this process a little bit faster.
My reproduction steps are as follows:
1. With the open model Simulink model.
2. Open "Model Linearizer App" from Simulink.
3. Select "Load Session".
4. Select a file containing a snapshot of the model at a certain time, trimmed, operating point and a linear system.
5. It should take a significant amount of time to load this session, if it loads at all.
Is this expected behavior?

Respuesta aceptada

MathWorks Support Team
MathWorks Support Team el 16 de Oct. de 2025 a las 0:00
This delay is expected behavior when the model requires excessive compilation time, which may occur for the following reasons:
While loading the saved session, you may have encountered the warning message below. If this message was seen, it indicates that the initial conditions provided in the model do not converge. As a result, additional initialization time is required during the model's compilation.
Warning: First solve for initial conditions failed to converge.
Trying again with all high priorities relaxed to low.”
In addition, the model may have been compiled multiple times while loading the session in the "Model Linearizer App". If this it the case, this compilation happened each time while updating the operating point settings in the "Model Linearizer App". This compilation would be necessary to account for any changes that have happened to the model after the session was saved, which can contribute to most of the loading time.
Although it is not possible to prevent the model from being compiled, there is a workaround to reduce the total amount of compilation time for linearization. This can be achieved using the "fastRestartForLinearAnalysis" option of the Simulink model. Please refer to the fastRestartForLinearAnalysis Documentation for more information.
Setting this option to "on" makes the model compile only once during the entire loading process.

Más respuestas (0)

Categorías

Más información sobre Linearization en Help Center y File Exchange.

Productos


Versión

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by