Entropy production in ac-calorimetry