Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.784/2.784, allocations: 287.5 MB / 302.4 MB, free: 8.207 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001393/0.001393, allocations: 176.5 kB / 371 MB, free: 10.88 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.156/2.156, allocations: 205.4 MB / 0.6297 GB, free: 10.64 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00137/0.001369, allocations: 95.64 kB / 0.743 GB, free: 6.656 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005008/0.0005011, allocations: 16.31 kB / 0.8658 GB, free: 140.2 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2402/0.2407, allocations: 115.3 MB / 0.9784 GB, free: 28.38 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.00116/0.2419, allocations: 0.5715 MB / 0.9789 GB, free: 27.81 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.002171/0.2441, allocations: 1.29 MB / 0.9802 GB, free: 26.5 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.231e-05/0.2443, allocations: 0 / 0.9802 GB, free: 26.5 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001029/0.2444, allocations: 7.875 kB / 0.9802 GB, free: 26.5 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0001624/0.2446, allocations: 23.84 kB / 0.9802 GB, free: 26.47 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.001025/0.2456, allocations: 245.8 kB / 0.9804 GB, free: 26.24 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0003132/0.2459, allocations: 235.4 kB / 0.9807 GB, free: 26.01 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000132/0.2461, allocations: 21.11 kB / 0.9807 GB, free: 25.99 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002236/0.2463, allocations: 111.8 kB / 0.9808 GB, free: 25.88 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002249/0.2466, allocations: 103.6 kB / 0.9809 GB, free: 25.78 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 6.583e-05/0.2466, allocations: 12 kB / 0.9809 GB, free: 25.77 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000133/0.2468, allocations: 19.98 kB / 0.9809 GB, free: 25.75 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 7.378e-05/0.2469, allocations: 39.88 kB / 0.981 GB, free: 25.71 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 8.503e-05/0.247, allocations: 57.64 kB / 0.981 GB, free: 25.64 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0002933/0.2473, allocations: 175.8 kB / 0.9812 GB, free: 25.47 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.972e-06/0.2473, allocations: 0 / 0.9812 GB, free: 25.47 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.886e-06/0.2473, allocations: 0 / 0.9812 GB, free: 25.47 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.81e-06/0.2473, allocations: 0 / 0.9812 GB, free: 25.47 MB / 0.6198 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.0009767/0.2483, allocations: 0.4929 MB / 0.9817 GB, free: 24.92 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.324e-05/0.2484, allocations: 12.03 kB / 0.9817 GB, free: 24.91 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000108/0.2485, allocations: 23.8 kB / 0.9817 GB, free: 24.89 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002999/0.2488, allocations: 234.7 kB / 0.9819 GB, free: 24.62 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.441e-05/0.2489, allocations: 8 kB / 0.9819 GB, free: 24.61 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.46e-05/0.2489, allocations: 27.92 kB / 0.982 GB, free: 24.58 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005323/0.2495, allocations: 186.2 kB / 0.9821 GB, free: 24.39 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.361e-05/0.2495, allocations: 0 / 0.9821 GB, free: 24.39 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.401e-05/0.2496, allocations: 3.984 kB / 0.9821 GB, free: 24.39 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.2496, allocations: 4 kB / 0.9821 GB, free: 24.38 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003296/0.2499, allocations: 100.1 kB / 0.9822 GB, free: 24.29 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008857/0.2508, allocations: 472.7 kB / 0.9827 GB, free: 23.77 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004542/0.2513, allocations: 142.5 kB / 0.9828 GB, free: 23.62 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002555/0.2516, allocations: 93 kB / 0.9829 GB, free: 23.53 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.2e-05/0.2516, allocations: 4 kB / 0.9829 GB, free: 23.52 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004983/0.2521, allocations: 207.9 kB / 0.9831 GB, free: 23.31 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=28): time 3.506e-06/0.2522, allocations: 0 / 0.9831 GB, free: 23.31 MB / 0.6198 GB Notification: Performance of matching and sorting (n=28): time 0.001306/0.2535, allocations: 468.3 kB / 0.9836 GB, free: 22.85 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.473e-05/0.2536, allocations: 59.41 kB / 0.9836 GB, free: 22.78 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001427/0.2537, allocations: 147.7 kB / 0.9838 GB, free: 22.62 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 7.367e-05/0.2538, allocations: 41.69 kB / 0.9838 GB, free: 22.58 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 7.785e-05/0.2539, allocations: 96.7 kB / 0.9839 GB, free: 22.48 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 8.163e-05/0.254, allocations: 67.23 kB / 0.984 GB, free: 22.41 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.858e-05/0.2541, allocations: 11.94 kB / 0.984 GB, free: 22.4 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.386e-05/0.2542, allocations: 334.8 kB / 0.9843 GB, free: 22.07 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004688/0.2546, allocations: 140.7 kB / 0.9844 GB, free: 21.93 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005529/0.2552, allocations: 213.2 kB / 0.9846 GB, free: 21.69 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004946/0.2557, allocations: 216.4 kB / 0.9848 GB, free: 21.47 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.14e-06/0.2557, allocations: 0 / 0.9848 GB, free: 21.47 MB / 0.6198 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001291/0.257, allocations: 0.5015 MB / 0.9853 GB, free: 20.95 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 6.44e-05/0.2571, allocations: 67.41 kB / 0.9854 GB, free: 20.87 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.221e-05/0.2572, allocations: 0 / 0.9854 GB, free: 20.87 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.248e-05/0.2572, allocations: 7.984 kB / 0.9854 GB, free: 20.86 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003995/0.2576, allocations: 55.88 kB / 0.9854 GB, free: 20.81 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.241e-05/0.2576, allocations: 4 kB / 0.9855 GB, free: 20.8 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007686/0.2584, allocations: 99.8 kB / 0.9855 GB, free: 20.71 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.129e-05/0.2585, allocations: 23.98 kB / 0.9856 GB, free: 20.68 MB / 0.6198 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.000266/0.2588, allocations: 161.8 kB / 0.9857 GB, free: 20.52 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.597e-05/0.2589, allocations: 11.91 kB / 0.9857 GB, free: 20.5 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.39e-05/0.2589, allocations: 21.81 kB / 0.9858 GB, free: 20.48 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.942e-06/0.2589, allocations: 0 / 0.9858 GB, free: 20.48 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.808e-06/0.259, allocations: 7.953 kB / 0.9858 GB, free: 20.48 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.259, allocations: 7.984 kB / 0.9858 GB, free: 20.47 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001219/0.2602, allocations: 0.6544 MB / 0.9864 GB, free: 19.76 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.97e-06/0.2602, allocations: 3.938 kB / 0.9864 GB, free: 19.75 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.468e-05/0.2603, allocations: 8 kB / 0.9864 GB, free: 19.75 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.406e-06/0.2604, allocations: 3.984 kB / 0.9864 GB, free: 19.74 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.51e-05/0.2604, allocations: 7.984 kB / 0.9864 GB, free: 19.73 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.404e-06/0.2604, allocations: 11.89 kB / 0.9864 GB, free: 19.72 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.2604, allocations: 8 kB / 0.9865 GB, free: 19.71 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008907/0.2613, allocations: 455.1 kB / 0.9869 GB, free: 19.25 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 4.9e-05/0.2614, allocations: 92.86 kB / 0.987 GB, free: 19.14 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.192e-05/0.2615, allocations: 15.98 kB / 0.987 GB, free: 19.13 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002053/0.2617, allocations: 7.984 kB / 0.987 GB, free: 19.12 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.27e-05/0.2618, allocations: 27.92 kB / 0.987 GB, free: 19.09 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.145e-05/0.2619, allocations: 15.98 kB / 0.987 GB, free: 19.08 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 7.931e-05/0.262, allocations: 100.2 kB / 0.9871 GB, free: 18.98 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.8e-07/0.262, allocations: 0 / 0.9871 GB, free: 18.98 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0005229/0.2625, allocations: 67.98 kB / 0.9872 GB, free: 18.91 MB / 0.6198 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.0002528/0.2628, allocations: 129.4 kB / 0.9873 GB, free: 18.78 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.00115/0.2639, allocations: 462.5 kB / 0.9878 GB, free: 18.3 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 4.589e-06/0.264, allocations: 3.938 kB / 0.9878 GB, free: 18.3 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0003512/0.2643, allocations: 120.5 kB / 0.9879 GB, free: 18.18 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005391/0.2649, allocations: 35.22 kB / 0.9879 GB, free: 18.15 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008187/0.2657, allocations: 355.2 kB / 0.9883 GB, free: 17.78 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001788/0.2659, allocations: 0.7167 MB / 0.989 GB, free: 17.04 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001251/0.2661, allocations: 17.55 kB / 0.989 GB, free: 17.02 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.22e-05/0.2662, allocations: 15.44 kB / 0.989 GB, free: 17.01 MB / 0.6198 GB Notification: Performance of SimCode: time 1.022e-06/0.2662, allocations: 4 kB / 0.989 GB, free: 17 MB / 0.6198 GB Notification: Performance of Templates: time 0.009443/0.2756, allocations: 3.269 MB / 0.9922 GB, free: 13.76 MB / 0.6198 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)