There currently are a variety of options to travel by night train from Hamar (Norway) to Trondheim (Norway), taking between approximately 5 and 6 hours: Namely the 405 and the 51. These lines are operated by SJ Nord.
SJ Nord, part of the Swedish state railway group SJ, runs passenger train services in Norway.