Scaled model makes MATLAB crash in Linux

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Anne Koelewijn
Posts: 14
Joined: Tue Aug 26, 2014 6:42 am

Scaled model makes MATLAB crash in Linux

Post by Anne Koelewijn » Thu Jun 30, 2022 4:21 am

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

Tags:

User avatar
Ayman Habib
Posts: 2248
Joined: Fri Apr 01, 2005 12:24 pm

Re: Scaled model makes MATLAB crash in Linux

Post by Ayman Habib » Thu Jun 30, 2022 1:29 pm

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

User avatar
Anne Koelewijn
Posts: 14
Joined: Tue Aug 26, 2014 6:42 am

Re: Scaled model makes MATLAB crash in Linux

Post by Anne Koelewijn » Tue Jul 05, 2022 2:22 am

Thanks! Using this approach, I was able to isolate the problem and I found that it has to do with the ConstraintSet.

POST REPLY