SanderO is basically asking how much temperature of the debris would be increased by the collapse, through whatever mechanical processes.
An upper (and unrealistic) bound for the average temperature can easily be computed:
Let's start with an object of mass 1 kg that gets ejected from the roof of a twin tower and falls to the ground.
It's potential energy relative to the ground is m*g*h = 1 kg * 9.8 m/s
2 * 415 m = 4067 J.
Supposing all this energy is eventually turned into heat, and all the heat goes into the object, it's thermal energy will increase by these 4067 J. The associated temperature increase depends on the material's heat capacity, which is usually given in J/(mol*K) but could also be expressed in J/(kg*°C):
delta-T = Energy/(mass*heat capacity)
According to
http://en.wikipedia.org/wiki/Heat_capacity- the heat capacity of iron is 450 J/(kg*°C)
- the heat capacity of concrete is 880 J/(kg*°C)
- the heat capacity of aluminium is 897 J/(kg*°C)
- the heat capacity of gypsum is 1,090 J/(kg*°C)
- the heat capacity of wood is around 1,700 J/(kg*°C)
So the potential energy of 1 kg falling from 415 m would heat 1 kg of iron by (4067/450)°C = 9°C, 1 kg of concrete by 4.6°C and 1 kg of wood by 2.4°C.
Not a lot, eh?
Now of course the average height of fall of the building mass wasn't 415 m but less than half that, perhaps 40% or 166 m.
And of course some of the heat also goes into the ground that the rubble falls on, and lots goes into fracture and deformation. All in all, the average temperature of the building materials was probably raised by less then 1°C by the collapse itself. Of course it is entirely possible that bits and pieces, like surfaces, beam ends, etc. experienced very localised stresses and friction that raised their temperature more significantly, perhaps to the point of procucing sparks, but potential energy of the building height is insignificant when it comes to explaining the elevated temperartures of the pile. Chemical energy of combustible building materials surpassed the potential energy by several orders of magnitude.