Heat a nonstick pan to a medium low, add the butter and onions. Cover and cook for 10 minutes, stirring occasionally. Then, uncover, continue cooking and stirring often until the onions have turned dark caramel color. When almost ready, add the balsamic, brown sugar, and mustard, stir and cook for an additional minute. Transfer the onions to a bowl and set aside.