At $T = 0$, we'd expect Entropy to be zero because there's only one microstate and the $\log(1) = 0$. However, when I take the limit as $T \to 0$ in the classical canonical ensemble, it goes to infinity.
For example, say we have the Hamiltonian of a simple harmonic oscillator: $$ \mathscr{H} = \frac{p^2}{2m} + \frac{m \omega^2x^2}{2} $$ with the partition function defined as: \begin{equation} Z = \frac{1}{N! \hbar^{3N}} \int_{-\infty}^{\infty} \int_{-\infty}^{\infty} e^{-\beta \mathscr{H}(p, x)_j} dp dx \end{equation} we end up getting $$ Z = \frac{k_b T}{\hbar \omega} $$ and we can evaluate the entropy using: $$ S = k_b \ln{Z} + k_b T \frac{\partial \ln{Z}}{\partial T} $$ The term $\ln{Z}$ is bothering me because $$ \ln{\frac{k_b T}{\hbar \omega}} $$ goes to -infinity as $T\to 0$, whereas I'd expect $S \to 0$ as $T \to 0$. What am I missing here?