Opened 12 years ago
Closed 12 years ago
#1945 closed defect (fixed)
unbalanced models by duplicate inheritance
Reported by: | Christian Schubert | Owned by: | Per Östlund |
---|---|---|---|
Priority: | critical | Milestone: | 1.9.0 |
Component: | Frontend | Version: | trunk |
Keywords: | connection unbalanced | Cc: | Adrian Pop |
Description
The attached model F uses duplicate inheritance and generates redundant equations of the form
2 (1): e.port.f = 0.0
3 (1): e.d.port.f = 0.0
4 (1): e.d.port.f - e.port.f = 0.0
where there is one equation too many. This may also be related to Brunos problem.
Attachments (2)
Change History (4)
by , 12 years ago
Attachment: | Unbalanced.mo added |
---|
by , 12 years ago
Attachment: | Unbalanced.mos added |
---|
Note:
See TracTickets
for help on using tickets.
Just a bit more explanation...
This equation should not be generated:
Somehow it seems that e.d.port.f is added to a connection set as inside connector because is flow, but then when the connection to e.port.f is done is not detected that we already have a set containing e.d.port.f and a new set is created with the connection to e.port.f.
New output from +d=showEquationSource.
So it seems e.d.port.f is added as inside flow to a set in Conn, then the connect comes in E, which adds the port.f to the same connection set but somehow the old connection set is still kept. It might be something wrong with the prefixing.