In [this line](https://github.com/modelica/ModelicaStandardLibrary/blob/a963d5bac1ac2b6c00ea1ca0567036a17f9f5262/Modelica/Fluid/Machines.mo#L742) of the function linearPower, it should be `ones(2)` instead of `ones(3)` in order to match the dimensions of the equation.