journal article·2025-12-06Open access

Real-Time Digital Twins for Building Energy Optimization Through Blind Control: Functional Mock-Up Units, Docker Container-Based Simulation, and Surrogate Models

Cristina Nuevo-Gallardo, Iker Landa del Barrio, Markel Flores Iglesias, Juan B. Echeverría Trueba, Carlos Fernández Bandera

Applied Sciences· Volume 15· Issue 24

Abstract

The transition toward energy-efficient and smart buildings requires Digital Twins (DTs) that can couple real-time data with physics-based Building Energy Models (BEMs) for predictive and adaptive operation. Yet, despite rapid digitalisation, there remains a lack of practical guidance and real-world implementations demonstrating how calibrated BEMs can be effectively integrated into Building Management Systems (BMSs). This study addresses that gap by presenting a complete and reproducible end-to-end framework for embedding physics-based BEMs into operational DTs using two setups: (i) encapsulation as Functional Mock-up Units (FMUs) and (ii) containerisation via Docker. Both approaches were deployed and tested in a real educational building in Cáceres (Spain), equipped with a LoRaWAN-based sensing and actuation infrastructure. A systematic comparison highlights their respective trade-offs: FMUs offer faster execution but limited weather inputs and higher implementation effort, whereas Docker-based workflows provide full portability, scalability, and native interoperability with Internet of Things (IoT) and BMS architectures. To enable real-time operation, a surrogate modelling framework was embedded within the Docker architecture to replicate the optimisation logic of the calibrated BEM and generate predictive blind control schedules in milliseconds—bypassing simulation overhead and enabling continuous actuation. The combined Docker + surrogate setup achieved 10–15% heating energy savings during winter operation without any HVAC retrofit. Beyond the case study, this work provides a step-by-step, in-depth guideline for practitioners to integrate calibrated BEMs into real-time control loops using existing toolchains. The proposed approach demonstrates how hybrid physics- and data-driven DTs can transform building management into a scalable, energy-efficient, and operationally deployable reality.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Building Energy and Comfort Optimization · BIM and Construction Integration · Digital Transformation in Industry

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

School of Technology of Cáceres, Universidad de Extremadura, 10003 Cáceres, Spain

Fundación Vicomtech, Basque Research and Technology Alliance (BRTA), 20009 Donostia-San Sebastián, Spain

School of Architecture, Universidad de Navarra, 31009 Pamplona, Spain

Funding

Agencia Estatal de Investigación

References (57)

Show source-provided references
1. European Parliament and Council of the European Union (2024). Directive (EU) 2024/1275 of the European Parliament and of the Council of 24 April 2024 on the Energy Performance of Buildings (Recast), European Parliament and Council of the European Union.
2. International Energy Agency (2024). Developing a Global Energy Efficiency Workforce in the Buildings Sector, International Energy Agency.
3. Metodología orientada a identificar las soluciones tecnológico-constructivas más frecuentes de la envolvente edilicia para mejorar su eficiencia energética10.24215/24226483e134 ↗
4. González, J., Soares, C.A.P., Najjar, M., and Haddad, A.N. (2021). BIM and BEM Methodologies Integration in Energy-Efficient Buildings Using Experimental Design. Buildings, 11.10.3390/buildings11100491 ↗
5. IPMVP Committee and Others (2001). International Performance Measurement and Verification Protocol: Concepts and Options for Determining Energy and Water Savings, Technical report; National Renewable Energy Lab.10.2172/776003 ↗
6. ASHRAE (2002). ASHRAE Guideline 14-2002: Measurement of Energy and Demand Savings, Technical Report; American Society of Heating, Refrigerating and Air-Conditioning Engineers.
7. The Chartered Institution of Building Services Engineers (2020). Requirements to be Met by Calculation Methods for the Simulation of Thermal-Energy Efficiency of Buildings and Building Installations, Technical report; The Chartered Institution of Building Services Engineers.
8. Arendt, K., Jradi, M., Shaker, H.R., and Veje, C. (2018, January 26–28). Comparative analysis of white-, gray-and black-box models for thermal simulation of indoor environment: Teaching building case study. Proceedings of the Building Performance Analysis Conference and SimBuild: Co-Organized by ASHRAE and IBPSA-USA, Chicago, IL, USA.
9. Online autonomous calibration of digital twins using machine learning with application to nuclear power plants10.1016/j.apenergy.2022.119995 ↗
10. Continuous model calibration framework for smart-building digital twin: A generative model-based approach10.1016/j.apenergy.2024.124080 ↗
11. Arsecularatne, B., Rodrigo, N., and Chang, R. (2024). Digital Twins for Reducing Energy Consumption in Buildings: A Review. Sustainability, 16.10.3390/su16219275 ↗
12. Functional mock-up unit for co-simulation import in EnergyPlus10.1080/19401493.2013.808265 ↗
13. Raad, A., Reinbold, V., Delinchant, B., and Wurtz, F. (May, January 29). FMU software component orchestration strategies for co-simulation of building energy systems. Proceedings of the 2015 Third International Conference on Technological Advances in Electrical, Electronics and Computer Engineering (TAEECE), Beirut, Lebanon.10.1109/TAEECE.2015.7113591 ↗
14. Carbajo Jiménez, P., Leconte, A., Ouvrier Bonnaz, O., Wurtz, E., and Fraisse, G. (2018, January 24). Energetic Behaviour of a Solar Thermal System Producing Domestic Hot Water and Preheating the Ventilation Air. Proceedings of the ISES EuroSun 2018 Conference—12th International Conference on Solar Energy for Buildings and Industry, Rapperswil, Switzerland.10.18086/eurosun2018.01.03 ↗
15. Energy savings and ventilation performance from CO2-based demand controlled ventilation: Simulation results from ASHRAE RP-1747 (ASHRAE RP-1747)10.1080/23744731.2019.1620575 ↗
16. Taddeo, P., Ortiz, J., Bellanco, I., Fuentes, E., and Salom, J. (2019, January 2–4). Real-Time Experimental Connection of an EnergyPlus Building Model with a Real Water-To-Water Heat Pump Through Functional Mock-Up Interface. Proceedings of the Building Simulation 2019: 16th Conference of IBPSA, Rome, Italy.10.26868/25222708.2019.210375 ↗
17. Ball, B.L., Long, N., Macumber, D., and Torcellini, P. (2020). OpenStudio Analysis Framework (OSAF): A Dockerized Deployment of OpenStudio-Server for Building Energy Analysis. Technical Report NREL/TP-5500-76261, National Renewable Energy Laboratory (NREL).
18. NREL (2025, September 18). OpenStudio-Server Repository. Available online: https://github.com/NREL/OpenStudio-server.
19. A digital twin platform for building performance monitoring and control using simulation and real-time data10.1007/s12273-025-1290-2 ↗
20. Westermann, P., and Evins, R. (2021). Using Bayesian deep learning approaches for uncertainty-aware building energy surrogate models. arXiv.10.1016/j.egyai.2020.100039 ↗
21. Yin, Q., Han, C., Li, A., Liu, X., and Liu, Y. (2024). A Review of Research on Building Energy Consumption Prediction Models Based on Artificial Neural Networks. Sustainability, 16.10.3390/su16177805 ↗
22. Bárkányi, Á., Chovan, T., Nemeth, S., and Abonyi, J. (2021). Modelling for Digital Twins—Potential Role of Surrogate Models. Processes, 9.10.3390/pr9030476 ↗
23. National Academies of Sciences, Engineering, and Medicine, National Academy of Engineering, Division on Earth and Life Studies, Division on Engineering and Physical Sciences, Board on Atmospheric Sciences and Climate, Board on Life Sciences, Computer Science and Telecommunications Board, Committee on Applied and Theoretical Statistics, Board on Mathematical Sciences and Analytics, and Committee on Foundational Research Gaps and Future Directions for Digital Twins (2024). Virtual Representation: Foundational Research Needs and Opportunities, The National Academies Press.
24. Ensemble surrogate modeling of a real-time HVAC set-point optimization framework for PV self-consumption maximization10.1016/j.enbuild.2025.115478 ↗
25. Constructing Large-Scale Surrogate Models from Big Data10.1016/j.apenergy.2017.05.155 ↗
26. Shirzadi, M., Lau, D., and Stylianou, M. (2025). Surrogate Modeling for Building Design: Energy and Cost Optimization Using Machine Learning. Buildings, 15.10.3390/buildings15132361 ↗
27. Developing surrogate models for the early-stage design of sustainable residential block design using GNN-based surrogate models10.1007/s12273-025-1237-7 ↗
28. Scalable evaluation of demand response potential in buildings using surrogate modeling and cluster-based analysis
29. Neural ordinary differential equations-based approach for surrogate to building performance simulation: Predicting energy consumption under different operational settings10.1007/s12273-025-1269-z ↗
30. da Silva Pereira Amado, J.T. (2019). MANUTENÇÃO DE SISTEMAS DE GESTÃO TÉCNICA, Caso de Estudo—Edifício do DEEC. [Ph.D. Thesis, Universidade de Coimbra].
31. Lee, J., Woo, D.O., Jang, J., Junghans, L., and Leigh, S.B. (2022). Collection and Utilization of Indoor Environmental Quality Information Using Affordable Image Sensing Technology. Energies, 15.10.3390/en15030921 ↗
32. Hashempour, N., Zadeh, P.A., and Staub-French, S. (2024). Understanding the Integration of Building Energy Modeling into the Building Design Process: Insights from Two Collaborative Construction Projects. Buildings, 14.10.3390/buildings14113379 ↗
33. Building automation systems: Concepts and technology review10.1016/j.csi.2015.11.005 ↗
34. Interoperable Digital Building Twins Through Communicating Materials and Semantic BIM10.1007/s42979-021-00860-w ↗
35. From bim to Digital Twin .iot Data Integration in Asset Management Platform
36. Building energy simulation and its application for building performance optimization: A review of methods, tools, and case studies10.1016/j.adapen.2023.100135 ↗
37. Venkateswarlu, N., and Sathiyamoorthy, M. (2025). Sustainable innovations in digital twin technology: A systematic review about energy efficiency and indoor environment quality in built environment. Front. Built Environ., 11.10.3389/fbuil.2025.1523464 ↗
38. Digital twin implementation based on a white-box building energy model: A case study on blind control for passive heating10.1016/j.enbuild.2025.116454 ↗
39. Google Earth (2024, July 26). Google Earth Imagery of 39∘28′44″ N 6∘20′35″ W. Available online: https://earth.google.es/.
40. A review of methods to match building energy simulation models to measured data10.1016/j.rser.2014.05.007 ↗
41. Cornaro, C., Bosco, F., Lauria, M., Puggioni, V.A., and De Santoli, L. (2019). Effectiveness of automatic and manual calibration of an office building energy model. Appl. Sci., 9.10.3390/app9101985 ↗
42. Calibrated models for effective clustering: Discriminating operation schedules in occupied buildings10.1007/s12273-024-1200-z ↗
43. Iterative Optimization of a Social Inmotics-Based Method in Order to Make Buildings Smart and Resilient10.1016/j.scs.2022.103876 ↗
44. (2025, April 16). ChirpStack. Available online: https://www.chirpstack.io/.
45. (2025, May 28). Docker Documentation. Available online: https://docs.docker.com/.
46. (2025, April 16). InfluxData. Available online: https://docs.influxdata.com/influxdb/v1/.
47. Ministerio de Economía y Competitividad (2025, April 16). Smartpolitech: Sistema Inteligente de Eficiencia Energética para la Escuela Politécnica, 2013–2016. Convocatoria de Infraestructura Científico-Tecnológica Ref: UNEX13-1E-1716. Available online: https://biblioteca.sistedes.es/entities/art%C3%ADculo/da398b40-8de6-4843-baf2-fd4bd247582e.
48. Montalbán Pozas, B., Lucas Bonilla, M., Serrano Candela, F., and Bustos García de Castro, P. (2023). A Methodology for Designing an Automated System to Improve the Thermal Performance of a Large Building in Operation. Buildings, 13.10.20944/preprints202307.0100.v1 ↗
49. Open-Meteo (2025, April 10). Free Weather API. Available online: https://open-meteo.com/.
50. (2025, April 09). EnergyPlus Documentation. Available online: https://energyplus.net/documentation.
51. Lawrence Berkeley National Laboratory (2025, April 07). FMU Export of EnergyPlus, Available online: https://simulationresearch.lbl.gov/fmu/EnergyPlus/export/.
52. (2025, April 07). Functional Mock-up Interface. Available online: https://fmi-standard.org/.
53. (2025, April 15). Matlab Help Centre. Available online: https://es.mathworks.com/help.
54. Multi-step building energy model calibration process based on measured data10.1016/j.enbuild.2021.111380 ↗
55. Two-stage multi-step energy model calibration of the cooling systems of a large-space commercial building10.1016/j.applthermaleng.2023.120638 ↗
56. Clark, G., and Allen, C. (1978, January 16–18). The Estimation of Atmospheric Radiation for Clear and Cloudy Skies. Proceedings of the 2nd National Passive Solar Conference (AS/ISES), Philadelphia, PA, USA.
57. Walton, G. (1983). Thermal Analysis Research Program Reference Manual, National Bureau of Standards.10.6028/NBS.IR.83-2655 ↗