A test of resilience as Spain, Portugal and parts of France suffer a major power outage.