Added missing each attribute.
Reformulated model.

This avoids warnings from the OpenModelica parser.