Using information-theoretical methods, we studied how energy equipartition is broken in one-dimensional systems under a heat flow composed of alternating particles of two different masses. The average energy stored in particles of different masses is seen to be different in both ideal gases and harmonic lattices.