Simulink Out of memory. Simulation stops

7 views (last 30 days)
Apurv
Apurv on 4 May 2015
Answered: Steve Miller on 3 Aug 2020
Hallo, I am simulating a complete hybrid car Simulink model with various components which are built using Simscape, Símulink, Driveline etc. I am loading data into the workspace before starting my simulation which is around 1.2MB. The simulation runs for more than 3 hours and accumalates data work 100MB max which is the data stored in scopes and to workspace blocks. This data is important. However the simulation fails at a certain point coz of the error 'Matlab is out of memory'. What does this error mean? Is the Workspace RAM out of nmemory? I have a RAM memory of 4GB in my Computer. How do I overcome this problem?

Answers (1)

Steve Miller
Steve Miller on 3 Aug 2020
You can refer to this answer for some suggestions:
Generally, you need to reduce the amount you are logging (there are many ways to turn logging off for various blocks or to sample fewer points) or increase the memory available. Depending on your release, you may be able to stream directly to disk.

Categories

Find more on Simscape Driveline 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!