Opened 4 years ago

Closed 3 years ago

#6105 closed defect (invalid)

Got type mismatch error, but matching types - ***COMPILER BUG***

Reported by: Dingo Owned by: somebody
Priority: normal Milestone:
Component: *unknown* Version: v1.14.1
Keywords: Cc:

Description

Working on extension to Modelica.Media.Interfaces.PartialMedium()
Problem occurs when I call external function that returns sphecificEnthalpy (calculated from p and T) and assigns this to a variable.

Got type mismatch error, but matching types .RocketLibrary.Media.Examples.CoolPropGas.Medium1.specificEnthalpy<function>(#record RocketLibrary.Media.Examples.CoolPropGas.Medium1.ThermodynamicState

Real(min = 0.0, max = 100000000.0, nominal = 100000.0, start = 100000.0, quantity = "Pressure", unit = "Pa", displayUnit = "bar") p;
Real(min = 100.0, max = 1000.0, start = 300.0, nominal = 300.0, quantity = "ThermodynamicTemperature", unit = "K", displayUnit = "degC") T;

end RocketLibrary.Media.Examples.CoolPropGas.Medium1.ThermodynamicState; state) => #Real(min = -10000000000.0, max = 10000000000.0, nominal = 1000000.0, quantity = "SpecificEnergy", unit = "J/kg").
This is a *COMPILER BUG*, please report it to https://trac.openmodelica.org/OpenModelica.

Change History (4)

comment:1 by Francesco Casella, 4 years ago

Milestone: Future1.17.0

Please try this out with the latest nightly build of version 1.16.0, or at least with the 1.16.0-dev.03 stable version. The problem may be fixed already.

If not, you should please attach a minimal working example that allows us to reproduce the issue, otherwise fixing it is problematic.

Thanks!

comment:2 by Francesco Casella, 4 years ago

Milestone: 1.17.01.18.0

Retargeted to 1.18.0 because of 1.17.0 timed release.

comment:3 by Francesco Casella, 3 years ago

Milestone: 1.18.0

Ticket retargeted after milestone closed

comment:4 by Per Östlund, 3 years ago

Resolution: invalid
Status: newclosed

Closing due to lack of feedback.

Note: See TracTickets for help on using tickets.