Most suburban trains in the city of Madrid as well as some medium- and long-distance services were disrupted on Monday morning as a result of an  software glitch. 

The underground train network, managed by another operator, is unaffected. The glitch affected the central train station of Chamartin.

More information here