PHILADELPHIA (WPVI) -- Federal investigators have confirmed that an unintended release of vapors caused last Friday's massive fire and explosions in South Philadelphia.
Traffic camera captures refinery explosion
A team with the US Chemical Safety Board has been investigating the incident at Philadelphia Energy Solutions.
Officials revealed the explosion came 22 minutes after hydrocarbon vapors were unintentionally released and found an ignition source.
However, they say no dangerous hydrofluoric acid escaped.
Viewer videos show Philadelphia refinery explosions
On Wednesday, the refinery announced that it will permanently close.
The 150-year-old oil refining complex processes 335,000 barrels of crude oil daily, according to PES. The refinery turns the crude into gasoline, jet fuel, propane, home heating oil, and other products.
It started as a bulk petroleum storage facility in 1866 and began refinery operations in 1870.
RELATED: Looking back at 1975 Philly refinery fire that killed 8 firefighters
The company emerged from federal bankruptcy court last year after restructuring its debt, leaving its majority ownership in the hands of investment banking firms Credit Suisse Asset Management and Bardin Hill.
Last week's fire at the complex broke out early in the morning, and video showed the enormous orange blast bursting into the sky.
It set off three explosions, felt miles away, as the fire plowed through a tangle of pipes carrying fuel across the complex, the company has said. It happened at the Girard Point refinery, one of two at the PES complex in south Philadelphia.
Drone Video Shows Explosion at Refinery
The fire erupted in a tank containing a mix of butane and propane, a fire official said.
Five workers were treated for minor injuries.