Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.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.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean") translateModel(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.683/1.683, allocations: 288.4 MB / 303.4 MB, free: 8.223 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.001038/0.001038, allocations: 188.5 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.773/1.773, allocations: 205.4 MB / 0.6307 GB, free: 9.973 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.0009343/0.0009342, allocations: 89.19 kB / 0.7441 GB, free: 5.898 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004379/0.0004384, allocations: 15.03 kB / 0.867 GB, free: 142 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2701/0.2705, allocations: 115.3 MB / 0.9796 GB, free: 27.63 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.001954/0.2725, allocations: 1.095 MB / 0.9807 GB, free: 26.52 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0005869/0.2731, allocations: 265 kB / 0.9809 GB, free: 26.26 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.706e-05/0.2732, allocations: 0 / 0.9809 GB, free: 26.26 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001132/0.2733, allocations: 7.922 kB / 0.9809 GB, free: 26.25 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0001793/0.2735, allocations: 7.938 kB / 0.9809 GB, free: 26.25 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001568/0.2737, allocations: 27.91 kB / 0.981 GB, free: 26.22 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001032/0.2738, allocations: 59.84 kB / 0.981 GB, free: 26.16 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001105/0.2739, allocations: 7.984 kB / 0.981 GB, free: 26.15 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001028/0.274, allocations: 19.92 kB / 0.9811 GB, free: 26.13 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001304/0.2742, allocations: 31.84 kB / 0.9811 GB, free: 26.1 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.382e-05/0.2742, allocations: 4 kB / 0.9811 GB, free: 26.1 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 1.54e-05/0.2742, allocations: 0 / 0.9811 GB, free: 26.1 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 3.376e-05/0.2743, allocations: 7.984 kB / 0.9811 GB, free: 26.09 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 5.909e-05/0.2743, allocations: 41.64 kB / 0.9811 GB, free: 26.04 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001003/0.2744, allocations: 40.19 kB / 0.9812 GB, free: 26 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 6.271e-06/0.2745, allocations: 0 / 0.9812 GB, free: 26 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.274e-06/0.2745, allocations: 4 kB / 0.9812 GB, free: 26 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.732e-06/0.2745, allocations: 0 / 0.9812 GB, free: 26 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0005704/0.2751, allocations: 384.8 kB / 0.9816 GB, free: 25.57 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.356e-05/0.2751, allocations: 8.031 kB / 0.9816 GB, free: 25.56 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.99e-05/0.2752, allocations: 7.938 kB / 0.9816 GB, free: 25.55 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002154/0.2754, allocations: 186.9 kB / 0.9817 GB, free: 25.33 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.523e-05/0.2754, allocations: 4 kB / 0.9817 GB, free: 25.33 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.017e-05/0.2755, allocations: 4 kB / 0.9818 GB, free: 25.32 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002211/0.2757, allocations: 73.67 kB / 0.9818 GB, free: 25.25 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.289e-05/0.2757, allocations: 0 / 0.9818 GB, free: 25.25 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.71e-05/0.2757, allocations: 7.984 kB / 0.9818 GB, free: 25.24 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.085e-05/0.2758, allocations: 11.88 kB / 0.9818 GB, free: 25.23 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001176/0.2759, allocations: 35.98 kB / 0.9819 GB, free: 25.19 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005059/0.2764, allocations: 296.8 kB / 0.9822 GB, free: 24.85 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001342/0.2765, allocations: 66.56 kB / 0.9822 GB, free: 24.78 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.598e-05/0.2766, allocations: 64.88 kB / 0.9823 GB, free: 24.71 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.994e-05/0.2767, allocations: 4 kB / 0.9823 GB, free: 24.71 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002392/0.2769, allocations: 121.1 kB / 0.9824 GB, free: 24.57 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=11): time 1.523e-06/0.2769, allocations: 0 / 0.9824 GB, free: 24.57 MB / 0.6198 GB Notification: Performance of matching and sorting (n=11): time 0.0004436/0.2774, allocations: 207.3 kB / 0.9826 GB, free: 24.36 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.538e-05/0.2775, allocations: 110.8 kB / 0.9827 GB, free: 24.22 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.492e-05/0.2775, allocations: 113.8 kB / 0.9828 GB, free: 24.1 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.89e-05/0.2776, allocations: 33.69 kB / 0.9828 GB, free: 24.06 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.05e-05/0.2776, allocations: 92.08 kB / 0.9829 GB, free: 23.97 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.638e-05/0.2776, allocations: 19.72 kB / 0.983 GB, free: 23.95 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.818e-06/0.2777, allocations: 4 kB / 0.983 GB, free: 23.95 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.895e-05/0.2778, allocations: 330.7 kB / 0.9833 GB, free: 23.61 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.321e-05/0.2778, allocations: 39.97 kB / 0.9833 GB, free: 23.57 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001109/0.278, allocations: 105.2 kB / 0.9834 GB, free: 23.44 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001126/0.2781, allocations: 81.67 kB / 0.9835 GB, free: 23.36 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.2781, allocations: 7.938 kB / 0.9835 GB, free: 23.35 MB / 0.6198 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003413/0.2784, allocations: 203.2 kB / 0.9837 GB, free: 23.14 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 3.732e-05/0.2785, allocations: 29.7 kB / 0.9837 GB, free: 23.1 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/0.2785, allocations: 4 kB / 0.9837 GB, free: 23.1 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.015e-05/0.2785, allocations: 4 kB / 0.9837 GB, free: 23.09 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000131/0.2787, allocations: 27.92 kB / 0.9838 GB, free: 23.07 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.076e-05/0.2787, allocations: 7.953 kB / 0.9838 GB, free: 23.06 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.217e-05/0.2788, allocations: 23.77 kB / 0.9838 GB, free: 23.04 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.64e-05/0.2788, allocations: 8 kB / 0.9838 GB, free: 23.03 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.movMea.iSample,movMea.iSample,$PRE.movMea.counter,movMea.counter,$PRE.movMea.ySample[4],movMea.ySample[4],$PRE.movMea.ySample[3],movMea.ySample[3],$PRE.movMea.ySample[2],movMea.ySample[2],$PRE.movMea.ySample[1],movMea.ySample[1],$PRE.movMea.index,movMea.index,$PRE.movMea.y,movMea.y,$whenCondition1,movMea.sampleTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 1 * 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.0001248/0.2789, allocations: 179.7 kB / 0.984 GB, free: 22.84 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.577e-05/0.2789, allocations: 7.906 kB / 0.984 GB, free: 22.83 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.706e-05/0.279, allocations: 8.375 kB / 0.984 GB, free: 22.82 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.279, allocations: 3.984 kB / 0.984 GB, free: 22.82 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.279, allocations: 0 / 0.984 GB, free: 22.82 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.279, allocations: 3.953 kB / 0.984 GB, free: 22.82 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001317/0.2791, allocations: 181.6 kB / 0.9842 GB, free: 22.59 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.2792, allocations: 0 / 0.9842 GB, free: 22.59 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.924e-05/0.2792, allocations: 8 kB / 0.9842 GB, free: 22.58 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.664e-06/0.2792, allocations: 0 / 0.9842 GB, free: 22.58 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.337e-05/0.2792, allocations: 7.984 kB / 0.9842 GB, free: 22.57 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.2792, allocations: 0 / 0.9842 GB, free: 22.57 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.2792, allocations: 3.938 kB / 0.9842 GB, free: 22.57 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003045/0.2796, allocations: 246.8 kB / 0.9844 GB, free: 22.3 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 3.501e-05/0.2796, allocations: 85.02 kB / 0.9845 GB, free: 22.2 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.156e-05/0.2796, allocations: 11.98 kB / 0.9845 GB, free: 22.19 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.102e-05/0.2797, allocations: 8 kB / 0.9845 GB, free: 22.18 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.94e-05/0.2798, allocations: 4 kB / 0.9845 GB, free: 22.18 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.303e-05/0.2798, allocations: 7.984 kB / 0.9845 GB, free: 22.17 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.295e-05/0.2798, allocations: 83.28 kB / 0.9846 GB, free: 22.09 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2798, allocations: 0 / 0.9846 GB, free: 22.09 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002053/0.28, allocations: 24 kB / 0.9846 GB, free: 22.07 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: 10 ($whenCondition1,movMea.y,movMea.sampleTrigger,movMea.iSample,movMea.counter,movMea.index,movMea.ySample[1],movMea.ySample[2],movMea.ySample[3],movMea.ySample[4]) * Number of discrete states: 9 (movMea.iSample,movMea.y,movMea.counter,movMea.ySample[4],movMea.ySample[3],movMea.ySample[2],movMea.ySample[1],movMea.index,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.0001297/0.2802, allocations: 126.5 kB / 0.9847 GB, free: 21.93 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002769/0.2805, allocations: 171.2 kB / 0.9849 GB, free: 21.75 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.2805, allocations: 0 / 0.9849 GB, free: 21.75 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001559/0.2806, allocations: 195.9 kB / 0.9851 GB, free: 21.55 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001998/0.2808, allocations: 8 kB / 0.9851 GB, free: 21.54 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003995/0.2812, allocations: 193.1 kB / 0.9853 GB, free: 21.33 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000191/0.2815, allocations: 0.6888 MB / 0.986 GB, free: 20.61 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.903e-05/0.2815, allocations: 12.66 kB / 0.986 GB, free: 20.6 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.161e-05/0.2815, allocations: 15.44 kB / 0.986 GB, free: 20.58 MB / 0.6198 GB Notification: Performance of SimCode: time 1.072e-06/0.2815, allocations: 0 / 0.986 GB, free: 20.58 MB / 0.6198 GB Notification: Performance of Templates: time 0.003144/0.2847, allocations: 0.8567 MB / 0.9868 GB, free: 19.73 MB / 0.6198 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.makefile (rm -f Buildings_maint.8.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.sim & ./Buildings_maint.8.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe 2>&1)