checked gradient of stabilityObj