Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 9.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 4.874/4.874, allocations: 0.5623 GB / 0.5776 GB, free: 66.91 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002679/0.002678, allocations: 360.2 kB / 0.6446 GB, free: 21.55 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.469/4.469, allocations: 410.8 MB / 1.113 GB, free: 15.75 MB / 0.6198 GB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001892/0.001892, allocations: 182.5 kB / 1.226 GB, free: 11.69 MB / 0.7292 GB Notification: Performance of FrontEnd - loaded program: time 0.0005348/0.0005351, allocations: 12.86 kB / 1.349 GB, free: 321 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2485/0.2491, allocations: 115.3 MB / 1.461 GB, free: 220.6 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.001085/0.2502, allocations: 0.5723 MB / 1.462 GB, free: 220.1 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.001976/0.2522, allocations: 1.245 MB / 1.463 GB, free: 218.8 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.353e-05/0.2523, allocations: 4 kB / 1.463 GB, free: 218.8 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 8.598e-05/0.2524, allocations: 7.875 kB / 1.463 GB, free: 218.8 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 0.0001418/0.2526, allocations: 28.91 kB / 1.463 GB, free: 218.8 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009314/0.2535, allocations: 231.9 kB / 1.463 GB, free: 218.5 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.0002734/0.2538, allocations: 235.4 kB / 1.464 GB, free: 218.3 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001204/0.2539, allocations: 25.09 kB / 1.464 GB, free: 218.3 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001943/0.2541, allocations: 104.4 kB / 1.464 GB, free: 218.2 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002172/0.2544, allocations: 100.3 kB / 1.464 GB, free: 218.1 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 5.186e-05/0.2544, allocations: 12 kB / 1.464 GB, free: 218.1 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001349/0.2546, allocations: 30.22 kB / 1.464 GB, free: 218.1 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 6.705e-05/0.2547, allocations: 31.91 kB / 1.464 GB, free: 218 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 7.821e-05/0.2548, allocations: 61.62 kB / 1.464 GB, free: 218 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0002506/0.255, allocations: 171.8 kB / 1.464 GB, free: 217.8 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.255, allocations: 0 / 1.464 GB, free: 217.8 MB / 0.8073 GB Notification: Performance of FrontEnd: time 1.873e-06/0.2551, allocations: 1.75 kB / 1.464 GB, free: 217.8 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 5.149e-06/0.2551, allocations: 0 / 1.464 GB, free: 217.8 MB / 0.8073 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0009354/0.256, allocations: 499.2 kB / 1.465 GB, free: 217.2 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 4.43e-05/0.2561, allocations: 8.75 kB / 1.465 GB, free: 217.2 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001021/0.2562, allocations: 26.12 kB / 1.465 GB, free: 217.2 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000288/0.2565, allocations: 245.3 kB / 1.465 GB, free: 216.9 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.029e-05/0.2565, allocations: 8 kB / 1.465 GB, free: 216.9 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.309e-05/0.2566, allocations: 27.92 kB / 1.465 GB, free: 216.9 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005144/0.2572, allocations: 183.7 kB / 1.465 GB, free: 216.7 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.388e-05/0.2572, allocations: 0 / 1.465 GB, free: 216.7 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.182e-05/0.2572, allocations: 7.922 kB / 1.465 GB, free: 216.7 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.183e-06/0.2572, allocations: 5.312 kB / 1.465 GB, free: 216.7 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003233/0.2576, allocations: 88.88 kB / 1.465 GB, free: 216.6 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008456/0.2584, allocations: 475 kB / 1.466 GB, free: 216.1 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003937/0.2589, allocations: 144.3 kB / 1.466 GB, free: 215.9 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002599/0.2591, allocations: 89 kB / 1.466 GB, free: 215.9 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.301e-05/0.2592, allocations: 4 kB / 1.466 GB, free: 215.9 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004927/0.2597, allocations: 213.2 kB / 1.466 GB, free: 215.6 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=28): time 3.236e-06/0.2597, allocations: 0 / 1.466 GB, free: 215.6 MB / 0.8073 GB Notification: Performance of matching and sorting (n=28): time 0.001277/0.261, allocations: 461.6 kB / 1.466 GB, free: 215.2 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.761e-05/0.261, allocations: 55.41 kB / 1.467 GB, free: 215.1 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001348/0.2612, allocations: 147.3 kB / 1.467 GB, free: 215 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 7.587e-05/0.2613, allocations: 41.69 kB / 1.467 GB, free: 214.9 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 7.571e-05/0.2614, allocations: 96.69 kB / 1.467 GB, free: 214.8 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 7.683e-05/0.2614, allocations: 76.02 kB / 1.467 GB, free: 214.8 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.514e-05/0.2615, allocations: 8 kB / 1.467 GB, free: 214.7 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 7.2e-05/0.2616, allocations: 332.7 kB / 1.467 GB, free: 214.4 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004533/0.262, allocations: 144.7 kB / 1.467 GB, free: 214.3 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005102/0.2626, allocations: 210.8 kB / 1.468 GB, free: 214 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004857/0.2631, allocations: 215.3 kB / 1.468 GB, free: 213.8 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.2631, allocations: 0 / 1.468 GB, free: 213.8 MB / 0.8073 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001266/0.2644, allocations: 0.4981 MB / 1.468 GB, free: 213.3 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 6.024e-05/0.2645, allocations: 72.17 kB / 1.468 GB, free: 213.2 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.196e-05/0.2645, allocations: 4 kB / 1.468 GB, free: 213.2 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.217e-05/0.2645, allocations: 6.688 kB / 1.468 GB, free: 213.2 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003985/0.2649, allocations: 55.91 kB / 1.468 GB, free: 213.2 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.214e-05/0.2649, allocations: 3.953 kB / 1.468 GB, free: 213.2 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007676/0.2657, allocations: 102.7 kB / 1.468 GB, free: 213.1 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.097e-05/0.2658, allocations: 27.97 kB / 1.469 GB, free: 213 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 42 ($whenCondition5,$whenCondition6,$whenCondition4,$PRE.booPul1.y,booPul1.y,$whenCondition3,$PRE.booPul.y,booPul.y,$whenCondition1,$whenCondition2,triMovMea.y,$PRE.triMovMea.iSample,triMovMea.iSample,$PRE.triMovMea.counter,triMovMea.counter,triMovMea.index,$PRE.triMovMea.ySample[1],triMovMea.ySample[1],$PRE.triMovMea.ySample[2],triMovMea.ySample[2],$PRE.triMovMea.ySample[3],triMovMea.ySample[3],triMovMea1.y,$PRE.triMovMea1.iSample,triMovMea1.iSample,$PRE.triMovMea1.counter,triMovMea1.counter,triMovMea1.index,$PRE.triMovMea1.ySample[1],triMovMea1.ySample[1],triMovMea2.y,$PRE.triMovMea2.iSample,triMovMea2.iSample,$PRE.triMovMea2.counter,triMovMea2.counter,triMovMea2.index,$PRE.triMovMea2.ySample[1],triMovMea2.ySample[1],$PRE.triMovMea2.ySample[2],triMovMea2.ySample[2],$PRE.triMovMea2.ySample[3],triMovMea2.ySample[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 35 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002479/0.2661, allocations: 165.2 kB / 1.469 GB, free: 212.9 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.286e-05/0.2661, allocations: 12.84 kB / 1.469 GB, free: 212.9 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.517e-05/0.2662, allocations: 13.88 kB / 1.469 GB, free: 212.9 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.383e-06/0.2662, allocations: 4.859 kB / 1.469 GB, free: 212.8 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.2662, allocations: 3.938 kB / 1.469 GB, free: 212.8 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 4.181e-05/0.2663, allocations: 97.53 kB / 1.469 GB, free: 212.7 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.842e-05/0.2664, allocations: 15.98 kB / 1.469 GB, free: 212.7 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001682/0.2666, allocations: 13.3 kB / 1.469 GB, free: 212.7 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.965e-05/0.2666, allocations: 15.98 kB / 1.469 GB, free: 212.7 MB / 0.8073 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0009076/0.2676, allocations: 434.8 kB / 1.469 GB, free: 212.3 MB / 0.8073 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0008915/0.2685, allocations: 0.5321 MB / 1.47 GB, free: 211.7 MB / 0.8073 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003052/0.2688, allocations: 115.6 kB / 1.47 GB, free: 211.6 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 6.869e-05/0.2689, allocations: 100.1 kB / 1.47 GB, free: 211.5 MB / 0.8073 GB Notification: Performance of Backend: time 7.02e-07/0.2689, allocations: 0 / 1.47 GB, free: 211.5 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.001216/0.2701, allocations: 452 kB / 1.47 GB, free: 211 MB / 0.8073 GB Notification: Performance of SimCode: time 0.0009099/0.2711, allocations: 0.7583 MB / 1.471 GB, free: 210.2 MB / 0.8073 GB Notification: Performance of Templates: time 0.009499/0.2806, allocations: 3.374 MB / 1.474 GB, free: 207 MB / 0.8073 GB