Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Utilities.Math.Examples.Average.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.Math.Examples.Average") translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.Math.Examples.Average") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001062/0.001062, allocations: 108.4 kB / 16.38 MB, free: 6.387 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00105/0.00105, allocations: 195.6 kB / 17.32 MB, free: 5.766 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.1/1.1, allocations: 205.1 MB / 223.2 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.5/1.5, allocations: 292.3 MB / 0.5496 GB, free: 17.47 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.733e-05/1.735e-05, allocations: 2.281 kB / 0.6728 GB, free: 5.883 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002153/0.002182, allocations: 1.538 MB / 0.6743 GB, free: 4.328 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.000251/0.002445, allocations: 120.5 kB / 0.6745 GB, free: 4.207 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.703e-05/0.002492, allocations: 0 / 0.6745 GB, free: 4.207 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 8.971e-05/0.002588, allocations: 11.86 kB / 0.6745 GB, free: 4.195 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 2.128e-05/0.002623, allocations: 7.938 kB / 0.6745 GB, free: 4.188 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.000175/0.002803, allocations: 27.97 kB / 0.6745 GB, free: 4.16 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 9.176e-05/0.002903, allocations: 67.75 kB / 0.6746 GB, free: 4.094 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 9.296e-05/0.003003, allocations: 19.98 kB / 0.6746 GB, free: 4.074 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 3.966e-05/0.003048, allocations: 23.92 kB / 0.6746 GB, free: 4.051 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 5.657e-05/0.00311, allocations: 23.91 kB / 0.6746 GB, free: 4.027 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.342e-05/0.003128, allocations: 8 kB / 0.6746 GB, free: 4.02 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 4.172e-05/0.003174, allocations: 8 kB / 0.6747 GB, free: 4.012 MB / 0.545 GB Notification: Performance of combineBinaries: time 7.146e-05/0.003251, allocations: 90.98 kB / 0.6747 GB, free: 3.922 MB / 0.545 GB Notification: Performance of replaceArrayConstructors: time 2.039e-05/0.003278, allocations: 51.22 kB / 0.6748 GB, free: 3.871 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 1.607e-05/0.003298, allocations: 8 kB / 0.6748 GB, free: 3.863 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.07e-05/0.003313, allocations: 3.938 kB / 0.6748 GB, free: 3.859 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 (7) * Number of variables: 9 (7) Notification: Performance of Bindings: time 0.0003179/0.003634, allocations: 343.8 kB / 0.6751 GB, free: 3.422 MB / 0.545 GB Notification: Performance of FunctionAlias: time 1.845e-05/0.003658, allocations: 19.94 kB / 0.6751 GB, free: 3.402 MB / 0.545 GB Notification: Performance of Early Inline: time 0.0001553/0.003818, allocations: 168.3 kB / 0.6753 GB, free: 3.211 MB / 0.545 GB Notification: Performance of simplify1: time 1.513e-05/0.003839, allocations: 19.97 kB / 0.6753 GB, free: 3.191 MB / 0.545 GB Notification: Performance of Alias: time 7.404e-05/0.003917, allocations: 80.56 kB / 0.6754 GB, free: 3.074 MB / 0.545 GB Notification: Performance of simplify2: time 1.019e-05/0.003932, allocations: 11.98 kB / 0.6754 GB, free: 3.062 MB / 0.545 GB Notification: Performance of Events: time 8.978e-05/0.004026, allocations: 59.83 kB / 0.6755 GB, free: 3.004 MB / 0.545 GB Notification: Performance of Detect States: time 6.89e-05/0.004101, allocations: 67.42 kB / 0.6755 GB, free: 2.926 MB / 0.545 GB Notification: Performance of Partitioning: time 7.997e-05/0.004187, allocations: 60.11 kB / 0.6756 GB, free: 2.859 MB / 0.545 GB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency multiplex2_1.u1[1] could not be devided by the body size 2 without rest. Error: Internal error NBAdjacency.Matrix.createPseudo failed for: [ARRY] (2) {{multiplex2_1.y[1]}, {multiplex2_1.y[2]}} = {{multiplex2_1.u1[1]}, {multiplex2_1.u2[1]}} ($RES_SIM_0) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (11/13) ************************** (1) [ALGB] (1) Real[1] multiplex2_1.u1 (2) [ALGB] (1) Real[1] multiplex2_1.u2 (3) [ALGB] (1) Real average.y (4) [DISC] (1) Boolean $TEV_3 (5) [DISC] (1) Boolean $TEV_2 (6) [DISC] (1) Boolean $TEV_1 (7) [ALGB] (1) Real x1.y (8) [DISC] (1) Boolean $TEV_0 (9) [ALGB] (2) Real[2] average.u (10) [ALGB] (2) Real[2] multiplex2_1.y (11) [ALGB] (1) Real x2.y System Equations (11/13) ************************** (1) [ARRY] (2) multiplex2_1.y = average.u ($RES_SIM_4) (2) [SCAL] (1) $TEV_1 = time < (x2.startTime + x2.duration) ($RES_EVT_8) (3) [SCAL] (1) average.y = 0.5 * sum(average.u) ($RES_SIM_3) (4) [SCAL] (1) $TEV_0 = time < x2.startTime ($RES_EVT_7) (5) [SCAL] (1) x1.y = x1.offset + (if $TEV_2 then 0.0 else if $TEV_3 then (x1.height * (time - x1.startTime)) / x1.duration else x1.height) ($RES_SIM_2) (6) [SCAL] (1) x2.y = x2.offset + (if $TEV_0 then 0.0 else if $TEV_1 then (x2.height * (time - x2.startTime)) / x2.duration else x2.height) ($RES_SIM_1) (7) [ARRY] (2) {{multiplex2_1.y[1]}, {multiplex2_1.y[2]}} = {{multiplex2_1.u1[1]}, {multiplex2_1.u2[1]}} ($RES_SIM_0) (8) [SCAL] (1) $TEV_3 = time < (x1.startTime + x1.duration) ($RES_EVT_10) (9) [SCAL] (1) x1.y = multiplex2_1.u1[1] ($RES_SIM_6) (10) [SCAL] (1) x2.y = multiplex2_1.u2[1] ($RES_SIM_5) (11) [SCAL] (1) $TEV_2 = time < x1.startTime ($RES_EVT_9)