Complex Dynamics in a ODE Model Related to Phase Transition