Using a finite element method to numerically solve the time-dependent Ginzburg-Landau equations, we study the dynamic behavior of vortices in a hybrid structure consisting of a superconducting strip with two magnetic dipoles in the presence of a external homogeneous magnetic field and an applied current drive. Time-averaged voltage-current, free energy, density of Cooper pairs, and vortex dynamics in the superconducting strip were obtained. From the obtained results, the period of free energy oscillation is observed. The period of free energy oscillation corresponds to the period of vortices variation under the applied currents drive. The obtained results give a better understanding of free energy oscillation and vortices variation in the mesoscopic superconducting strip under an applied current drive.