The original question related to heat generation.
If the pipe is perfectly insulated, there is no heat transfer to or from the fluid.
As MortenA stated, energy will be added do to pump work.
With regard to heat generation, is the question somehow related to heating affects of flow due to friction?