Opened 7 years ago

Closed 7 years ago

#4728 closed defect (fixed)

Missing implementation of NFCeval.evalNormalCall

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

Description

Many models in the Spice3 MSL library (e.g. Modelica.Electrical.Spice3.Examples.Graetz) give these errors:

[OpenModelica/OMCompiler/Compiler/NFFrontEnd/NFCeval.mo:431:3-431:77:writable]
Error: Internal error NFCeval.evalNormalCall: IMPLEMENT ME

<snip>

Error: Constant XXX is used without having been given a value.

This problem was unmasked after commit c5ca0a5c3

Change History (3)

comment:1 by Francesco Casella, 7 years ago

After the last commits, the error changed into

[OpenModelica/OMCompiler/Compiler/NFFrontEnd/NFCeval.mo:1253:3-1253:101:writable]
Error: Internal error NFCeval.evalNormalCall: IMPLEMENT ME: Modelica.SI.Conversions.from_degC(27.0)

<snip>

Error: Too many equations, over-determined system. 
The model has 210 equation(s) and 63 variable(s).

comment:2 by Francesco Casella, 7 years ago

At the moment, this is the most common issue with the MSL models that fail with the NF, possibly over 25%. In particular, it affects most models in Modelica.Fluid, see, e.g., Modelica.Fluid.Examples.HeatingSystem

I would suggest to prioritize it.

comment:3 by Francesco Casella, 7 years ago

Resolution: fixed
Status: newclosed

The Graetz function and HeatingSystem now fail later in the code generation process due to other issues, so I am closing this ticket.

Note: See TracTickets for help on using tickets.