Increasing the Energy Efficiency and Safety of Plastics Thermal Processing Using numerical Simulation