State machine based nonlinear hysteresis model. (October 2015)