I am trying to run a Simulink simulation with a lot of scopes that store data. If I run the simulation with short stop time, all goes fine. But if I use a larger stop time, when the simulation should stop, the process is killed. It is a memory problem?
What should I do?
Thanks for the help.

4 commentaires

Paul
Paul le 30 Déc 2021
What version are you using?
What exactly do you mean by "the process is killed"?
By "the simulation should stop" do you mean the simulation has reached the stop time? Are you sure the process isn't being killed before the simulation reaches the stop time?
Francesco Simonetti
Francesco Simonetti le 30 Déc 2021
I'm using matlab 2021b on ubuntu 20.04.3. I mean that simulation runs until the bar on the bottom right corner reaches 100%. Than matlab hangs and quits after a while. In the terminal window where I runned matlab I can see "killed". I don't know precisely if matlab is closed immediately before or immediately after the end of the simulation.
Paul
Paul le 30 Déc 2021
Interesting. I have a case on Windows where Matlab and Simulink are killed immediately upon the simulation coming upon some error condition (I think it was taking the sqrt of a negative number). So not really the same as yours except that Matlab and Simulink both are killed. Unfortunately, tech support couldn't recreate my problem (the simulation quit gracefully as it should) and therefore couldn't help.
Francesco Simonetti
Francesco Simonetti le 30 Déc 2021
I don't know if this can hellp, when I run matlab I see these error messages:
MATLAB is selecting SOFTWARE OPENGL rendering.
MESA-LOADER: failed to open iris: /usr/lib/dri/iris_dri.so: impossibile aprire il file oggetto condiviso: File o directory non esistente (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
failed to load driver: iris
MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: impossibile aprire il file oggetto condiviso: File o directory non esistente (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
failed to load driver: kms_swrast
MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: impossibile aprire il file oggetto condiviso: File o directory non esistente (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
failed to load swrast driver
Gtk-Message: 15:37:44.636: Failed to load module "overlay-scrollbar"
Gtk-Message: 15:37:44.644: Failed to load module "canberra-gtk-module"
and when the matlab quits I see this message:
) = ?
+++ killed by SIGKILL +++

Connectez-vous pour commenter.

Réponses (1)

Francesco Simonetti
Francesco Simonetti le 30 Déc 2021

0 votes

I solved the problem by increasing swap memory.
Thanks.

Catégories

En savoir plus sur View and Analyze Simulation Results dans Centre d'aide et File Exchange

Produits

Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by