Opened 6 years ago

Closed 6 years ago

#4999 closed defect (fixed)

Issue with NFCeval.evalBinaryMul

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

Description (last modified by Francesco Casella)

A lot of models in the MSL, e.g. Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse, fail because of this issue

Error: Internal error NFCeval.evalBinaryMul failed to evaluate 
0.02733826668028255 * {0.02733826668028255, 1.0}

I guess that's an easy fix to apply.

Change History (5)

comment:1 by Francesco Casella, 6 years ago

Description: modified (diff)

comment:2 by Per Östlund, 6 years ago

Resolution: fixed
Status: newclosed

Fixed in 7b16341.

comment:3 by Francesco Casella, 6 years ago

Indeed it was :)

comment:4 by Francesco Casella, 6 years ago

Resolution: fixed
Status: closedreopened

Alas, there are similar cases which are not handled correctly yet, see e.g. Modelica.Fluid.Examples.IncompressibleFluidNetwork:

[OMCompiler/Compiler/NFFrontEnd/NFCeval.mo:778:9-778:67:writable]
Error: Internal error NFCeval.evalBinaryMul failed to evaluate {-30.0, 3450.0} * 1.0

comment:5 by Per Östlund, 6 years ago

Resolution: fixed
Status: reopenedclosed

The issue with IncompressibleFluidNetwork was fixed in 7de73f0, and the model then further improved with the changes in f9e84738. Now it fails during code generation due to some unknown template error.

Note: See TracTickets for help on using tickets.