Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001269/0.001269, allocations: 107.5 kB / 16.35 MB, free: 5.879 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001244/0.001245, allocations: 194.3 kB / 17.29 MB, free: 5.516 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.29/1.29, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.728/1.728, allocations: 292.3 MB / 0.5496 GB, free: 17.67 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001421/0.001421, allocations: 71.91 kB / 0.6729 GB, free: 5.789 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1932/0.1946, allocations: 114.6 MB / 0.7848 GB, free: 3.121 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.002408/0.1971, allocations: 1.396 MB / 0.7862 GB, free: 1.711 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.000511/0.1976, allocations: 284 kB / 0.7864 GB, free: 1.43 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.006e-05/0.1977, allocations: 0 / 0.7864 GB, free: 1.43 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 8.563e-05/0.1978, allocations: 3.938 kB / 0.7864 GB, free: 1.426 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.00011/0.1979, allocations: 19.86 kB / 0.7865 GB, free: 1.406 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001334/0.198, allocations: 27.91 kB / 0.7865 GB, free: 1.379 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001227/0.1982, allocations: 67.84 kB / 0.7865 GB, free: 1.312 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 8.352e-05/0.1982, allocations: 4 kB / 0.7865 GB, free: 1.309 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 8.948e-05/0.1983, allocations: 31.84 kB / 0.7866 GB, free: 1.277 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001014/0.1984, allocations: 31.91 kB / 0.7866 GB, free: 1.246 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.198e-05/0.1985, allocations: 7.938 kB / 0.7866 GB, free: 1.238 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 1.549e-05/0.1985, allocations: 4 kB / 0.7866 GB, free: 1.234 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 4.061e-05/0.1985, allocations: 11.98 kB / 0.7866 GB, free: 1.223 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 5.558e-05/0.1986, allocations: 27.88 kB / 0.7867 GB, free: 1.195 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001106/0.1987, allocations: 63.77 kB / 0.7867 GB, free: 1.133 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.1987, allocations: 0 / 0.7867 GB, free: 1.133 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.054e-06/0.1987, allocations: 0 / 0.7867 GB, free: 1.133 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 6.482e-06/0.1987, allocations: 0 / 0.7867 GB, free: 1.133 MB / 0.6544 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.0005313/0.1993, allocations: 401 kB / 0.7871 GB, free: 0.6836 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.573e-05/0.1993, allocations: 8.031 kB / 0.7871 GB, free: 0.6758 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.674e-05/0.1994, allocations: 8.844 kB / 0.7871 GB, free: 0.668 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001451/0.1995, allocations: 180.2 kB / 0.7873 GB, free: 464 kB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.61e-05/0.1996, allocations: 4.359 kB / 0.7873 GB, free: 460 kB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.6e-05/0.1996, allocations: 8.375 kB / 0.7873 GB, free: 452 kB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001586/0.1997, allocations: 66.17 kB / 0.7874 GB, free: 380 kB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.595e-06/0.1998, allocations: 4.188 kB / 0.7874 GB, free: 376 kB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.321e-05/0.1998, allocations: 11.94 kB / 0.7874 GB, free: 364 kB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.1998, allocations: 0 / 0.7874 GB, free: 364 kB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001126/0.1999, allocations: 35.97 kB / 0.7874 GB, free: 328 kB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3188/0.5187, allocations: 284.8 kB / 0.7877 GB, free: 48.78 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001899/0.519, allocations: 75.95 kB / 0.7878 GB, free: 48.75 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.355e-05/0.5191, allocations: 57.17 kB / 0.7878 GB, free: 48.75 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.28e-05/0.5191, allocations: 1.375 kB / 0.7878 GB, free: 48.75 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002005/0.5193, allocations: 121.9 kB / 0.7879 GB, free: 48.67 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=11): time 2.414e-06/0.5193, allocations: 0 / 0.7879 GB, free: 48.67 MB / 0.6544 GB Notification: Performance of matching and sorting (n=11): time 0.0003802/0.5197, allocations: 199.1 kB / 0.7881 GB, free: 48.61 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.377e-05/0.5198, allocations: 114 kB / 0.7882 GB, free: 48.48 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.903e-05/0.5198, allocations: 109.2 kB / 0.7883 GB, free: 48.38 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.631e-05/0.5199, allocations: 33.92 kB / 0.7884 GB, free: 48.35 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 2.808e-05/0.5199, allocations: 90.44 kB / 0.7885 GB, free: 48.27 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.572e-05/0.5199, allocations: 25.31 kB / 0.7885 GB, free: 48.27 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.786e-05/0.52, allocations: 34.12 kB / 0.7885 GB, free: 48.25 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 4.616e-05/0.52, allocations: 321.6 kB / 0.7888 GB, free: 47.94 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.904e-05/0.5201, allocations: 38.34 kB / 0.7889 GB, free: 47.94 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.079e-05/0.5202, allocations: 101.8 kB / 0.7889 GB, free: 47.86 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001806/0.5204, allocations: 219.5 kB / 0.7892 GB, free: 47.72 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.5204, allocations: 0 / 0.7892 GB, free: 47.72 MB / 0.6544 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002583/0.5207, allocations: 202.5 kB / 0.7894 GB, free: 47.66 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.983e-05/0.5207, allocations: 33.95 kB / 0.7894 GB, free: 47.62 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.5207, allocations: 2.625 kB / 0.7894 GB, free: 47.62 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.837e-05/0.5207, allocations: 2.625 kB / 0.7894 GB, free: 47.62 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001227/0.5209, allocations: 24.59 kB / 0.7894 GB, free: 47.62 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.799e-06/0.5209, allocations: 7.797 kB / 0.7894 GB, free: 47.62 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.195e-05/0.521, allocations: 22.28 kB / 0.7894 GB, free: 47.62 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.275e-05/0.521, allocations: 7.875 kB / 0.7894 GB, free: 47.62 MB / 0.6544 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 0.0001116/0.5211, allocations: 173.1 kB / 0.7896 GB, free: 47.47 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.787e-05/0.5211, allocations: 6.281 kB / 0.7896 GB, free: 47.47 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.504e-05/0.5212, allocations: 6.844 kB / 0.7896 GB, free: 47.47 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.5212, allocations: 0 / 0.7896 GB, free: 47.47 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.277e-06/0.5212, allocations: 0.5 kB / 0.7896 GB, free: 47.47 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.5212, allocations: 3.938 kB / 0.7896 GB, free: 47.47 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.175e-05/0.5213, allocations: 195.8 kB / 0.7898 GB, free: 47.28 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.5213, allocations: 0.7188 kB / 0.7898 GB, free: 47.28 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.83e-05/0.5213, allocations: 8.359 kB / 0.7898 GB, free: 47.28 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.5213, allocations: 2.625 kB / 0.7898 GB, free: 47.28 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.329e-05/0.5214, allocations: 9.062 kB / 0.7898 GB, free: 47.28 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.5214, allocations: 0 / 0.7898 GB, free: 47.28 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.5214, allocations: 2.844 kB / 0.7898 GB, free: 47.28 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002681/0.5216, allocations: 229.3 kB / 0.7901 GB, free: 47.18 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 1.96e-05/0.5217, allocations: 80.67 kB / 0.7901 GB, free: 47.08 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.939e-05/0.5217, allocations: 13.12 kB / 0.7901 GB, free: 47.08 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.005e-05/0.5218, allocations: 7.438 kB / 0.7902 GB, free: 47.08 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.31e-05/0.5218, allocations: 6.969 kB / 0.7902 GB, free: 47.08 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.242e-05/0.5218, allocations: 9.547 kB / 0.7902 GB, free: 47.08 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 2.627e-05/0.5219, allocations: 88.75 kB / 0.7903 GB, free: 47 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5219, allocations: 0 / 0.7903 GB, free: 47 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002264/0.5221, allocations: 21.22 kB / 0.7903 GB, free: 47 MB / 0.6544 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 9.801e-05/0.5222, allocations: 111.1 kB / 0.7904 GB, free: 46.92 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.000262/0.5225, allocations: 174.8 kB / 0.7905 GB, free: 46.86 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.5225, allocations: 0.8125 kB / 0.7905 GB, free: 46.86 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.000145/0.5226, allocations: 183.6 kB / 0.7907 GB, free: 46.79 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001948/0.5228, allocations: 14.3 kB / 0.7907 GB, free: 46.79 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003295/0.5232, allocations: 175.7 kB / 0.7909 GB, free: 46.68 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.781e-05/0.5233, allocations: 0.6911 MB / 0.7916 GB, free: 45.98 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 3.995e-05/0.5233, allocations: 8.969 kB / 0.7916 GB, free: 45.98 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.614e-05/0.5234, allocations: 10.12 kB / 0.7916 GB, free: 45.98 MB / 0.6544 GB Notification: Performance of SimCode: time 3.2e-07/0.5234, allocations: 0 / 0.7916 GB, free: 45.98 MB / 0.6544 GB Notification: Performance of Templates: time 0.002839/0.5262, allocations: 0.9675 MB / 0.7925 GB, free: 45.96 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.makefile (rm -f Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; mkfifo Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; head -c 1048576 < Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe >> ../files/Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.sim & ./Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe 2>&1)