Simulation of the dynamics in the magnetotail current sheet