The collision occurred when an automated system which helped the train grip the tracks failed