In a large skillet over medium low heat, combine the oil and butter. Add the onions and sprinkle with sugar and salt. Cook low and slow to caramelize the onions, about 20 minutes, stirring occasionally.
Season with pepper and fresh thyme. Add the broth and simmer until mostly reduced.
Stir in the cream. Preheat oven to 375 degrees.
Cut each dough into 6 squares. Grease a muffin tin, and place dough in each cup.
Divide the filling between the cups, and sprinkle with gruyere cheese.