Opened 6 years ago

Closed 5 years ago

Last modified 5 years ago

#5202 closed defect (fixed)

NFCeval.evalBuiltinAbs gets invalid vector input in Buildings model

Reported by: Francesco Casella Owned by: Per Östlund
Priority: blocker Milestone: 1.16.0
Component: New Instantiation Version:
Keywords: Cc:

Description

Please check Buildings.Examples.Tutorial.SpaceCooling.System2. The following error is reported

[OMCompiler/Compiler/NFFrontEnd/NFCeval.mo:1562:20-1562:79:writable]
Error: Internal error NFCeval.evalBuiltinAbs got invalid arguments
({6000.0, 0.0, 0.0, 0.0})

Change History (6)

comment:1 by Per Östlund, 6 years ago

Summary: NFCeval.evalBuiltinAbs should also accept array input argumentsNFCeval.evalBuiltinAbs gets invalid inputs for System2 Buildings model

NFCeval.evalBuiltinAbs should not accept array inputs, NFCeval assumes that function calls are vectorized correctly. In other words, this is not an error in NFCeval, but a sanity check that fails because NFCeval is given bad input. Most likely due to an array modifier being treated incorrectly.

in reply to:  1 comment:2 by Francesco Casella, 6 years ago

Replying to perost:

NFCeval.evalBuiltinAbs should not accept array inputs, NFCeval assumes that function calls are vectorized correctly. In other words, this is not an error in NFCeval, but a sanity check that fails because NFCeval is given bad input. Most likely due to an array modifier being treated incorrectly.

OK. Unfortunately I have no easy means to access the intermediate results of the flattening process if it does not terminate, so I can't help you with that.

comment:3 by Francesco Casella, 6 years ago

Priority: highblocker
Summary: NFCeval.evalBuiltinAbs gets invalid inputs for System2 Buildings modelNFCeval.evalBuiltinAbs gets invalid vector input in Buildings model

comment:4 by Per Östlund, 5 years ago

Resolution: fixed
Status: newclosed

Fixed in 4cf73067.

comment:5 by Francesco Casella, 5 years ago

Milestone: 2.0.01.16.0

comment:6 by Francesco Casella, 5 years ago

Backported to 1.14.0 and 1.15.0

Note: See TracTickets for help on using tickets.