There currently are a variety of options to travel by night train from Hamar (Norway) to Heimdal (Norway), taking between approximately 5 and 6 hours: Namely the 80405, the 80051, the 51 and the 405. These lines are operated by SJ Nord.
SJ Nord is a subsidiary of the Swedish state railway SJ, operating passenger rail services in Norway.