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.616/2.616, allocations: 287.3 MB / 302.3 MB, free: 8.348 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.001612/0.001612, allocations: 171.2 kB / 370.8 MB, free: 10.88 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.173/2.173, allocations: 205.4 MB / 0.6295 GB, free: 10.62 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.001099/0.0011, allocations: 91.3 kB / 0.7428 GB, free: 6.633 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0007867/0.0007871, allocations: 11.23 kB / 0.8656 GB, free: 140.9 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2289/0.2297, allocations: 115.3 MB / 0.9782 GB, free: 28.36 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.001523/0.2313, allocations: 1.091 MB / 0.9793 GB, free: 27.26 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.000606/0.2319, allocations: 273.1 kB / 0.9795 GB, free: 26.99 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.466e-05/0.232, allocations: 0 / 0.9795 GB, free: 26.99 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 8.023e-05/0.2321, allocations: 0 / 0.9795 GB, free: 26.99 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0001246/0.2322, allocations: 7.984 kB / 0.9796 GB, free: 26.98 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.000159/0.2324, allocations: 31.84 kB / 0.9796 GB, free: 26.95 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 8.766e-05/0.2325, allocations: 39.95 kB / 0.9796 GB, free: 26.91 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 8.9e-05/0.2326, allocations: 7.984 kB / 0.9796 GB, free: 26.9 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 9.678e-05/0.2327, allocations: 23.92 kB / 0.9797 GB, free: 26.88 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001082/0.2328, allocations: 23.91 kB / 0.9797 GB, free: 26.86 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.846e-05/0.2329, allocations: 7.938 kB / 0.9797 GB, free: 26.85 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 1.746e-05/0.2329, allocations: 0 / 0.9797 GB, free: 26.85 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.969e-05/0.2329, allocations: 15.97 kB / 0.9797 GB, free: 26.83 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.405e-05/0.233, allocations: 33.7 kB / 0.9797 GB, free: 26.79 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 8.397e-05/0.2331, allocations: 44.08 kB / 0.9798 GB, free: 26.75 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.2331, allocations: 0 / 0.9798 GB, free: 26.75 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.473e-06/0.2331, allocations: 0 / 0.9798 GB, free: 26.75 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.969e-06/0.2331, allocations: 4 kB / 0.9798 GB, free: 26.75 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.0004598/0.2336, allocations: 388.8 kB / 0.9801 GB, free: 26.31 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/0.2336, allocations: 8.031 kB / 0.9802 GB, free: 26.3 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.023e-05/0.2337, allocations: 8 kB / 0.9802 GB, free: 26.3 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001464/0.2338, allocations: 178.9 kB / 0.9803 GB, free: 26.08 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.869e-05/0.2339, allocations: 4 kB / 0.9803 GB, free: 26.08 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.2e-05/0.2339, allocations: 8 kB / 0.9803 GB, free: 26.07 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002103/0.2341, allocations: 77.66 kB / 0.9804 GB, free: 25.99 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.2341, allocations: 0 / 0.9804 GB, free: 25.99 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.374e-05/0.2342, allocations: 0 / 0.9804 GB, free: 25.99 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.229e-06/0.2342, allocations: 0 / 0.9804 GB, free: 25.99 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001736/0.2344, allocations: 51.91 kB / 0.9805 GB, free: 25.94 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004637/0.2348, allocations: 296.8 kB / 0.9808 GB, free: 25.6 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000161/0.235, allocations: 66.56 kB / 0.9808 GB, free: 25.52 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.434e-05/0.2351, allocations: 3.984 kB / 0.9808 GB, free: 25.52 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002364/0.2353, allocations: 125.2 kB / 0.9809 GB, free: 25.38 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=11): time 2.084e-06/0.2353, allocations: 0 / 0.9809 GB, free: 25.38 MB / 0.6198 GB Notification: Performance of matching and sorting (n=11): time 0.0008335/0.2362, allocations: 292.3 kB / 0.9812 GB, free: 25.06 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.389e-05/0.2363, allocations: 110.8 kB / 0.9813 GB, free: 24.93 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001275/0.2364, allocations: 113.8 kB / 0.9814 GB, free: 24.81 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 3.826e-05/0.2365, allocations: 33.7 kB / 0.9815 GB, free: 24.77 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 5.463e-05/0.2366, allocations: 92.06 kB / 0.9816 GB, free: 24.68 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 5.415e-05/0.2366, allocations: 23.77 kB / 0.9816 GB, free: 24.65 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.515e-05/0.2367, allocations: 4 kB / 0.9816 GB, free: 24.65 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.89e-05/0.2368, allocations: 326.8 kB / 0.9819 GB, free: 24.32 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002024/0.237, allocations: 39.97 kB / 0.9819 GB, free: 24.28 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002813/0.2373, allocations: 108.5 kB / 0.982 GB, free: 24.14 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002677/0.2376, allocations: 81.72 kB / 0.9821 GB, free: 24.06 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.356e-06/0.2376, allocations: 7.984 kB / 0.9821 GB, free: 24.05 MB / 0.6198 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0007026/0.2383, allocations: 199.2 kB / 0.9823 GB, free: 23.84 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 4.855e-05/0.2384, allocations: 43.45 kB / 0.9823 GB, free: 23.8 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.339e-05/0.2384, allocations: 4 kB / 0.9824 GB, free: 23.79 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.389e-05/0.2385, allocations: 4 kB / 0.9824 GB, free: 23.79 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000265/0.2387, allocations: 27.88 kB / 0.9824 GB, free: 23.76 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.433e-05/0.2388, allocations: 4 kB / 0.9824 GB, free: 23.76 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002006/0.239, allocations: 19.83 kB / 0.9824 GB, free: 23.74 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.502e-05/0.2391, allocations: 8 kB / 0.9824 GB, free: 23.73 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.0002595/0.2393, allocations: 171.5 kB / 0.9826 GB, free: 23.55 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.413e-05/0.2394, allocations: 7.906 kB / 0.9826 GB, free: 23.54 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.95e-05/0.2395, allocations: 4.375 kB / 0.9826 GB, free: 23.54 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.612e-06/0.2395, allocations: 4 kB / 0.9826 GB, free: 23.54 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.07e-05/0.2395, allocations: 3.953 kB / 0.9826 GB, free: 23.53 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.564e-06/0.2395, allocations: 3.984 kB / 0.9826 GB, free: 23.53 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002821/0.2398, allocations: 185.6 kB / 0.9828 GB, free: 23.3 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.2399, allocations: 0 / 0.9828 GB, free: 23.3 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001145/0.24, allocations: 4 kB / 0.9828 GB, free: 23.29 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.662e-06/0.24, allocations: 4 kB / 0.9828 GB, free: 23.29 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.615e-05/0.2401, allocations: 7.984 kB / 0.9828 GB, free: 23.28 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.868e-06/0.2401, allocations: 3.938 kB / 0.9828 GB, free: 23.28 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.055e-06/0.2401, allocations: 0 / 0.9828 GB, free: 23.28 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008235/0.241, allocations: 230.6 kB / 0.983 GB, free: 23.03 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 4.418e-05/0.241, allocations: 85.02 kB / 0.9831 GB, free: 22.93 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.471e-05/0.2411, allocations: 11.98 kB / 0.9831 GB, free: 22.91 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001498/0.2413, allocations: 8 kB / 0.9831 GB, free: 22.91 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.816e-05/0.2414, allocations: 11.94 kB / 0.9831 GB, free: 22.89 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.889e-05/0.2414, allocations: 7.984 kB / 0.9831 GB, free: 22.89 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 5.639e-05/0.2415, allocations: 83.28 kB / 0.9832 GB, free: 22.8 MB / 0.6198 GB Notification: Performance of sort global known variables: time 5.31e-07/0.2415, allocations: 0 / 0.9832 GB, free: 22.8 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.000687/0.2422, allocations: 31.89 kB / 0.9832 GB, free: 22.77 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.0002339/0.2425, allocations: 115.9 kB / 0.9834 GB, free: 22.65 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0007335/0.2432, allocations: 175.2 kB / 0.9835 GB, free: 22.46 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 6.232e-06/0.2432, allocations: 0 / 0.9835 GB, free: 22.46 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0004217/0.2437, allocations: 191.3 kB / 0.9837 GB, free: 22.27 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003389/0.244, allocations: 10.45 kB / 0.9837 GB, free: 22.26 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007271/0.2448, allocations: 189.4 kB / 0.9839 GB, free: 22.05 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001796/0.245, allocations: 0.7004 MB / 0.9846 GB, free: 21.32 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 7.542e-05/0.2451, allocations: 12.66 kB / 0.9846 GB, free: 21.3 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.267e-05/0.2452, allocations: 11.44 kB / 0.9846 GB, free: 21.29 MB / 0.6198 GB Notification: Performance of SimCode: time 1.022e-06/0.2452, allocations: 0 / 0.9846 GB, free: 21.29 MB / 0.6198 GB Notification: Performance of Templates: time 0.00517/0.2503, allocations: 0.8482 MB / 0.9854 GB, free: 20.45 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)