HVAC was here installing new units, and when they went to turn off the breaker, the breaker arced and the main breaker arced. I inspected the sub panel and found the main breaker and the furnace breaker had poor connections on the bus bar and were arcing. The bus bar is not burnt luckily. I replaced the breaker and everything is now working properly