The output of the 741 opamp can not reach down to 0 V. The datasheet states that the minimum output voltage is V
out_min = V
-+2 V (-13 V with -15 V supply, see screenshot below).

In your circuit V
- = 0 V which means V
out_min = 2 V.
This in turn will drive a base current of I
B = (2 V -0.6 V)/ 1 kΩ = 1.4 mA into the base of the transistor. The transistor will partially turn on. Due to being turned on only partially, not fully, the transistor will dissipate a lot of energy in the form of heat.
What you can do:
- use a negative supply voltage of ~ -2 V... -3 V (-3.3 V can easily be created with an integrated charge pump ic) for the 741.
- use an opamp with rail-to-rail output which can really deliver ~ 0 V when off.
- the imho best solution: instead of abusing the 741 as a comparator, use a true comparator ic.
Addendum:
The feedback by the 100 k resistor around the 741 is not connected correctly. Assuming you want the opamp to operate as a comparator, which is the only meaningful thing I can imagine for this circuit, the feedback needs to go to the "+" input of the opamp to create a hysteresis.
See e.g. here.