Page 1 of 1

Scaled model makes MATLAB crash in Linux

Posted: Thu Jun 30, 2022 4:21 am
by adkoele
Hi,

We have downloaded/checked out OpenSim version 4.1 and 4.3 from git and installed it on Linux. It generally works well, but we run into an issue when trying to load a scaled version of the Catelli model, where it crashed MATLAB when we run the following

Code: Select all

state = Mod.initSystem();
It works fine with a model derived from the gait2392 model. We can also run this code for the Catelli model in Windows. We checked if the muscles were a problem by removing them from the .osim file, but this did not solve the issue.

Since MATLAB crashes, we do not get a description of the error.

Does anyone know how to solve this?

Kind regards,
Anne

Re: Scaled model makes MATLAB crash in Linux

Posted: Thu Jun 30, 2022 1:29 pm
by aymanh
Hi Anne,

Thanks for reporting. Typically using Matlab requires using the same set of compilers/run-time used to build your OpenSim environment. That said, the fact that other models work as expected suggests that the issue is specific to this model. Potential culprits:
1. Are you doing visualization (for this and for the other models)? A recent user report suggested that setting the geometry search path made a difference.
2. FileSystem issues: Working directory, how files refer to other files if any, absolutes/relative path specification/permissions.
3. Some more issues specific to "Catelli" model which you'll need to isolate by reducing the model to a simpler version that works then gradually adding components back to see where it breaks.

Hope this helps,
-Ayman

Re: Scaled model makes MATLAB crash in Linux

Posted: Tue Jul 05, 2022 2:22 am
by adkoele
Thanks! Using this approach, I was able to isolate the problem and I found that it has to do with the ConstraintSet.