Modeling the Process of Testing the State of Thermocouple Legs During Operation