The term ideal machine is referred to those mechanical system in which no energy and power is lost due to friction, deformation etc. Only frictionless and massless pulleys can be termed as ideal machine as no energy is lost but we know that massless pulley system do not exist. Hence pulley system is not an ideal machine.