Dear Hella and Martin,
Thanks so much for your help. At the end it was a really silly mistake. For some reason the script was taking the my restart file where there is not information about the time step. I move the file to a different folder and I was able to run it with issues.
Kind regards
Estanislao