Opened 10 years ago
Closed 4 years ago
#3088 closed defect (fixed)
Error in inner/outer lookup
Reported by: | Francesco Casella | Owned by: | Per Östlund |
---|---|---|---|
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)
by , 10 years ago
Attachment: | CentrifugalPumpTotal.zip added |
---|
comment:1 by , 10 years ago
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 by , 10 years ago
Milestone: | 1.9.2 → 1.9.3 |
---|
Milestone changed to 1.9.3 since 1.9.2 was released.
comment:7 by , 8 years ago
Milestone: | 1.11.0 → 1.12.0 |
---|
Milestone moved to 1.12.0 due to 1.11.0 already being released.
comment:8 by , 7 years ago
Component: | Frontend → New Instantiation |
---|---|
Milestone: | 1.12.0 → 2.0.0 |
Owner: | changed from | to
Status: | new → assigned |
comment:9 by , 4 years ago
Milestone: | 2.0.0 → 1.16.0 |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
This works fine in the new frontend now.
Save Total file