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