Stopped clearing the jacobian matrix every iteration of the loop