In a thick-bottom pot saute onion, carrot, celery, and mushrooms in butter on medium heat. While sauteing, stir constantly until onions are translucent. Lower heat and add flour. Stir the flour until a roux forms. Simmer on low heat for about 2 minutes, stirring occasionally so it doesn't stick.