This function returns the Real absolute of the Complex input, i.e., its length.
function 'abs' extends Modelica.Icons.Function; input Complex c "Complex number"; output Real result "= abs(c)"; end 'abs';