model does not load in OpenSim 4.1
Posted: Sat May 23, 2020 3:11 pm
Good Afternoon,
I am working with a .osim file defining a muskoskeletal model. The .osim file states the model was created in OpenSim 30000. As the first few lines are
<?xml version="1.0" encoding="UTF-8" ?>
<OpenSimDocument Version="30000">
<Model name="Model of Rahul">
I have changed those lines to read
<OpenSimDocument Version="40000">
<Model name="ModelofRahul">
At that point, OpenSim was able to read the file well enough to object to the min_control being set to 0. So I changed the line
<min_control>0</min_control>
to <min_control>0.05</min_control>
for Thelen2003Muscle.
After that error was fixed and I tried to reload the model, OpenSim objected to some muscles defined using the <Schutte1993Muscle_Deprecated name="PECTM1_r">. Since this muscle type is deprecated, I removed the offending code from the model.
I reloaded the model and OpenSim 4.1 stated,
"Loaded model ModelofRahul from file /Users/mydirectory/Documents/OpenSim/4.1/Models/RahulData/ModelRollingfullbodyA.osim"
but nothing was visible in the visualizer window (except the Welcome to OpenSim! intro screen). There was no information shown in the navigator window or the coordinate window. This indicated that the model did not load.
However, I did have a small red flag (round icon with white minus sign) in the lower right hand corner of the screen. I clicked on it and it said
A java.lang.RuntimeException exception has occurred.
Click Show Details or see the messages.log file located in your /Users/ruthann/Library/Application Support/OpenSim/4.1/var/log folder.
I expanded the details and it said,
java.lang.RuntimeException: generateGraph(): body /bodyset/ground is massless but free (no joint).
Must be internal or welded to a massful body.
at org.opensim.modeling.opensimSimulationJNI.Model_initSystem(Native Method)
at org.opensim.modeling.Model.initSystem(Model.java:848)
at org.opensim.view.pub.OpenSimDB.addModel(OpenSimDB.java:146)
at org.opensim.view.pub.OpenSimDB.addModel(OpenSimDB.java:141)
at org.opensim.view.FileOpenOsimModelAction$2.run(FileOpenOsimModelAction.java:100)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
[catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
The messages.log file is attached.
I do not understand what the problem is or how to correct it. Please advise.
Thank you and Happy Saturday
I am working with a .osim file defining a muskoskeletal model. The .osim file states the model was created in OpenSim 30000. As the first few lines are
<?xml version="1.0" encoding="UTF-8" ?>
<OpenSimDocument Version="30000">
<Model name="Model of Rahul">
I have changed those lines to read
<OpenSimDocument Version="40000">
<Model name="ModelofRahul">
At that point, OpenSim was able to read the file well enough to object to the min_control being set to 0. So I changed the line
<min_control>0</min_control>
to <min_control>0.05</min_control>
for Thelen2003Muscle.
After that error was fixed and I tried to reload the model, OpenSim objected to some muscles defined using the <Schutte1993Muscle_Deprecated name="PECTM1_r">. Since this muscle type is deprecated, I removed the offending code from the model.
I reloaded the model and OpenSim 4.1 stated,
"Loaded model ModelofRahul from file /Users/mydirectory/Documents/OpenSim/4.1/Models/RahulData/ModelRollingfullbodyA.osim"
but nothing was visible in the visualizer window (except the Welcome to OpenSim! intro screen). There was no information shown in the navigator window or the coordinate window. This indicated that the model did not load.
However, I did have a small red flag (round icon with white minus sign) in the lower right hand corner of the screen. I clicked on it and it said
A java.lang.RuntimeException exception has occurred.
Click Show Details or see the messages.log file located in your /Users/ruthann/Library/Application Support/OpenSim/4.1/var/log folder.
I expanded the details and it said,
java.lang.RuntimeException: generateGraph(): body /bodyset/ground is massless but free (no joint).
Must be internal or welded to a massful body.
at org.opensim.modeling.opensimSimulationJNI.Model_initSystem(Native Method)
at org.opensim.modeling.Model.initSystem(Model.java:848)
at org.opensim.view.pub.OpenSimDB.addModel(OpenSimDB.java:146)
at org.opensim.view.pub.OpenSimDB.addModel(OpenSimDB.java:141)
at org.opensim.view.FileOpenOsimModelAction$2.run(FileOpenOsimModelAction.java:100)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
[catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
The messages.log file is attached.
I do not understand what the problem is or how to correct it. Please advise.
Thank you and Happy Saturday