PETSc error of ChangeNumbering

You need to call buildDmesh() before you define your local fespace named SpaceVector.