Invia SMS: Microcanonical thermodynamics in general physical theories