This function approximates square root, such that the derivative is finite in zero.
function sqrtReg extends Modelica.Icons.Function; input Real x; input Real delta = 0.01 "Range of significant deviation from sqrt(x)"; output Real y; end sqrtReg;