Local equilibrium and the second law of thermodynamics for irreversible systems with thermodynamic inertia | Synapse