That seems to be a bug in Modelica 3.2.2 (https://github.com/modelica/Modelica/issues/2177). As a workaround you can switch to Modelica 3.2.1 (right-click on Modelica and select Version -> 3.2.1) or apply the patch from github to your local installation.
Otto