Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_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_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.678/1.678, allocations: 288.4 MB / 303.4 MB, free: 8.152 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.001298/0.001299, allocations: 182.3 kB / 372 MB, free: 10.26 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.735/1.735, allocations: 205.4 MB / 0.6307 GB, free: 9.98 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.0008116/0.0008116, allocations: 95.39 kB / 0.7441 GB, free: 5.906 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004249/0.000425, allocations: 11.94 kB / 0.867 GB, free: 142 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2706/0.271, allocations: 115.3 MB / 0.9796 GB, free: 27.64 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.001092/0.2722, allocations: 0.5679 MB / 0.9802 GB, free: 27.07 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001518/0.2737, allocations: 1.282 MB / 0.9814 GB, free: 25.77 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.185e-05/0.2738, allocations: 0 / 0.9814 GB, free: 25.77 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001304/0.274, allocations: 7.875 kB / 0.9814 GB, free: 25.76 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.000169/0.2741, allocations: 31.83 kB / 0.9814 GB, free: 25.73 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007676/0.2749, allocations: 236.9 kB / 0.9817 GB, free: 25.5 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0002351/0.2752, allocations: 235.3 kB / 0.9819 GB, free: 25.27 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00015/0.2753, allocations: 28.89 kB / 0.9819 GB, free: 25.25 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001651/0.2755, allocations: 107.8 kB / 0.982 GB, free: 25.14 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001866/0.2757, allocations: 103.6 kB / 0.9821 GB, free: 25.04 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 4.207e-05/0.2757, allocations: 12 kB / 0.9821 GB, free: 25.03 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 8.497e-05/0.2758, allocations: 27.92 kB / 0.9822 GB, free: 25 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 5.968e-05/0.2759, allocations: 35.89 kB / 0.9822 GB, free: 24.96 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 7.307e-05/0.276, allocations: 57.64 kB / 0.9823 GB, free: 24.9 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001979/0.2762, allocations: 171.8 kB / 0.9824 GB, free: 24.73 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.2762, allocations: 0 / 0.9824 GB, free: 24.73 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.205e-06/0.2762, allocations: 4 kB / 0.9824 GB, free: 24.73 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.182e-06/0.2762, allocations: 0 / 0.9824 GB, free: 24.73 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.0008805/0.2771, allocations: 498.6 kB / 0.9829 GB, free: 24.18 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.065e-05/0.2772, allocations: 12.03 kB / 0.9829 GB, free: 24.17 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.661e-05/0.2772, allocations: 23.8 kB / 0.9829 GB, free: 24.15 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002635/0.2775, allocations: 242.6 kB / 0.9832 GB, free: 23.87 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.49e-05/0.2775, allocations: 8 kB / 0.9832 GB, free: 23.86 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.322e-05/0.2776, allocations: 23.98 kB / 0.9832 GB, free: 23.84 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003472/0.278, allocations: 184.1 kB / 0.9834 GB, free: 23.65 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.297e-05/0.278, allocations: 0 / 0.9834 GB, free: 23.65 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.024e-05/0.278, allocations: 11.98 kB / 0.9834 GB, free: 23.64 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.351e-06/0.278, allocations: 0 / 0.9834 GB, free: 23.64 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000195/0.2782, allocations: 99.16 kB / 0.9835 GB, free: 23.55 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005767/0.2788, allocations: 476.7 kB / 0.9839 GB, free: 23.03 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002114/0.279, allocations: 146.5 kB / 0.9841 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00014/0.2792, allocations: 89 kB / 0.9842 GB, free: 22.79 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.508e-05/0.2792, allocations: 4 kB / 0.9842 GB, free: 22.78 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002922/0.2795, allocations: 207.9 kB / 0.9844 GB, free: 22.57 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=28): time 1.793e-06/0.2795, allocations: 0 / 0.9844 GB, free: 22.57 MB / 0.6198 GB Notification: Performance of matching and sorting (n=28): time 0.0007929/0.2803, allocations: 464.9 kB / 0.9848 GB, free: 22.11 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.11e-05/0.2804, allocations: 59.36 kB / 0.9849 GB, free: 22.04 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001088/0.2805, allocations: 151.5 kB / 0.985 GB, free: 21.88 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 4.862e-05/0.2806, allocations: 41.69 kB / 0.985 GB, free: 21.84 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 7.042e-05/0.2806, allocations: 100.7 kB / 0.9851 GB, free: 21.73 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 5.718e-05/0.2807, allocations: 67.19 kB / 0.9852 GB, free: 21.67 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.777e-05/0.2807, allocations: 8 kB / 0.9852 GB, free: 21.66 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001076/0.2809, allocations: 330.8 kB / 0.9855 GB, free: 21.33 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002598/0.2811, allocations: 144.7 kB / 0.9857 GB, free: 21.18 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002961/0.2814, allocations: 209.2 kB / 0.9859 GB, free: 20.95 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002873/0.2817, allocations: 224.3 kB / 0.9861 GB, free: 20.72 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.661e-06/0.2817, allocations: 8 kB / 0.9861 GB, free: 20.71 MB / 0.6198 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007231/0.2825, allocations: 0.4976 MB / 0.9866 GB, free: 20.2 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 5.525e-05/0.2825, allocations: 67.39 kB / 0.9866 GB, free: 20.12 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/0.2826, allocations: 0 / 0.9866 GB, free: 20.12 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.767e-05/0.2826, allocations: 4 kB / 0.9866 GB, free: 20.12 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002188/0.2828, allocations: 47.92 kB / 0.9867 GB, free: 20.07 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.317e-05/0.2828, allocations: 16.06 kB / 0.9867 GB, free: 20.05 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000399/0.2832, allocations: 97.09 kB / 0.9868 GB, free: 19.96 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.725e-05/0.2833, allocations: 23.98 kB / 0.9868 GB, free: 19.94 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.0001662/0.2835, allocations: 161.8 kB / 0.987 GB, free: 19.77 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.648e-05/0.2835, allocations: 11.91 kB / 0.987 GB, free: 19.76 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.307e-05/0.2835, allocations: 13.88 kB / 0.987 GB, free: 19.75 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.815e-06/0.2836, allocations: 4 kB / 0.987 GB, free: 19.74 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.2836, allocations: 11.88 kB / 0.987 GB, free: 19.73 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.2836, allocations: 7.938 kB / 0.987 GB, free: 19.72 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006387/0.2842, allocations: 0.6584 MB / 0.9877 GB, free: 19.01 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.2842, allocations: 0 / 0.9877 GB, free: 19.01 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.217e-05/0.2843, allocations: 11.98 kB / 0.9877 GB, free: 19 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.295e-06/0.2843, allocations: 0 / 0.9877 GB, free: 19 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.248e-05/0.2843, allocations: 15.98 kB / 0.9877 GB, free: 18.98 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.2843, allocations: 4 kB / 0.9877 GB, free: 18.98 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.2843, allocations: 7.891 kB / 0.9877 GB, free: 18.97 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004625/0.2848, allocations: 451.1 kB / 0.9881 GB, free: 18.51 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 3.616e-05/0.2849, allocations: 92.86 kB / 0.9882 GB, free: 18.4 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.637e-05/0.2849, allocations: 19.98 kB / 0.9882 GB, free: 18.38 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000111/0.285, allocations: 11.98 kB / 0.9882 GB, free: 18.37 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.538e-05/0.2851, allocations: 23.92 kB / 0.9883 GB, free: 18.35 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.688e-05/0.2851, allocations: 15.98 kB / 0.9883 GB, free: 18.33 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 4.828e-05/0.2852, allocations: 104.7 kB / 0.9884 GB, free: 18.23 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2852, allocations: 0 / 0.9884 GB, free: 18.23 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002879/0.2855, allocations: 63.98 kB / 0.9884 GB, free: 18.17 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.000193/0.2857, allocations: 137.4 kB / 0.9886 GB, free: 18.03 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0006009/0.2863, allocations: 454.5 kB / 0.989 GB, free: 17.56 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.2863, allocations: 0 / 0.989 GB, free: 17.56 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0002031/0.2865, allocations: 119.9 kB / 0.9891 GB, free: 17.44 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003452/0.2869, allocations: 36.16 kB / 0.9892 GB, free: 17.41 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005528/0.2874, allocations: 348.7 kB / 0.9895 GB, free: 17.04 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001621/0.2876, allocations: 0.7206 MB / 0.9902 GB, free: 16.29 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 6.176e-05/0.2877, allocations: 21.72 kB / 0.9902 GB, free: 16.27 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.079e-05/0.2877, allocations: 27.42 kB / 0.9902 GB, free: 16.25 MB / 0.6198 GB Notification: Performance of SimCode: time 2.31e-07/0.2877, allocations: 0 / 0.9902 GB, free: 16.25 MB / 0.6198 GB Notification: Performance of Templates: time 0.005493/0.2932, allocations: 3.257 MB / 0.9934 GB, free: 13.02 MB / 0.6198 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.makefile (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.sim & ./Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1)