San Francisco was plunged into darkness when nearly 30 percent of the city was struck by a power outage that appears to be the result of a substation fire.