How to use gmsh tags to assign material properties?

What does

return?

I would strongly suggest you have a closer look at the post that you linked to above,

and try to figure out what is different in the mesh.xdmf file you have above and the one in the other question.