3D numerical model of diamagnetic plasma confinement in gasdynamic trap