Error with array exceeds maximum array size preference during debugging of algebraic loop of Simulink

조회 수: 1 (최근 30일)
Hi,
I am debugging algebraic loop in my model using the following code
mdl = 'model_name';
Simulink.BlockDiagram.getAlgebraicLoops(mdl)
I got the following error after Matlab takes long time to run the two above commands
Error using Simulink.BlockDiagram.getAlgebraicLoops (line 50)
Simulink cannot access the algebraic loop information associated with block diagram 'model_name'.
Caused by:
Error using diag
Requested 244614x244614 (445.8GB) array exceeds maximum array size preference. Creation of arrays greater than this limit may take a long time and cause MATLAB
to become unresponsive. See array size limit or preference panel for more information.
When I check memory usage in Matlab workspace, here is the info
>> memory
Maximum possible array: 410199 MB (4.301e+11 bytes) *
Memory available for all arrays: 410199 MB (4.301e+11 bytes) *
Memory used by MATLAB: 3674 MB (3.852e+09 bytes)
Physical Memory (RAM): 391834 MB (4.109e+11 bytes)
* Limited by System Memory (physical + swap file) available.
I wonder what could cause that high array size for the Simulink model during debugging. I do have "To Workspace" blocks but I don't think they take much memory even if the debugging process requires saving some data in those blocks.
Thanks

답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink Functions에 대해 자세히 알아보기

제품


릴리스

R2015a

Community Treasure Hunt

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

Start Hunting!

Translated by