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 5.008/5.008, allocations: 0.5623 GB / 0.5769 GB, free: 3.387 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002374/0.002374, allocations: 358 kB / 0.644 GB, free: 185.7 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.399/4.399, allocations: 410.7 MB / 1.112 GB, free: 5.977 MB / 0.6042 GB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001806/0.001805, allocations: 189 kB / 1.225 GB, free: 6.133 MB / 0.7136 GB Notification: Performance of FrontEnd - loaded program: time 0.0005077/0.0005079, allocations: 16 kB / 1.348 GB, free: 8.258 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6536/0.6542, allocations: 115.3 MB / 1.461 GB, free: 284.4 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.0008866/0.6551, allocations: 0.5773 MB / 1.461 GB, free: 283.8 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.001569/0.6567, allocations: 1.246 MB / 1.463 GB, free: 282.5 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.952e-05/0.6568, allocations: 3.938 kB / 1.463 GB, free: 282.5 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 7.435e-05/0.6569, allocations: 7.922 kB / 1.463 GB, free: 282.5 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 0.0001258/0.657, allocations: 24.41 kB / 1.463 GB, free: 282.5 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007701/0.6578, allocations: 241.2 kB / 1.463 GB, free: 282.3 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.0002057/0.658, allocations: 219.5 kB / 1.463 GB, free: 282.1 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 9.874e-05/0.6581, allocations: 27.36 kB / 1.463 GB, free: 282 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001719/0.6583, allocations: 111.7 kB / 1.463 GB, free: 281.9 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001795/0.6585, allocations: 100.9 kB / 1.463 GB, free: 281.8 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 4.678e-05/0.6586, allocations: 12 kB / 1.463 GB, free: 281.8 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 8.976e-05/0.6587, allocations: 23.98 kB / 1.463 GB, free: 281.8 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 5.73e-05/0.6587, allocations: 37.39 kB / 1.463 GB, free: 281.8 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 7.171e-05/0.6588, allocations: 57.58 kB / 1.463 GB, free: 281.7 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.0002048/0.659, allocations: 181.6 kB / 1.464 GB, free: 281.5 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 4.461e-06/0.6591, allocations: 0.5625 kB / 1.464 GB, free: 281.5 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.859e-06/0.6591, allocations: 5.031 kB / 1.464 GB, free: 281.5 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 1.103e-05/0.6591, allocations: 0 / 1.464 GB, free: 281.5 MB / 0.8542 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.0007459/0.6599, allocations: 0.4932 MB / 1.464 GB, free: 281 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.546e-05/0.6599, allocations: 11.62 kB / 1.464 GB, free: 281 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.353e-05/0.66, allocations: 19.81 kB / 1.464 GB, free: 280.9 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002415/0.6602, allocations: 218.9 kB / 1.464 GB, free: 280.7 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.763e-05/0.6603, allocations: 20 kB / 1.464 GB, free: 280.7 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.243e-05/0.6604, allocations: 25.45 kB / 1.464 GB, free: 280.6 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003937/0.6608, allocations: 183.2 kB / 1.464 GB, free: 280.5 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.044e-05/0.6608, allocations: 0 / 1.464 GB, free: 280.5 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.837e-05/0.6608, allocations: 11.98 kB / 1.464 GB, free: 280.4 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.889e-06/0.6609, allocations: 5.922 kB / 1.464 GB, free: 280.4 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002532/0.6611, allocations: 89.17 kB / 1.465 GB, free: 280.4 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006592/0.6618, allocations: 482.4 kB / 1.465 GB, free: 279.8 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002918/0.6621, allocations: 140.2 kB / 1.465 GB, free: 279.7 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002008/0.6623, allocations: 93.59 kB / 1.465 GB, free: 279.6 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 1.897e-05/0.6624, allocations: 2.125 kB / 1.465 GB, free: 279.6 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000383/0.6628, allocations: 217.2 kB / 1.465 GB, free: 279.4 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=28): time 3.088e-06/0.6628, allocations: 0 / 1.465 GB, free: 279.4 MB / 0.8542 GB Notification: Performance of matching and sorting (n=28): time 0.0009954/0.6638, allocations: 461.1 kB / 1.466 GB, free: 278.9 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.245e-05/0.6638, allocations: 55.41 kB / 1.466 GB, free: 278.8 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001075/0.664, allocations: 135.6 kB / 1.466 GB, free: 278.7 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 5.845e-05/0.664, allocations: 41.7 kB / 1.466 GB, free: 278.7 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 6.295e-05/0.6641, allocations: 104.6 kB / 1.466 GB, free: 278.6 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 6.829e-05/0.6642, allocations: 71.17 kB / 1.466 GB, free: 278.5 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.685e-05/0.6642, allocations: 8.688 kB / 1.466 GB, free: 278.5 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 6.432e-05/0.6643, allocations: 327.8 kB / 1.467 GB, free: 278.1 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003678/0.6647, allocations: 153.2 kB / 1.467 GB, free: 278 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003929/0.6651, allocations: 207.4 kB / 1.467 GB, free: 277.8 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004015/0.6655, allocations: 222 kB / 1.467 GB, free: 277.6 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.217e-06/0.6655, allocations: 0.9688 kB / 1.467 GB, free: 277.6 MB / 0.8542 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001022/0.6666, allocations: 0.5017 MB / 1.468 GB, free: 277 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 4.918e-05/0.6666, allocations: 70.98 kB / 1.468 GB, free: 277 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.249e-05/0.6667, allocations: 4 kB / 1.468 GB, free: 277 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.922e-05/0.6667, allocations: 0 / 1.468 GB, free: 277 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002868/0.667, allocations: 59.8 kB / 1.468 GB, free: 276.9 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.091e-05/0.667, allocations: 4 kB / 1.468 GB, free: 276.9 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004825/0.6675, allocations: 93.03 kB / 1.468 GB, free: 276.8 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.167e-05/0.6676, allocations: 19.98 kB / 1.468 GB, free: 276.8 MB / 0.8542 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.0001966/0.6678, allocations: 172.7 kB / 1.468 GB, free: 276.6 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.575e-05/0.6678, allocations: 18.97 kB / 1.468 GB, free: 276.6 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.532e-05/0.6679, allocations: 15.03 kB / 1.468 GB, free: 276.6 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.411e-06/0.6679, allocations: 4 kB / 1.468 GB, free: 276.6 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.037e-06/0.6679, allocations: 3.953 kB / 1.468 GB, free: 276.6 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.447e-06/0.6679, allocations: 0 / 1.468 GB, free: 276.6 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008941/0.6688, allocations: 0.6663 MB / 1.469 GB, free: 275.9 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.885e-06/0.6689, allocations: 4.938 kB / 1.469 GB, free: 275.9 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.429e-05/0.6689, allocations: 7.984 kB / 1.469 GB, free: 275.8 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.415e-06/0.669, allocations: 1 kB / 1.469 GB, free: 275.8 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.16e-05/0.669, allocations: 15.98 kB / 1.469 GB, free: 275.8 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.417e-06/0.669, allocations: 3.953 kB / 1.469 GB, free: 275.8 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.519e-06/0.669, allocations: 0.5625 kB / 1.469 GB, free: 275.8 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007033/0.6697, allocations: 452.8 kB / 1.469 GB, free: 275.4 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 3.5e-05/0.6698, allocations: 89.58 kB / 1.469 GB, free: 275.3 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.681e-05/0.6699, allocations: 24.47 kB / 1.469 GB, free: 275.2 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001715/0.67, allocations: 4.594 kB / 1.469 GB, free: 275.2 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.035e-05/0.6701, allocations: 30.95 kB / 1.469 GB, free: 275.2 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.104e-05/0.6702, allocations: 15.98 kB / 1.469 GB, free: 275.2 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 6.143e-05/0.6702, allocations: 103.3 kB / 1.469 GB, free: 275.1 MB / 0.8542 GB Notification: Performance of sort global known variables: time 6.91e-07/0.6703, allocations: 0 / 1.469 GB, free: 275.1 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0004726/0.6707, allocations: 70.14 kB / 1.47 GB, free: 275 MB / 0.8542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 27 ($whenCondition5,$whenCondition6,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triMovMea.y,triMovMea.iSample,triMovMea.counter,triMovMea.index,triMovMea.ySample[1],triMovMea.ySample[2],triMovMea.ySample[3],triMovMea1.y,triMovMea1.iSample,triMovMea1.counter,triMovMea1.index,triMovMea1.ySample[1],triMovMea2.y,triMovMea2.iSample,triMovMea2.counter,triMovMea2.index,triMovMea2.ySample[1],triMovMea2.ySample[2],triMovMea2.ySample[3],booPul1.y) * Number of discrete states: 13 (triMovMea2.iSample,triMovMea2.ySample[1],triMovMea2.ySample[2],triMovMea2.ySample[3],triMovMea2.counter,triMovMea.iSample,triMovMea.counter,triMovMea.ySample[1],triMovMea.ySample[2],triMovMea.ySample[3],triMovMea1.iSample,triMovMea1.counter,triMovMea1.ySample[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 17 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001937/0.6709, allocations: 133.5 kB / 1.47 GB, free: 274.9 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.000859/0.6718, allocations: 462.5 kB / 1.47 GB, free: 274.4 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 3.152e-06/0.6718, allocations: 0 / 1.47 GB, free: 274.4 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0002591/0.6721, allocations: 120 kB / 1.47 GB, free: 274.3 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004568/0.6726, allocations: 31.34 kB / 1.47 GB, free: 274.3 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006642/0.6733, allocations: 342.6 kB / 1.471 GB, free: 273.9 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001701/0.6735, allocations: 0.7387 MB / 1.471 GB, free: 273.2 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 9.063e-05/0.6736, allocations: 18.45 kB / 1.471 GB, free: 273.1 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.829e-05/0.6736, allocations: 19.95 kB / 1.471 GB, free: 273.1 MB / 0.8542 GB Notification: Performance of SimCode: time 1.53e-06/0.6736, allocations: 0 / 1.471 GB, free: 273.1 MB / 0.8542 GB Notification: Performance of Templates: time 0.007978/0.6816, allocations: 3.263 MB / 1.475 GB, free: 270.1 MB / 0.8542 GB