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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!