I've found the problem. Its definately to do with not being able to read the information from the restart file. I tried the same calculation but with FREE ENERGY FUNCTIONAL (not even fully converging the wavefunction) and everything worked fine.