Message Boards Message Boards

0
|
2724 Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:
GROUPS:

Errors and warnings in System Modeler 13.1

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.

POSTED BY: Glen K. Halley

We are aware that there is some confusion concerning warnings and errors. The upcoming version of System Modeler addresses it. Moreover, in the next version, we treat warnings and errors in a similar way as C++ does.

POSTED BY: Ankit Naik
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract