Browning onions and caramelising them are not the same thing — took me years to notice the gap. For browning: medium-high heat, stir every minute or so, seven minutes. For caramel: lower heat, stir every five, forty minutes minimum.