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.0008113/0.0008114, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.005901/0.005901, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.419/1.419, allocations: 205.4 MB / 222.4 MB, free: 5.559 MB / 174.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.662/1.662, allocations: 292.7 MB / 0.5502 GB, free: 14.47 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.0006666/0.0006666, allocations: 12.56 kB / 0.6743 GB, free: 25.85 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2058/0.2064, allocations: 116.3 MB / 0.7879 GB, free: 11.6 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.001432/0.2079, allocations: 1.13 MB / 0.789 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0005764/0.2085, allocations: 273.1 kB / 0.7892 GB, free: 10.19 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.789e-05/0.2086, allocations: 0 / 0.7892 GB, free: 10.19 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 7.508e-05/0.2086, allocations: 3.938 kB / 0.7893 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001141/0.2088, allocations: 15.91 kB / 0.7893 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001468/0.2089, allocations: 31.98 kB / 0.7893 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001071/0.209, allocations: 59.77 kB / 0.7894 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 7.988e-05/0.2091, allocations: 8 kB / 0.7894 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 8.944e-05/0.2092, allocations: 23.92 kB / 0.7894 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00011/0.2093, allocations: 31.89 kB / 0.7894 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.021e-05/0.2094, allocations: 0 / 0.7894 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 1.335e-05/0.2094, allocations: 7.938 kB / 0.7894 GB, free: 10.01 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.626e-05/0.2094, allocations: 4 kB / 0.7894 GB, free: 10 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.882e-05/0.2095, allocations: 57.5 kB / 0.7895 GB, free: 9.941 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001014/0.2096, allocations: 60.05 kB / 0.7895 GB, free: 9.883 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.2096, allocations: 0 / 0.7895 GB, free: 9.883 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.563e-06/0.2096, allocations: 4 kB / 0.7895 GB, free: 9.879 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.499e-06/0.2096, allocations: 0 / 0.7895 GB, free: 9.879 MB / 0.6075 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.0004934/0.2101, allocations: 385 kB / 0.7899 GB, free: 9.445 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.638e-05/0.2102, allocations: 12.03 kB / 0.7899 GB, free: 9.434 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.688e-05/0.2102, allocations: 0.9375 kB / 0.7899 GB, free: 9.434 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001781/0.2104, allocations: 188.2 kB / 0.7901 GB, free: 9.211 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.409e-05/0.2104, allocations: 4.312 kB / 0.7901 GB, free: 9.207 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.628e-05/0.2105, allocations: 8.375 kB / 0.7901 GB, free: 9.199 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001848/0.2107, allocations: 70.22 kB / 0.7902 GB, free: 9.125 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.143e-06/0.2107, allocations: 192 / 0.7902 GB, free: 9.125 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.371e-05/0.2107, allocations: 3.938 kB / 0.7902 GB, free: 9.121 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.711e-06/0.2107, allocations: 3.984 kB / 0.7902 GB, free: 9.117 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001185/0.2108, allocations: 47.98 kB / 0.7902 GB, free: 9.07 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004441/0.2113, allocations: 292.7 kB / 0.7905 GB, free: 8.734 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001253/0.2114, allocations: 70.5 kB / 0.7906 GB, free: 8.656 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.844e-05/0.2115, allocations: 68.88 kB / 0.7906 GB, free: 8.586 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.637e-05/0.2115, allocations: 0 / 0.7906 GB, free: 8.586 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000202/0.2118, allocations: 117.1 kB / 0.7908 GB, free: 8.453 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=11): time 1.452e-06/0.2118, allocations: 0 / 0.7908 GB, free: 8.453 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11): time 0.0004057/0.2122, allocations: 199.4 kB / 0.7909 GB, free: 8.246 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.028e-05/0.2123, allocations: 122.8 kB / 0.7911 GB, free: 8.102 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.772e-05/0.2123, allocations: 109.8 kB / 0.7912 GB, free: 7.984 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.211e-05/0.2124, allocations: 33.7 kB / 0.7912 GB, free: 7.945 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.494e-05/0.2124, allocations: 84.08 kB / 0.7913 GB, free: 7.859 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.447e-05/0.2125, allocations: 35.69 kB / 0.7913 GB, free: 7.824 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.336e-05/0.2125, allocations: 21.7 kB / 0.7913 GB, free: 7.797 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.95e-05/0.2126, allocations: 318.8 kB / 0.7916 GB, free: 7.477 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.861e-05/0.2127, allocations: 43.97 kB / 0.7917 GB, free: 7.434 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001183/0.2128, allocations: 107.4 kB / 0.7918 GB, free: 7.301 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002469/0.2131, allocations: 215.8 kB / 0.792 GB, free: 7.047 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/0.2131, allocations: 3.938 kB / 0.792 GB, free: 7.043 MB / 0.6075 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003113/0.2134, allocations: 203.1 kB / 0.7922 GB, free: 6.832 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.117e-05/0.2135, allocations: 33.97 kB / 0.7922 GB, free: 6.793 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.2135, allocations: 8 kB / 0.7922 GB, free: 6.785 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.351e-05/0.2135, allocations: 4 kB / 0.7922 GB, free: 6.781 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001127/0.2136, allocations: 27.92 kB / 0.7923 GB, free: 6.754 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.576e-06/0.2136, allocations: 4.312 kB / 0.7923 GB, free: 6.75 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.253e-05/0.2137, allocations: 15.88 kB / 0.7923 GB, free: 6.734 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.479e-05/0.2137, allocations: 11.94 kB / 0.7923 GB, free: 6.723 MB / 0.6075 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.000136/0.2139, allocations: 180.1 kB / 0.7925 GB, free: 6.531 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.914e-05/0.2139, allocations: 7.906 kB / 0.7925 GB, free: 6.523 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.986e-05/0.2139, allocations: 4.375 kB / 0.7925 GB, free: 6.52 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.2139, allocations: 4 kB / 0.7925 GB, free: 6.516 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.357e-06/0.2139, allocations: 0 / 0.7925 GB, free: 6.516 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.2139, allocations: 0 / 0.7925 GB, free: 6.516 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001319/0.2141, allocations: 189.5 kB / 0.7927 GB, free: 6.281 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.2141, allocations: 0 / 0.7927 GB, free: 6.281 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.09e-05/0.2141, allocations: 7.984 kB / 0.7927 GB, free: 6.273 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.2141, allocations: 0 / 0.7927 GB, free: 6.273 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.236e-05/0.2142, allocations: 8 kB / 0.7927 GB, free: 6.266 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.2142, allocations: 0 / 0.7927 GB, free: 6.266 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.2142, allocations: 3.984 kB / 0.7927 GB, free: 6.262 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003269/0.2145, allocations: 234.7 kB / 0.7929 GB, free: 6.008 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.262e-05/0.2145, allocations: 81.02 kB / 0.793 GB, free: 5.91 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.317e-05/0.2146, allocations: 15.92 kB / 0.793 GB, free: 5.895 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.264e-05/0.2147, allocations: 8 kB / 0.793 GB, free: 5.887 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.357e-05/0.2147, allocations: 11.98 kB / 0.793 GB, free: 5.875 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.021e-05/0.2147, allocations: 0 / 0.793 GB, free: 5.875 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.025e-05/0.2148, allocations: 87.28 kB / 0.7931 GB, free: 5.789 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2148, allocations: 0 / 0.7931 GB, free: 5.789 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002347/0.215, allocations: 20 kB / 0.7931 GB, free: 5.77 MB / 0.6075 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 0.0001042/0.2151, allocations: 118 kB / 0.7932 GB, free: 5.648 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002831/0.2154, allocations: 179.2 kB / 0.7934 GB, free: 5.461 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.2154, allocations: 0 / 0.7934 GB, free: 5.461 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001805/0.2156, allocations: 183.4 kB / 0.7936 GB, free: 5.27 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001928/0.2158, allocations: 12.5 kB / 0.7936 GB, free: 5.258 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003529/0.2162, allocations: 205.1 kB / 0.7938 GB, free: 5.031 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002136/0.2164, allocations: 0.6926 MB / 0.7945 GB, free: 4.312 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.428e-05/0.2164, allocations: 8.656 kB / 0.7945 GB, free: 4.297 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.449e-05/0.2165, allocations: 15.44 kB / 0.7945 GB, free: 4.285 MB / 0.6075 GB Notification: Performance of SimCode: time 2.71e-07/0.2165, allocations: 0 / 0.7945 GB, free: 4.285 MB / 0.6075 GB Notification: Performance of Templates: time 0.002889/0.2194, allocations: 0.8847 MB / 0.7953 GB, free: 3.406 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.makefile Environment - environmentSimulation: (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 -lv LOG_STATS > Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe 2>&1) Environment - environmentSimulation: