Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_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 1.6.0+build.1/package.mo", uses=false) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/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_1.6_Buildings.Utilities.Math.Examples.Average") translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_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.00136/0.00136, allocations: 108.8 kB / 16.42 MB, free: 6.461 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.001369/0.001369, allocations: 189.5 kB / 17.36 MB, free: 5.73 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.266/1.266, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.4249/0.4249, allocations: 95.48 MB / 366.1 MB, free: 12.17 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.257e-05/2.257e-05, allocations: 6.078 kB / 0.5042 GB, free: 11.91 MB / 398.1 MB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002254/0.002285, allocations: 1.503 MB / 0.5057 GB, free: 10.39 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002859/0.002583, allocations: 96.25 kB / 0.5058 GB, free: 10.3 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.403e-05/0.002647, allocations: 4 kB / 0.5058 GB, free: 10.29 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001261/0.002778, allocations: 11.92 kB / 0.5058 GB, free: 10.28 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.693e-05/0.002816, allocations: 11.86 kB / 0.5058 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002525/0.003073, allocations: 23.97 kB / 0.5058 GB, free: 10.25 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001319/0.003214, allocations: 63.83 kB / 0.5059 GB, free: 10.18 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001139/0.003335, allocations: 19.94 kB / 0.5059 GB, free: 10.16 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.386e-05/0.003407, allocations: 31.89 kB / 0.5059 GB, free: 10.13 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.624e-05/0.003479, allocations: 27.86 kB / 0.506 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.506e-05/0.003499, allocations: 4 kB / 0.506 GB, free: 10.1 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.212e-05/0.003557, allocations: 11.98 kB / 0.506 GB, free: 10.09 MB / 398.1 MB Notification: Performance of combineBinaries: time 8.888e-05/0.003652, allocations: 90.92 kB / 0.5061 GB, free: 10 MB / 398.1 MB Notification: Performance of replaceArrayConstructors: time 2.465e-05/0.003682, allocations: 51.22 kB / 0.5061 GB, free: 9.949 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.548e-05/0.003703, allocations: 4 kB / 0.5061 GB, free: 9.945 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.183e-05/0.003719, allocations: 0 / 0.5061 GB, free: 9.945 MB / 398.1 MB 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.0003796/0.004103, allocations: 359.8 kB / 0.5065 GB, free: 9.492 MB / 398.1 MB Notification: Performance of FunctionAlias: time 2.814e-05/0.004137, allocations: 15.88 kB / 0.5065 GB, free: 9.477 MB / 398.1 MB Notification: Performance of Early Inline: time 0.000181/0.004323, allocations: 176.2 kB / 0.5066 GB, free: 9.277 MB / 398.1 MB Notification: Performance of simplify1: time 1.423e-05/0.004345, allocations: 15.98 kB / 0.5067 GB, free: 9.262 MB / 398.1 MB Notification: Performance of Alias: time 7.74e-05/0.004427, allocations: 76.61 kB / 0.5067 GB, free: 9.148 MB / 398.1 MB Notification: Performance of simplify2: time 9.347e-06/0.004443, allocations: 11.97 kB / 0.5067 GB, free: 9.137 MB / 398.1 MB Notification: Performance of Events: time 0.0001044/0.004553, allocations: 59.89 kB / 0.5068 GB, free: 9.078 MB / 398.1 MB Notification: Performance of Detect States: time 7.53e-05/0.004635, allocations: 64.14 kB / 0.5069 GB, free: 9 MB / 398.1 MB Notification: Performance of Partitioning: time 8.324e-05/0.004724, allocations: 68.11 kB / 0.5069 GB, free: 8.926 MB / 398.1 MB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency multiplex2_1.u1[1] could not be divided 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)