This is the open top bus that has two routes, Historical Madrid and Modern Madrid. Tickets are sold on the basis of hop-on-hop-off both routes for one or two days.
It is a splendid way of deciding what would be worth a longer time later, if you are new to Madrid.