Influence of irreversible heat transfer on heat engine driven heat pump performance