Error: NPSOL returned a non-zero status code 3