Moved assignment of <code>startTime</code> to <code>initial algorithm</code> section.

This avoids an error in OpenModelica.
Corrected StopTime annotation and redeclaration statement.
Added missing each keyword and reformatted code.