Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_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_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.017/2.017, allocations: 391.2 MB / 407 MB, free: 10.83 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001068/0.001068, allocations: 189.3 kB / 499.1 MB, free: 4.688 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.348/1.348, allocations: 222.9 MB / 0.7948 GB, free: 15.79 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009018/0.0009018, allocations: 99.69 kB / 0.9329 GB, free: 7.102 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.001088/0.001088, allocations: 52.89 kB / 1.081 GB, free: 218.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2129/0.214, allocations: 140.6 MB / 1.218 GB, free: 117.3 MB / 0.823 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.002233/0.2163, allocations: 1.464 MB / 1.22 GB, free: 115.8 MB / 0.823 GB Notification: Performance of NFInst.instExpressions: time 0.0005009/0.2168, allocations: 284 kB / 1.22 GB, free: 115.5 MB / 0.823 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.468e-05/0.2169, allocations: 0 / 1.22 GB, free: 115.5 MB / 0.823 GB Notification: Performance of NFTyping.typeComponents: time 9.587e-05/0.217, allocations: 3.938 kB / 1.22 GB, free: 115.5 MB / 0.823 GB Notification: Performance of NFTyping.typeBindings: time 0.0001131/0.2171, allocations: 7.938 kB / 1.22 GB, free: 115.5 MB / 0.823 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001332/0.2173, allocations: 31.97 kB / 1.22 GB, free: 115.5 MB / 0.823 GB Notification: Performance of NFFlatten.flatten: time 8.305e-05/0.2174, allocations: 59.72 kB / 1.22 GB, free: 115.4 MB / 0.823 GB Notification: Performance of NFFlatten.resolveConnections: time 8.449e-05/0.2175, allocations: 8 kB / 1.22 GB, free: 115.4 MB / 0.823 GB Notification: Performance of NFEvalConstants.evaluate: time 9.128e-05/0.2176, allocations: 27.91 kB / 1.22 GB, free: 115.4 MB / 0.823 GB Notification: Performance of NFSimplifyModel.simplify: time 9.841e-05/0.2177, allocations: 31.91 kB / 1.22 GB, free: 115.3 MB / 0.823 GB Notification: Performance of NFPackage.collectConstants: time 1.832e-05/0.2177, allocations: 0 / 1.22 GB, free: 115.3 MB / 0.823 GB Notification: Performance of NFFlatten.collectFunctions: time 1.278e-05/0.2177, allocations: 4 kB / 1.22 GB, free: 115.3 MB / 0.823 GB Notification: Performance of NFScalarize.scalarize: time 3.946e-05/0.2178, allocations: 7.984 kB / 1.22 GB, free: 115.3 MB / 0.823 GB Notification: Performance of NFVerifyModel.verify: time 5.034e-05/0.2178, allocations: 27.81 kB / 1.22 GB, free: 115.3 MB / 0.823 GB Notification: Performance of NFConvertDAE.convert: time 9.29e-05/0.2179, allocations: 55.83 kB / 1.22 GB, free: 115.2 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.2179, allocations: 0 / 1.22 GB, free: 115.2 MB / 0.823 GB Notification: Performance of FrontEnd: time 6.51e-07/0.2179, allocations: 0 / 1.22 GB, free: 115.2 MB / 0.823 GB Notification: Performance of Transformations before backend: time 3.797e-06/0.2179, allocations: 0 / 1.22 GB, free: 115.2 MB / 0.823 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.0004262/0.2184, allocations: 403 kB / 1.22 GB, free: 114.8 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.531e-05/0.2184, allocations: 11.98 kB / 1.22 GB, free: 114.8 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.231e-05/0.2185, allocations: 12.84 kB / 1.22 GB, free: 114.8 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001209/0.2186, allocations: 180.2 kB / 1.221 GB, free: 114.5 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.35e-05/0.2186, allocations: 4.375 kB / 1.221 GB, free: 114.5 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.239e-05/0.2186, allocations: 8.375 kB / 1.221 GB, free: 114.5 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001494/0.2188, allocations: 66.22 kB / 1.221 GB, free: 114.5 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.275e-06/0.2188, allocations: 192 / 1.221 GB, free: 114.5 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.125e-05/0.2188, allocations: 3.938 kB / 1.221 GB, free: 114.5 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.957e-06/0.2188, allocations: 4 kB / 1.221 GB, free: 114.5 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.572e-05/0.2189, allocations: 47.97 kB / 1.221 GB, free: 114.4 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003388/0.2193, allocations: 288.7 kB / 1.221 GB, free: 114.1 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001002/0.2194, allocations: 70.5 kB / 1.221 GB, free: 114 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.49e-05/0.2195, allocations: 68.81 kB / 1.221 GB, free: 113.9 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.653e-05/0.2195, allocations: 4 kB / 1.221 GB, free: 113.9 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001634/0.2197, allocations: 113.1 kB / 1.221 GB, free: 113.8 MB / 0.823 GB Notification: Performance of pre-optimization done (n=11): time 1.383e-06/0.2197, allocations: 0 / 1.221 GB, free: 113.8 MB / 0.823 GB Notification: Performance of matching and sorting (n=11): time 0.0003261/0.22, allocations: 195.3 kB / 1.221 GB, free: 113.6 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.555e-05/0.22, allocations: 118.8 kB / 1.222 GB, free: 113.5 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.506e-05/0.2201, allocations: 105.8 kB / 1.222 GB, free: 113.3 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 1.278e-05/0.2201, allocations: 37.7 kB / 1.222 GB, free: 113.3 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 2.475e-05/0.2201, allocations: 88.14 kB / 1.222 GB, free: 113.2 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 2.252e-05/0.2202, allocations: 27.64 kB / 1.222 GB, free: 113.2 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.385e-05/0.2202, allocations: 37.7 kB / 1.222 GB, free: 113.1 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 4.328e-05/0.2203, allocations: 322.8 kB / 1.222 GB, free: 112.8 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.965e-05/0.2203, allocations: 31.98 kB / 1.222 GB, free: 112.8 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.007e-05/0.2204, allocations: 113.9 kB / 1.222 GB, free: 112.6 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001706/0.2206, allocations: 207.8 kB / 1.223 GB, free: 112.4 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/0.2206, allocations: 7.938 kB / 1.223 GB, free: 112.4 MB / 0.823 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002449/0.2209, allocations: 203 kB / 1.223 GB, free: 112.2 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 2.442e-05/0.2209, allocations: 30.95 kB / 1.223 GB, free: 112.1 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.992e-06/0.2209, allocations: 4 kB / 1.223 GB, free: 112.1 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.451e-05/0.2209, allocations: 4 kB / 1.223 GB, free: 112.1 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001032/0.2211, allocations: 23.92 kB / 1.223 GB, free: 112.1 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.233e-06/0.2211, allocations: 4 kB / 1.223 GB, free: 112.1 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.203e-05/0.2211, allocations: 11.91 kB / 1.223 GB, free: 112.1 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.179e-05/0.2212, allocations: 8.281 kB / 1.223 GB, free: 112.1 MB / 0.823 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 (movMea.iSample,$PRE.movMea.iSample,movMea.counter,$PRE.movMea.counter,movMea.ySample[4],$PRE.movMea.ySample[4],movMea.ySample[3],$PRE.movMea.ySample[3],movMea.ySample[2],$PRE.movMea.ySample[2],movMea.ySample[1],$PRE.movMea.ySample[1],movMea.index,$PRE.movMea.index,movMea.y,$PRE.movMea.y,movMea.sampleTrigger,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.347e-05/0.2213, allocations: 184 kB / 1.223 GB, free: 111.9 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.591e-05/0.2213, allocations: 4.094 kB / 1.223 GB, free: 111.9 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.986e-05/0.2213, allocations: 12.36 kB / 1.223 GB, free: 111.9 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.714e-06/0.2213, allocations: 0 / 1.223 GB, free: 111.9 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.2213, allocations: 4 kB / 1.223 GB, free: 111.9 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.2213, allocations: 0 / 1.223 GB, free: 111.9 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.035e-05/0.2214, allocations: 193.4 kB / 1.223 GB, free: 111.6 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.2214, allocations: 4 kB / 1.223 GB, free: 111.6 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.423e-05/0.2215, allocations: 4 kB / 1.223 GB, free: 111.6 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.2215, allocations: 0 / 1.223 GB, free: 111.6 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.174e-05/0.2215, allocations: 8 kB / 1.223 GB, free: 111.6 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.2215, allocations: 0 / 1.223 GB, free: 111.6 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.2215, allocations: 0 / 1.223 GB, free: 111.6 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004309/0.2219, allocations: 0.8285 MB / 1.224 GB, free: 110.7 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 2.117e-05/0.222, allocations: 89 kB / 1.224 GB, free: 110.6 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.558e-05/0.222, allocations: 8 kB / 1.224 GB, free: 110.6 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.642e-05/0.222, allocations: 4 kB / 1.224 GB, free: 110.6 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.385e-05/0.2221, allocations: 15.8 kB / 1.224 GB, free: 110.6 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.153e-05/0.2221, allocations: 8 kB / 1.224 GB, free: 110.6 MB / 0.823 GB Notification: Performance of sorting global known variables: time 2.457e-05/0.2221, allocations: 95.56 kB / 1.224 GB, free: 110.5 MB / 0.823 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2221, allocations: 0 / 1.224 GB, free: 110.5 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0003085/0.2225, allocations: 24 kB / 1.224 GB, free: 110.5 MB / 0.823 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.925e-05/0.2226, allocations: 108.9 kB / 1.224 GB, free: 110.4 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.0002285/0.2228, allocations: 171.2 kB / 1.225 GB, free: 110.2 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.2228, allocations: 0 / 1.225 GB, free: 110.2 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001244/0.2229, allocations: 179.9 kB / 1.225 GB, free: 110 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001752/0.2231, allocations: 20 kB / 1.225 GB, free: 110 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003625/0.2235, allocations: 327.7 kB / 1.225 GB, free: 109.6 MB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.793e-05/0.2236, allocations: 0.6887 MB / 1.226 GB, free: 108.9 MB / 0.823 GB Notification: Performance of simCode: alias equations: time 3.569e-05/0.2236, allocations: 12.67 kB / 1.226 GB, free: 108.9 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.44e-05/0.2237, allocations: 15.42 kB / 1.226 GB, free: 108.9 MB / 0.823 GB Notification: Performance of SimCode: time 2.21e-07/0.2237, allocations: 0 / 1.226 GB, free: 108.9 MB / 0.823 GB Notification: Performance of Templates: time 0.002506/0.2262, allocations: 0.946 MB / 1.227 GB, free: 107.9 MB / 0.823 GB make -j1 -f Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.makefile (rm -f Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; mkfifo Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; head -c 1048576 < Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe >> ../files/Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.sim & ./Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe 2>&1)