A computer-facilitated method for detecting faults (F), providing optimization measures (OM), or both of the foregoing to enhance a building performance of one or more buildings (B), including building automation equipment disposed in relation to the one or more buildings (B), the method comprising: (S1) providing a database (DB) storing a data model (DM1 - DM3) comprising asset data (AD, AD1 - AD2) and performance data of the one or more buildings (B), wherein the data model (DM1 - DM3) is represented in one or more hierarchical tree-structures each having a plurality of nodes and a plurality of leaves, wherein the nodes of the tree-structures represent asset data (AD, AD1 - AD2) and the leaves of the tree-structures represent performance data (PD, PD1 - PD6) of the one or more buildings (B), wherein the performance data (PD, PD1 - PD6) are represented in each case by data points, wherein the data points comprise time series of measured or derived field values and meta information; (S2) providing a user interface (UI) for configuring rules for analyzing the asset data (AD, AD1 - AD2) and the performance data (PD, PD1 - PD6) in respect to the building performance of the one or more buildings (B), wherein the rules refer to data point mappings, parameters, asset data mappings, runtime settings, or schedules and are configured by user input using logical operators and defined functions; (S3) generating executable code modules at runtime based on the user configured rules by a processing unit (PU), wherein the rules are executed by a runtime system (RS) traversing the tree-structures of the data model (DM1 - DM3), wherein traversing the tree-structures of the data model (DM1 - DM3) is performed according to the meta information of the data points; and (S4) outputting detected faults (F), optimization measures (OM), or both of the foregoing regarding the one or more buildings (B) on an output device (OU). (S1) providing a database (DB) storing a data model (DM1 - DM3) comprising asset data (AD, AD1 - AD2) and performance data of the one or more buildings (B), wherein the data model (DM1 - DM3) is represented in one or more hierarchical tree-structures each having a plurality of nodes and a plurality of leaves, wherein the nodes of the tree-structures represent asset data (AD, AD1 - AD2) and the leaves of the tree-structures represent performance data (PD, PD1 - PD6) of the one or more buildings (B), wherein the performance data (PD, PD1 - PD6) are represented in each case by data points, wherein the data points comprise time series of measured or derived field values and meta information; (S2) providing a user interface (UI) for configuring rules for analyzing the asset data (AD, AD1 - AD2) and the performance data (PD, PD1 - PD6) in respect to the building performance of the one or more buildings (B), wherein the rules refer to data point mappings, parameters, asset data mappings, runtime settings, or schedules and are configured by user input using logical operators and defined functions; (S3) generating executable code modules at runtime based on the user configured rules by a processing unit (PU), wherein the rules are executed by a runtime system (RS) traversing the tree-structures of the data model (DM1 - DM3), wherein traversing the tree-structures of the data model (DM1 - DM3) is performed according to the meta information of the data points; and (S4) outputting detected faults (F), optimization measures (OM), or both of the foregoing regarding the one or more buildings (B) on an output device (OU). <EOS>