Long train dynamic simulation by means of a new in-house code