Emergence and Breaking of Duality Symmetry in Generalized Fundamental Thermodynamic Relations.