Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00149/0.00149, allocations: 108.8 kB / 18.93 MB, free: 2.945 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001607/0.001607, allocations: 189.5 kB / 22.23 MB, free: 5.16 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.336/1.336, allocations: 225.6 MB / 251 MB, free: 13 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002423/0.002423, allocations: 283.3 kB / 306.5 MB, free: 8.301 MB / 238.1 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.176/1.176, allocations: 180.9 MB / 0.53 GB, free: 14.57 MB / 382.1 MB
"
[Timeout remaining time 179]
Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo)
Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo)
Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(BuildingSystems.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average")
translateModel(BuildingSystems.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002687/0.002687, allocations: 98.8 kB / 0.7308 GB, free: 39.09 MB / 0.545 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.1497/0.1524, allocations: 94.2 MB / 0.8228 GB, free: 1.781 MB / 0.5606 GB
Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Average): time 0.002906/0.1553, allocations: 1.549 MB / 0.8243 GB, free: 228 kB / 0.5606 GB
Notification: Performance of NFInst.instExpressions: time 0.0003792/0.1557, allocations: 112.5 kB / 0.8245 GB, free: 112 kB / 0.5606 GB
Notification: Performance of NFInst.updateImplicitVariability: time 5.709e-05/0.1558, allocations: 0 / 0.8245 GB, free: 112 kB / 0.5606 GB
Notification: Performance of NFTyping.typeComponents: time 0.0001226/0.1559, allocations: 15.86 kB / 0.8245 GB, free: 96 kB / 0.5606 GB
Notification: Performance of NFTyping.typeBindings: time 2.359e-05/0.1559, allocations: 7.938 kB / 0.8245 GB, free: 88 kB / 0.5606 GB
Notification: Performance of NFTyping.typeClassSections: time 0.0002275/0.1561, allocations: 35.89 kB / 0.8245 GB, free: 52 kB / 0.5606 GB
Notification: Performance of NFFlatten.flatten: time 0.0001021/0.1562, allocations: 51.84 kB / 0.8246 GB, free: 0 / 0.5606 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001284/0.1564, allocations: 16.06 kB / 0.8246 GB, free: 15.98 MB / 0.5762 GB
Notification: Performance of NFEvalConstants.evaluate: time 6.019e-05/0.1564, allocations: 23.92 kB / 0.8246 GB, free: 15.96 MB / 0.5762 GB
Notification: Performance of NFSimplifyModel.simplify: time 7.109e-05/0.1565, allocations: 27.91 kB / 0.8246 GB, free: 15.93 MB / 0.5762 GB
Notification: Performance of NFPackage.collectConstants: time 1.69e-05/0.1565, allocations: 4 kB / 0.8246 GB, free: 15.93 MB / 0.5762 GB
Notification: Performance of NFFlatten.collectFunctions: time 6.71e-05/0.1566, allocations: 23.83 kB / 0.8247 GB, free: 15.91 MB / 0.5762 GB
Notification: Performance of NFScalarize.scalarize: time 4.53e-05/0.1566, allocations: 15.92 kB / 0.8247 GB, free: 15.89 MB / 0.5762 GB
Notification: Performance of NFVerifyModel.verify: time 3.886e-05/0.1567, allocations: 27.88 kB / 0.8247 GB, free: 15.86 MB / 0.5762 GB
Notification: Performance of NFConvertDAE.convert: time 0.0001474/0.1568, allocations: 63.72 kB / 0.8248 GB, free: 15.8 MB / 0.5762 GB
Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.1568, allocations: 0 / 0.8248 GB, free: 15.8 MB / 0.5762 GB
Notification: Performance of FrontEnd: time 1.533e-06/0.1568, allocations: 0 / 0.8248 GB, free: 15.8 MB / 0.5762 GB
Notification: Performance of Transformations before backend: time 9.939e-06/0.1568, allocations: 0 / 0.8248 GB, free: 15.8 MB / 0.5762 GB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 9
 * Number of variables: 9
Notification: Performance of Generate backend data structure: time 0.0005591/0.1574, allocations: 309.9 kB / 0.8251 GB, free: 15.46 MB / 0.5762 GB
Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.1574, allocations: 12.03 kB / 0.8251 GB, free: 15.45 MB / 0.5762 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 3.821e-05/0.1575, allocations: 12.88 kB / 0.8251 GB, free: 15.44 MB / 0.5762 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001615/0.1576, allocations: 126.5 kB / 0.8252 GB, free: 15.29 MB / 0.5762 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.2e-05/0.1576, allocations: 4.375 kB / 0.8252 GB, free: 15.29 MB / 0.5762 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 1.714e-05/0.1577, allocations: 4.375 kB / 0.8252 GB, free: 15.29 MB / 0.5762 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003037/0.158, allocations: 90.14 kB / 0.8253 GB, free: 15.19 MB / 0.5762 GB
Notification: Performance of preOpt findStateOrder (simulation): time 8.877e-06/0.158, allocations: 192 / 0.8253 GB, free: 15.19 MB / 0.5762 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.381e-05/0.158, allocations: 7.938 kB / 0.8253 GB, free: 15.18 MB / 0.5762 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.158, allocations: 0 / 0.8253 GB, free: 15.18 MB / 0.5762 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003239/0.1583, allocations: 83.91 kB / 0.8254 GB, free: 15.1 MB / 0.5762 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005588/0.1589, allocations: 295.7 kB / 0.8257 GB, free: 14.77 MB / 0.5762 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.0002308/0.1591, allocations: 62.53 kB / 0.8257 GB, free: 14.7 MB / 0.5762 GB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001759/0.1593, allocations: 36.91 kB / 0.8258 GB, free: 14.66 MB / 0.5762 GB
Notification: Performance of preOpt evalFunc (simulation): time 3.552e-05/0.1593, allocations: 4 kB / 0.8258 GB, free: 14.66 MB / 0.5762 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.142e-05/0.1593, allocations: 34.59 kB / 0.8258 GB, free: 14.61 MB / 0.5762 GB
Notification: Performance of pre-optimization done (n=3): time 1.012e-06/0.1593, allocations: 0 / 0.8258 GB, free: 14.61 MB / 0.5762 GB
Notification: Performance of matching and sorting (n=3): time 0.0005973/0.1599, allocations: 145.5 kB / 0.8259 GB, free: 14.46 MB / 0.5762 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 3.814e-05/0.16, allocations: 55.41 kB / 0.826 GB, free: 14.4 MB / 0.5762 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.771e-05/0.1601, allocations: 113.8 kB / 0.8261 GB, free: 14.28 MB / 0.5762 GB
Notification: Performance of collectPreVariables (initialization): time 1.962e-05/0.1601, allocations: 29.7 kB / 0.8261 GB, free: 14.24 MB / 0.5762 GB
Notification: Performance of collectInitialEqns (initialization): time 5.413e-05/0.1602, allocations: 92.09 kB / 0.8262 GB, free: 14.15 MB / 0.5762 GB
Notification: Performance of collectInitialBindings (initialization): time 1.999e-05/0.1602, allocations: 11.83 kB / 0.8262 GB, free: 14.14 MB / 0.5762 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 4.092e-05/0.1602, allocations: 25.7 kB / 0.8262 GB, free: 14.11 MB / 0.5762 GB
Notification: Performance of setup shared object (initialization): time 0.0001433/0.1604, allocations: 314.8 kB / 0.8265 GB, free: 13.79 MB / 0.5762 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001574/0.1605, allocations: 35.95 kB / 0.8266 GB, free: 13.75 MB / 0.5762 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001468/0.1607, allocations: 31.97 kB / 0.8266 GB, free: 13.72 MB / 0.5762 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.000296/0.161, allocations: 84.7 kB / 0.8267 GB, free: 13.64 MB / 0.5762 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.161, allocations: 0 / 0.8267 GB, free: 13.64 MB / 0.5762 GB
Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003481/0.1613, allocations: 101.6 kB / 0.8268 GB, free: 13.53 MB / 0.5762 GB
Notification: Performance of prepare postOptimizeDAE: time 1.313e-05/0.1613, allocations: 4 kB / 0.8268 GB, free: 13.53 MB / 0.5762 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-06/0.1613, allocations: 0 / 0.8268 GB, free: 13.53 MB / 0.5762 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.323e-05/0.1613, allocations: 0 / 0.8268 GB, free: 13.53 MB / 0.5762 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001277/0.1615, allocations: 23.97 kB / 0.8268 GB, free: 13.5 MB / 0.5762 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.268e-06/0.1615, allocations: 0 / 0.8268 GB, free: 13.5 MB / 0.5762 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.233e-05/0.1616, allocations: 11.98 kB / 0.8268 GB, free: 13.49 MB / 0.5762 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.683e-05/0.1616, allocations: 3.938 kB / 0.8268 GB, free: 13.49 MB / 0.5762 GB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 1
 * Number of states: 0 ()
 * Number of discrete variables: 0 ()
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (3):
 * Single equations (assignments): 3
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 0
 * Mixed (continuous/discrete) equation systems: 0
Notification: Performance of prepare postOptimizeDAE: time 9.422e-05/0.1617, allocations: 122.4 kB / 0.8269 GB, free: 13.36 MB / 0.5762 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 2.941e-05/0.1617, allocations: 7.953 kB / 0.827 GB, free: 13.35 MB / 0.5762 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003902/0.1621, allocations: 113.6 kB / 0.8271 GB, free: 13.23 MB / 0.5762 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.1621, allocations: 4 kB / 0.8271 GB, free: 13.22 MB / 0.5762 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.1621, allocations: 0 / 0.8271 GB, free: 13.22 MB / 0.5762 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.1621, allocations: 0 / 0.8271 GB, free: 13.22 MB / 0.5762 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00019/0.1623, allocations: 156.7 kB / 0.8272 GB, free: 13.03 MB / 0.5762 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.41e-07/0.1623, allocations: 0 / 0.8272 GB, free: 13.03 MB / 0.5762 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001024/0.1624, allocations: 15.98 kB / 0.8272 GB, free: 13.01 MB / 0.5762 GB
Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.1624, allocations: 4 kB / 0.8272 GB, free: 13.01 MB / 0.5762 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.026e-06/0.1624, allocations: 0 / 0.8272 GB, free: 13.01 MB / 0.5762 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.1624, allocations: 3.984 kB / 0.8272 GB, free: 13 MB / 0.5762 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1624, allocations: 0 / 0.8272 GB, free: 13 MB / 0.5762 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004064/0.1628, allocations: 199.4 kB / 0.8274 GB, free: 12.79 MB / 0.5762 GB
Notification: Performance of postOpt removeConstants (simulation): time 1.424e-05/0.1628, allocations: 15.94 kB / 0.8274 GB, free: 12.78 MB / 0.5762 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.428e-05/0.1628, allocations: 0 / 0.8274 GB, free: 12.78 MB / 0.5762 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000121/0.163, allocations: 15.98 kB / 0.8275 GB, free: 12.76 MB / 0.5762 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 4.085e-05/0.163, allocations: 4 kB / 0.8275 GB, free: 12.76 MB / 0.5762 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.027e-06/0.163, allocations: 3.984 kB / 0.8275 GB, free: 12.75 MB / 0.5762 GB
Notification: Performance of sorting global known variables: time 6.682e-05/0.1631, allocations: 95.22 kB / 0.8276 GB, free: 12.66 MB / 0.5762 GB
Notification: Performance of sort global known variables: time 7e-08/0.1631, allocations: 0 / 0.8276 GB, free: 12.66 MB / 0.5762 GB
Notification: Performance of remove unused functions: time 0.0002216/0.1633, allocations: 8 kB / 0.8276 GB, free: 12.65 MB / 0.5762 GB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 1
 * Number of states: 0 ()
 * Number of discrete variables: 0 ()
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (3):
 * Single equations (assignments): 3
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 0
 * Mixed (continuous/discrete) equation systems: 0
Notification: Performance of Backend phase and start with SimCode phase: time 0.0001305/0.1634, allocations: 114 kB / 0.8277 GB, free: 12.54 MB / 0.5762 GB
Notification: Performance of simCode: created initialization part: time 0.0003749/0.1638, allocations: 76.28 kB / 0.8277 GB, free: 12.46 MB / 0.5762 GB
Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.1638, allocations: 4 kB / 0.8278 GB, free: 12.46 MB / 0.5762 GB
Notification: Performance of simCode: created simulation system equations: time 0.0001717/0.164, allocations: 35.95 kB / 0.8278 GB, free: 12.42 MB / 0.5762 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002647/0.1642, allocations: 8.188 kB / 0.8278 GB, free: 12.41 MB / 0.5762 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003544/0.1646, allocations: 158.8 kB / 0.8279 GB, free: 12.23 MB / 0.5762 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003333/0.1649, allocations: 0.6924 MB / 0.8286 GB, free: 11.52 MB / 0.5762 GB
Notification: Performance of simCode: alias equations: time 4.23e-05/0.165, allocations: 7.984 kB / 0.8286 GB, free: 11.51 MB / 0.5762 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 2.695e-05/0.165, allocations: 7.438 kB / 0.8286 GB, free: 11.5 MB / 0.5762 GB
Notification: Performance of SimCode: time 2.81e-07/0.165, allocations: 4 kB / 0.8286 GB, free: 11.5 MB / 0.5762 GB
Notification: Performance of Templates: time 0.003398/0.1684, allocations: 0.7837 MB / 0.8294 GB, free: 10.72 MB / 0.5762 GB
"
[Timeout remaining time 660]
make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.makefile [Timeout 660]
(rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average  -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe 2>&1) [Timeout 480]
[Calling sys.exit(0), Time elapsed: 5.626352364197373]
Failed to read output from testmodel.py, exit status != 0:
0.17545419558882713 0.190518607 0.030816458
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7f23057b57b0>