Modeling And Control Of Dual Mechanical Port Electric Machine