Thermodynamical properties of superconducting contacts