Do solar panel work during power outage?

No, On grid solar systems are designed in such a way that they will not supply power during the power outage. The reason behind this is that, when the power outage is present, the energy will try to go to grid. This is done to protect the engineers working on the grid lines from getting electrocuted. The inverters are the ones that cuts the power supply to grid.