simulink killed on ubuntu

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 comentarios

Paul
Paul el 30 de Dic. de 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 el 30 de Dic. de 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 el 30 de Dic. de 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 el 30 de Dic. de 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 +++

Iniciar sesión para comentar.

Respuestas (1)

Francesco Simonetti
Francesco Simonetti el 30 de Dic. de 2021

0 votos

I solved the problem by increasing swap memory.
Thanks.

Categorías

Más información sobre View and Analyze Simulation Results en Centro de ayuda y File Exchange.

Productos

Versión

R2021b

Etiquetas

Preguntada:

el 30 de Dic. de 2021

Respondida:

el 30 de Dic. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by