Thermodynamics conditions of matter in neutron star mergers