Vectorized the loop comparing the Jacobian from AMPL and from reverse AD