Dynamometer: Theory and Application to Engine Testing