Dissipative flow of superfluid4He through a small orifice by quantum and thermal nucleation of vortices