#6188 closed defect (fixed)
NF Type mismatch in Buildings model involving redeclared class
Reported by: | Francesco Casella | Owned by: | Per Östlund |
---|---|---|---|
Priority: | critical | Milestone: | 1.18.0 |
Component: | New Instantiation | Version: | |
Keywords: | Cc: | Michael Wetter |
Description (last modified by )
https://libraries.openmodelica.org/branches/master/Buildings_7.0.0/files/Buildings_7.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium.err Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium] reports:
[/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/Electrical/AC/ThreePhasesBalanced/Lines/Examples/ACSimpleGridMedium.mo:6:13-8:46:writable] Error: Type mismatch in binding commercialCable = network.grid.cables, expected array dimensions [], got [1].
during NFTyping.typeBindings.
Change History (7)
comment:1 by , 4 years ago
Milestone: | 1.17.0 → 1.18.0 |
---|
comment:2 by , 4 years ago
Description: | modified (diff) |
---|
comment:3 by , 4 years ago
Cc: | added |
---|
comment:4 by , 4 years ago
comment:5 by , 4 years ago
But the modifier is applied to the array cables
, so it seems the code is indeed valid, and the NF fails to recognize the situation.
Note:
See TracTickets
for help on using tickets.
Looking into this it seems like the error is actually valid,
commercialCable
is a scalar whilenetwork.grid.cables
is an array. I reported this in #2503.