That "wall wart" in the last pic looks as though it's almost pulled the 3-way tap out of the receptacle. Those things have a lot to answer for!

Is the 3-core 1/0 cable (alongside the orange extension cord) the feed to one of the sub-panels?