Opened 7 years ago
Closed 6 years ago
#4752 closed defect (fixed)
Strange error in NFTyping.typeSections
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 issued:
[OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Magnetic/FluxTubes.mo:5695:9-5695:40:writable] Error: Argument 1 of pre must be a discrete expression, but preisachEverett.aSav[1] is discrete.
isn't a discrete variable also a discrete expression?
Change History (3)
comment:1 by , 7 years ago
comment:2 by , 7 years ago
The error is now different:
[/Modelica 3.2.2/Magnetic/FluxTubes.mo:2743:11-2743:64:writable] Error: Type mismatch in binding mat = ... expected subtype of BaseData, got type M330_50A
but the model still breaks during the flattening.
comment:3 by , 6 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
I now get another different error:
[/var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Magnetic/FluxTubes.mo:6674:9-6721:92:writable] Error: Failed to deduce dimension 1 of tabris due to missing binding equation.
which is totally unrelated to the original issue, so I am closing this ticket.
Note:
See TracTickets
for help on using tickets.
Yes, the error message is due to a simple mistake where the wrong variable was used for the error message (it will always say discrete no matter what the actual variability is). The actual error is that the frontend thinks the expression is continuous, but it's actually a Real variable assigned in a when-clause so it should be treated as discrete.