There currently are a variety of options to travel by night train from Oslo (Norway) to Heimdal (Norway), taking between approximately 6 and 8 hours: Namely the 405, the 80405 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.