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.826/1.826, allocations: 288.4 MB / 303.7 MB, free: 8.105 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.0009931/0.0009931, allocations: 190.7 kB / 372.3 MB, free: 10.11 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.77/1.77, allocations: 205.4 MB / 0.631 GB, free: 9.883 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.000763/0.0007631, allocations: 102.3 kB / 0.7444 GB, free: 5.777 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005018/0.0005019, allocations: 16.09 kB / 0.8675 GB, free: 141.9 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3238/0.3243, allocations: 115.3 MB / 0.9801 GB, free: 27.3 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.001241/0.3256, allocations: 0.564 MB / 0.9807 GB, free: 26.74 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001709/0.3274, allocations: 1.278 MB / 0.9819 GB, free: 25.45 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.187e-05/0.3274, allocations: 3.938 kB / 0.982 GB, free: 25.44 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001193/0.3276, allocations: 7.922 kB / 0.982 GB, free: 25.43 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0001608/0.3277, allocations: 43.77 kB / 0.982 GB, free: 25.39 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006924/0.3284, allocations: 230.4 kB / 0.9822 GB, free: 25.17 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0002197/0.3287, allocations: 231.5 kB / 0.9824 GB, free: 24.95 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001522/0.3288, allocations: 36.88 kB / 0.9825 GB, free: 24.91 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001722/0.329, allocations: 107.7 kB / 0.9826 GB, free: 24.8 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002181/0.3292, allocations: 103.7 kB / 0.9827 GB, free: 24.7 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 4.019e-05/0.3293, allocations: 15.94 kB / 0.9827 GB, free: 24.69 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001007/0.3294, allocations: 19.98 kB / 0.9827 GB, free: 24.67 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 6.881e-05/0.3295, allocations: 39.83 kB / 0.9827 GB, free: 24.63 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 0.0001258/0.3296, allocations: 113.4 kB / 0.9829 GB, free: 24.51 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001958/0.3298, allocations: 187.8 kB / 0.983 GB, free: 24.33 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 7.724e-06/0.3298, allocations: 4 kB / 0.983 GB, free: 24.32 MB / 0.6198 GB Notification: Performance of FrontEnd: time 3.015e-06/0.3298, allocations: 0 / 0.983 GB, free: 24.32 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.623e-06/0.3298, allocations: 0 / 0.983 GB, free: 24.32 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.001104/0.331, allocations: 490.8 kB / 0.9835 GB, free: 23.78 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 6.581e-05/0.331, allocations: 12.02 kB / 0.9835 GB, free: 23.77 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.822e-05/0.3311, allocations: 20.75 kB / 0.9835 GB, free: 23.75 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003473/0.3315, allocations: 233.7 kB / 0.9838 GB, free: 23.48 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.668e-05/0.3315, allocations: 12.38 kB / 0.9838 GB, free: 23.47 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.336e-05/0.3316, allocations: 28.36 kB / 0.9838 GB, free: 23.45 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003973/0.332, allocations: 180.7 kB / 0.984 GB, free: 23.26 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.567e-05/0.332, allocations: 192 / 0.984 GB, free: 23.26 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.999e-05/0.3321, allocations: 15.92 kB / 0.984 GB, free: 23.25 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.41e-05/0.3321, allocations: 0 / 0.984 GB, free: 23.25 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002048/0.3323, allocations: 96.11 kB / 0.9841 GB, free: 23.15 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006908/0.333, allocations: 472.6 kB / 0.9845 GB, free: 22.64 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002276/0.3332, allocations: 142.4 kB / 0.9847 GB, free: 22.49 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001595/0.3334, allocations: 92.81 kB / 0.9848 GB, free: 22.4 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.029e-05/0.3334, allocations: 4 kB / 0.9848 GB, free: 22.39 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002998/0.3337, allocations: 216 kB / 0.985 GB, free: 22.17 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=28): time 1.493e-06/0.3338, allocations: 0 / 0.985 GB, free: 22.17 MB / 0.6198 GB Notification: Performance of matching and sorting (n=28): time 0.0007449/0.3345, allocations: 452.8 kB / 0.9854 GB, free: 21.73 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.295e-05/0.3346, allocations: 59.41 kB / 0.9855 GB, free: 21.66 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.441e-05/0.3347, allocations: 150.7 kB / 0.9856 GB, free: 21.5 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 4.09e-05/0.3347, allocations: 41.7 kB / 0.9856 GB, free: 21.45 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 7.143e-05/0.3348, allocations: 108.6 kB / 0.9857 GB, free: 21.34 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 5.19e-05/0.3348, allocations: 63.2 kB / 0.9858 GB, free: 21.28 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.444e-05/0.3349, allocations: 11.98 kB / 0.9858 GB, free: 21.27 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.869e-05/0.335, allocations: 334.8 kB / 0.9861 GB, free: 20.93 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002504/0.3352, allocations: 152.7 kB / 0.9863 GB, free: 20.78 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002681/0.3355, allocations: 201.2 kB / 0.9865 GB, free: 20.56 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004274/0.3359, allocations: 370.3 kB / 0.9868 GB, free: 20.16 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.3359, allocations: 0 / 0.9868 GB, free: 20.16 MB / 0.6198 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006661/0.3366, allocations: 497.8 kB / 0.9873 GB, free: 19.66 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 5.099e-05/0.3367, allocations: 71.39 kB / 0.9874 GB, free: 19.58 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.161e-05/0.3367, allocations: 0 / 0.9874 GB, free: 19.58 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.14e-05/0.3367, allocations: 4 kB / 0.9874 GB, free: 19.57 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002137/0.3369, allocations: 55.91 kB / 0.9874 GB, free: 19.52 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.052e-05/0.337, allocations: 7.984 kB / 0.9874 GB, free: 19.51 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004089/0.3374, allocations: 103.6 kB / 0.9875 GB, free: 19.41 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.606e-05/0.3374, allocations: 23.98 kB / 0.9876 GB, free: 19.39 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.0001543/0.3376, allocations: 169.8 kB / 0.9877 GB, free: 19.21 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.755e-05/0.3376, allocations: 19.8 kB / 0.9877 GB, free: 19.19 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.552e-05/0.3377, allocations: 17.88 kB / 0.9877 GB, free: 19.18 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.345e-06/0.3377, allocations: 3.938 kB / 0.9878 GB, free: 19.17 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.3377, allocations: 4 kB / 0.9878 GB, free: 19.17 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.3377, allocations: 3.938 kB / 0.9878 GB, free: 19.16 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006332/0.3383, allocations: 0.6622 MB / 0.9884 GB, free: 18.45 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.3384, allocations: 0 / 0.9884 GB, free: 18.45 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.927e-05/0.3384, allocations: 11.94 kB / 0.9884 GB, free: 18.43 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.3384, allocations: 0 / 0.9884 GB, free: 18.43 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.339e-05/0.3384, allocations: 11.97 kB / 0.9884 GB, free: 18.42 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.3384, allocations: 3.938 kB / 0.9884 GB, free: 18.42 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.3384, allocations: 4 kB / 0.9884 GB, free: 18.41 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000505/0.339, allocations: 455.1 kB / 0.9889 GB, free: 17.95 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 3.058e-05/0.339, allocations: 92.92 kB / 0.989 GB, free: 17.84 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.868e-05/0.3391, allocations: 19.92 kB / 0.989 GB, free: 17.82 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001086/0.3392, allocations: 11.92 kB / 0.989 GB, free: 17.81 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.069e-05/0.3392, allocations: 15.98 kB / 0.989 GB, free: 17.8 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.72e-05/0.3393, allocations: 19.97 kB / 0.989 GB, free: 17.78 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 4.582e-05/0.3393, allocations: 100.7 kB / 0.9891 GB, free: 17.68 MB / 0.6198 GB Notification: Performance of sort global known variables: time 6.81e-07/0.3393, allocations: 4 kB / 0.9891 GB, free: 17.68 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002914/0.3396, allocations: 71.92 kB / 0.9892 GB, free: 17.61 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.0001836/0.3398, allocations: 141.3 kB / 0.9893 GB, free: 17.46 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0005727/0.3404, allocations: 454.5 kB / 0.9898 GB, free: 16.99 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.3404, allocations: 4.25 kB / 0.9898 GB, free: 16.99 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001748/0.3406, allocations: 120.5 kB / 0.9899 GB, free: 16.87 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003403/0.3409, allocations: 31.97 kB / 0.9899 GB, free: 16.84 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005366/0.3415, allocations: 349.5 kB / 0.9902 GB, free: 16.48 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001578/0.3417, allocations: 0.7206 MB / 0.9909 GB, free: 15.73 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 6.335e-05/0.3417, allocations: 17.55 kB / 0.991 GB, free: 15.71 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.056e-05/0.3418, allocations: 19.44 kB / 0.991 GB, free: 15.7 MB / 0.6198 GB Notification: Performance of SimCode: time 2.2e-07/0.3418, allocations: 0 / 0.991 GB, free: 15.7 MB / 0.6198 GB Notification: Performance of Templates: time 0.005787/0.3476, allocations: 3.318 MB / 0.9942 GB, free: 12.4 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)