How to import xdmf mesh generated by gmsh into fenics

See for instance UMFPACK error: out of memory despite system having free memory - #2 by plugged