#6231 closed defect (fixed)
NF with positiveMax in connections of arrays of port
Reported by: | casella | Owned by: | perost |
---|---|---|---|
Priority: | high | Milestone: | 1.17.0 |
Component: | New Instantiation | Version: | 1.16.0 |
Keywords: | Cc: | Andrea.Bartolini |
Description
Please consider the attached MWE. When trying to run model M, the NF complains that
[1] 13:13:25 Translation Error [OMCompiler/Compiler/NFFrontEnd/NFCeval.mo: 1064:9-1064:67]: Internal error NFCeval.evalBinaryMul failed to evaluate ‘1e-07 * {1.0, 2.0, 3.0}‘
If you remove the evaluate annotation, and flatten the model, the reason of this issue is clear from all the expressions like
$OMC$PositiveMax(-c[2].v.p.f, 1e-07 * c.v.fnom)
where the first term is a scalar, but the second is (still) an array. This should be
$OMC$PositiveMax(-c[2].v.p.f, 1e-07 * c.v.fnom[2])
Attachments (1)
Change History (4)
Changed 3 years ago by casella
comment:1 Changed 3 years ago by casella
- Cc Andrea.Bartolini added
comment:2 Changed 3 years ago by Andrea.Bartolini
- Resolution set to fixed
- Status changed from new to closed
Thanks a lot Per for very quickly fix