model does not load in OpenSim 4.1

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Ruth Ann Miller
Posts: 13
Joined: Fri Feb 14, 2020 9:40 am

model does not load in OpenSim 4.1

Post by Ruth Ann Miller » 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
Attachments
messages.log
This is the message file associated the error(s)
(38.12 KiB) Downloaded 53 times

Tags:

User avatar
Thomas Uchida
Posts: 1804
Joined: Wed May 16, 2012 11:40 am

Re: model does not load in OpenSim 4.1

Post by Thomas Uchida » Sun May 24, 2020 4:23 am

You should never change the version number at the top of the model file (unless you are also prepared to manually upgrade the file, which would be nontrivial in general). OpenSim will automatically update old model files when you load them. What happens when you load the file without any modifications?

User avatar
Ruth Ann Miller
Posts: 13
Joined: Fri Feb 14, 2020 9:40 am

Re: model does not load in OpenSim 4.1

Post by Ruth Ann Miller » Sun May 24, 2020 7:43 am

I dropped back to the original file. I made all changes to a copy of original model. When I tried to load original file into opensim, it gave me an error

"Updating Model file from 30000 to latest format...
Model name 'Model of Rahul' contains whitespace. It was renamed 'ModelofRahul'.
"

I changed the name of the model to "ModelofRahul" - just eliminated the white spaces. I reloaded model and opensim gives me message "Updating Model file from 30000 to latest format..."

How long should it take for opensim to complete updating the model file?

Thank you

User avatar
Ruth Ann Miller
Posts: 13
Joined: Fri Feb 14, 2020 9:40 am

Re: model does not load in OpenSim 4.1

Post by Ruth Ann Miller » Sun May 24, 2020 1:16 pm

The original model file never loaded in opensim 4.1

advice?

User avatar
Thomas Uchida
Posts: 1804
Joined: Wed May 16, 2012 11:40 am

Re: model does not load in OpenSim 4.1

Post by Thomas Uchida » Mon May 25, 2020 6:24 am

Some other error may have occurred; if there's a red circle in the bottom-right corner of the GUI window, you can double-click it for more information.

User avatar
Ruth Ann Miller
Posts: 13
Joined: Fri Feb 14, 2020 9:40 am

Re: model does not load in OpenSim 4.1

Post by Ruth Ann Miller » Mon May 25, 2020 7:55 am

Good Morning

Thank you for responding to me.

I tried to load the model this morning. I got a few warning/errors which I understood and addressed.

OpenSim says,

in the Messages window,
Updating Model file from 30000 to latest format...
Loaded model ModelofRahul from file /Users/ruthann/Documents/OpenSim/4.1/Models/RahulData/ModelRollingfullbodyA.osim

Here is a screen shot of the navigator window
Screen Shot Navigator winow 020-05-25 at 9.24.32 AM.png
Screen Shot Navigator winow 020-05-25 at 9.24.32 AM.png (60.93 KiB) Viewed 1285 times
As you can see OpenSim has loaded something. Although OpenSim will not display it in the visualizer window. Here is the visualizer window:

VisualizerWindwScreen Shot 2020-05-25 at 9.34.06 AM.png
VisualizerWindwScreen Shot 2020-05-25 at 9.34.06 AM.png (19.45 KiB) Viewed 1285 times
What is the next step I should take to fix this issue?

Again Thank You for your help

User avatar
Ruth Ann Miller
Posts: 13
Joined: Fri Feb 14, 2020 9:40 am

Re: model does not load in OpenSim 4.1

Post by Ruth Ann Miller » Mon May 25, 2020 8:50 am

Hi again,

Thank you for your patience.

I have managed to load the model. Here is what happened.

1) OpenSim did load the model but did not display clearly in the visualizer window. I saw a very small view of the floor with something on it. I could not operate the zoom feature of the visualizer window to move closer to the image.
2) I loaded a second model. One was the Gait10of18musc.osim. And then the ModelRollingfullbodyA.osim popped into view.
Screen Shot 2020-05-25 at 10.42.42 AM.png
Screen Shot 2020-05-25 at 10.42.42 AM.png (396.19 KiB) Viewed 1276 times
At this point the zoom and rotate function work. But if I use any of the camera functions, when the ModelRollingfullbodyA.osim is current, I lose the visualization. But I can fix this by making the other model current, and everything will pop back into view.

I do not think ModelRollingfullbodyA.osim should have this effect on OpenSim. I maybe able to work around this problem but I don't want to. I would like to fix it.

Any ideas what is the cause of the problem?

Thank you

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

Re: model does not load in OpenSim 4.1

Post by Ayman Habib » Mon May 25, 2020 11:52 am

Hello,

If you save the model in the latest format and attach it that would be helpful or you can file a bug (GUI->Help -> Report Bug) and attach the file then we can look into it since this is very specific to your model rather than a generic issue.

Best regards,
-Ayman

User avatar
Ruth Ann Miller
Posts: 13
Joined: Fri Feb 14, 2020 9:40 am

Re: model does not load in OpenSim 4.1

Post by Ruth Ann Miller » Mon May 25, 2020 1:26 pm

Hi Dr.Habib,

Thank you for getting back with me. I have filled out a bug report - its bug number 2963 Model Acts Squirrelly see "Model does not load in opensim 4.1". The perplexing model is attached to bug report.

Happy Memorial Day

POST REPLY