Unable to access vector of degrees of freedom

That typically means that the initial guess is not good enough. With your domain specific knowledge you should come up with a good initial guess.

Some general suggestions are also discussed in Default absolute tolerance and relative tolerance - #4 by nate by @nate.