Emergence and evolution of active and ephemeral regions: comparison between observations and models