Modelica Buildings Library

The Modelica Buildings Library is a free, open-source library with dynamic simulation models for building, district, and data center energy and control systems. Its primary use is flexible and fast modeling in support of the design and operation of new and existing systems.

Latest release: v14.0.0 (October 5, 2026) · 3-Clause BSD License · 3,000+ models and functions tested with OpenModelica, Dymola, OPTIMICA, and Impact

Modelica variable air volume flow system model

Partial view of an implementation of a variable air volume flow system.

Models in the Library

HVAC & System Templates

Air-handling, hydronic, heat pump, and chiller equipment, along with configurable system and template models for HVAC systems, district energy systems, and data center cooling systems.

Thermal & Electrical Storage

Dynamic energy storage models for water and ice tanks, boreholes and borefields, aquifer thermal energy storage, phase change materials (PCM), and electrical batteries.

Controls & ANSI/ASHRAE 231

Supervisory and local loop control libraries, including a reference implementation of ANSI/ASHRAE Standard 231 (CDL) and a library of ASHRAE Guideline 36 control sequences.

Envelope & EnergyPlus Coupling

Heat transfer among rooms and the outside, modeled either natively in Modelica with detailed multizone or reduced-order models, or via integrated run-time coupling with EnergyPlus.

Airflow & Coupled CFD

Multizone airflow, including natural ventilation and contaminant transport, as well as single-zone computational fluid dynamics (CFD) coupled to heat transfer and HVAC systems.

Electrical Systems & Load Prediction

Electrical DC and balanced or unbalanced two- or three-phase AC systems, along with data-driven load prediction models for demand response applications.

Applications

Prototyping, Design, and Analysis

Rapid prototyping, design, and analysis of new and existing energy and control systems for buildings, districts, and data centers.

De-risking system integration

De-risking integrated energy systems prior to field demonstrations or deployment.

Model-Based Controls Design

Controls development, specification, verification, and deployment within a model-based design process.

Operation Analysis and Digital Twins

Analysis of the operation of existing building systems, and export of digital twins for functional testing, verification of control sequences, energy-minimizing controls, and fault detection and diagnostics.

Research Projects

All development is open-source on GitHub, and we welcome contributions. The models are available under a 3-clause BSD open-source license. See Publications for peer-reviewed papers and citation information.