But what if when the object falls down it needs the same energy to get back up to the portal, otherwise its stuck between those portals, so when you take away energy by generating electricity it falls slower and cant be lifted back up again, that wouldnt violate the free energy law :(