Error with array exceeds maximum array size preference during debugging of algebraic loop of Simulink
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (0)
Vedere anche
Categorie
Scopri di più su Simulink Functions in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!