Clear Filters
Clear Filters

Crash Running Matlab Simulink on MAC M1 MAX Parsym, Parfor

10 views (last 30 days)
I get the following error trying to run Matlab code using parallel toolbox with Simulink. XXX is a ficticious name.
This is error i get, anyone know how to solve it.
Error using
XXX
Cannot load model 'XXX' on parallel workers. If this is a demo model please ensure that it is installed on the parallel workers or copy the model file to a location outside of matlabroot
Caused by: A worker failed while executing a FevalOnAllFuture.
Warning: 2 worker(s) crashed while executing code in the current parallel pool. MATLAB may attempt to run the code again on the remaining workers of the pool, unless an spmd block has run. View the crash dump files to determine what caused the workers to crash.
Restarting the computer, Running on Terminal,
Running following code:
%% Validation Parameters % (1) Run the following MATLAB commands in order: tic rehash toolboxcache;
restoredefaultpath;
savepath toc % (2) Restart MATLAB and try the validation again.
I have Available Space 500 GB of Storage. Nothing Works.
  3 Comments
Karl Larsson
Karl Larsson on 3 May 2024
I had similar errors when using parfor-loops using R2024a (Apple silicon version) on a Macbook Pro M3 Max (macOS Sonoma 14.4.1). In my case it seems the problem was related to the computer entering sleep mode, because the problem was fixed by turning on the macOS-setting:
System Settings -> Battery -> Options... -> Prevent automatic sleeping on power adapter when the display is off

Sign in to comment.

Answers (0)

Categories

Find more on Startup and Shutdown 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!