I'm a train driver ( Locomotive Engineer) and have been so for 17 years...I can tell you that this will NEVER happen on my train! Why?
A simple but ingenious safety mechanism called ATP ( Automatic Train Protection) will prevent such tragedies from occurring. In a nutshell, ATP is a signal that runs through the running rails that an on board train computer will pick up and tell it how far in front the next train is and any speed restrictions due to track gradients and curvature exist in the vicinity.
IF I decide to try and drive my train over the speed limit for the area, my train will automatically go into emergency brake mode until my speed is safely below the limit. If there is a break in signal from track to train then the train will automatically put the brakes on until it comes to a full stop and you figure out what's going on.
How the f&*%^ anyone can get away with driving a train at more than twice the speed limit is beyond me, the Spanish railway operating authorities need to invest in this system immediately, so people won't have to die unnecessarily. They're all in my prayers