Thermal Entanglement and Out-of-Equilibrium Thermodynamics in 1D Bose gases — arXiv2