Ultrafast magnetization reversal of a ferrimagnetic metallic alloy GdFeCo was investigated by time-resolved resonant magneto-optical Kerr effect measurements using a seeded free electron laser. The GdFeCo alloy was pumped by a linearly polarized optical laser pulse, and the following temporal evolution of the magnetization of Fe in GdFeCo was element-selectively traced by a probe free electron laser pulse with a photon energy tuned to the Fe M-edge. The results have been measured using rotating analyzer ellipsometry method and confirmed magnetization switching caused by ultrafast heating.