#6188 closed defect (fixed)
NF Type mismatch in Buildings model involving redeclared class
Reported by: | casella | Owned by: | perost |
---|---|---|---|
Priority: | critical | Milestone: | 1.18.0 |
Component: | New Instantiation | Version: | |
Keywords: | Cc: | mwetter |
Description (last modified by casella)
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 Changed 4 years ago by casella
- Milestone changed from 1.17.0 to 1.18.0
comment:2 Changed 4 years ago by casella
- Description modified (diff)
comment:3 Changed 3 years ago by casella
- Cc mwetter added
comment:4 Changed 3 years ago by perost
comment:5 Changed 3 years ago by casella
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.
comment:6 Changed 3 years ago by perost
- Resolution set to fixed
- Status changed from new to closed
Fixed in b7d5bf71.
comment:7 Changed 3 years ago by casella
Great!
Looking into this it seems like the error is actually valid, commercialCable is a scalar while network.grid.cables is an array. I reported this in #2503.