Nonequilibrium phase transition in a system with chaotic dynamics. The ABCDE model