Photoionization of atoms with attosecond sweep: Comparison of quantum-mechanical calculation and simple model