Line search: objective function at lambda = 1. is infinity or NaN, cutting lambda