Is there a way to get errors/warnings that give me a go/nogo on the code specific to making it run?
Is it true that that actions required for an error or warning in Wolfram System Modeler (WSM) are different than for example C#? Build errors/warnings in a C# program require corrections. Errors/warnings in WSM do not necessarily require corrections. They seem to evaluate the relationship to Modelica specification and not your particular engine requirements. I only seem to have the ability toggle strict or not.
Modelica.Electric.Analog.Semiconductors.Diode evaluates to (strict, not strict):
[12] 7:17 AM Validation of model Diode Error: Diode [27:5-27:5] Invalid lookup of protected element. When looking up Modelica.Electrical.Analog.Semiconductors.exlin in scope Diode, exlin is protected. Protected elements can only appear as the first part of a component reference or path. Error: Diode [25:5-25:5] Invalid lookup of protected element. When looking up Modelica.Electrical.Analog.Semiconductors.pow in scope Diode, pow is protected. Protected elements can only appear as the first part of a component reference or path. Error: Diode [24:5-24:5] Invalid lookup of protected element. When looking up Modelica.Electrical.Analog.Semiconductors.exlin in scope Diode, exlin is protected. Protected elements can only appear as the first part of a component reference or path. Validation of model Diode completed with 3 errors.
[13] 7:18 AM Validation of model Diode Warning: Diode [27:5-27:5] Invalid lookup of protected element. When looking up Modelica.Electrical.Analog.Semiconductors.exlin in scope Diode, exlin is protected. Protected elements can only appear as the first part of a component reference or path. Warning: Diode [25:5-25:5] Invalid lookup of protected element. When looking up Modelica.Electrical.Analog.Semiconductors.pow in scope Diode, pow is protected. Protected elements can only appear as the first part of a component reference or path. Warning: Diode [24:5-24:5] Invalid lookup of protected element. When looking up Modelica.Electrical.Analog.Semiconductors.exlin in scope Diode, exlin is protected. Protected elements can only appear as the first part of a component reference or path. Error: Variable k not found in scope Diode. Validation of model Diode completed with 1 error.
Thank you.