Look guys and girls, as a ME who reads this forum regularly I have the following comments on this thread.
I'll leave the generator effects to the experts, however, as regards the engine, there are fora on this site over in the automotive area that have had similar discussions of this topic except that it wasn't a motor/generator that was driving the engine.
Tractor trailer engines are used as "motored" devices regularly in down hill and deceleration applications where the engines are doing some portion of the retardation. Toward that end, compression relief devices the most famous of which is indisputably the "Jake Brake" (go Google) which alters the valve timing and is called a compression brake.
Tomad, find out what your engine is capable of before trying this.
I concur with the 15-20-25% of rated engine HP for a 'motored' condition without the aid of a compression brake. Find out what your full speed/no load fuel consumption is and convert that to HP and you get a good approximation of what it takes to spin that engine no leaded at rated speed. And, I guarantee it won't be anywhere near what your full speed, full load fueling rate will be.
So all automotive engines are "motored" in some fashion in a downhill or a deceleration state. That said, not all engines are made to be 'motored' in the "switch off" mode. Some models continue to pass a minimum amount of fuel through the system that provides for the lubrication of the injectors and cooling of the fuel pumps. If you live near the mountains, you probably have seen the light blue exhaust from diesels; that is unburned or poorly burned fuel. Others have the type of fuel rack that goes to a "no fuel" condition and they are designed to operate down long downhills (several miles) in that state of no fuel through the system.
Anyway, that and a couple of bucks will pass a few minutes at Starbucks.
rmw