implemented derivatives of the stateConstraints method to avoid taylorVars