Cannot run Fenics code with fine mesh (memory issue?)

Well, now you are getting another error, not out of memory.

You can again search for this error on the forum ,getting results like: