Hot water and electricity production system