{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,8,29]],"date-time":"2026-08-29T16:18:37Z","timestamp":1788020317109,"version":"build-2784847793"},"reference-count":60,"publisher":"Association for Computing Machinery (ACM)","issue":"3","license":[{"start":{"date-parts":[[2026,8,29]],"date-time":"2026-08-29T00:00:00Z","timestamp":1787961600000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by-nc-nd\/4.0\/legalcode"}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["ACM Trans. Archit. Code Optim."],"published-print":{"date-parts":[[2026,9,30]]},"abstract":"<jats:p>Models based on Differential-Algebraic Equations (DAE) are ubiquitous across engineering fields. Specialized compilers and languages are key enablers to automate the numerical simulation of these models, which are experiencing a steady increase in their size. In this article, we discuss the uniqueness of this class of compilers, we propose a modern compiler design based on MLIR (Multi-Level Intermediate Representation), and we showcase its implementation \u2013 named MARCO (Modelica Advanced Research COmpiler) \u2013 targeting Base Modelica, a simple yet industrially-relevant DAE-based language. The proposed design allows us to overcome the structural limitations of other modeling compilers. Our solution reduces the compilation time and the runtime complexities. We test our approach using two arbitrarily scalable thermal models implementing the finite volume spatial discretization method. On these benchmarks, MARCO achieves constant-time and constant-program-size compilation with respect to the number of finite volumes, together with up to two orders of magnitude speedup in simulation time when compared with the most prominent open-source competitor.<\/jats:p>","DOI":"10.1145\/3836762","type":"journal-article","created":{"date-parts":[[2026,7,29]],"date-time":"2026-07-29T09:59:28Z","timestamp":1785319168000},"page":"1-25","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":0,"title":["MLIR Dialects for DAE-based Modeling Languages"],"prefix":"10.1145","volume":"23","author":[{"ORCID":"https:\/\/orcid.org\/0000-0001-8609-0470","authenticated-orcid":false,"given":"Michele","family":"Scuttari","sequence":"first","affiliation":[{"name":"Politecnico di Milano","place":["Milano, Italy"]}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-1453-3257","authenticated-orcid":false,"given":"Daniele","family":"Cattaneo","sequence":"additional","affiliation":[{"name":"Politecnico di Milano","place":["Milano, Italy"]}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-7475-6167","authenticated-orcid":false,"given":"Federico","family":"Terraneo","sequence":"additional","affiliation":[{"name":"Politecnico di Milano","place":["Milano, Italy"]}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-0255-4475","authenticated-orcid":false,"given":"Giovanni","family":"Agosta","sequence":"additional","affiliation":[{"name":"Politecnico di Milano","place":["Milano, Italy"]}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-5579-5942","authenticated-orcid":false,"given":"Stefano","family":"Cherubin","sequence":"additional","affiliation":[{"name":"Norwegian University of Science and Technology","place":["Trondheim, Norway"]}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2026,8,29]]},"reference":[{"key":"e_1_3_4_2_2","unstructured":"MLIR: Documentation. Retrieved July 19 2026 from https:\/\/mlir.llvm.org\/docs"},{"key":"e_1_3_4_3_2","unstructured":"2019. MLIR Primer: A Compiler Infrastructure for the End of Moore\u2019s Law. Retrieved July 19 2026 from https:\/\/research.google\/pubs\/mlir-primer-a-compiler-infrastructure-for-the-end-of-moores-law"},{"key":"e_1_3_4_4_2","unstructured":"Modelica: Language Reference. Retrieved July 19 2026 from https:\/\/specification.modelica.org\/"},{"key":"e_1_3_4_5_2","unstructured":"Torch-MLIR. Retrieved July 19 2026 from https:\/\/github.com\/llvm\/torch-mlir"},{"key":"e_1_3_4_6_2","unstructured":"IREE. Retrieved July 19 2026 from https:\/\/iree.dev"},{"key":"e_1_3_4_7_2","doi-asserted-by":"publisher","DOI":"10.3384\/ecp204177"},{"key":"e_1_3_4_8_2","unstructured":"Shrirang Abhyankar Jed Brown Emil M. Constantinescu Debojyoti Ghosh Barry F. Smith and Hong Zhang. 2018. PETSc\/TS: A modern scalable ODE\/DAE solver library. arxiv:1806.01437 [math.NA]. Retrieved from https:\/\/arxiv.org\/abs\/1806.01437"},{"key":"e_1_3_4_9_2","doi-asserted-by":"publisher","DOI":"10.3384\/ecp19157313"},{"key":"e_1_3_4_10_2","doi-asserted-by":"publisher","DOI":"10.3384\/ecp20413"},{"key":"e_1_3_4_11_2","doi-asserted-by":"publisher","DOI":"10.1145\/3528416.3530866"},{"key":"e_1_3_4_12_2","unstructured":"Johan \u00c5kesson Magnus G\u00e4fvert and Hubertus Tummescheit. 2009. JModelica \u2014 an open source platform for optimization of modelica models. In Proceedings of the 6th Vienna International Conference on Mathematical Modelling ; Conference date: 11-02-2009."},{"key":"e_1_3_4_13_2","doi-asserted-by":"publisher","DOI":"10.1109\/CACSD.1989.69825"},{"key":"e_1_3_4_14_2","doi-asserted-by":"publisher","DOI":"10.1145\/2666202.2666207"},{"key":"e_1_3_4_15_2","doi-asserted-by":"publisher","DOI":"10.1145\/2501654.2501666"},{"key":"e_1_3_4_16_2","doi-asserted-by":"publisher","DOI":"10.1109\/ACCESS.2019.2953499"},{"key":"e_1_3_4_17_2","doi-asserted-by":"publisher","DOI":"10.1002\/aic.690400608"},{"key":"e_1_3_4_18_2","doi-asserted-by":"publisher","DOI":"10.1145\/3624062.3624167"},{"key":"e_1_3_4_19_2","unstructured":"Nicola Camillucci. 2022. Compilation and Optimization of Large Scale Modelica DAE Models. Retrieved July 19 2026 from https:\/\/www.politesi.polimi.it\/handle\/10589\/186108"},{"key":"e_1_3_4_20_2","doi-asserted-by":"publisher","DOI":"10.3384\/ecp15118459"},{"key":"e_1_3_4_21_2","doi-asserted-by":"publisher","DOI":"10.5555\/1121743"},{"issue":"1","key":"e_1_3_4_22_2","first-page":"29","article-title":"Analysis and simulation of variable structure systems using bond graphs and inline integration","volume":"39","author":"Cellier Fran\u00e7ois E.","year":"2007","unstructured":"Fran\u00e7ois E. Cellier, Matthias Krebs, and AG DaimlerChrysler. 2007. Analysis and simulation of variable structure systems using bond graphs and inline integration. Simulation Series 39, 1 (2007), 29.","journal-title":"Simulation Series"},{"key":"e_1_3_4_23_2","doi-asserted-by":"publisher","DOI":"10.1109\/VPPC.2006.364294"},{"key":"e_1_3_4_24_2","volume-title":"Proceedings of the Workshop on Open-Source EDA Technology (WOSET)","author":"Eldridge Schuyler","year":"2021","unstructured":"Schuyler Eldridge, Prithayan Barua, Aliaksei Chapyzhenka, Adam Izraelevitz, Jack Koenig, Chris Lattner, Andrew Lenharth, George Leontiev, Fabian Schuiki, Ram Sunder, et\u00a0al. 2021. MLIR as hardware compiler infrastructure. In Proceedings of the Workshop on Open-Source EDA Technology (WOSET)."},{"key":"e_1_3_4_25_2","doi-asserted-by":"publisher","DOI":"10.1145\/3611661"},{"key":"e_1_3_4_26_2","doi-asserted-by":"publisher","DOI":"10.3384\/ecp11063232"},{"key":"e_1_3_4_27_2","doi-asserted-by":"publisher","DOI":"10.4173\/mic.2020.4.1"},{"key":"e_1_3_4_28_2","volume-title":"Proceedings of the 4th International Modelica Conference","author":"Fritzson Peter","year":"2005","unstructured":"Peter Fritzson, Adrian Pop, and Peter Aronsson. 2005. Towards comprehensive meta-modeling and meta-programming capabilities in modelica. In Proceedings of the 4th International Modelica Conference. Citeseer."},{"key":"e_1_3_4_29_2","volume-title":"Proceedings of the 13th International Modelica Conference","author":"Fritzson Peter","year":"2019","unstructured":"Peter Fritzson, Adrian Pop, Martin Sj\u00f6lund, and Adeel Asghar. 2019. MetaModelica\u2013a symbolic-numeric Modelica language and comparison to Julia. In Proceedings of the 13th International Modelica Conference."},{"key":"e_1_3_4_30_2","doi-asserted-by":"publisher","DOI":"10.1137\/1.9780898717761"},{"key":"e_1_3_4_31_2","doi-asserted-by":"publisher","DOI":"10.1109\/isgteurope.2018.8571872"},{"key":"e_1_3_4_32_2","doi-asserted-by":"publisher","DOI":"10.1016\/S0167-6423(02)00109-0"},{"key":"e_1_3_4_33_2","doi-asserted-by":"publisher","DOI":"10.1145\/1089014.1089020"},{"key":"e_1_3_4_34_2","doi-asserted-by":"publisher","DOI":"10.1109\/SCAM.2018.00027"},{"key":"e_1_3_4_35_2","unstructured":"Tian Jin Gheorghe-Teodor Bercea Tung D. Le Tong Chen Gong Su Haruki Imai Yasushi Negishi Anh Leu Kevin O\u2019Brien Kiyokuni Kawachiya et\u00a0al. 2020. Compiling ONNX neural network models using MLIR. arxiv:2008.08272 [cs.PL]. Retrieved from https:\/\/arxiv.org\/abs\/2008.08272"},{"key":"e_1_3_4_36_2","doi-asserted-by":"publisher","DOI":"10.3384\/ecp204469"},{"key":"e_1_3_4_37_2","doi-asserted-by":"publisher","DOI":"10.1109\/CGO.2004.1281665"},{"key":"e_1_3_4_38_2","doi-asserted-by":"publisher","DOI":"10.1109\/CGO51591.2021.9370308"},{"key":"e_1_3_4_39_2","doi-asserted-by":"publisher","DOI":"10.1007\/s10845-019-01512-w"},{"key":"e_1_3_4_40_2","doi-asserted-by":"publisher","DOI":"10.1016\/j.jmsy.2020.06.017"},{"key":"e_1_3_4_41_2","doi-asserted-by":"publisher","DOI":"10.1145\/3674831"},{"key":"e_1_3_4_42_2","doi-asserted-by":"publisher","DOI":"10.1016\/j.amc.2021.126842"},{"key":"e_1_3_4_43_2","doi-asserted-by":"publisher","DOI":"10.1109\/EMBC.2015.7318646"},{"key":"e_1_3_4_44_2","volume-title":"Simscape, Model and Simulate Multidomain Physical Systems","unstructured":"MathWorks. [n.d.]. Simscape, Model and Simulate Multidomain Physical Systems. Online, accessed 2026-07-19."},{"key":"e_1_3_4_45_2","doi-asserted-by":"publisher","DOI":"10.1016\/S0967-0661(98)00047-1"},{"key":"e_1_3_4_46_2","doi-asserted-by":"publisher","DOI":"10.1137\/0914043"},{"key":"e_1_3_4_47_2","doi-asserted-by":"publisher","DOI":"10.1080\/19401493.2013.765506"},{"key":"e_1_3_4_48_2","doi-asserted-by":"publisher","DOI":"10.1109\/PACT52795.2021.00011"},{"key":"e_1_3_4_49_2","doi-asserted-by":"publisher","DOI":"10.1137\/080743627"},{"key":"e_1_3_4_50_2","doi-asserted-by":"publisher","DOI":"10.1145\/581690.581695"},{"key":"e_1_3_4_51_2","doi-asserted-by":"publisher","DOI":"10.1145\/3506706"},{"key":"e_1_3_4_52_2","doi-asserted-by":"publisher","DOI":"10.1007\/11860990_14"},{"key":"e_1_3_4_53_2","doi-asserted-by":"publisher","DOI":"10.3384\/ecp19157689"},{"key":"e_1_3_4_54_2","doi-asserted-by":"publisher","DOI":"10.3384\/ECP14096683"},{"key":"e_1_3_4_55_2","doi-asserted-by":"publisher","DOI":"10.3384\/ecp15118265"},{"key":"e_1_3_4_56_2","doi-asserted-by":"publisher","DOI":"10.1145\/3587135.3589945"},{"key":"e_1_3_4_57_2","unstructured":"Magnus Sj\u00e4lander Magnus Jahre Gunnar Tufte and Nico Reissmann. 2022. EPIC: An energy-efficient high-performance GPGPU computing research infrastructure. arxiv:1912.05848 [cs.DC]. Retrieved July 19 2026 from https:\/\/arxiv.org\/abs\/1912.05848"},{"key":"e_1_3_4_58_2","doi-asserted-by":"publisher","DOI":"10.1109\/MCAS.2023.3234727"},{"key":"e_1_3_4_59_2","doi-asserted-by":"publisher","DOI":"10.1109\/TCAD.2021.3074613"},{"key":"e_1_3_4_60_2","doi-asserted-by":"publisher","DOI":"10.1016\/j.softx.2016.05.001"},{"key":"e_1_3_4_61_2","doi-asserted-by":"publisher","DOI":"10.1145\/3489517.3530631"}],"container-title":["ACM Transactions on Architecture and Code Optimization"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3836762","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,8,29]],"date-time":"2026-08-29T15:47:06Z","timestamp":1788018426000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3836762"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,8,29]]},"references-count":60,"journal-issue":{"issue":"3","published-print":{"date-parts":[[2026,9,30]]}},"alternative-id":["10.1145\/3836762"],"URL":"https:\/\/doi.org\/10.1145\/3836762","relation":{},"ISSN":["1544-3566","1544-3973"],"issn-type":[{"value":"1544-3566","type":"print"},{"value":"1544-3973","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,8,29]]},"assertion":[{"value":"2025-01-18","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2026-07-15","order":2,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2026-08-29","order":3,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}