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 , 4 years ago
Milestone: | Future → 1.17.0 |
---|
comment:2 by , 4 years ago
Milestone: | 1.17.0 → 1.18.0 |
---|
Retargeted to 1.18.0 because of 1.17.0 timed release.
comment:4 by , 3 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Closing due to lack of feedback.
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!