When trying to launch the sofiaLeg demo provided by the ModelOrderReduction plugin, the newBox function did not work for me. I noticed that TRS_to_matrix() does not initiate the rotation quaternion when a zero rotation is given. It can be fixed by adding the following lines:
if eulerRotation != None:
rotation = from_euler( to_radians( eulerRotation ) )
else:
rotation = [0, 0, 0, 1]