As the object enters the first portal then the inertia of the far end of the object that is forced to pass through will need to be accelerated in the space outside the second portal to pass through, acceleration which is induced by being pushed by the other end of the object still outside the first portal.
In other words, pushing a portal onto an object pushes that object with half the speed of the portal. This will likely require energy put into the portal itself to maintain it, which needs to come from the train.