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.

19.0 m11.0 mOpen office[zone."Open office"]Meeting room[zone."Meeting room"]Plant room[zone."Plant room"]05 mN
A floor plan and the TOML tables of its zones.
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.

A CITY OF MANY BUILDINGSVPN TUNNELYOUR SITEPRIVATE CLOUD NETWORK123456789
Drag to 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

  1. 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.
  2. Send commands. At each decision step, the agent writes setpoints and commands to the BACnet objects of the virtual controllers.
  3. Read the result. The agent reads the points of the next step. It calculates its reward from these values.
  4. 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.

BACnet

Three ways to connect

Each item connects through the VPN tunnel. One interpreter gives the same BACnet messages on each connection.

Available

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.

CONNECTIONSBACnet/IPChannel: TCP, lock-stepVPN tunnelYOUR SITEReal hardware (planned)Unit or supervisory controller,through a VPN routerVPN tunnelWireGuardEMS or BMS softwareOn your computer, throughsimsara env connectRemote EMS clientLock-step on the channel of the runBACnet/IP carrierUDP · wall clockBACnet interpreterOne core for the two carriersChannelTCP · lock-stepvaluescommandsPRIVATE CLOUD NETWORKVirtual buildingsOne building,or a city of manyPOINTS TO READZone temperatureSupply air temperatureFan and coil powerPOINTS TO COMMANDThermostat setpointsFan and outdoor air flowPoint to a name to highlight its object.
CONNECTIONSBACnet/IPChannel: TCP, lock-stepVPN tunnelYOUR SITEEMS or BMS softwareOn your computer, throughsimsara env connectReal hardware (planned)Unit or supervisory controller,through a VPN routerRemote EMS clientLock-step on the channelof the runVPN tunnelWireGuardBACnet/IP carrierUDP · wall clockPRIVATE CLOUD NETWORKBACnet interpreterOne core for the two carriersChannelTCP · lock-stepcommandsvaluesVirtual buildingsOne building,or a city of manyPOINTS TO READZone temperatureSupply air temperatureFan and coil powerPOINTS TO COMMANDThermostat setpointsFan and outdoor air flowTap a name to highlight its object.
Figure 1Real hardware, EMS or BMS software and a remote EMS client each connect alone, with their own cables, through the VPN tunnel. Only one is necessary.
Item under testConnectionClock
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 computerBACnet/IP through the VPN tunnel. The command simsara env connect brings the tunnel up.Wall clock
A remote EMS clientThe channel of the run: TCP through the VPN tunnelLock-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.

Available

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.

CONNECTIONSBACnet in lock-step, through the VPN tunnelTests, results and scoresWorks forUSER'S DEVICESupervisor agentStarts each runScorer agentGrades each runTest maker agentMakes the testsPRIVATE CLOUD NETWORKCALCULATION OF ONE YEAR0.3 s to 2.1 s52,560 steps of 10 minutesThe engine, one-zone modelsA run adds BACnet and the EMSVirtual buildingMade from the testsVirtual controllersBACnet devicesCONTAINEREMSIn lock-stepEMS code baseThe EMS agent changes itIt gives the new EMSEMS agentReads the BACnet responsesGets only the scoreResearchManuals, standards, paperstests1BACnet23resultsscore45THE LOOP1The test maker agent spawns the tests with the CLI.2One year runs in lock-step.3The scorer agent grades the run.4The EMS agent gets the score.5The EMS agent does research and changes the EMS code base.Then the year runs again, with the new EMS.Point to a name to highlight its object.
CONNECTIONSBACnet in lock-step, through the VPN tunnelTests, results and scoresWorks forUSER'S DEVICESupervisor agentStarts each runTest maker agentMakes the testsScorer agentGrades each run3resultstests1PRIVATE CLOUD NETWORKVirtual controllersBACnet devicesCALCULATION OF ONE YEAR0.3 s to 2.1 s52,560 steps of 10 minutesThe engine, one-zone modelsA run adds BACnet and the EMSVirtual buildingMade from the testsscore42BACnetCONTAINEREMSIn lock-step5ResearchManuals, standards, papersEMS code baseThe EMS agent changes itIt gives the new EMSEMS agentReads the BACnet responsesGets only the scoreTHE LOOP1The test maker agent spawns the tests with the CLI.2One year runs in lock-step.3The scorer agent grades the run.4The EMS agent gets the score.5The EMS agent does research and changes the EMS code base.Then the year runs again, with the new EMS.Tap a name to highlight its object.
Figure 2The supervisor agent, the test maker agent and the scorer agent run on the user's device. The EMS agent runs in a container with the EMS: it reads the BACnet responses, gets only the score, does research and changes the EMS code base. SIMsara runs in the private cloud network, and each connection goes through the VPN tunnel.
See the full SI agent workflow

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.

remote EMS client
# 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

Devices

Controller profiles

The virtual controller looks like the real unit controller.

Available

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.

loads the profileINPUT FILEbuilding.tomlController profileTrane Symbio 800RTU-1Virtual controllerOBJECT LISTAV 10101 · AV 10103 · AV 10106 · …POINTSAV 10101Discharge Air Temperature ArbitratorAV 10103Outdoor Air Temperature ArbitratorBIBBSDS-RP-B · DS-RPM-B · DS-WP-B · DS-COV-B · …BACnetEMSFinds the same objects as on the real unit
loads the profileINPUT FILEbuilding.tomlController profileTrane Symbio 800OBJECT LISTPOINTSBIBBSRTU-1Virtual controllerBACnetEMSFinds the same objectsas on the real unitOBJECT LISTAV 10101 · AV 10103 · AV 10106 · …POINTSAV 10101Discharge Air Temperature ArbitratorAV 10103Outdoor Air Temperature ArbitratorBIBBSDS-RP-B · DS-RPM-B · DS-WP-B · DS-COV-B · …
Figure 3A controller profile makes the virtual controller show the object list, the points and the BIBBs of a real unit controller.

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

Available

SIMsara 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 SITEPRIVATE CLOUD NETWORKJACEReal hardware (planned)Through a VPN routerYour computerEMS or BMS softwaresimsara env connectVPN tunnelBACnet/IPAVirtual controllerSymbio 800 profileVirtual RTUIntelliPak rooftop unitADETAIL AVirtual controllerSYMBIO 800 PROFILE6SEQUENCENormal sequences and remote capacity commandsAV:10159 Occupied Cooling Setpoint BASAV:10187 Cooling Capacity Setpoint External5DEMAND LIMITCapacity caps, setpoint offsets and load shedAV:10163 Demand Limit SetpointBV:10116 Demand Limit Request BAS4UNIT MODEEnable, shutdown, mode request and ventilation purgeMV:10104 Heat Cool Mode Request3SERVICEManual overrides and tests over BACnetThis profile has no point at this layer.2SAFETYEquipment protection and lockouts over BACnetBV:10115 Cooling Lockout BASBV:10103 Heat Lockout Command1LIFE SAFETYFire and smoke modes, and emergency shutdownMV:10102 Emergency Override BASMERGEThe highest layerwith a value winsEQUIPMENT GUARDOn and off times,stage delaysVIRTUAL RTUFan, compressors,heat and dampers

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

AVirtual controllerVirtual RTU

DETAIL A Virtual controller SYMBIO 800 PROFILE

  1. 1 Life safetyFire and smoke modes, and emergency shutdownMV:10102 Emergency Override BAS
  2. 2 SafetyEquipment protection and lockouts over BACnetBV:10115 Cooling Lockout BASBV:10103 Heat Lockout Command
  3. 3 ServiceManual overrides and tests over BACnetThis profile has no point at this layer.
  4. 4 Unit modeEnable, shutdown, mode request and ventilation purgeMV:10104 Heat Cool Mode Request
  5. 5 Demand limitCapacity caps, setpoint offsets and load shedAV:10163 Demand Limit SetpointBV:10116 Demand Limit Request BAS
  6. 6 SequenceNormal sequences and remote capacity commandsAV:10159 Occupied Cooling Setpoint BASAV:10187 Cooling Capacity Setpoint External
  1. MERGE The highest layer with a value wins
  2. EQUIPMENT GUARD On and off times, stage delays
  3. VIRTUAL RTU Fan, compressors, heat and dampers
Figure 4A virtual RTU in the private cloud network, with a virtual controller from the profile of a Trane Symbio 800 on an IntelliPak rooftop unit. Detail A shows the priority layers of the virtual controller, from the highest, with points of the profile. BACnet writes come through the VPN tunnel from EMS or BMS software on your computer. Real hardware, for example a JACE, will connect through a VPN router. The connection for real hardware is planned. For each command, the highest layer with a value wins, and the limits of that layer and of the higher layers apply. Then the equipment guard acts, and the virtual RTU runs.
BlockWhat it does
Unit modeEnable 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.
SafetiesFreeze 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.
OverridesThe 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 limitDemand-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.
OccupancySets 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.
SetpointsCalculates 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.
StartOptimal start, morning warm-up and cool-down, pre-cool and coast.
Supply-air resetSets the supply-air temperature setpoint and resets it by the outdoor, space or return temperature, the humidity or the demand.
EconomizerDecides 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.
DCVDemand-controlled ventilation: increases the minimum outdoor air when the CO2 of the space increases. It does not stop free cooling.
DehumidificationDehumidification with hot-gas reheat, subcooling or the fan speed, and humidification on units that have a humidifier.
StagingChanges 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.
TemperingUses the first heat stage to keep a minimum supply-air temperature in the ventilation modes.
Heat pumpLocks out the compressor at a low outdoor temperature, and controls the auxiliary heat, the emergency heat and the defrost.
FanSets 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 exhaustStarts and stops the relief fan by the position of the outdoor-air damper or by the occupancy.
Energy recoveryControls the energy recovery wheel and its bypass, with a low limit for the exhaust air.
Counters and alertsCount 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 inputsA 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.
Table 1The blocks and the inputs of a virtual controller.

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.

  1. 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.

    terminal
    simsara env add my-env --conf device.conf
    simsara env connect
    simsara login
    simsara env status
    
  2. 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.

    building.toml (excerpt)
    [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
    
  3. 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.

    bacnet.toml (excerpt)
    # 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" },
    ]
    
  4. 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.

    terminal
    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"
    
  5. 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.

    terminal
    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 fast
    
  6. Read 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.

    terminal
    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.

Open the validation results

Thermal Fabric Low Mass

21of 21

Minimum 18

Pass

Thermal Fabric High Mass

19of 19

Minimum 17

Pass

Cooling Equipment

14of 14

Minimum 12

Pass

Heating Equipment

6of 6

Minimum 5

Pass

Air-side Equipment

54of 54

Minimum 48

Pass

The 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.

ModelSIMsara timeReference timeSIMsara peak memoryReference peak memory
One zone, ideal loads0.29 s0.63 s11.1 MiB203.6 MiB
One zone, air loop0.60 s0.83 s11.8 MiB205.6 MiB
One zone, VAV with water plant2.09 s2.10 s12.6 MiB205.7 MiB
Hotel room, packaged terminal heat pump1.32 s1.11 s12.0 MiB204.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.