Fixed hysteresis implementation: 1) simu->hyst need to be before dmcmd is initialized. 2) dmcmd need
to be used in psol instead of dmreal.