Why is one Parallel Worker getting stuck on Compiling while using parsim?

15 vues (au cours des 30 derniers jours)
Jan Jeske
Jan Jeske le 14 Oct 2025 à 13:44
Modifié(e) : Jan Jeske le 15 Oct 2025 à 14:22
I am trying to run an optimisation algorithm within Python, where i call a Matlab Function (using matlab-engine) which uses parsim to run a number of Simulink Simulations in parallel. This does work for multiple iterations but it always ends the same way with one of the parallel workers getting stuck in the following state ("Compiling: Starting model compilation: Completed"). I do not understand why and what can be done. The Operating System is Debian 12, though the problem also occured on Windows.
  • I am closely monitoring the RAM-capacity which is nowhere near the limit.
  • I use a new engine (=Matlab Session) for each iteration of the optimisation.
  • I catch if a Simulations breaks due to an error.
  • When I try to run the datapoint which is stuck in a seperate simulations by its own it runs without any problems.
I am at my wits end.
And when I try to close the session and shut down the pool, the cleaning up of the parallel workers also gets stuck in a loop:

Réponses (0)

Catégories

En savoir plus sur Simulink Functions dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by