Why does it take a long time to open files with the Simulink Model Linearizer app?
3 ビュー (過去 30 日間)
古いコメントを表示
MathWorks Support Team
2025 年 10 月 16 日 0:00
回答済み: MathWorks Support Team
約18時間 前
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?
採用された回答
MathWorks Support Team
2025 年 10 月 16 日 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.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Linearization についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!