﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
4974	ComplexMath.'abs' is not inlined	Francesco Casella	somebody	"Please run this simple model with -d=dumpdaelow
{{{
model TestComplexAbs
 Complex z;
 Real x;
equation
 z = Complex(time, 1);
 x = Modelica.ComplexMath.'abs'(z);
end TestComplexAbs;
}}}
The output is
{{{
1/1 (1): z.re = time   [dynamic |0|0|0|0|] 
2/2 (1): z.im = 1.0   [dynamic |0|0|0|0|] 
3/3 (1): x = Modelica.ComplexMath.'abs'(z)   [dynamic |0|0|0|0|] 
}}}
For some reason, the {{{'abs'}}} function is not inlined as required by the annotation in its definition, otherwise the third line should read 
{{{
x = (z.re^2 + z.im^2)^0.5
}}}
Please make sure inlining works with this function, otherwise the backend cannot generate symbolic Jacobians if the function is involved in a nonlinear algebraic loop
"	defect	closed	critical	1.13.0	Backend		fixed		Martin Sjölund Willi Braun Vitalij Ruge
