Stable and periodic solutions of an exergy-based model of population dynamics