lbl-srg/modelica-buildings — pull request #112 by sjoelund (2013-04-20 20:18:39+00:00)
Title: Initialise index to 0 since the algorithm seems to depend on it

Modelica Spec says the usage of uninitalised function variables is tool-dependent. In OpenModelica you get whatever is on the stack. Dymola probably initialises it to 0.