The equations given at the link you give are for an isentropic, work-free flow of gas. So, in the limit of infinite expansion into a vacuum ($p_0=0$, $M_e\rightarrow\infty$, $p_e\rightarrow 0$) you will find that the thermal efficiency does approach 100%, meaning that almost all of the thermal energy originally in the hot gas has been converted to the kinetic energy of the exhaust. This mathematical model leaves it with no other place to go.
Working from the equations given, you can calculate the energy balance (really, enthalpy balance) in terms of $M_e$, the Mach number of the exhaust. Assuming, as the equations do, an ideal gas with constant specific heat, a unit mass of gas will have thermal enthalpy $\gamma R T_t/(\gamma-1)$ to begin with. When it has expanded to a state where the Mach number is $M=M_e$, the total enthalpy in a unit mass of gas will be partitioned into a thermal enthalpy of $\gamma R T_e/(\gamma-1)$ and a kinetic energy of $\frac{1}{2} V_e^2$. Re-expressed as fractions of the initial thermal enthalpy, the thermal fraction is
$$\frac{2}{2+(\gamma-1)M_e^2}$$
and, after some simplification, the kinetic fraction is
$$\frac{(\gamma-1)M_e^2}{2+(\gamma-1)M_e^2}.$$
These two fractions sum to 1.