title: Modelica integerChange block not working as intended?
body: <p>I'm trying to use the integerChange block from the Modelica Standard library
  It doesn't seem to work however. What am i doing wrong? I would have expected a spike at each change,but i get a constant &quot;false&quot;. I'm using OpenModelica 1.17</p>
  <p>Here is the simple model</p>
  <pre><code>model integerChangeTest
    Modelica.Blocks.Math.IntegerChange integerChange annotation(
      Placement(visible = true, transformation(origin = {26, 24}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
    Modelica.Blocks.Math.RealToInteger realToInteger annotation(
      Placement(visible = true, transformation(origin = {-6, 24}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
    Modelica.Blocks.Sources.Sine sine(amplitude = 5, freqHz = 5) annotation(
      Placement(visible = true, transformation(origin = {-48, 26}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
  equation
    connect(realToInteger.y, integerChange.u) annotation(
      Line(points = {{5, 24}, {13, 24}}, color = {255, 127, 0}));
    connect(sine.y, realToInteger.u) annotation(
      Line(points = {{-37, 26}, {-19, 26}, {-19, 24}}, color = {0, 0, 127}));
    annotation(
      uses(Modelica(version = &quot;3.2.3&quot;)));
  end integerChangeTest;
  </code></pre>
  <p><a href="https://i.stack.imgur.com/HhjVF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HhjVF.png" alt="enter image description here" /></a></p>