Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_maint.7.0.x_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 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_Buildings.Utilities.Math.Examples.Average") translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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.001077/0.001077, allocations: 107.3 kB / 16.42 MB, free: 5.973 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.001075/0.001075, allocations: 191.3 kB / 17.36 MB, free: 5.566 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.139/1.139, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.21/1.21, allocations: 251.7 MB / 0.51 GB, free: 412 kB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.13e-05/1.131e-05, allocations: 2.281 kB / 0.7264 GB, free: 4.746 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.001929/0.001948, allocations: 1.537 MB / 0.7279 GB, free: 3.191 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.000245/0.002205, allocations: 112.5 kB / 0.728 GB, free: 3.078 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.138e-05/0.002256, allocations: 4 kB / 0.728 GB, free: 3.074 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 9.864e-05/0.002359, allocations: 7.922 kB / 0.728 GB, free: 3.066 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 1.934e-05/0.002385, allocations: 11.81 kB / 0.728 GB, free: 3.055 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001787/0.002574, allocations: 27.97 kB / 0.728 GB, free: 3.027 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 9.184e-05/0.002674, allocations: 67.77 kB / 0.7281 GB, free: 2.961 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 9.953e-05/0.002779, allocations: 27.97 kB / 0.7281 GB, free: 2.934 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 4.012e-05/0.002825, allocations: 19.92 kB / 0.7281 GB, free: 2.914 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 5.06e-05/0.00288, allocations: 27.91 kB / 0.7282 GB, free: 2.887 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.358e-05/0.002899, allocations: 4 kB / 0.7282 GB, free: 2.883 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 4.46e-05/0.002948, allocations: 12 kB / 0.7282 GB, free: 2.871 MB / 0.5606 GB Notification: Performance of combineBinaries: time 6.808e-05/0.003021, allocations: 83 kB / 0.7283 GB, free: 2.789 MB / 0.5606 GB Notification: Performance of replaceArrayConstructors: time 2.26e-05/0.003049, allocations: 51.22 kB / 0.7283 GB, free: 2.738 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 1.654e-05/0.00307, allocations: 15.94 kB / 0.7283 GB, free: 2.723 MB / 0.5606 GB Notification: Performance of FrontEnd: time 9.457e-06/0.003084, allocations: 0 / 0.7283 GB, free: 2.723 MB / 0.5606 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.0003213/0.003409, allocations: 347.8 kB / 0.7287 GB, free: 2.281 MB / 0.5606 GB Notification: Performance of FunctionAlias: time 2.258e-05/0.003437, allocations: 19.86 kB / 0.7287 GB, free: 2.262 MB / 0.5606 GB Notification: Performance of Early Inline: time 0.0001597/0.003601, allocations: 172.3 kB / 0.7288 GB, free: 2.066 MB / 0.5606 GB Notification: Performance of simplify1: time 1.603e-05/0.003623, allocations: 11.98 kB / 0.7289 GB, free: 2.055 MB / 0.5606 GB Notification: Performance of Alias: time 7.221e-05/0.003701, allocations: 80.59 kB / 0.7289 GB, free: 1.938 MB / 0.5606 GB Notification: Performance of simplify2: time 9.728e-06/0.003719, allocations: 15.98 kB / 0.729 GB, free: 1.922 MB / 0.5606 GB Notification: Performance of Events: time 9.703e-05/0.003821, allocations: 61.05 kB / 0.729 GB, free: 1.863 MB / 0.5606 GB Notification: Performance of Detect States: time 7.088e-05/0.003898, allocations: 60.2 kB / 0.7291 GB, free: 1.789 MB / 0.5606 GB Notification: Performance of Partitioning: time 7.608e-05/0.00398, allocations: 60.11 kB / 0.7291 GB, free: 1.723 MB / 0.5606 GB 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)