Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Annex60_1.0.0_Annex60.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/Annex60 1.0.0/package.mo", uses=false) Using package Annex60 with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/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(Annex60.Controls.SetPoints.Examples.OccupancySchedule,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Controls.SetPoints.Examples.OccupancySchedule") translateModel(Annex60.Controls.SetPoints.Examples.OccupancySchedule,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.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.008532/0.008532, allocations: 101.1 kB / 15.73 MB, free: 6.047 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.001321/0.001321, allocations: 201.5 kB / 16.68 MB, free: 5.973 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.553/1.553, allocations: 205.1 MB / 222.5 MB, free: 4.523 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo): time 0.4015/0.4015, allocations: 54.95 MB / 324.8 MB, free: 15.99 MB / 270.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: Annex60 requested package Modelica of version 3.2.2. 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.001558/0.001558, allocations: 74.81 kB / 456.2 MB, free: 38.35 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1534/0.155, allocations: 59.59 MB / 0.5037 GB, free: 9.848 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Annex60.Controls.SetPoints.Examples.OccupancySchedule): time 0.002781/0.1578, allocations: 1.418 MB / 0.5051 GB, free: 8.734 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008096/0.1587, allocations: 409.5 kB / 0.5055 GB, free: 8.414 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.672e-05/0.1587, allocations: 1.375 kB / 0.5055 GB, free: 8.414 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001184/0.1589, allocations: 9.25 kB / 0.5055 GB, free: 8.406 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002007/0.1591, allocations: 12.05 kB / 0.5055 GB, free: 8.398 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006643/0.1598, allocations: 242.9 kB / 0.5057 GB, free: 8.227 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004543/0.1602, allocations: 359 kB / 0.5061 GB, free: 8.031 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.251e-05/0.1603, allocations: 12.3 kB / 0.5061 GB, free: 8.02 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002304/0.1605, allocations: 141.6 kB / 0.5062 GB, free: 7.941 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002243/0.1608, allocations: 117.9 kB / 0.5063 GB, free: 7.855 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.778e-05/0.1609, allocations: 32.33 kB / 0.5063 GB, free: 7.852 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001419/0.161, allocations: 51.61 kB / 0.5064 GB, free: 7.84 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.5e-05/0.1611, allocations: 16.92 kB / 0.5064 GB, free: 7.832 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001797/0.1613, allocations: 114.4 kB / 0.5065 GB, free: 7.758 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000363/0.1617, allocations: 254.8 kB / 0.5068 GB, free: 7.574 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.506e-06/0.1617, allocations: 1.344 kB / 0.5068 GB, free: 7.574 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.1617, allocations: 4 kB / 0.5068 GB, free: 7.57 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.1617, allocations: 0 / 0.5068 GB, free: 7.57 MB / 382.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.0007758/0.1625, allocations: 0.5808 MB / 0.5073 GB, free: 6.992 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.445e-05/0.1625, allocations: 9.562 kB / 0.5073 GB, free: 6.992 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001009/0.1626, allocations: 26.09 kB / 0.5074 GB, free: 6.988 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003363/0.163, allocations: 249.2 kB / 0.5076 GB, free: 6.734 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.776e-05/0.163, allocations: 17.75 kB / 0.5076 GB, free: 6.73 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.713e-05/0.1631, allocations: 24.19 kB / 0.5077 GB, free: 6.73 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00039/0.1635, allocations: 188.3 kB / 0.5078 GB, free: 6.594 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.334e-05/0.1635, allocations: 192 / 0.5078 GB, free: 6.594 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.082e-05/0.1636, allocations: 13.69 kB / 0.5078 GB, free: 6.586 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.893e-06/0.1636, allocations: 0 / 0.5078 GB, free: 6.586 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001818/0.1638, allocations: 93.11 kB / 0.5079 GB, free: 6.543 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003585/0.1641, allocations: 337.8 kB / 0.5083 GB, free: 6.164 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002162/0.1644, allocations: 238.5 kB / 0.5085 GB, free: 5.895 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001738/0.1645, allocations: 183.4 kB / 0.5087 GB, free: 5.703 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.071e-05/0.1646, allocations: 12.12 kB / 0.5087 GB, free: 5.691 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004717/0.165, allocations: 326.1 kB / 0.509 GB, free: 5.324 MB / 382.1 MB Notification: Performance of pre-optimization done (n=24): time 2.785e-06/0.1651, allocations: 0 / 0.509 GB, free: 5.324 MB / 382.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006929/0.1658, allocations: 480.8 kB / 0.5094 GB, free: 4.836 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001079/0.1659, allocations: 326.7 kB / 0.5097 GB, free: 4.449 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001076/0.166, allocations: 145.8 kB / 0.5099 GB, free: 4.297 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.62e-05/0.166, allocations: 45.7 kB / 0.5099 GB, free: 4.246 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.793e-05/0.1661, allocations: 104.6 kB / 0.51 GB, free: 4.141 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.277e-05/0.1662, allocations: 59.27 kB / 0.5101 GB, free: 4.082 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001303/0.1663, allocations: 93.66 kB / 0.5102 GB, free: 3.984 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.263e-05/0.1664, allocations: 326.8 kB / 0.5105 GB, free: 3.656 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002638/0.1667, allocations: 195.6 kB / 0.5107 GB, free: 3.465 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002505/0.1669, allocations: 227.3 kB / 0.5109 GB, free: 3.23 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003542/0.1673, allocations: 436 kB / 0.5113 GB, free: 2.758 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.1673, allocations: 4 kB / 0.5113 GB, free: 2.754 MB / 382.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008881/0.1682, allocations: 0.82 MB / 0.5121 GB, free: 1.902 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.705e-05/0.1683, allocations: 154.7 kB / 0.5123 GB, free: 1.727 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/0.1683, allocations: 4 kB / 0.5123 GB, free: 1.723 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.913e-05/0.1684, allocations: 0 / 0.5123 GB, free: 1.723 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001342/0.1685, allocations: 11.98 kB / 0.5123 GB, free: 1.711 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.568e-06/0.1685, allocations: 0 / 0.5123 GB, free: 1.711 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005092/0.169, allocations: 95.8 kB / 0.5124 GB, free: 1.617 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.709e-05/0.1691, allocations: 23.98 kB / 0.5124 GB, free: 1.594 MB / 382.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.0001994/0.1693, allocations: 239.7 kB / 0.5126 GB, free: 1.34 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.299e-05/0.1693, allocations: 27.75 kB / 0.5126 GB, free: 1.312 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.943e-05/0.1694, allocations: 16.7 kB / 0.5127 GB, free: 1.293 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.1694, allocations: 4 kB / 0.5127 GB, free: 1.289 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.095e-06/0.1694, allocations: 0 / 0.5127 GB, free: 1.289 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.1694, allocations: 4 kB / 0.5127 GB, free: 1.285 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002187/0.1696, allocations: 249.4 kB / 0.5129 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/0.1696, allocations: 4 kB / 0.5129 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.922e-05/0.1697, allocations: 7.984 kB / 0.5129 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.1697, allocations: 3.938 kB / 0.5129 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.157e-05/0.1697, allocations: 16 kB / 0.5129 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.646e-06/0.1697, allocations: 3.984 kB / 0.5129 GB, free: 0.957 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.357e-06/0.1697, allocations: 3.938 kB / 0.5129 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005334/0.1703, allocations: 478.5 kB / 0.5134 GB, free: 456 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.552e-05/0.1703, allocations: 89 kB / 0.5135 GB, free: 348 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.031e-05/0.1704, allocations: 23.92 kB / 0.5135 GB, free: 324 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002719/0.1707, allocations: 35.95 kB / 0.5135 GB, free: 288 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.16e-05/0.1707, allocations: 19.98 kB / 0.5136 GB, free: 268 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.281e-05/0.1708, allocations: 12 kB / 0.5136 GB, free: 256 kB / 382.1 MB Notification: Performance of sorting global known variables: time 6.159e-05/0.1708, allocations: 114 kB / 0.5137 GB, free: 144 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1708, allocations: 3.938 kB / 0.5137 GB, free: 140 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003098/0.1711, allocations: 91.98 kB / 0.5138 GB, free: 48 kB / 382.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.0002846/0.1714, allocations: 135.2 kB / 0.5139 GB, free: 15.9 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001042/0.1725, allocations: 0.8723 MB / 0.5148 GB, free: 14.98 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.1725, allocations: 0 / 0.5148 GB, free: 14.98 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005145/0.173, allocations: 0.569 MB / 0.5153 GB, free: 14.39 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002251/0.1733, allocations: 27.34 kB / 0.5153 GB, free: 14.36 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007436/0.174, allocations: 414.1 kB / 0.5157 GB, free: 13.92 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003248/0.1743, allocations: 0.716 MB / 0.5164 GB, free: 13.18 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.561e-05/0.1744, allocations: 4.672 kB / 0.5164 GB, free: 13.17 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.77e-05/0.1744, allocations: 11.44 kB / 0.5164 GB, free: 13.16 MB / 398.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1744, allocations: 3.938 kB / 0.5164 GB, free: 13.16 MB / 398.1 MB Notification: Performance of Templates: time 0.008058/0.1825, allocations: 4.158 MB / 0.5205 GB, free: 9.031 MB / 398.1 MB make -j1 -f Annex60_1.0.0_Annex60.Controls.SetPoints.Examples.OccupancySchedule.makefile (rm -f Annex60_1.0.0_Annex60.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo Annex60_1.0.0_Annex60.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < Annex60_1.0.0_Annex60.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/Annex60_1.0.0_Annex60.Controls.SetPoints.Examples.OccupancySchedule.sim & ./Annex60_1.0.0_Annex60.Controls.SetPoints.Examples.OccupancySchedule -abortSlowSimulation -alarm=480 -lv LOG_STATS > Annex60_1.0.0_Annex60.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1)