Opened 7 years ago

Closed 7 years ago

#4724 closed defect (fixed)

Boxed expressions are passed to the back-end which cannot handle them

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

Description

All the examples from Modelica.Electrical.Analog.Examples.OpAmps eventually fail when compiled with the new front-end, because boxed expressions are passed to the back-end that cannot handle them.

For example, OpAmps.Comparator contains

#(opAmp.v_out) = smooth(0, min(opAmp.Vps, max(opAmp.Vns, opAmp.V0 * opAmp.v_in)));

This causes a mismatch in equation counting (OMEdit reports 61 equations and 60 variables), and later on also an error in the Backend due to equation-variables mismatch.

Unless this causes significant overhead, a check should be performed at the end of the front-end that no boxed expressions are left for the backend to process, so that meaningful error messages can be issued in that case.

Change History (2)

comment:1 by Per Östlund, 7 years ago

The issue with smooth was fixed in ddd8677, but it seems this was not actually the cause for the equations/variables issue since that issue remains the same.

comment:2 by Francesco Casella, 7 years ago

Resolution: fixed
Status: newclosed

This seems to be solved as of 07-02-2018, the backend clears successfully

Note: See TracTickets for help on using tickets.