Determination of the entropy production during glass transition: Theory and experiment