Residual error for big mess (||r|| = 0.000000e+00)

This error usually means that you are running out of memory. Try using iterative solvers or mumps. See for instance: Solving PDEs in Minutes - <br> The FEniCS Tutorial Volume I