An Aeromexico Boeing 787-800, registration N964AM performing flight AM-2 from Madrid,SP (Spain) to Mexico City (Mexico), was enroute near the Azores Islands (Portugal) when the crew decided to divert to Santa Maria (Portugal) due to an electrical failure. The aircraft landed safely in Santa Maria.