A major power outage across Spain and Portugal has brought much of the two nations - and the Madrid Open - to a standstill.