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)

CentrifugalPumpTotal.zip (161.2 KB ) - added by Francesco Casella 10 years ago.
Save Total file

Download all attachments as: .zip

Change History (10)

by Francesco Casella, 10 years ago

Attachment: CentrifugalPumpTotal.zip added

Save Total file

comment:1 by Adrian Pop, 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 Martin Sjölund, 10 years ago

Milestone: 1.9.21.9.3

Milestone changed to 1.9.3 since 1.9.2 was released.

comment:3 by Martin Sjölund, 9 years ago

Milestone: 1.9.31.9.4

Moved to new milestone 1.9.4

comment:4 by Martin Sjölund, 9 years ago

Milestone: 1.9.41.9.5

Milestone pushed to 1.9.5

comment:5 by Martin Sjölund, 9 years ago

Milestone: 1.9.51.10.0

Milestone renamed

comment:6 by Martin Sjölund, 8 years ago

Milestone: 1.10.01.11.0

Ticket retargeted after milestone closed

comment:7 by Martin Sjölund, 8 years ago

Milestone: 1.11.01.12.0

Milestone moved to 1.12.0 due to 1.11.0 already being released.

comment:8 by Francesco Casella, 7 years ago

Component: FrontendNew Instantiation
Milestone: 1.12.02.0.0
Owner: changed from Adrian Pop to Per Östlund
Status: newassigned

comment:9 by Per Östlund, 4 years ago

Milestone: 2.0.01.16.0
Resolution: fixed
Status: assignedclosed

This works fine in the new frontend now.

Note: See TracTickets for help on using tickets.