state initalization function
function initst input Real sampletime; input Real kp; input Real ki; input Real db; input Real comp; output st out; end initst;