Opened 8 years ago
Closed 7 years ago
#4290 closed defect (invalid)
bug/regression: nested expandable connectors cause error in new release 1.11 not in previous 1.9.7
Reported by: | Owned by: | somebody | |
---|---|---|---|
Priority: | high | Milestone: | maint/1.11 |
Component: | Frontend | Version: | v1.11.0 |
Keywords: | expandable connector connect equation bug regression v1.11.0 v1.9.7 | Cc: |
Description
If I compile the attached toy model using omc v1.11.0 I get the following error:
Error processing file: A.mo [/mnt/nfs/sinisi/A.mo:43:3-43:27:writable] Error: Failed to instantiate equation connect(busB1.y, bus.b1);. Error: Error occurred while flattening model A # Error encountered! Exiting... # Please check the error message and the flags. Execution failed!
Instead using omc v1.9.7 compilation process ends without any error.
I discovered that inverting the order of connect equation in model A from:
connect(busB1.y, bus.b1); connect(busB2.y, bus.b2); connect(busB1, b1.busB); connect(busB2, b2.busB); connect(bus, b1.bus); connect(bus, b2.bus); connect(const.y, bus.x);
to:
connect(busB1, b1.busB); connect(busB2, b2.busB); connect(bus, b1.bus); connect(bus, b2.bus); connect(const.y, bus.x); connect(busB1.y, bus.b1); connect(busB2.y, bus.b2);
the problem is solved.
Attachments (2)
Change History (4)
by , 8 years ago
comment:1 by , 8 years ago
Component: | Backend → Frontend |
---|---|
Owner: | changed from | to
comment:2 by , 7 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
by , 7 years ago
Note:
See TracTickets
for help on using tickets.
I tried this model with Dymola, after building a proper package file (attached).
I got this diagnostic message:
So, the model seems to be invalid.