Whiting Petroleum posts Q4 loss as costs spike, sees output rising