Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.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.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_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_8.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.66/2.66, allocations: 287.5 MB / 302.4 MB, free: 8.301 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.001415/0.001415, allocations: 181.3 kB / 371 MB, free: 10.86 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.065/2.065, allocations: 205.4 MB / 0.6297 GB, free: 10.48 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.0008925/0.0008924, allocations: 97.7 kB / 0.743 GB, free: 6.48 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004833/0.0004835, allocations: 16.27 kB / 0.8658 GB, free: 140.6 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2253/0.2258, allocations: 115.3 MB / 0.9784 GB, free: 28.31 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.001592/0.2274, allocations: 1.099 MB / 0.9795 GB, free: 27.2 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0006144/0.2281, allocations: 265 kB / 0.9797 GB, free: 26.93 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.643e-05/0.2282, allocations: 3.938 kB / 0.9797 GB, free: 26.93 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 7.858e-05/0.2283, allocations: 3.984 kB / 0.9797 GB, free: 26.93 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0001393/0.2284, allocations: 7.938 kB / 0.9797 GB, free: 26.92 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001485/0.2286, allocations: 31.91 kB / 0.9798 GB, free: 26.89 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 9.43e-05/0.2287, allocations: 51.84 kB / 0.9798 GB, free: 26.84 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 8.544e-05/0.2288, allocations: 4 kB / 0.9798 GB, free: 26.83 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 9.625e-05/0.2289, allocations: 27.91 kB / 0.9798 GB, free: 26.8 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001047/0.229, allocations: 31.84 kB / 0.9799 GB, free: 26.77 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.46e-05/0.229, allocations: 0 / 0.9799 GB, free: 26.77 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 1.997e-05/0.2291, allocations: 4 kB / 0.9799 GB, free: 26.77 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 3.008e-05/0.2291, allocations: 11.98 kB / 0.9799 GB, free: 26.76 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.254e-05/0.2292, allocations: 33.64 kB / 0.9799 GB, free: 26.72 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 8.602e-05/0.2293, allocations: 44.19 kB / 0.98 GB, free: 26.68 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.2293, allocations: 0 / 0.98 GB, free: 26.68 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.365e-06/0.2293, allocations: 0 / 0.98 GB, free: 26.68 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.478e-06/0.2293, allocations: 0 / 0.98 GB, free: 26.68 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.0004545/0.2298, allocations: 392.8 kB / 0.9803 GB, free: 26.24 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.887e-05/0.2298, allocations: 8.031 kB / 0.9803 GB, free: 26.23 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.254e-05/0.2299, allocations: 7.938 kB / 0.9803 GB, free: 26.22 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001446/0.23, allocations: 186.8 kB / 0.9805 GB, free: 26 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.798e-05/0.23, allocations: 4 kB / 0.9805 GB, free: 26 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.715e-05/0.2301, allocations: 8 kB / 0.9805 GB, free: 25.99 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002095/0.2303, allocations: 77.61 kB / 0.9806 GB, free: 25.91 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.2303, allocations: 0 / 0.9806 GB, free: 25.91 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.436e-05/0.2303, allocations: 4 kB / 0.9806 GB, free: 25.9 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.989e-06/0.2303, allocations: 0 / 0.9806 GB, free: 25.9 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001731/0.2305, allocations: 47.97 kB / 0.9807 GB, free: 25.86 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004743/0.231, allocations: 292.8 kB / 0.9809 GB, free: 25.52 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002019/0.2312, allocations: 66.56 kB / 0.981 GB, free: 25.45 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001409/0.2314, allocations: 64.97 kB / 0.9811 GB, free: 25.38 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.418e-05/0.2314, allocations: 3.938 kB / 0.9811 GB, free: 25.38 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002436/0.2317, allocations: 121.1 kB / 0.9812 GB, free: 25.24 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=11): time 2.215e-06/0.2317, allocations: 0 / 0.9812 GB, free: 25.24 MB / 0.6198 GB Notification: Performance of matching and sorting (n=11): time 0.0005579/0.2323, allocations: 207.3 kB / 0.9814 GB, free: 25.02 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.261e-05/0.2323, allocations: 114.8 kB / 0.9815 GB, free: 24.89 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.091e-05/0.2324, allocations: 113.8 kB / 0.9816 GB, free: 24.77 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.316e-05/0.2325, allocations: 37.64 kB / 0.9816 GB, free: 24.72 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.645e-05/0.2325, allocations: 88.06 kB / 0.9817 GB, free: 24.63 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 3.524e-05/0.2326, allocations: 31.7 kB / 0.9817 GB, free: 24.6 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.828e-06/0.2326, allocations: 0 / 0.9817 GB, free: 24.6 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.688e-05/0.2327, allocations: 322.8 kB / 0.9821 GB, free: 24.28 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001271/0.2328, allocations: 39.97 kB / 0.9821 GB, free: 24.24 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001595/0.233, allocations: 102.5 kB / 0.9822 GB, free: 24.11 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001708/0.2331, allocations: 89.62 kB / 0.9823 GB, free: 24.02 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.247e-06/0.2332, allocations: 0 / 0.9823 GB, free: 24.02 MB / 0.6198 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004386/0.2336, allocations: 211.3 kB / 0.9825 GB, free: 23.8 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 3.475e-05/0.2337, allocations: 35.73 kB / 0.9825 GB, free: 23.76 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.775e-06/0.2337, allocations: 0 / 0.9825 GB, free: 23.76 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.049e-05/0.2337, allocations: 7.953 kB / 0.9825 GB, free: 23.75 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001867/0.2339, allocations: 27.92 kB / 0.9825 GB, free: 23.72 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.002e-05/0.2339, allocations: 4 kB / 0.9825 GB, free: 23.72 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001131/0.2341, allocations: 19.78 kB / 0.9826 GB, free: 23.7 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.113e-05/0.2341, allocations: 11.98 kB / 0.9826 GB, free: 23.69 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.0001617/0.2343, allocations: 167.5 kB / 0.9827 GB, free: 23.51 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.766e-05/0.2343, allocations: 11.91 kB / 0.9827 GB, free: 23.5 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.996e-05/0.2343, allocations: 8.375 kB / 0.9828 GB, free: 23.49 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.2343, allocations: 0 / 0.9828 GB, free: 23.49 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.2344, allocations: 3.953 kB / 0.9828 GB, free: 23.49 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.2344, allocations: 3.984 kB / 0.9828 GB, free: 23.48 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001415/0.2345, allocations: 189.6 kB / 0.9829 GB, free: 23.25 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.2345, allocations: 0 / 0.9829 GB, free: 23.25 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.981e-05/0.2346, allocations: 8 kB / 0.983 GB, free: 23.24 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.2346, allocations: 0 / 0.983 GB, free: 23.24 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.848e-05/0.2347, allocations: 7.984 kB / 0.983 GB, free: 23.23 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.714e-06/0.2347, allocations: 0 / 0.983 GB, free: 23.23 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.2347, allocations: 0 / 0.983 GB, free: 23.23 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004784/0.2352, allocations: 238.8 kB / 0.9832 GB, free: 22.98 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 3.559e-05/0.2352, allocations: 85.02 kB / 0.9833 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.43e-05/0.2353, allocations: 11.98 kB / 0.9833 GB, free: 22.86 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.674e-05/0.2354, allocations: 4 kB / 0.9833 GB, free: 22.86 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.176e-05/0.2354, allocations: 8 kB / 0.9833 GB, free: 22.85 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.867e-05/0.2355, allocations: 3.984 kB / 0.9833 GB, free: 22.85 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 4.36e-05/0.2355, allocations: 91.23 kB / 0.9834 GB, free: 22.76 MB / 0.6198 GB Notification: Performance of sort global known variables: time 4.91e-07/0.2355, allocations: 0 / 0.9834 GB, free: 22.76 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002982/0.2358, allocations: 20 kB / 0.9834 GB, free: 22.74 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.0001487/0.236, allocations: 119.9 kB / 0.9835 GB, free: 22.61 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0004207/0.2364, allocations: 171.2 kB / 0.9837 GB, free: 22.43 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.2365, allocations: 4 kB / 0.9837 GB, free: 22.43 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0002399/0.2367, allocations: 183.9 kB / 0.9839 GB, free: 22.23 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002685/0.237, allocations: 19.94 kB / 0.9839 GB, free: 22.21 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004896/0.2375, allocations: 193.1 kB / 0.9841 GB, free: 22 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001487/0.2377, allocations: 0.6926 MB / 0.9847 GB, free: 21.28 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 6.292e-05/0.2377, allocations: 16.92 kB / 0.9848 GB, free: 21.26 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.551e-05/0.2378, allocations: 11.44 kB / 0.9848 GB, free: 21.25 MB / 0.6198 GB Notification: Performance of SimCode: time 1.163e-06/0.2378, allocations: 0 / 0.9848 GB, free: 21.25 MB / 0.6198 GB Notification: Performance of Templates: time 0.004032/0.2418, allocations: 0.8475 MB / 0.9856 GB, free: 20.41 MB / 0.6198 GB make -j1 -f Buildings_8.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.makefile (rm -f Buildings_8.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; mkfifo Buildings_8.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe >> ../files/Buildings_8.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.sim & ./Buildings_8.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe 2>&1)