I love Madrid! Spent 5 days there this summer ... yeah just hang out, get drunk, go to bars and clubs till madrugada (~the hours before sunrise).
The best part to go out (as far as I know) is "Malasana".
Get to know as many hot chicks as you can.
I envy you!