On existence and constructing of invariant torus of a weakly connected system of differential equations