A deadly fire that consumed at least half of a large oil storage facility in western Cuba and threatened to bring more power failures to the island's already fragile electricity system was largely controlled Wednesday after nearly five days, authorities said.