Opened 14 years ago

Last modified 14 years ago

#1403 closed defect (wontfix)

Fail to verify/compile all models that include the model 'ObsoleteModelica3.Mechanics.MultiBody.Sensors.CutForceAndTorque'

Reported by: Leonardo Laguna Owned by: Leonardo Laguna
Priority: high Milestone:
Component: Version:
Keywords: Cc: Leonardo Laguna,

Description

All test models that include the model 'ObsoleteModelica3.Mechanics.MultiBody.Sensors.CutForceAndTorque' fail to compile.

The compiler returns the following error:

{{{Error: No matching function found for defineBranch in component <NO COMPONENT>
Error: Class defineBranch not found in scope ObsoleteModelica3.Mechanics.MultiBody.Sensors.CutForceAndTorque.
Error: Error occured while flattening model ObsoleteModelica3.Mechanics.MultiBody.Sensors.CutForceAndTorque

Check of ObsoleteModelica3.Mechanics.MultiBody.Sensors.CutForceAndTorque failed
}}}

This problem affects the following test files:


  • ModelicaTest.MultiBody.Sensors.CutForceAndTorque1
  • ModelicaTest.MultiBody.Sensors.CutForceAndTorque2
  • ModelicaTest.MultiBody.Sensors.CutForceAndTorque3


Please find attached the complete model of 'ModelicaTest.MultiBody.Sensors.CutForceAndTorque1' file.

Attachments (1)

CutForceAndTorque1Total.mo (237.7 KB ) - added by Leonardo Laguna 14 years ago.

Download all attachments as: .zip

Change History (3)

by Leonardo Laguna, 14 years ago

Attachment: CutForceAndTorque1Total.mo added

comment:1 by Leonardo Laguna, 14 years ago

This problem has been reported in the MathModelica tracker with the ticket number #3047.

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

"The user should <b>manually</b> replace all references to ObsoleteModelica3 in his/her models to the models that are recommended in the documentation of the respective model."

Anyway, you can fix this by replacing changing defineBranch to Connections.branch in ObsoleteModelica3.mo manually since Modelica Association forgot to do this (it was changed for all other references of defineBranch).

Note: See TracTickets for help on using tickets.