Opened 12 years ago

Last modified 7 years ago

#1929 assigned defect

Multibody USR and SSR joints have wrong initialization values

Reported by: Bruno Scaglioni Owned by: Willi Braun
Priority: high Milestone: 2.0.0
Component: Backend Version: trunk
Keywords: Cc:

Description

ModelicaTest.MultiBody.FourbarVariants.JointUSR and
ModelicaTest.MultiBody.FourbarVariants.JointSSR models simulate with wrong results, this is due to wrong initialization of some variables including derivatives of state variables, see for example j2.a in JointUSR or

Body1.w_a[1]
Body1.z_a[1]
Body2.v_0[2]
Body2.a_0[2]

in joints.SSR

The initial conditions and values for the states are completely specified in the models but OMC wrongly computes the initial value of some variables in the USR and SSR joints.

Change History (16)

comment:1 by Willi Braun, 12 years ago

Owner: changed from somebody to Lennart Ochel
Status: newassigned

comment:2 by Lennart Ochel, 12 years ago

Resolution: fixed
Status: assignedclosed

Initialization works fine using the new initialization method (+d=solveinitialsystem). Simulation results are still wrong.

comment:3 by Willi Braun, 12 years ago

Resolution: fixed
Status: closedreopened

The models are still initialized different to Dymola.

in reply to:  3 comment:4 by Lennart Ochel, 12 years ago

Replying to wbraun:

The models are still initialized different to Dymola.

It would be very helpful, if you can also say what actually initialized different. Just to make work more efficient.

comment:5 by Lennart Ochel, 12 years ago

OpenModelica: ModelicaTest.MultiBody.FourbarVariants.JointSSR
Warning: Parameter jointSSR.rod1.rodLength has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value

is different to Dymola, where jointSSR.rod1.rodLength is initialized with 1.04881.

in reply to:  5 comment:6 by Lennart Ochel, 12 years ago

Replying to lochel:

OpenModelica: ModelicaTest.MultiBody.FourbarVariants.JointSSR
Warning: Parameter jointSSR.rod1.rodLength has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value

is different to Dymola, where jointSSR.rod1.rodLength is initialized with 1.04881.

OpenModelica: ModelicaTest.MultiBody.FourbarVariants.JointSSR
jointSSR.rod1.rodLength is now correctly initialized with 1.04881

OpenModelica: ModelicaTest.MultiBody.FourbarVariants.JointUSR
is properly initialized according to the test ModelicaTest.MultiBody.FourbarVariants.JointUSR_init.mos
simulation results are still different!

Last edited 12 years ago by Lennart Ochel (previous) (diff)

comment:7 by Martin Sjölund, 11 years ago

Milestone: 1.9.01.9.1

Postponed until 1.9.1

comment:8 by Lennart Ochel, 10 years ago

Owner: changed from Lennart Ochel to Willi Braun
Status: reopenedassigned

It seems that the example ModelicaTest.MultiBody.FourbarVariants.JointUSR misses an event somehow and produces therefore wrong simulation results.

The other example (ModelicaTest.MultiBody.FourbarVariants.JointSSR) fails during compilation while generating a symbolic jacobian matrix. (That issue is also reported in other tickets.)

Originally, this ticket was about initialization issues, but I think we should not close it until both models simulate as expected.

comment:9 by Martin Sjölund, 10 years ago

Milestone: 1.9.11.9.2

This ticket was not closed for 1.9.1, which has now been released. It was batch modified for milestone 1.9.2 (but maybe an empty milestone was more appropriate; feel free to change it).

comment:10 by Martin Sjölund, 10 years ago

Milestone: 1.9.21.9.3

Milestone changed to 1.9.3 since 1.9.2 was released.

comment:11 by Martin Sjölund, 9 years ago

Milestone: 1.9.31.9.4

Moved to new milestone 1.9.4

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

Milestone: 1.9.41.9.5

Milestone pushed to 1.9.5

comment:13 by Martin Sjölund, 9 years ago

Milestone: 1.9.51.10.0

Milestone renamed

comment:14 by Martin Sjölund, 8 years ago

Milestone: 1.10.01.11.0

Ticket retargeted after milestone closed

comment:15 by Martin Sjölund, 8 years ago

Milestone: 1.11.01.12.0

Milestone moved to 1.12.0 due to 1.11.0 already being released.

comment:16 by Francesco Casella, 7 years ago

Milestone: 1.12.02.0.0
Note: See TracTickets for help on using tickets.