softly cuts to upper and lower limit
function softcut input Real x; input Real x_llimit; input Real x_ulimit; input Real r; output Real y; end softcut;