Deriving a GENERIC system from a Hamiltonian system | Synapse