Safe pow() with x < 0.0 catching
function safepow input Real x; input Real e; output Real y; end safepow;