If x0 = np.zeros(12), then you're pendulum is sticking straight up in the air. Do you want to start the pendulum pointing up or pointing down?