NLsolve.jl collocation divergence

Thank you all, I managed to solve the problem using this reference. Parametrize NLsolve function