No, but it burned full blast for about 28 hours longer than WTC.
Other things that would have significant effect would be what floor the fire is on, and how well insulated the structure is (and, of course the material used as a load bearing member, which could be, for instance, steel reinforced concrete as opposed to steel beams).
Assuming the supporting structure is being weakened by the fire, then the number of floors above it will affect the chance of collapse. The more floors, the more weight and therefore the more strain is on the weakened structure.
Also, how widespread the fire is. If it is burning for a long time but is more or less moving along a front, a bit like a forest fire, then it might do less structural damage than a fire which burns the whole area at once.
All speculation, of course. I know nothing about the Madrid building you refer to, but your point has given give me food for thought. Nearly all the accidents where commercial size jets crashing into building that I know of involved low buildings of a few floors, so aren't really comparable.
Still, I'm 100% sure that the twin towers collapsed because someone flew a passenger jet into each one, and that there was no other helping hand.