> Note that if you travel from The Netherlands to Spain you might be traversing 6 different railway electrification systems that vary in critical stuff like voltages (and by more than a factor 10!) and possibly Hz, and some are AC and some are DC (not kidding). Also there will be at least 2 incompatible track gauges involved. And I bet other stuff like communications and routing systems are incompatible and safety critical too.
none of this is nearly as problematic as you seem to think it is. modern powertrains traverse various electrification schemes without difficulty. signaling systems are trending towards ETCS, trains that traverse incompatible signaling systems (eg the eurostar) simply carry a set of onboard signaling equipment for each standard. gauge changes are the most challenging technical limitation in your list, but are a solved problem. spanish talgo's regularly change gauges at speed [1]