when integrator fails, fill remainder of output matrix with nan