Opened 12 years ago

Closed 12 years ago

#1860 closed defect (fixed)

Multibody MSL models that use quaternions as states fail simulation

Reported by: Bruno Scaglioni Owned by: somebody
Priority: high Milestone: 1.9.0
Component: Run-time Version: 1.9.0Beta
Keywords: Multibody MSL3.2.1 Cc: Jens Frenkel

Description (last modified by Bruno Scaglioni)

Using MSL 3.2.1 and the last nightly build for windows (13222)
Models from Multibody.Examples in which quaternions must be used as state variables can compile but can't simulate because of a runtime error

the tested model is:

model SpringWithMass
 extends  Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass;
end SpringWithMass;

output log file says that the variables:
body.frame_a.r_0[1]
body.frame_a.r_0[2]
body.frame_a.r_0[3]
body.v_0[1]
body.v_0[2]
body.v_0[3]
body.w_a[1]
body.w_a[2]
body.w_a[3]

are taken as states, plus three out of four quaternions in order to determine the body orientation.

Whenever this is necessary (there are no joint variable that can be used as states) the simulation fails with a runtime error

the result is this:

record SimulationResult
    resultFile = "c:/temp/TestPolimi.MultiBody.MSLTest.Failed.SpringWithMass_res.mat",
    simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'TestPolimi.MultiBody.MSLTest.Failed.SpringWithMass', storeInTemp = false, noClean = false, options = '', outputFormat = 'mat', variableFilter = '.*', measureTime = false, cflags = '', simflags = ''",
    messages = "warning | Error solving nonlinear system residualFunc10 (size 1) at time 2.35831e-007

info    | model terminate | Simulation terminated at time 0.002
...

Change History (4)

comment:1 by Martin Sjölund, 12 years ago

Cc: Jens Frenkel added
Description: modified (diff)

comment:2 by Martin Sjölund, 12 years ago

Milestone: MultiBody1.9.0

comment:3 by Bruno Scaglioni, 12 years ago

Description: modified (diff)
Summary: Multibody MSL models containing springs don't simulateMultibody MSL models that use quaternions as states fail simulation

comment:4 by Bruno Scaglioni, 12 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.