you're not sauteing your onions--you're trying to slowly coax flavor out of them. it takes time, probably a solid 45 minutes, for the onions' sugars to caramelize. if your heat is too high, the onions will burn. heat your pan over medium-low, then add your onions.