Opened 10 years ago

Closed 10 years ago

#2899 closed defect (fixed)

Wrong number of equations in expandable connectors model

Reported by: karinh@… Owned by: somebody
Priority: high Milestone: 1.9.2
Component: Frontend Version: trunk
Keywords: Cc:

Description

See the attached model. It contains an example with external connectors and a subbus and a control bus. The equations should be the same as the variables, but they are not.

This is a very common use of the expandable connectors in some libraries.

Attachments (2)

TestModelTotal.mo (45.8 KB ) - added by karinh@… 10 years ago.
test model for expandable connectors
EquationCount.mo (2.2 KB ) - added by massimo ceraolo 10 years ago.

Download all attachments as: .zip

Change History (10)

by karinh@…, 10 years ago

Attachment: TestModelTotal.mo added

test model for expandable connectors

comment:1 by Adrian Pop, 10 years ago

Possibly a duplicate of #2484.

comment:2 by Adrian Pop, 10 years ago

Fixed in r22809. Added the attached model as test.

comment:3 by Adrian Pop, 10 years ago

Resolution: fixed
Status: newclosed

comment:4 by Adrian Pop, 10 years ago

Component: UnknownFrontend
Milestone: Future1.9.1

comment:5 by massimo ceraolo, 10 years ago

I have a new case in which the count of equations and variables seems to be wrong in OM r24023.
I will attach it as "EquationCount.mo". I will also reopen this ticket. I apologise in advance in case it is my mistake.

by massimo ceraolo, 10 years ago

Attachment: EquationCount.mo added

comment:6 by massimo ceraolo, 10 years ago

Milestone: 1.9.11.9.2
Resolution: fixed
Status: closedreopened

comment:7 by massimo ceraolo, 10 years ago

Well, it was my mistake.
I trusted Dymola, but I had a large model in which I used a variable "pow" taken from a connector that nobody put into. That model was therefore faulty, even though that Dymola accepted it as balanced (it simulated, and during the simulation variable power was constantly zero).

Trying to simplify that model I created EquationCount that I uploaded; but that one was nearly useless for the purpose.

So, I'm going to close this ticket again.

comment:8 by massimo ceraolo, 10 years ago

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