Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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 8.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.572/2.572, allocations: 284.8 MB / 297.3 MB, free: 6.344 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001388/0.001388, allocations: 172.7 kB / 365.7 MB, free: 2.586 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.096/2.096, allocations: 205.1 MB / 0.6241 GB, free: 8.191 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001049/0.001049, allocations: 95.25 kB / 0.7372 GB, free: 40.8 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.736e-05/3.751e-05, allocations: 4 kB / 0.8574 GB, free: 13.71 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8535/0.8536, allocations: 115.2 MB / 0.97 GB, free: 78.23 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2422/1.096, allocations: 138.4 MB / 1.105 GB, free: 14.02 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00028/1.096, allocations: 68.62 kB / 1.105 GB, free: 13.95 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.02857/1.125, allocations: 5.519 MB / 1.111 GB, free: 8.473 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.824e-06/1.125, allocations: 0 / 1.111 GB, free: 8.473 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 1.365e-05/1.125, allocations: 0 / 1.111 GB, free: 8.473 MB / 0.7136 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.0009731/1.126, allocations: 494 kB / 1.111 GB, free: 7.93 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.997e-05/1.126, allocations: 14.75 kB / 1.111 GB, free: 7.918 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001164/1.126, allocations: 19.81 kB / 1.111 GB, free: 7.898 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004931/1.127, allocations: 239 kB / 1.111 GB, free: 7.625 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.57e-05/1.127, allocations: 12.23 kB / 1.111 GB, free: 7.613 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.345e-05/1.127, allocations: 23.98 kB / 1.111 GB, free: 7.59 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005279/1.127, allocations: 183.4 kB / 1.112 GB, free: 7.406 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.536e-05/1.127, allocations: 3.984 kB / 1.112 GB, free: 7.402 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.744e-05/1.127, allocations: 3.984 kB / 1.112 GB, free: 7.398 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.297e-06/1.127, allocations: 4 kB / 1.112 GB, free: 7.395 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003047/1.128, allocations: 84.62 kB / 1.112 GB, free: 7.312 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001079/1.129, allocations: 493.1 kB / 1.112 GB, free: 6.777 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003565/1.129, allocations: 133.8 kB / 1.112 GB, free: 6.641 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002467/1.129, allocations: 90.97 kB / 1.112 GB, free: 6.555 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.458e-05/1.129, allocations: 4.188 kB / 1.112 GB, free: 6.551 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005138/1.13, allocations: 210.2 kB / 1.113 GB, free: 6.336 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=28): time 4.138e-06/1.13, allocations: 0 / 1.113 GB, free: 6.336 MB / 0.7136 GB Notification: Performance of matching and sorting (n=28): time 0.001107/1.131, allocations: 369.6 kB / 1.113 GB, free: 5.969 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.541e-05/1.131, allocations: 59.34 kB / 1.113 GB, free: 5.898 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001741/1.131, allocations: 132.1 kB / 1.113 GB, free: 5.766 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 9.987e-05/1.131, allocations: 49.69 kB / 1.113 GB, free: 5.711 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 9.908e-05/1.132, allocations: 104.6 kB / 1.113 GB, free: 5.605 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 9.987e-05/1.132, allocations: 63.25 kB / 1.113 GB, free: 5.543 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.286e-05/1.132, allocations: 8 kB / 1.113 GB, free: 5.535 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001496/1.132, allocations: 334.8 kB / 1.114 GB, free: 5.199 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004317/1.132, allocations: 136.4 kB / 1.114 GB, free: 5.066 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000493/1.133, allocations: 192.9 kB / 1.114 GB, free: 4.855 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004914/1.133, allocations: 201.9 kB / 1.114 GB, free: 4.648 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.661e-06/1.133, allocations: 0 / 1.114 GB, free: 4.648 MB / 0.7136 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001316/1.135, allocations: 474.8 kB / 1.115 GB, free: 4.168 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 8.832e-05/1.135, allocations: 68.14 kB / 1.115 GB, free: 4.09 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/1.135, allocations: 4 kB / 1.115 GB, free: 4.086 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.312e-05/1.135, allocations: 7.953 kB / 1.115 GB, free: 4.078 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005342/1.135, allocations: 64.84 kB / 1.115 GB, free: 4.016 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.778e-05/1.136, allocations: 7.984 kB / 1.115 GB, free: 4.008 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007766/1.136, allocations: 91.75 kB / 1.115 GB, free: 3.918 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.396e-05/1.136, allocations: 19.98 kB / 1.115 GB, free: 3.898 MB / 0.7136 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 41 * Array equations: 0 * 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.0002529/1.137, allocations: 152.8 kB / 1.115 GB, free: 3.742 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.309e-05/1.137, allocations: 19.8 kB / 1.115 GB, free: 3.723 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.964e-05/1.137, allocations: 17.75 kB / 1.115 GB, free: 3.703 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.929e-06/1.137, allocations: 14.73 kB / 1.115 GB, free: 3.691 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.127e-06/1.137, allocations: 3.953 kB / 1.115 GB, free: 3.688 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.633e-06/1.137, allocations: 1.812 kB / 1.115 GB, free: 3.688 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001274/1.138, allocations: 0.6545 MB / 1.116 GB, free: 2.977 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/1.138, allocations: 0 / 1.116 GB, free: 2.977 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000109/1.138, allocations: 4 kB / 1.116 GB, free: 2.973 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.072e-05/1.138, allocations: 11.98 kB / 1.116 GB, free: 2.961 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.369e-05/1.138, allocations: 11.94 kB / 1.116 GB, free: 2.949 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.653e-06/1.138, allocations: 0 / 1.116 GB, free: 2.949 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/1.138, allocations: 6.359 kB / 1.116 GB, free: 2.945 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000961/1.139, allocations: 455.2 kB / 1.116 GB, free: 2.484 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 7.023e-05/1.139, allocations: 92.86 kB / 1.116 GB, free: 2.375 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.422e-05/1.14, allocations: 15.98 kB / 1.116 GB, free: 2.359 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002387/1.14, allocations: 19.94 kB / 1.116 GB, free: 2.34 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.05e-05/1.14, allocations: 19.97 kB / 1.116 GB, free: 2.32 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.637e-05/1.14, allocations: 17.98 kB / 1.116 GB, free: 2.305 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.0001027/1.14, allocations: 101.6 kB / 1.116 GB, free: 2.207 MB / 0.7136 GB Notification: Performance of sort global known variables: time 4.61e-07/1.14, allocations: 4 kB / 1.116 GB, free: 2.203 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0005731/1.141, allocations: 71.98 kB / 1.116 GB, free: 2.133 MB / 0.7136 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[3],triMovMea.ySample[2],triMovMea.ySample[1],triMovMea1.iSample,triMovMea1.counter,triMovMea1.ySample[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 21 * 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.0003012/1.141, allocations: 137.6 kB / 1.117 GB, free: 1.992 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.001104/1.142, allocations: 439.2 kB / 1.117 GB, free: 1.539 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/1.142, allocations: 0 / 1.117 GB, free: 1.539 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0003311/1.143, allocations: 119.9 kB / 1.117 GB, free: 1.422 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004407/1.143, allocations: 26.05 kB / 1.117 GB, free: 1.398 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007549/1.144, allocations: 223.4 kB / 1.117 GB, free: 1.16 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003601/1.144, allocations: 0.7286 MB / 1.118 GB, free: 412 kB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.0001211/1.144, allocations: 18.08 kB / 1.118 GB, free: 396 kB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.507e-05/1.144, allocations: 19.44 kB / 1.118 GB, free: 376 kB / 0.7136 GB Notification: Performance of SimCode: time 1.072e-06/1.144, allocations: 0 / 1.118 GB, free: 376 kB / 0.7136 GB Notification: Performance of Templates: time 0.01116/1.156, allocations: 3.331 MB / 1.121 GB, free: 13.12 MB / 0.7292 GB make -j1 -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.makefile (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.sim & ./Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1)