Illegal modifiers in Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate #2268
Labels
bug
Critical/severe issue
example
Issue only addresses example(s)
L: Electrical.Analog
Issue addresses Modelica.Electrical.Analog
P: high
High priority issue
Milestone
The model Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate modifies protected variables vbc, ibe, vt_t in T1 and T2; causing a warning.
The start-value modifiers added as part of #799 seem good, so I would assume that the variables should not be protected - I could not see when that was changed.
A check-log from Dymola says:
Warning: Modifier for protected component vbc. This is not legal Modelica.
File: Modelica/Electrical/Analog/Examples/HeatingNPN_OrGate.mo, line 107
Context: Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.T1.vbc
Original declaration of vbc:
File: Modelica/Electrical/Analog/Semiconductors.mo, line 1050
Context: Modelica.Electrical.Analog.Semiconductors.HeatingNPN.vbc
Warning: Modifier for protected component ibe. This is not legal Modelica.
File: Modelica/Electrical/Analog/Examples/HeatingNPN_OrGate.mo, line 107
Context: Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.T1.ibe
Original declaration of ibe:
File: Modelica/Electrical/Analog/Semiconductors.mo, line 1054
Context: Modelica.Electrical.Analog.Semiconductors.HeatingNPN.ibe
Warning: Modifier for protected component vt_t. This is not legal Modelica.
File: Modelica/Electrical/Analog/Examples/HeatingNPN_OrGate.mo, line 106
Context: Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.T1.vt_t
Original declaration of vt_t:
File: Modelica/Electrical/Analog/Semiconductors.mo, line 1062
Context: Modelica.Electrical.Analog.Semiconductors.HeatingNPN.vt_t
Warning: Modifier for protected component vbc. This is not legal Modelica.
File: Modelica/Electrical/Analog/Examples/HeatingNPN_OrGate.mo, line 127
Context: Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.T2.vbc
Original declaration of vbc:
File: Modelica/Electrical/Analog/Semiconductors.mo, line 1050
Context: Modelica.Electrical.Analog.Semiconductors.HeatingNPN.vbc
Warning: Modifier for protected component ibe. This is not legal Modelica.
File: Modelica/Electrical/Analog/Examples/HeatingNPN_OrGate.mo, line 127
Context: Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.T2.ibe
Original declaration of ibe:
File: Modelica/Electrical/Analog/Semiconductors.mo, line 1054
Context: Modelica.Electrical.Analog.Semiconductors.HeatingNPN.ibe
Warning: Modifier for protected component vt_t. This is not legal Modelica.
File: Modelica/Electrical/Analog/Examples/HeatingNPN_OrGate.mo, line 126
Context: Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.T2.vt_t
Original declaration of vt_t:
File: Modelica/Electrical/Analog/Semiconductors.mo, line 1062
Context: Modelica.Electrical.Analog.Semiconductors.HeatingNPN.vt_t
The text was updated successfully, but these errors were encountered: