Opened 7 years ago
Closed 7 years ago
#4666 closed defect (fixed)
Unhandled imported package constant in NF
Reported by: | Francesco Casella | Owned by: | Per Östlund |
---|---|---|---|
Priority: | high | Milestone: | 2.0.0 |
Component: | New Instantiation | Version: | |
Keywords: | Cc: |
Description
The following error is reported:
Modelica_3.2.2_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.c:75:180: error: use of undeclared identifier '$PSineVoltage3$PsignalSource$Ppi'
SineVoltage.signalSource is a redeclared Sine function generator block, which contains the statement
import Modelica.Constants.pi;
and then uses pi
in the equations. This is somehow lost in the process.
Note:
See TracTickets
for help on using tickets.
This issue affects a lot of other models in the MSL, e.g.
https://libraries.openmodelica.org/branches/newInst/Modelica_3.2.2/files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.CompareTransformers.err
https://libraries.openmodelica.org/branches/newInst/Modelica_3.2.2/files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.err
https://libraries.openmodelica.org/branches/newInst/Modelica_3.2.2/files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.Rectifier.err
https://libraries.openmodelica.org/branches/newInst/Modelica_3.2.2/files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.err
etc.