Do not know if you are a firefighter, but SOP is to cut a hole in the roof to vent the fire. Not sure why the NJ building did not have heat and smoke venting, perhaps it was because of all the freezers in the building. Still we have a lot buildings without smoke and heat venting that have solar panels on the roof. Perhaps the answer is if the roof does not have smoke vents no panels on the roof. Now what would take to get that into the codes for all new and existing buildings?
Not sure where the fire started in the NJ fire inside or on the roof. The videos show a well involved fire with the roof insulation.