Added missing each attribute
Added missing each attribute
Added missing each attribute
Added counter for sum to avoid error in OpenModelica
Removed loop with vector equation, as the loop causes an error in OpenModelica.