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

41 ビュー (過去 30 日間)
Jan Jeske
Jan Jeske 2025 年 10 月 14 日 13:44
編集済み: Jan Jeske 2025 年 10 月 15 日 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:

回答 (0 件)

カテゴリ

Help Center および File ExchangeSimulink Functions についてさらに検索

製品


リリース

R2025b

Community Treasure Hunt

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

Start Hunting!

Translated by