Virtual buildings for super intelligence workflows
SIMsara hosts virtual buildings in a private cloud network. The network acts as the BACnet network of a real building. Spawn a virtual building, or a city of many buildings, with the CLI. Then connect an SI agent, an RL agent or EMS software through a VPN tunnel. The engine calculates the physics of one year in seconds. Thus an agent can test each change before it makes the next change.
- Platform
- A private cloud network, through a VPN tunnel
- Access
- A CLI, JSON output and an MCP server
- Input
- TOML, one table for each object
- Time step
- 60 minutes to 1 minute
- Validation
- ASHRAE Standard 140
Use cases
One engine, six use cases
Each use case connects a different item to the same virtual building, through the VPN tunnel. Select a use case over the model, or a number on the model. You can also turn the model.
Use case 1 of 6
1Reinforcement learning for building control
A control developer connects an RL agent to virtual buildings. The agent controls the building in lock-step, and SIMsara calculates the result of each command.
Connects: A reinforcement learning (RL) agent, as a remote EMS client
- Connect the agent. The agent connects to the channel of the run through the VPN tunnel. The engine waits for the agent at each decision step.
- Send commands. At each decision step, the agent writes setpoints and commands to the BACnet objects of the virtual controllers.
- Read the result. The agent reads the points of the next step. It calculates its reward from these values.
- Run again. Start the next run with the CLI. Then test the agent on buildings that it did not see.
The engine calculates a year in seconds. The BACnet messages, the agent and the VPN tunnel add their own time at each decision step.
The platform
Engine
The virtual building on a private cloud network
No part of the engine runs on your computer. You use the CLI, and the item under test connects through the VPN tunnel.
SIMsara hosts each virtual building in a private cloud network. The network acts as the BACnet network of a real building. Each point of the model is a BACnet object.
The interpreter answers Who-Is and Who-Has. A client reads and writes properties, with the 16 priority levels of a commandable object. A client can also subscribe to change-of-value notifications.
| Item under test | Connection | Clock |
|---|---|---|
| Real hardware: a unit controller or a supervisory controller (planned) | BACnet/IP through a VPN router on the bench. For BACnet MS/TP, add a BACnet router. | Wall clock |
| EMS or BMS software on your computer | BACnet/IP through the VPN tunnel. The command simsara env connect brings the tunnel up. | Wall clock |
| A remote EMS client | The channel of the run: TCP through the VPN tunnel | Lock-step |
Unix sockets and local connections are not available. Each connection goes through the VPN tunnel to the private cloud network. The connection for real hardware is planned.
Time
A fast feedback loop for SI agent optimization
The engine calculates a year in seconds. In lock-step, the engine waits for the EMS at each decision step.
A test on real hardware goes at the speed of the wall clock. One year of operation takes one year.
In lock-step, the run does not wait for the wall clock. The engine alone calculates a full year at 10-minute steps in 0.3 s to 2.1 s on the measured one-zone models. A hosted run also records the time series and sends the BACnet messages. The EMS and the VPN tunnel add their own time.
Thus SI agents can do the full loop again and again: make a test, run one year, grade the run and change the EMS.
In a remote-client run, the EMS connects to the channel of the run through the VPN tunnel. At each decision step, SIMsara sends a Step message and waits for the Ack of each client.
The --ack-interval flag sets a decision step every K zone steps. The first zone step of each design day and of the run period is also a decision step. Between two decision steps, the virtual controllers keep the last commands.
In the wall clock mode, one simulated second takes one real second. Use this mode for real hardware.
A remote EMS client in lock-step
Start a run for one remote EMS client. The reply shows the channel secret one time. Give it to the EMS for its Hello, and keep it out of files and logs.
While the run operates, run show gives the address of the channel. The EMS connects there through the VPN tunnel.
# A fast run that waits for one remote EMS client at each decision step. simsara run start office --controller my-ems --pace fast --channel-clients 1 --ack-interval 5 --ack-timeout 600 --connect-timeout 300 # The address of the channel, while the run operates. simsara run show <run> # The output of the run, as it comes. simsara run results <run> --follow
Give the name of a unit controller profile in the input file. An example is the Trane Symbio 800.
The interpreter then gives the object list, the points and the BIBBs that the public documents of the manufacturer give for that controller. Each commandable point has a priority array of 16 levels. Thus the EMS finds the same objects in the virtual building as on the real unit.
A write to a point runs the sequence of the manufacturer for that point. Refer to Sequences of operation and priority layers, below.
Each profile comes from the public conformance statement (PICS) and the public points list of the manufacturer. Product names belong to their owners. No manufacturer tested or approved SIMsara.
Sequences of operation and priority layers
AvailableSIMsara runs the sequences of operation of the manufacturer, not only single points. The virtual controller is a set of blocks, for example the economizer, the staging and the demand limit. Table 1 lists the blocks.
A write to a point engages the blocks of that point. An engaged block runs its sequence at each zone step with the written values. For the other values, it uses the printed defaults of the profile. Where the profile prints no default, it uses a fallback value with a stated source.
A block gives each of its commands at one of the priority layers. One block can give commands at more than one layer. For each command, the highest layer that sets a value wins. The limits of that layer and of each higher layer always apply, and a lower layer cannot change them.
The layers are not the priority levels of BACnet. The priority array decides the value of a point, and the block of the point decides the layer of each command.
Figure 4 shows the layers of a virtual controller with the profile of a real unit: a Trane Symbio 800 on an IntelliPak rooftop unit. For example, the unit mode block gives the command of Emergency Override BAS at the life safety layer. The demand limit block gives the command of Cooling Lockout BAS at the safety layer. This lockout stops only the compressor, and free cooling continues.
Where two blocks of one layer set different values, a rule decides. An off command or the lower cap wins, or the higher minimum wins, or the documented order of the manufacturer wins. Where no document gives an order, a fixed default order of the blocks decides.
After the layers, the equipment guard keeps the minimum on and off times of each compressor, heat stage and supply fan. It also keeps the delays between the stages. Only a command at or above a layer that the manufacturer names bypasses the guard, for example an emergency override.
When the EMS relinquishes all the points of a block, and no field input, latch or timer of the block is active, the block stops. Then the controls of the input file operate again. A point with no priority array cannot be relinquished, so its block operates until the end of the run. A latched trip, for example a fire shutdown, stays latched until its documented reset.
With no write and no field input, no block engages, and the results are the same as the results of a run with no BACnet device.
YOUR SITE
- JACE Real hardware (planned) Through a VPN router
- Your computer EMS or BMS software simsara env connect
BACnet/IP through the VPN tunnel to the private cloud network
DETAIL A Virtual controller SYMBIO 800 PROFILE
- 1 Life safetyFire and smoke modes, and emergency shutdownMV:10102 Emergency Override BAS
- 2 SafetyEquipment protection and lockouts over BACnetBV:10115 Cooling Lockout BASBV:10103 Heat Lockout Command
- 3 ServiceManual overrides and tests over BACnetThis profile has no point at this layer.
- 4 Unit modeEnable, shutdown, mode request and ventilation purgeMV:10104 Heat Cool Mode Request
- 5 Demand limitCapacity caps, setpoint offsets and load shedAV:10163 Demand Limit SetpointBV:10116 Demand Limit Request BAS
- 6 SequenceNormal sequences and remote capacity commandsAV:10159 Occupied Cooling Setpoint BASAV:10187 Cooling Capacity Setpoint External
- MERGE The highest layer with a value wins
- EQUIPMENT GUARD On and off times, stage delays
- VIRTUAL RTU Fan, compressors, heat and dampers
| Block | What it does |
|---|---|
| Unit mode | Enable and shutdown, the system mode and the mode request, and the fire, smoke and emergency modes. Also the delay at a change between heating and cooling, and the ventilation purge. |
| Safeties | Freeze protection, high and low supply-air temperature, condensate overflow, door interlock, refrigerant detection, and lockouts after repeated trips. A trip locks out the coil, and also the fan where the document says so. The trip stays latched until its reset. |
| Overrides | The manual output overrides, the service tests and the remote capacity commands that the manufacturer allows over BACnet. SIMsara does not simulate the test modes that only the display of the unit can start. |
| Demand limit | Demand-limit levels widen the occupied setpoints by a documented amount for each level. Capacity caps set the maximum number of stages. A cooling lockout from the EMS stops the compressor, and free cooling continues. The block also runs the load shed. |
| Occupancy | Sets the occupancy mode from the schedule, the EMS, a remote contact or a timed override. The setpoints, the fan mode and the minimum outdoor air follow the mode. |
| Setpoints | Calculates the heating and cooling setpoints from the occupied, unoccupied and standby values, the offsets and the limits. The cooling setpoint stays at least 1 K above the heating setpoint. |
| Start | Optimal start, morning warm-up and cool-down, pre-cool and coast. |
| Supply-air reset | Sets the supply-air temperature setpoint and resets it by the outdoor, space or return temperature, the humidity or the demand. |
| Economizer | Decides when outdoor air can cool the building, and holds the outdoor-air damper between its minimum and maximum positions. It also runs unoccupied free cooling and purge. |
| DCV | Demand-controlled ventilation: increases the minimum outdoor air when the CO2 of the space increases. It does not stop free cooling. |
| Dehumidification | Dehumidification with hot-gas reheat, subcooling or the fan speed, and humidification on units that have a humidifier. |
| Staging | Changes the cooling or heating demand into a range of stages, with the documented thresholds, delays and outdoor-temperature lockouts. The engine runs the coil inside that range. |
| Tempering | Uses the first heat stage to keep a minimum supply-air temperature in the ventilation modes. |
| Heat pump | Locks out the compressor at a low outdoor temperature, and controls the auxiliary heat, the emergency heat and the defrost. |
| Fan | Sets the fan mode and the fan speed by the mode, the stage or the demand. It also applies the speed limits and the on and off delays. |
| Power exhaust | Starts and stops the relief fan by the position of the outdoor-air damper or by the occupancy. |
| Energy recovery | Controls the energy recovery wheel and its bypass, with a low limit for the exhaust air. |
| Counters and alerts | Count the run hours of the fan, the compressors and the filter, and compare the values with the alert thresholds. They show the result in the alarm and status objects. They do not change the building. SIMsara sends no BACnet event notification. |
| EMS values and field inputs | A sensor value that the EMS writes replaces the local sensor value in the control logic. Where the document gives a timeout, the local value returns after it. An EMS value does not replace the weather or the zone values of the simulation. Schedules in the input file can set the field inputs, for example the smoke detector or the condensate switch. |
The sequences come from the documents of the manufacturer. The firmware of a real unit can differ from its documents.
From the CLI to a virtual building
Each step is a few CLI commands, or a part of the input file. Add --json to a command for one JSON document, or give an agent the MCP server.
Connect to the private cloud network
A person adds the private cloud network to the CLI one time. One command brings the VPN tunnel up. Then the person logs in. The token stays in the keychain of the operating system.
simsara env add my-env --conf device.conf simsara env connect simsara login simsara env status
Write the building in TOML
Each object is a table: zones, surfaces, schedules, equipment and controls. Read the file from the top to the bottom. Version control shows each change clearly.
[timestep] number_of_timesteps_per_hour = 6 [zone."Main Zone"] direction_of_relative_north = 0.0 multiplier = 1 [zone.control.thermostat."Main Zone Thermostat"] zone_or_zonelist_name = "Main Zone" control_type_schedule_name = "Dual Setpoint Control" control_1_object_type = "ThermostatSetpoint:DualSetpoint" control_1_name = "Main Zone Dual Setpoint" [zone.infiltration.design-flow-rate."Main Zone Infiltration"] zone_or_zonelist_or_space_or_spacelist_name = "Main Zone" schedule_name = "Always On" design_flow_rate_calculation_method = "AirChanges/Hour" air_changes_per_hour = 0.5
Add the BACnet devices
Each virtual controller is a BACnet device. A point list gives the objects that the EMS reads and commands. A deck needs at least one device table.
# The virtual controller: one BACnet device. [bacnet.device."RTU-1"] device_instance = 1001 # The points of one thermostat. [point-list."Main Zone Thermostat"] object_type = "ZoneControl:Thermostat" object_name = "Main Zone Thermostat" bacnet_device_name = "RTU-1" points = [ { point_name = "ZN-T", read = "Temperature", cov_increment = 0.5 }, { point_name = "ZN-CLG-SP", write = "CoolingSetpoint" }, { point_name = "ZN-HTG-SP", write = "HeatingSetpoint" }, ]
Spawn a building, or a city
Upload the deck as a model in a folder. Each change becomes a version with a note. A folder of many buildings is a virtual city.
simsara folder add campus simsara model add office --input building.toml --input bacnet.toml --weather site.epw --folder campus simsara model edit office --input building.toml --input bacnet.toml -m "cooling setpoint 25 C"
Connect the EMS and start a run
Add the EMS as a controller and start a run. While the run operates, run show gives the BACnet/IP address on the tunnel. A test finds the devices of the virtual building. For a city, one command queues a run of each building in the folder.
simsara controller add my-ems --type software simsara run start office --controller my-ems simsara run show <run> simsara controller test my-ems # A city: one run of each building in the folder, one after the other. simsara run start --folder campus -r --pace fastRead the results, or give the work to an agent
Each run records the points at each zone time step. Read them as a table, or write a CSV file. An agent runs the same commands through the MCP server.
simsara run points <run> simsara run series <run> --point ZN-T --every 6 --csv office.csv claude mcp add simsara -- simsara mcp
Tested against ASHRAE Standard 140
Standard 140 is the method of test for building energy simulation software. Each tile gives the number of results that are in the acceptance range of the standard. The white mark shows the minimum number for each group.
Thermal Fabric Low Mass
21of 21
Minimum 18
PassThermal Fabric High Mass
19of 19
Minimum 17
PassCooling Equipment
14of 14
Minimum 12
PassHeating Equipment
6of 6
Minimum 5
PassAir-side Equipment
54of 54
Minimum 48
PassThe site publishes each case with its input file and its modeler report. The method page gives the procedure for the results.
Measured against the reference engine
The speed is almost the same as the speed of the C++ engine that SIMsara is checked against. SIMsara is faster on two of these models, equal on one and slower on one. The memory is the large difference.
| Model | SIMsara time | Reference time | SIMsara peak memory | Reference peak memory |
|---|---|---|---|---|
| One zone, ideal loads | 0.29 s | 0.63 s | 11.1 MiB | 203.6 MiB |
| One zone, air loop | 0.60 s | 0.83 s | 11.8 MiB | 205.6 MiB |
| One zone, VAV with water plant | 2.09 s | 2.10 s | 12.6 MiB | 205.7 MiB |
| Hotel room, packaged terminal heat pump | 1.32 s | 1.11 s | 12.0 MiB | 204.6 MiB |
Each value is the median wall time of five runs for each engine. Each run is a new process that calculates two design days and a full year at 10-minute steps. The computer is an Apple M2, in September 2026. The reference is the official release build of the C++ engine that SIMsara is checked against. The reference wrote its output files during these runs. SIMsara kept its results in memory, which is an advantage for SIMsara. Each run takes approximately two seconds or less, and the start of the process is a visible part of that time. Thus the ratios are approximate.