Real Madrid ground out a 1-0 victory over Espanyol to seal their safe progression to the semi-finals of the Copa del Rey with a 2-0 aggregate triumph.