Opened 7 years ago

Closed 7 years ago

#4912 closed defect (duplicate)

Lookup issue in Modelica.Media with NF

Reported by: Francesco Casella Owned by: Per Östlund
Priority: high Milestone: 2.0.0
Component: New Instantiation Version:
Keywords: Cc:

Description

Please check Modelica.Media.Examples.ReferenceAir.MoistAir.err. The following error is reported:

[Modelica 3.2.2/Media/package.mo:2726:7-2726:80:writable]
Error: Class Medium.ThermodynamicState not found in scope MoistAir.

Change History (1)

comment:1 by Per Östlund, 7 years ago

Resolution: duplicate
Status: newclosed

The actual error is

Error: Internal error NFInst.instExp got unknown expression: function Tsub_res(p = p)

which is due to missing support for partial function application, see #4837. Medium in this case contains a constant with a binding that indirectly uses Tsub_res, which causes the instantiation of Medium to fail during lookup which triggers the lookup error.

Note: See TracTickets for help on using tickets.