return maximum element of vector
function vmax extends Modelica.Icons.Function; input Real vec[:] "input vector"; output Real y "maximum vector element"; end vmax;