Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.MovingMean.conf.json Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.MovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.MovingMean") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.01054/0.01055, allocations: 221.9 kB / 15.17 MB, free: 6 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo): time 0.001097/0.001097, allocations: 180.9 kB / 16.06 MB, free: 5.871 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo): time 3.752/3.752, allocations: 389.1 MB / 405.9 MB, free: 13.31 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo): time 4.31/4.31, allocations: 472.3 MB / 0.9018 GB, free: 3.703 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004869/0.0004871, allocations: 12 kB / 1.008 GB, free: 10.3 MB / 0.6667 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.629/0.6295, allocations: 98.7 MB / 1.104 GB, free: 212.7 MB / 0.7292 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.001447/0.631, allocations: 1.104 MB / 1.105 GB, free: 212.1 MB / 0.7292 GB Notification: Performance of NFInst.instExpressions: time 0.0005515/0.6316, allocations: 257.3 kB / 1.105 GB, free: 212 MB / 0.7292 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.462e-05/0.6316, allocations: 7.875 kB / 1.105 GB, free: 212 MB / 0.7292 GB Notification: Performance of NFTyping.typeComponents: time 6.976e-05/0.6317, allocations: 3.938 kB / 1.105 GB, free: 212 MB / 0.7292 GB Notification: Performance of NFTyping.typeBindings: time 0.0001165/0.6318, allocations: 14.25 kB / 1.105 GB, free: 212 MB / 0.7292 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001293/0.632, allocations: 22.55 kB / 1.105 GB, free: 212 MB / 0.7292 GB Notification: Performance of NFFlatten.flatten: time 9.29e-05/0.6321, allocations: 51.89 kB / 1.105 GB, free: 211.9 MB / 0.7292 GB Notification: Performance of NFFlatten.resolveConnections: time 8.02e-05/0.6322, allocations: 5.609 kB / 1.105 GB, free: 211.9 MB / 0.7292 GB Notification: Performance of NFEvalConstants.evaluate: time 9.211e-05/0.6323, allocations: 32.28 kB / 1.105 GB, free: 211.9 MB / 0.7292 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001034/0.6324, allocations: 33.38 kB / 1.106 GB, free: 211.9 MB / 0.7292 GB Notification: Performance of NFPackage.collectConstants: time 1.842e-05/0.6324, allocations: 2.344 kB / 1.106 GB, free: 211.9 MB / 0.7292 GB Notification: Performance of NFFlatten.collectFunctions: time 1.619e-05/0.6325, allocations: 2.625 kB / 1.106 GB, free: 211.9 MB / 0.7292 GB Notification: Performance of NFScalarize.scalarize: time 2.785e-05/0.6325, allocations: 7.531 kB / 1.106 GB, free: 211.9 MB / 0.7292 GB Notification: Performance of NFVerifyModel.verify: time 4.222e-05/0.6326, allocations: 40.06 kB / 1.106 GB, free: 211.9 MB / 0.7292 GB Notification: Performance of NFConvertDAE.convert: time 8.603e-05/0.6327, allocations: 37.86 kB / 1.106 GB, free: 211.9 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.6327, allocations: 3.594 kB / 1.106 GB, free: 211.9 MB / 0.7292 GB Notification: Performance of FrontEnd: time 2.071e-06/0.6327, allocations: 0.9688 kB / 1.106 GB, free: 211.9 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 5.199e-06/0.6327, allocations: 0 / 1.106 GB, free: 211.9 MB / 0.7292 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.0004099/0.6331, allocations: 384.9 kB / 1.106 GB, free: 211.5 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.672e-05/0.6332, allocations: 8.844 kB / 1.106 GB, free: 211.5 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.928e-05/0.6332, allocations: 7.906 kB / 1.106 GB, free: 211.5 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001328/0.6334, allocations: 182.8 kB / 1.106 GB, free: 211.2 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.042e-05/0.6334, allocations: 5.406 kB / 1.106 GB, free: 211.2 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.104e-05/0.6334, allocations: 11.03 kB / 1.106 GB, free: 211.2 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001966/0.6336, allocations: 76.03 kB / 1.106 GB, free: 211.2 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.025e-05/0.6337, allocations: 0 / 1.106 GB, free: 211.2 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.489e-05/0.6337, allocations: 6.188 kB / 1.106 GB, free: 211.2 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.569e-06/0.6337, allocations: 0 / 1.106 GB, free: 211.2 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001475/0.6339, allocations: 50.48 kB / 1.106 GB, free: 211.2 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004524/0.6343, allocations: 286.9 kB / 1.107 GB, free: 210.9 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001452/0.6345, allocations: 71.86 kB / 1.107 GB, free: 210.9 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001399/0.6346, allocations: 61.2 kB / 1.107 GB, free: 210.8 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 2.454e-05/0.6347, allocations: 2.406 kB / 1.107 GB, free: 210.8 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000225/0.6349, allocations: 123 kB / 1.107 GB, free: 210.7 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=11): time 2.745e-06/0.6349, allocations: 0 / 1.107 GB, free: 210.7 MB / 0.7292 GB Notification: Performance of matching and sorting (n=11): time 0.0004919/0.6354, allocations: 210.7 kB / 1.107 GB, free: 210.6 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.95e-05/0.6355, allocations: 117.9 kB / 1.107 GB, free: 210.5 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.08e-05/0.6356, allocations: 113.4 kB / 1.107 GB, free: 210.4 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 2.134e-05/0.6356, allocations: 28.67 kB / 1.107 GB, free: 210.3 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 3.401e-05/0.6357, allocations: 87.73 kB / 1.107 GB, free: 210.3 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 3.6e-05/0.6357, allocations: 27.39 kB / 1.107 GB, free: 210.2 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.113e-06/0.6357, allocations: 9.312 kB / 1.107 GB, free: 210.2 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 5.69e-05/0.6358, allocations: 319.4 kB / 1.108 GB, free: 209.9 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001154/0.6359, allocations: 44.31 kB / 1.108 GB, free: 209.9 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000145/0.6361, allocations: 107.7 kB / 1.108 GB, free: 209.8 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001518/0.6362, allocations: 87.77 kB / 1.108 GB, free: 209.8 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.475e-06/0.6363, allocations: 1.062 kB / 1.108 GB, free: 209.8 MB / 0.7292 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004274/0.6367, allocations: 206.8 kB / 1.108 GB, free: 209.6 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 4.377e-05/0.6368, allocations: 37.94 kB / 1.108 GB, free: 209.6 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.6e-05/0.6368, allocations: 6.141 kB / 1.108 GB, free: 209.6 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.269e-05/0.6368, allocations: 7.375 kB / 1.108 GB, free: 209.6 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002272/0.6371, allocations: 26.86 kB / 1.108 GB, free: 209.6 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.457e-05/0.6371, allocations: 3.062 kB / 1.108 GB, free: 209.6 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001859/0.6373, allocations: 16.08 kB / 1.108 GB, free: 209.6 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.634e-05/0.6374, allocations: 11.59 kB / 1.108 GB, free: 209.6 MB / 0.7292 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.0002248/0.6376, allocations: 176 kB / 1.108 GB, free: 209.4 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.12e-05/0.6377, allocations: 6.938 kB / 1.108 GB, free: 209.4 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.04e-05/0.6377, allocations: 5.781 kB / 1.108 GB, free: 209.4 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.281e-06/0.6377, allocations: 3.953 kB / 1.108 GB, free: 209.4 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.6378, allocations: 0 / 1.108 GB, free: 209.4 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.581e-06/0.6378, allocations: 5.484 kB / 1.108 GB, free: 209.4 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002058/0.638, allocations: 192.4 kB / 1.109 GB, free: 209.2 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.923e-06/0.638, allocations: 0 / 1.109 GB, free: 209.2 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.766e-05/0.6381, allocations: 4.625 kB / 1.109 GB, free: 209.2 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.582e-06/0.6382, allocations: 1.406 kB / 1.109 GB, free: 209.2 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.009e-05/0.6382, allocations: 7.25 kB / 1.109 GB, free: 209.2 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.291e-06/0.6382, allocations: 0.9375 kB / 1.109 GB, free: 209.2 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.463e-06/0.6382, allocations: 8.188 kB / 1.109 GB, free: 209.2 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007232/0.639, allocations: 228.5 kB / 1.109 GB, free: 209.1 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 2.679e-05/0.639, allocations: 78.23 kB / 1.109 GB, free: 209 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.319e-05/0.6391, allocations: 18.05 kB / 1.109 GB, free: 209 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.396e-05/0.6392, allocations: 11.31 kB / 1.109 GB, free: 209 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.991e-05/0.6393, allocations: 7.5 kB / 1.109 GB, free: 209 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.914e-05/0.6393, allocations: 7.594 kB / 1.109 GB, free: 209 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 4.342e-05/0.6393, allocations: 85.39 kB / 1.109 GB, free: 208.9 MB / 0.7292 GB Notification: Performance of sort global known variables: time 6.52e-07/0.6393, allocations: 0 / 1.109 GB, free: 208.9 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0003429/0.6397, allocations: 25.84 kB / 1.109 GB, free: 208.9 MB / 0.7292 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.0001292/0.6398, allocations: 124.4 kB / 1.109 GB, free: 208.8 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0003731/0.6402, allocations: 170.2 kB / 1.109 GB, free: 208.7 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.44e-06/0.6402, allocations: 0 / 1.109 GB, free: 208.7 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0002249/0.6405, allocations: 190.7 kB / 1.11 GB, free: 208.6 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002574/0.6408, allocations: 10.88 kB / 1.11 GB, free: 208.6 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004363/0.6412, allocations: 206.5 kB / 1.11 GB, free: 208.4 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001413/0.6414, allocations: 0.6911 MB / 1.11 GB, free: 207.7 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 5.051e-05/0.6414, allocations: 12.03 kB / 1.11 GB, free: 207.7 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.321e-05/0.6415, allocations: 11.34 kB / 1.11 GB, free: 207.7 MB / 0.7292 GB Notification: Performance of SimCode: time 1.514e-06/0.6415, allocations: 3.938 kB / 1.11 GB, free: 207.7 MB / 0.7292 GB Notification: Performance of Templates: time 0.003711/0.6452, allocations: 0.8547 MB / 1.111 GB, free: 207.7 MB / 0.7292 GB