1. Heat oil in a large saucepan over medium heat; add onions and next 3 ingredients. Cook, stirring occasionally, about 20 minutes or until onions are golden and very tender.
2. Add Merlot and cook, stirring occasionally, 15 minutes or until almost all liquid evaporates. Remove from heat, and stir in vinegar, rosemary, and pepper. Cool to room temperature.