Chaos at a derailment