Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Controls.SetPoints.Examples.OccupancySchedule.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.Controls.SetPoints.Examples.OccupancySchedule,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.SetPoints.Examples.OccupancySchedule") translateModel(Buildings.Controls.SetPoints.Examples.OccupancySchedule,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.SetPoints.Examples.OccupancySchedule") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007588/0.007589, allocations: 106.5 kB / 15.74 MB, free: 5.578 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.001502/0.001502, allocations: 189.6 kB / 16.67 MB, free: 5.516 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.628/1.628, allocations: 205.1 MB / 222.5 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.4948/0.4948, allocations: 95.47 MB / 365.4 MB, free: 12.17 MB / 318.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Buildings requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001684/0.001684, allocations: 75.91 kB / 0.5036 GB, free: 11.88 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4426/0.4443, allocations: 69.09 MB / 0.5711 GB, free: 4.172 MB / 430.1 MB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.002998/0.4473, allocations: 1.425 MB / 0.5725 GB, free: 2.734 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008303/0.4482, allocations: 395 kB / 0.5728 GB, free: 2.348 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.417e-05/0.4483, allocations: 7.938 kB / 0.5728 GB, free: 2.34 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 7.327e-05/0.4484, allocations: 7.922 kB / 0.5728 GB, free: 2.332 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001684/0.4485, allocations: 15.86 kB / 0.5729 GB, free: 2.316 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006729/0.4492, allocations: 251.3 kB / 0.5731 GB, free: 2.074 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003708/0.4496, allocations: 355.6 kB / 0.5734 GB, free: 1.727 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.089e-05/0.4497, allocations: 8.219 kB / 0.5734 GB, free: 1.715 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001691/0.4498, allocations: 143.8 kB / 0.5736 GB, free: 1.574 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001946/0.45, allocations: 111.7 kB / 0.5737 GB, free: 1.465 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 4.623e-05/0.4501, allocations: 28 kB / 0.5737 GB, free: 1.438 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.691e-05/0.4502, allocations: 55.98 kB / 0.5738 GB, free: 1.383 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 5.288e-05/0.4503, allocations: 19.86 kB / 0.5738 GB, free: 1.363 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001982/0.4505, allocations: 119.6 kB / 0.5739 GB, free: 1.246 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002957/0.4508, allocations: 262.8 kB / 0.5742 GB, free: 0.9922 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.4508, allocations: 0 / 0.5742 GB, free: 0.9922 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.4508, allocations: 0 / 0.5742 GB, free: 0.9922 MB / 430.1 MB Notification: Performance of Transformations before backend: time 7.163e-06/0.4508, allocations: 4 kB / 0.5742 GB, free: 0.9883 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0006898/0.4515, allocations: 0.5743 MB / 0.5747 GB, free: 348 kB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.556e-05/0.4515, allocations: 15.98 kB / 0.5747 GB, free: 332 kB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.099e-05/0.4516, allocations: 28.75 kB / 0.5748 GB, free: 304 kB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002991/0.4519, allocations: 240 kB / 0.575 GB, free: 24 kB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.963e-05/0.452, allocations: 20.31 kB / 0.575 GB, free: 4 kB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.389e-05/0.4521, allocations: 24.42 kB / 0.575 GB, free: 15.98 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003334/0.4524, allocations: 181.5 kB / 0.5752 GB, free: 15.79 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.768e-06/0.4524, allocations: 192 / 0.5752 GB, free: 15.79 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.313e-05/0.4524, allocations: 11.94 kB / 0.5752 GB, free: 15.77 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.4525, allocations: 0 / 0.5752 GB, free: 15.77 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001717/0.4526, allocations: 91.89 kB / 0.5753 GB, free: 15.68 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003517/0.453, allocations: 331.9 kB / 0.5756 GB, free: 15.3 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002934/0.4533, allocations: 238.6 kB / 0.5759 GB, free: 15.03 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00019/0.4535, allocations: 187.4 kB / 0.576 GB, free: 14.84 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.003e-05/0.4535, allocations: 4 kB / 0.576 GB, free: 14.83 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000463/0.454, allocations: 333.4 kB / 0.5764 GB, free: 14.46 MB / 446.1 MB Notification: Performance of pre-optimization done (n=24): time 1.303e-06/0.454, allocations: 0 / 0.5764 GB, free: 14.46 MB / 446.1 MB Notification: Performance of matching and sorting (n=24): time 0.0007972/0.4548, allocations: 484.6 kB / 0.5768 GB, free: 13.96 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001917/0.455, allocations: 311 kB / 0.5771 GB, free: 13.59 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001291/0.4552, allocations: 157 kB / 0.5773 GB, free: 13.43 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 6.187e-05/0.4552, allocations: 49.69 kB / 0.5773 GB, free: 13.38 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.513e-05/0.4553, allocations: 100.6 kB / 0.5774 GB, free: 13.27 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.847e-05/0.4554, allocations: 59.25 kB / 0.5775 GB, free: 13.21 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001562/0.4556, allocations: 89.67 kB / 0.5775 GB, free: 13.12 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001359/0.4557, allocations: 330.8 kB / 0.5779 GB, free: 12.79 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003182/0.456, allocations: 191.9 kB / 0.578 GB, free: 12.6 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000322/0.4564, allocations: 235.6 kB / 0.5783 GB, free: 12.36 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004689/0.4568, allocations: 432.8 kB / 0.5787 GB, free: 11.89 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.4568, allocations: 3.938 kB / 0.5787 GB, free: 11.89 MB / 446.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001169/0.458, allocations: 0.8273 MB / 0.5795 GB, free: 11.03 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001081/0.4581, allocations: 150.7 kB / 0.5796 GB, free: 10.86 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.4582, allocations: 0 / 0.5796 GB, free: 10.86 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.88e-05/0.4582, allocations: 192 / 0.5796 GB, free: 10.86 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001188/0.4583, allocations: 15.92 kB / 0.5797 GB, free: 10.84 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.518e-06/0.4583, allocations: 7.922 kB / 0.5797 GB, free: 10.84 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004978/0.4588, allocations: 95.8 kB / 0.5798 GB, free: 10.74 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.346e-05/0.4589, allocations: 23.98 kB / 0.5798 GB, free: 10.72 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 32 (occSchDay.tNonOcc,$PRE.occSchDay.tNonOcc,occSchDay.tOcc,$PRE.occSchDay.tOcc,occSchDay.iPerSto,$PRE.occSchDay.iPerSto,occSchDay.iPerSta,$PRE.occSchDay.iPerSta,occSchDay.nexStoInd,$PRE.occSchDay.nexStoInd,occSchDay.nexStaInd,$PRE.occSchDay.nexStaInd,occSchDay.occupied,$PRE.occSchDay.occupied,$whenCondition4,$whenCondition3,occSchWee.tNonOcc,$PRE.occSchWee.tNonOcc,occSchWee.tOcc,$PRE.occSchWee.tOcc,occSchWee.iPerSto,$PRE.occSchWee.iPerSto,occSchWee.iPerSta,$PRE.occSchWee.iPerSta,occSchWee.nexStoInd,$PRE.occSchWee.nexStoInd,occSchWee.nexStaInd,$PRE.occSchWee.nexStaInd,occSchWee.occupied,$PRE.occSchWee.occupied,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 4 * 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 0.0002447/0.4591, allocations: 244.4 kB / 0.58 GB, free: 10.46 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.871e-05/0.4592, allocations: 27.75 kB / 0.58 GB, free: 10.43 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.541e-05/0.4592, allocations: 16.7 kB / 0.58 GB, free: 10.41 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.4592, allocations: 3.938 kB / 0.5801 GB, free: 10.41 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.4593, allocations: 4 kB / 0.5801 GB, free: 10.41 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.4593, allocations: 4 kB / 0.5801 GB, free: 10.4 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000242/0.4595, allocations: 253.4 kB / 0.5803 GB, free: 10.11 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.4595, allocations: 0 / 0.5803 GB, free: 10.11 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.292e-05/0.4596, allocations: 4 kB / 0.5803 GB, free: 10.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.51e-06/0.4596, allocations: 3.938 kB / 0.5803 GB, free: 10.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.515e-05/0.4596, allocations: 19.98 kB / 0.5803 GB, free: 10.08 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.4596, allocations: 0 / 0.5803 GB, free: 10.08 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.4596, allocations: 0 / 0.5803 GB, free: 10.08 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006436/0.4603, allocations: 477.3 kB / 0.5808 GB, free: 9.574 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.51e-05/0.4603, allocations: 96.84 kB / 0.5809 GB, free: 9.461 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.839e-05/0.4604, allocations: 19.94 kB / 0.5809 GB, free: 9.441 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002453/0.4607, allocations: 31.97 kB / 0.5809 GB, free: 9.41 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.199e-05/0.4607, allocations: 15.98 kB / 0.5809 GB, free: 9.395 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.155e-05/0.4608, allocations: 19.98 kB / 0.581 GB, free: 9.375 MB / 446.1 MB Notification: Performance of sorting global known variables: time 7.311e-05/0.4608, allocations: 107.2 kB / 0.5811 GB, free: 9.27 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.4609, allocations: 4 kB / 0.5811 GB, free: 9.266 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.000334/0.4612, allocations: 80 kB / 0.5811 GB, free: 9.188 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition3,$whenCondition4,occSchDay.occupied,occSchDay.nexStaInd,occSchDay.nexStoInd,occSchDay.iPerSta,occSchDay.iPerSto,occSchDay.tOcc,occSchDay.tNonOcc,$whenCondition1,$whenCondition2,occSchWee.occupied,occSchWee.nexStaInd,occSchWee.nexStoInd,occSchWee.iPerSta,occSchWee.iPerSto,occSchWee.tOcc,occSchWee.tNonOcc) * Number of discrete states: 18 (occSchWee.tNonOcc,occSchWee.iPerSto,occSchWee.nexStoInd,$whenCondition2,occSchWee.tOcc,occSchWee.iPerSta,occSchWee.occupied,occSchWee.nexStaInd,$whenCondition1,occSchDay.tNonOcc,occSchDay.iPerSto,occSchDay.nexStoInd,$whenCondition4,occSchDay.tOcc,occSchDay.iPerSta,occSchDay.occupied,occSchDay.nexStaInd,$whenCondition3) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 2 * 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.0001917/0.4614, allocations: 142.6 kB / 0.5813 GB, free: 9.043 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.000982/0.4624, allocations: 0.8762 MB / 0.5821 GB, free: 8.117 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.4624, allocations: 4.125 kB / 0.5821 GB, free: 8.113 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005053/0.4629, allocations: 0.5652 MB / 0.5827 GB, free: 7.523 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002101/0.4631, allocations: 23.94 kB / 0.5827 GB, free: 7.5 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007338/0.4639, allocations: 390 kB / 0.5831 GB, free: 7.082 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003091/0.4642, allocations: 0.7279 MB / 0.5838 GB, free: 6.324 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 2.603e-05/0.4642, allocations: 8.656 kB / 0.5838 GB, free: 6.316 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.996e-05/0.4643, allocations: 11.44 kB / 0.5838 GB, free: 6.305 MB / 446.1 MB Notification: Performance of SimCode: time 2.4e-07/0.4643, allocations: 0 / 0.5838 GB, free: 6.305 MB / 446.1 MB Notification: Performance of Templates: time 0.007893/0.4722, allocations: 4.162 MB / 0.5879 GB, free: 2.203 MB / 446.1 MB make -j1 -f Buildings_1.6_Buildings.Controls.SetPoints.Examples.OccupancySchedule.makefile (rm -f Buildings_1.6_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo Buildings_1.6_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/Buildings_1.6_Buildings.Controls.SetPoints.Examples.OccupancySchedule.sim & ./Buildings_1.6_Buildings.Controls.SetPoints.Examples.OccupancySchedule -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1)