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.968/1.968, allocations: 288.4 MB / 303.6 MB, free: 8.168 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.0009715/0.0009716, allocations: 177.8 kB / 372.3 MB, free: 10.13 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.423/1.423, allocations: 205.4 MB / 0.631 GB, free: 9.906 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.0007265/0.0007266, allocations: 86.36 kB / 0.7444 GB, free: 5.824 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004106/0.0004107, allocations: 19.28 kB / 0.8675 GB, free: 141.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2482/0.2486, allocations: 115.3 MB / 0.9802 GB, free: 27.35 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.001567/0.2502, allocations: 1.095 MB / 0.9812 GB, free: 26.24 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0005469/0.2508, allocations: 273 kB / 0.9815 GB, free: 25.97 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.691e-05/0.2509, allocations: 0 / 0.9815 GB, free: 25.97 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 9.019e-05/0.251, allocations: 3.938 kB / 0.9815 GB, free: 25.97 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0001442/0.2512, allocations: 7.938 kB / 0.9815 GB, free: 25.96 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001674/0.2513, allocations: 31.95 kB / 0.9815 GB, free: 25.93 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 8.976e-05/0.2514, allocations: 51.8 kB / 0.9816 GB, free: 25.88 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001082/0.2516, allocations: 11.98 kB / 0.9816 GB, free: 25.87 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001123/0.2517, allocations: 27.91 kB / 0.9816 GB, free: 25.84 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000114/0.2518, allocations: 23.92 kB / 0.9816 GB, free: 25.82 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.408e-05/0.2518, allocations: 4 kB / 0.9816 GB, free: 25.81 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 1.362e-05/0.2519, allocations: 0 / 0.9816 GB, free: 25.81 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 3.601e-05/0.2519, allocations: 11.92 kB / 0.9816 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 6.362e-05/0.252, allocations: 49.56 kB / 0.9817 GB, free: 25.75 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 8.853e-05/0.2521, allocations: 48.19 kB / 0.9817 GB, free: 25.7 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/0.2521, allocations: 0 / 0.9817 GB, free: 25.7 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.054e-06/0.2521, allocations: 0 / 0.9817 GB, free: 25.7 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.3e-06/0.2521, allocations: 0 / 0.9817 GB, free: 25.7 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.0004608/0.2526, allocations: 389 kB / 0.9821 GB, free: 25.26 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.289e-05/0.2526, allocations: 11.97 kB / 0.9821 GB, free: 25.25 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.55e-05/0.2527, allocations: 8.938 kB / 0.9821 GB, free: 25.24 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001355/0.2528, allocations: 176.3 kB / 0.9823 GB, free: 25.03 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.714e-05/0.2528, allocations: 4.375 kB / 0.9823 GB, free: 25.03 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.732e-05/0.2529, allocations: 12.36 kB / 0.9823 GB, free: 25.02 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001709/0.253, allocations: 70.17 kB / 0.9824 GB, free: 24.94 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.386e-06/0.2531, allocations: 192 / 0.9824 GB, free: 24.94 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.358e-05/0.2531, allocations: 7.938 kB / 0.9824 GB, free: 24.93 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.569e-06/0.2531, allocations: 0 / 0.9824 GB, free: 24.93 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001071/0.2532, allocations: 43.97 kB / 0.9824 GB, free: 24.89 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000374/0.2536, allocations: 284.9 kB / 0.9827 GB, free: 24.56 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001022/0.2537, allocations: 74.48 kB / 0.9828 GB, free: 24.48 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.676e-05/0.2538, allocations: 60.92 kB / 0.9828 GB, free: 24.42 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.216e-05/0.2538, allocations: 0 / 0.9828 GB, free: 24.42 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001665/0.254, allocations: 125 kB / 0.983 GB, free: 24.28 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=11): time 1.683e-06/0.254, allocations: 3.938 kB / 0.983 GB, free: 24.27 MB / 0.6198 GB Notification: Performance of matching and sorting (n=11): time 0.0003509/0.2544, allocations: 195.4 kB / 0.9831 GB, free: 24.07 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.715e-05/0.2544, allocations: 114.8 kB / 0.9833 GB, free: 23.93 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.159e-05/0.2545, allocations: 113.8 kB / 0.9834 GB, free: 23.81 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.448e-05/0.2545, allocations: 33.7 kB / 0.9834 GB, free: 23.77 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.169e-05/0.2546, allocations: 99.95 kB / 0.9835 GB, free: 23.67 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.304e-05/0.2546, allocations: 15.81 kB / 0.9835 GB, free: 23.66 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.271e-06/0.2546, allocations: 8 kB / 0.9835 GB, free: 23.65 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.759e-05/0.2547, allocations: 318.8 kB / 0.9838 GB, free: 23.33 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.969e-05/0.2548, allocations: 39.97 kB / 0.9839 GB, free: 23.29 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001005/0.2549, allocations: 104.6 kB / 0.984 GB, free: 23.16 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001861/0.2551, allocations: 219.9 kB / 0.9842 GB, free: 22.9 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.2551, allocations: 3.938 kB / 0.9842 GB, free: 22.89 MB / 0.6198 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002679/0.2553, allocations: 206.9 kB / 0.9844 GB, free: 22.68 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.984e-05/0.2554, allocations: 33.7 kB / 0.9844 GB, free: 22.64 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.2554, allocations: 4.594 kB / 0.9844 GB, free: 22.64 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.427e-05/0.2554, allocations: 4 kB / 0.9844 GB, free: 22.63 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001134/0.2555, allocations: 23.98 kB / 0.9844 GB, free: 22.61 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.047e-06/0.2556, allocations: 7.938 kB / 0.9844 GB, free: 22.6 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.152e-05/0.2556, allocations: 19.86 kB / 0.9845 GB, free: 22.58 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.565e-05/0.2557, allocations: 11.98 kB / 0.9845 GB, free: 22.57 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.0001147/0.2558, allocations: 171.4 kB / 0.9846 GB, free: 22.39 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.766e-05/0.2558, allocations: 11.91 kB / 0.9846 GB, free: 22.38 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.151e-05/0.2558, allocations: 12.36 kB / 0.9847 GB, free: 22.37 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.2558, allocations: 0 / 0.9847 GB, free: 22.37 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.2558, allocations: 4 kB / 0.9847 GB, free: 22.36 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.2559, allocations: 0 / 0.9847 GB, free: 22.36 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.885e-05/0.256, allocations: 185.6 kB / 0.9848 GB, free: 22.13 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.256, allocations: 0 / 0.9848 GB, free: 22.13 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.069e-05/0.256, allocations: 7.984 kB / 0.9848 GB, free: 22.12 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.256, allocations: 0 / 0.9848 GB, free: 22.12 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.354e-05/0.256, allocations: 4 kB / 0.9848 GB, free: 22.12 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.256, allocations: 0 / 0.9848 GB, free: 22.12 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.256, allocations: 4 kB / 0.9848 GB, free: 22.12 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002717/0.2563, allocations: 234.5 kB / 0.9851 GB, free: 21.86 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.171e-05/0.2564, allocations: 81.02 kB / 0.9851 GB, free: 21.77 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.994e-05/0.2564, allocations: 11.98 kB / 0.9852 GB, free: 21.75 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.814e-05/0.2565, allocations: 4 kB / 0.9852 GB, free: 21.75 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.012e-05/0.2565, allocations: 7.938 kB / 0.9852 GB, free: 21.74 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.483e-05/0.2565, allocations: 15.98 kB / 0.9852 GB, free: 21.73 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 2.875e-05/0.2566, allocations: 83.28 kB / 0.9853 GB, free: 21.64 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2566, allocations: 3.938 kB / 0.9853 GB, free: 21.64 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002094/0.2568, allocations: 20 kB / 0.9853 GB, free: 21.62 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.0001077/0.2569, allocations: 122 kB / 0.9854 GB, free: 21.49 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002514/0.2572, allocations: 171.2 kB / 0.9856 GB, free: 21.31 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2572, allocations: 0 / 0.9856 GB, free: 21.31 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001364/0.2573, allocations: 187.4 kB / 0.9857 GB, free: 21.12 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001846/0.2575, allocations: 15.5 kB / 0.9858 GB, free: 21.11 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000349/0.2579, allocations: 197.7 kB / 0.986 GB, free: 20.89 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001107/0.258, allocations: 0.6926 MB / 0.9866 GB, free: 20.17 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.599e-05/0.258, allocations: 8.672 kB / 0.9866 GB, free: 20.16 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.333e-05/0.2581, allocations: 7.438 kB / 0.9866 GB, free: 20.15 MB / 0.6198 GB Notification: Performance of SimCode: time 2.3e-07/0.2581, allocations: 8 kB / 0.9867 GB, free: 20.14 MB / 0.6198 GB Notification: Performance of Templates: time 0.002596/0.2607, allocations: 0.8645 MB / 0.9875 GB, free: 19.28 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)