In late August, executives at Dallas-based oil refiner HollyFrontier had good reason for optimism. Profits had more than doubled from the previous year. The price of oil, its principal expense, was falling while gasoline prices held relatively steady.