Opened 10 years ago
Closed 4 years ago
#3088 closed defect (fixed)
Error in inner/outer lookup
Reported by: | casella | Owned by: | perost |
---|---|---|---|
Priority: | critical | Milestone: | 1.16.0 |
Component: | New Instantiation | Version: | trunk |
Keywords: | Cc: |
Description
Consider the model Cryogenics.Test.CentrifugalPump contained in the attached Save Total. When compiling, OMC complains:
[D:/Temp/CentrifugalPumpTotal.mo:7529:9-7529:65:writable] Warning: No corresponding 'inner' declaration found for component .ThermoPower.System system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Cryogenics.Internals.PumpBase. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration.
Now, Cryogenics.Test.CentrifugalPump contains the declaration inner Components.System system, where Components.System extends ThermoPower.System, and also contains an instance pump of Cryogenics.Components.CentrifugalPump, which extends Internal.PumpBase, which extends ThermoPower.Water.BaseClasses.PumpBase, which contains the declaration outer ThermoPower.System system "System wide properties";.
What's wrong with this model? It simulates correctly in Dymola
Attachments (1)
Change History (10)
Changed 10 years ago by casella
comment:1 Changed 10 years ago by adrpo
Probably nothing wrong with the model and this is an OMC bug.
In some cases depending on the order in which things are instantiated you will get this message.
We are trying to instantiate the inner component before the outer one but sometimes we fail to do so.
I'll debug a bit and see if I can find out where the problem is.
comment:2 Changed 10 years ago by sjoelund.se
- Milestone changed from 1.9.2 to 1.9.3
Milestone changed to 1.9.3 since 1.9.2 was released.
comment:3 Changed 9 years ago by sjoelund.se
- Milestone changed from 1.9.3 to 1.9.4
Moved to new milestone 1.9.4
comment:4 Changed 9 years ago by sjoelund.se
- Milestone changed from 1.9.4 to 1.9.5
Milestone pushed to 1.9.5
comment:5 Changed 9 years ago by sjoelund.se
- Milestone changed from 1.9.5 to 1.10.0
Milestone renamed
comment:6 Changed 8 years ago by sjoelund.se
- Milestone changed from 1.10.0 to 1.11.0
Ticket retargeted after milestone closed
comment:7 Changed 8 years ago by sjoelund.se
- Milestone changed from 1.11.0 to 1.12.0
Milestone moved to 1.12.0 due to 1.11.0 already being released.
comment:8 Changed 7 years ago by casella
- Component changed from Frontend to New Instantiation
- Milestone changed from 1.12.0 to 2.0.0
- Owner changed from adrpo to perost
- Status changed from new to assigned
comment:9 Changed 4 years ago by perost
- Milestone changed from 2.0.0 to 1.16.0
- Resolution set to fixed
- Status changed from assigned to closed
This works fine in the new frontend now.
Save Total file