A method for controlling a trip event of an inverter, the inverter comprising a switching element and a temperature sensing circuit, wherein the method comprises: calculating an actual load factor based on a ratio of an output current flowing in the switching element to a rated current of the inverter; comparing (S608) the actual load factor with a reference load factor and determining whether to trip the inverter based on a result of the comparing; the method characterized by the steps of: sensing a change in temperature of the inverter for an overload current measurement time using the temperature sensing circuit, the overload current measurement time referring to a time period for which an output current (lo) flows in the switching element; determining an amount of heat emitted from the inverter based on the change in temperature; determining an electrical energy of the inverter consumed for the overload current measurement time; determining a compensation time based on the amount of heat and the electrical energy; determining a compensated reference time by adding the compensation time to a reference time; and if the actual load factor is greater than the reference load factor, comparing (S610) the compensated reference time with the overload current measurement time to trip the inverter. calculating an actual load factor based on a ratio of an output current flowing in the switching element to a rated current of the inverter; comparing (S608) the actual load factor with a reference load factor and determining whether to trip the inverter based on a result of the comparing; the method characterized by the steps of: sensing a change in temperature of the inverter for an overload current measurement time using the temperature sensing circuit, the overload current measurement time referring to a time period for which an output current (lo) flows in the switching element; determining an amount of heat emitted from the inverter based on the change in temperature; determining an electrical energy of the inverter consumed for the overload current measurement time; determining a compensation time based on the amount of heat and the electrical energy; determining a compensated reference time by adding the compensation time to a reference time; and if the actual load factor is greater than the reference load factor, comparing (S610) the compensated reference time with the overload current measurement time to trip the inverter. sensing a change in temperature of the inverter for an overload current measurement time using the temperature sensing circuit, the overload current measurement time referring to a time period for which an output current (lo) flows in the switching element; determining an amount of heat emitted from the inverter based on the change in temperature; determining an electrical energy of the inverter consumed for the overload current measurement time; determining a compensation time based on the amount of heat and the electrical energy; determining a compensated reference time by adding the compensation time to a reference time; and if the actual load factor is greater than the reference load factor, comparing (S610) the compensated reference time with the overload current measurement time to trip the inverter. <EOS>