Opened 12 years ago

Closed 12 years ago

#1876 closed defect (fixed)

Expandable connectors: wrong equations generation in Multibody

Reported by: Bruno Scaglioni Owned by: Adrian Pop
Priority: high Milestone: 1.9.0
Component: Backend Version: trunk
Keywords: expandable connectors Cc:

Description

While testing multibody library for MSL 3.2.1 I disovered that the example systems.oneAxis don't simulate anymore (MSL 3.1 simulates) because the flattened model has more equations then variables.

Class Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis has 445 equation(s) and 500 variable(s).
329 of these are trivial equation(s).

Exploring the flattened code from 3.1 and 3.2.1 i discovered that inside controlBus model all the equations of the six axisControlBus
are activated nevertheless only variables of axisControlBus1 are assigned (look at PathPlanning1 model), so, referring to Modelica Specification 3.2 rev1 only equations with a matching variables should be activated.

This happens in MSL 3.2.1 because controlBus model containing the six axisControlBus does not expand anymore an empty controlBus model but in 3.2.1 only the controlBus within six axisControlBus exist. However the models are compliant to the 3.2 rev 1 Specific and they simulate correctly in Dymola, so this should be fixed.

Attachments (2)

oneAxis31flat.txt (93.2 KB ) - added by Bruno Scaglioni 12 years ago.
Flat model of MSL 3.1
oneAxis321flat.txt (118.4 KB ) - added by Bruno Scaglioni 12 years ago.
Flat model of 3.2.1

Download all attachments as: .zip

Change History (6)

by Bruno Scaglioni, 12 years ago

Attachment: oneAxis31flat.txt added

Flat model of MSL 3.1

by Bruno Scaglioni, 12 years ago

Attachment: oneAxis321flat.txt added

Flat model of 3.2.1

comment:1 by Adrian Pop, 12 years ago

Owner: changed from somebody to Adrian Pop
Status: newaccepted

comment:2 by Adrian Pop, 12 years ago

Hopefully fixed in r13313. Added test in r13314.

comment:3 by Adrian Pop, 12 years ago

I'll wait until the testsuite finishes until I close this bug.

comment:4 by Adrian Pop, 12 years ago

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