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 ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 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 Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.MovingMean,fileNamePrefix="Buildings_6_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_MovingMean",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.062/4.062, allocations: 432.6 MB / 445.2 MB, free: 15.84 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 4.296e-05/4.301e-05, allocations: 4.609 kB / 0.5383 GB, free: 10.3 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2074/0.2075, allocations: 98.73 MB / 0.6347 GB, free: 1.914 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2239/0.4315, allocations: 124.5 MB / 0.7563 GB, free: 5.25 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002673/0.4318, allocations: 67.95 kB / 0.7564 GB, free: 5.184 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.006425/0.4382, allocations: 1.551 MB / 0.7579 GB, free: 3.629 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.303e-06/0.4383, allocations: 0 / 0.7579 GB, free: 3.629 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.194e-05/0.4383, allocations: 4 kB / 0.7579 GB, free: 3.625 MB / 0.6355 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.000459/0.4388, allocations: 396 kB / 0.7583 GB, free: 3.188 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.506e-05/0.4388, allocations: 8.031 kB / 0.7583 GB, free: 3.18 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.795e-05/0.4389, allocations: 34.56 kB / 0.7583 GB, free: 3.137 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.723e-05/0.4389, allocations: 7.953 kB / 0.7583 GB, free: 3.129 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002196/0.4391, allocations: 178.9 kB / 0.7585 GB, free: 2.914 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.488e-05/0.4392, allocations: 4 kB / 0.7585 GB, free: 2.91 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.723e-05/0.4392, allocations: 4 kB / 0.7585 GB, free: 2.906 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001853/0.4394, allocations: 65.67 kB / 0.7586 GB, free: 2.836 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/0.4394, allocations: 0 / 0.7586 GB, free: 2.836 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.605e-05/0.4395, allocations: 7.938 kB / 0.7586 GB, free: 2.828 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.4395, allocations: 3.938 kB / 0.7586 GB, free: 2.824 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001063/0.4396, allocations: 35.98 kB / 0.7586 GB, free: 2.789 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000516/0.4401, allocations: 284.8 kB / 0.7589 GB, free: 2.461 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001404/0.4403, allocations: 66.56 kB / 0.7589 GB, free: 2.387 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001121/0.4404, allocations: 60.89 kB / 0.759 GB, free: 2.324 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.149e-05/0.4404, allocations: 0 / 0.759 GB, free: 2.324 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001973/0.4407, allocations: 119.1 kB / 0.7591 GB, free: 2.191 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=11): time 1.923e-06/0.4407, allocations: 0 / 0.7591 GB, free: 2.191 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11): time 0.0003674/0.441, allocations: 155.3 kB / 0.7593 GB, free: 2.027 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.523e-05/0.4411, allocations: 118.8 kB / 0.7594 GB, free: 1.887 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.732e-05/0.4412, allocations: 109 kB / 0.7595 GB, free: 1.773 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.981e-05/0.4413, allocations: 33.7 kB / 0.7595 GB, free: 1.734 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.828e-05/0.4413, allocations: 88.08 kB / 0.7596 GB, free: 1.645 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 4.127e-05/0.4414, allocations: 23.7 kB / 0.7596 GB, free: 1.621 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.49e-05/0.4414, allocations: 8 kB / 0.7596 GB, free: 1.613 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001153/0.4416, allocations: 318.8 kB / 0.7599 GB, free: 1.293 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.675e-05/0.4417, allocations: 28 kB / 0.7599 GB, free: 1.266 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001528/0.4418, allocations: 104.5 kB / 0.76 GB, free: 1.133 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001633/0.442, allocations: 73.67 kB / 0.7601 GB, free: 1.055 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.442, allocations: 0 / 0.7601 GB, free: 1.055 MB / 0.6355 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004011/0.4424, allocations: 195 kB / 0.7603 GB, free: 0.8516 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 3.547e-05/0.4425, allocations: 33.66 kB / 0.7603 GB, free: 0.8125 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.867e-06/0.4425, allocations: 4.094 kB / 0.7603 GB, free: 0.8086 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.882e-05/0.4425, allocations: 7.984 kB / 0.7603 GB, free: 0.8008 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000188/0.4427, allocations: 32.2 kB / 0.7604 GB, free: 0.7695 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.173e-05/0.4427, allocations: 4 kB / 0.7604 GB, free: 0.7656 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001189/0.4429, allocations: 15.84 kB / 0.7604 GB, free: 0.75 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.108e-05/0.4429, allocations: 8 kB / 0.7604 GB, free: 0.7422 MB / 0.6355 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 () * 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.0001516/0.4431, allocations: 168.5 kB / 0.7606 GB, free: 0.5664 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.787e-05/0.4431, allocations: 11.91 kB / 0.7606 GB, free: 0.5547 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.527e-05/0.4432, allocations: 12.58 kB / 0.7606 GB, free: 0.5352 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.4432, allocations: 4 kB / 0.7606 GB, free: 0.5312 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.4432, allocations: 0 / 0.7606 GB, free: 0.5312 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.4432, allocations: 0 / 0.7606 GB, free: 0.5312 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001874/0.4434, allocations: 185.6 kB / 0.7608 GB, free: 308 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.4434, allocations: 3.984 kB / 0.7608 GB, free: 304 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.372e-05/0.4435, allocations: 4 kB / 0.7608 GB, free: 300 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/0.4435, allocations: 0 / 0.7608 GB, free: 300 kB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.967e-05/0.4435, allocations: 4 kB / 0.7608 GB, free: 296 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.818e-06/0.4435, allocations: 7.891 kB / 0.7608 GB, free: 288 kB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.4436, allocations: 0 / 0.7608 GB, free: 288 kB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004103/0.444, allocations: 222.7 kB / 0.761 GB, free: 40 kB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 6.405e-05/0.4441, allocations: 88.95 kB / 0.7611 GB, free: 15.93 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.363e-05/0.4441, allocations: 4 kB / 0.7611 GB, free: 15.93 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.706e-05/0.4442, allocations: 11.92 kB / 0.7611 GB, free: 15.92 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.827e-05/0.4443, allocations: 7.953 kB / 0.7611 GB, free: 15.91 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.982e-05/0.4443, allocations: 4 kB / 0.7611 GB, free: 15.91 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 5.647e-05/0.4444, allocations: 91.25 kB / 0.7612 GB, free: 15.82 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.11e-07/0.4444, allocations: 4 kB / 0.7612 GB, free: 15.81 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002952/0.4447, allocations: 24 kB / 0.7612 GB, free: 15.79 MB / 0.6511 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) * 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.0007176/0.4454, allocations: 0.7492 MB / 0.762 GB, free: 15.01 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0003366/0.4458, allocations: 167.2 kB / 0.7621 GB, free: 14.83 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.4458, allocations: 0 / 0.7621 GB, free: 14.83 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0002505/0.4461, allocations: 179.4 kB / 0.7623 GB, free: 14.64 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001826/0.4463, allocations: 11.94 kB / 0.7623 GB, free: 14.63 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005489/0.4468, allocations: 162.9 kB / 0.7625 GB, free: 14.44 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002579/0.4471, allocations: 0.6893 MB / 0.7631 GB, free: 13.72 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 5.556e-05/0.4472, allocations: 12.95 kB / 0.7631 GB, free: 13.71 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.04e-05/0.4472, allocations: 27.36 kB / 0.7632 GB, free: 13.68 MB / 0.6511 GB Notification: Performance of SimCode: time 1.032e-06/0.4473, allocations: 0 / 0.7632 GB, free: 13.68 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02372/0.471, allocations: 1.804 MB / 0.7649 GB, free: 11.95 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003231/0.4714, allocations: 159.7 kB / 0.7651 GB, free: 11.72 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.231/2.702, allocations: 0 / 0.7651 GB, free: 11.72 MB / 0.6511 GB