Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

I can't reproduce your problem. I downloaded your posted files, opened OpenModelica's OMEdit, opened the Modelica Buildings Library v9.1.0, opened your posted model renewable_sources.mo and simulated it.

However, you seem to confuse the use of the within statement. See for example https://mbe.modelica.university/ for how to organize packages.