This motor is a totally improvised work and does not intend to produce energy. This is only a college project to show what is a magnetic motor and why we can't produce electricity with that.
Perpetual motion is not possible and magnetic motors will never work.