Thermodynamics of active matter with internal degrees of freedom | Synapse