PEX pipe insulated in PE foam production line