Simulink Runtime Issues with Simscape Battery Toolkit
13 views (last 30 days)
Show older comments
Hi Matlab Community,
I would like to seek help regarding the model I created. It takes too long to run my model, 4 days non stop just to run the entire simlation model finish and the number of warnings dated to be around 5 million in total.
Can anyone advise how to reduce the runtime as this is taking a toll on my c drive space from 300 GB to just 190GB, it seems like the memory is not deallocated properly too.
The warnings is as follows:
1)Warning:At time 0.000000e+00, one or more assertions are triggered. ''Terminal voltage'' must be greater than or equal to its lower bound defined in ''Terminal voltage operating range [Min Max]''.
I have also refered to this link and try to followed the advice provided but is not working. https://www.mathworks.com/matlabcentral/answers/2043977-hi-i-find-difficult-in-using-table-based-battery-in-simscape
Thank you!
0 Comments
Answers (1)
Deep
on 29 Nov 2024
I tried profiling the model, but due to its complexity, it requires manual optimization. To address the performance issues in your Simscape model, start by using the Simscape Stiffness Analysis tool, as it can help identify stiffness problems that have caused this model’s solver step size to often reach as small as 10^-12 seconds: https://www.mathworks.com/help/simscape/ug/simscape-stiffness-analysis.html.
Simplifying your model and reducing the number of states will be beneficial. This guide is a great starting point for improving a model's simulation speed: https://www.mathworks.com/company/newsletters/articles/improving-simulation-performance-in-simulink.html.
0 Comments
See Also
Categories
Find more on Sources in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!