A computer-facilitated method for detecting faults, providing optimization measures, or both of the foregoing to enhance a building performance of one or more buildings, including building automation equipment disposed in relation to the one or more buildings, the method comprising: providing a database storing a data model (DM1 - DM3) comprising asset data (AD, AD1 - AD2) and performance data of the one or more buildings, 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, 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; providing a user interface 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, 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; generating executable code modules at runtime based on the user configured rules by a processing unit, wherein the rules are executed by a runtime system 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 outputting detected faults, optimization measures, or both of the foregoing regarding the one or more buildings on an output device. providing a database storing a data model (DM1 - DM3) comprising asset data (AD, AD1 - AD2) and performance data of the one or more buildings, 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, 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; providing a user interface 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, 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; generating executable code modules at runtime based on the user configured rules by a processing unit, wherein the rules are executed by a runtime system 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 outputting detected faults, optimization measures, or both of the foregoing regarding the one or more buildings on an output device.