Library with models for building energy and control systems


The Buildings library is a free library for modeling building energy and control systems. Many models are based on models from the package Modelica.Fluid and use the same ports to ensure compatibility with the Modelica Standard Library.

The figure below shows a section of the schematic view of the model Buildings.Examples.HydronicHeating. In the lower part of the figure, there is a dynamic model of a boiler, a pump and a stratified energy storage tank. Based on the temperatures of the storage tank, a finite state machine switches the boiler and its pump on and off. The heat distribution is done using a hydronic heating system with a three way valve and a pump with variable revolutions. The upper right hand corner shows a room model that is connected to a radiator whose flow is controlled by a thermostatic valve.


The web page for this library is, and the development page is Contributions to further advance the library are welcomed. Contributions may not only be in the form of model development, but also through model use, model testing, requirements definition or providing feedback regarding the model applicability to solve specific problems.

Extends from Modelica.Icons.Package (Icon for standard packages).

Package Content

Name Description
Buildings.UsersGuide UsersGuide User's Guide
Buildings.Air Air Package with models that are configured to use with air-based HVAC systems
Buildings.Airflow Airflow Package to compute airflow and contaminant transport between rooms
Buildings.Applications Applications Package with models for different application domains
Buildings.BoundaryConditions BoundaryConditions Package with models for boundary conditions
Buildings.Controls Controls Package with models for controls
Buildings.Electrical Electrical Package with models for electrical systems
Buildings.Fluid Fluid Package with models for fluid flow systems
Buildings.HeatTransfer HeatTransfer Package with heat transfer models
Buildings.Media Media Package with medium models
Buildings.ThermalZones ThermalZones Models for BuildingPhysics
Buildings.Utilities Utilities Package with utility functions such as for I/O
Buildings.Types Types Package with type definitions
Buildings.Examples Examples Collection of models that illustrate model use and test models
Buildings.Experimental Experimental Package with experimental models
Buildings.BaseClasses BaseClasses Package with base classes for the Buildings library