Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/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 loadModel(Buildings): time 3.865/3.865, allocations: 432.7 MB / 445.3 MB, free: 15.66 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 3.085e-05/3.095e-05, allocations: 4.656 kB / 0.5383 GB, free: 10.28 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.198/0.1981, allocations: 98.72 MB / 0.6347 GB, free: 1.91 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2411/0.4392, allocations: 124.5 MB / 0.7563 GB, free: 5.242 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002349/0.4395, allocations: 67.97 kB / 0.7564 GB, free: 5.176 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.006656/0.4462, allocations: 1.559 MB / 0.7579 GB, free: 3.613 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.522e-06/0.4462, allocations: 0 / 0.7579 GB, free: 3.613 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 9.315e-06/0.4462, allocations: 0 / 0.7579 GB, free: 3.613 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.0004761/0.4467, allocations: 384 kB / 0.7583 GB, free: 3.188 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/0.4468, allocations: 8.031 kB / 0.7583 GB, free: 3.18 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.561e-05/0.4468, allocations: 7.906 kB / 0.7583 GB, free: 3.172 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002574/0.4471, allocations: 186.8 kB / 0.7585 GB, free: 2.949 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.948e-05/0.4471, allocations: 4 kB / 0.7585 GB, free: 2.945 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.726e-05/0.4472, allocations: 4 kB / 0.7585 GB, free: 2.941 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001683/0.4473, allocations: 69.67 kB / 0.7585 GB, free: 2.867 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.954e-06/0.4474, allocations: 0 / 0.7585 GB, free: 2.867 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.518e-05/0.4474, allocations: 4 kB / 0.7585 GB, free: 2.863 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.72e-06/0.4474, allocations: 4 kB / 0.7585 GB, free: 2.859 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.656e-05/0.4475, allocations: 31.98 kB / 0.7586 GB, free: 2.828 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005269/0.448, allocations: 288.8 kB / 0.7588 GB, free: 2.496 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001329/0.4482, allocations: 70.56 kB / 0.7589 GB, free: 2.418 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001013/0.4483, allocations: 48.86 kB / 0.759 GB, free: 2.367 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.149e-05/0.4483, allocations: 4 kB / 0.759 GB, free: 2.363 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001842/0.4485, allocations: 109.1 kB / 0.7591 GB, free: 2.238 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=11): time 5.364e-06/0.4486, allocations: 3.984 kB / 0.7591 GB, free: 2.234 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11): time 0.0003625/0.4489, allocations: 159.4 kB / 0.7592 GB, free: 2.066 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.877e-05/0.449, allocations: 126.8 kB / 0.7593 GB, free: 1.918 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001078/0.4492, allocations: 102.9 kB / 0.7594 GB, free: 1.812 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 3.715e-05/0.4492, allocations: 37.69 kB / 0.7595 GB, free: 1.77 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 6.114e-05/0.4493, allocations: 80.14 kB / 0.7596 GB, free: 1.688 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 5.013e-05/0.4494, allocations: 35.64 kB / 0.7596 GB, free: 1.652 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.604e-06/0.4494, allocations: 0 / 0.7596 GB, free: 1.652 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001663/0.4495, allocations: 314.8 kB / 0.7599 GB, free: 1.336 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.081e-05/0.4497, allocations: 35.98 kB / 0.7599 GB, free: 1.301 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001546/0.4498, allocations: 102.8 kB / 0.76 GB, free: 1.172 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001455/0.45, allocations: 77.67 kB / 0.7601 GB, free: 1.09 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.93e-06/0.45, allocations: 4 kB / 0.7601 GB, free: 1.086 MB / 0.6355 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003902/0.4504, allocations: 187.1 kB / 0.7603 GB, free: 0.8906 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 4.205e-05/0.4504, allocations: 29.98 kB / 0.7603 GB, free: 0.8555 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.13e-05/0.4505, allocations: 11.95 kB / 0.7603 GB, free: 0.8438 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.648e-05/0.4505, allocations: 4 kB / 0.7603 GB, free: 0.8398 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001652/0.4507, allocations: 23.92 kB / 0.7603 GB, free: 0.8164 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.41e-06/0.4507, allocations: 4 kB / 0.7603 GB, free: 0.8125 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001041/0.4508, allocations: 19.84 kB / 0.7604 GB, free: 0.793 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.391e-05/0.4509, allocations: 8 kB / 0.7604 GB, free: 0.7852 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.0002007/0.4511, allocations: 166.3 kB / 0.7605 GB, free: 0.6094 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.277e-05/0.4511, allocations: 19.83 kB / 0.7605 GB, free: 0.5898 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.243e-05/0.4512, allocations: 4.625 kB / 0.7606 GB, free: 0.5781 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.017e-05/0.4512, allocations: 3.953 kB / 0.7606 GB, free: 0.5742 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.981e-06/0.4512, allocations: 0 / 0.7606 GB, free: 0.5742 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.762e-06/0.4512, allocations: 0 / 0.7606 GB, free: 0.5742 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002034/0.4514, allocations: 185.6 kB / 0.7607 GB, free: 352 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.35e-06/0.4514, allocations: 0 / 0.7607 GB, free: 352 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.409e-05/0.4515, allocations: 7.984 kB / 0.7607 GB, free: 344 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.199e-06/0.4515, allocations: 3.938 kB / 0.7607 GB, free: 340 kB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.917e-05/0.4515, allocations: 8 kB / 0.7608 GB, free: 332 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.306e-06/0.4516, allocations: 0 / 0.7608 GB, free: 332 kB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.014e-06/0.4516, allocations: 3.953 kB / 0.7608 GB, free: 328 kB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004166/0.452, allocations: 214.7 kB / 0.761 GB, free: 88 kB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 8.162e-05/0.4521, allocations: 85.02 kB / 0.761 GB, free: 15.98 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.237e-05/0.4522, allocations: 4 kB / 0.761 GB, free: 15.98 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.046e-05/0.4523, allocations: 8 kB / 0.7611 GB, free: 15.97 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.791e-05/0.4523, allocations: 15.88 kB / 0.7611 GB, free: 15.96 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.893e-05/0.4523, allocations: 8 kB / 0.7611 GB, free: 15.95 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 7.063e-05/0.4524, allocations: 83.59 kB / 0.7612 GB, free: 15.87 MB / 0.6511 GB Notification: Performance of sort global known variables: time 7.51e-07/0.4524, allocations: 0 / 0.7612 GB, free: 15.87 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003166/0.4528, allocations: 20 kB / 0.7612 GB, free: 15.85 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.0001693/0.4529, allocations: 117 kB / 0.7613 GB, free: 15.73 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0003352/0.4533, allocations: 167.6 kB / 0.7614 GB, free: 15.55 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.696e-06/0.4533, allocations: 0 / 0.7614 GB, free: 15.55 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0002501/0.4536, allocations: 191.4 kB / 0.7616 GB, free: 15.35 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001835/0.4538, allocations: 4 kB / 0.7616 GB, free: 15.35 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003626/0.4541, allocations: 113.3 kB / 0.7617 GB, free: 15.21 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003799/0.4545, allocations: 0.6995 MB / 0.7624 GB, free: 14.49 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 5.682e-05/0.4546, allocations: 9.047 kB / 0.7624 GB, free: 14.48 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.416e-05/0.4547, allocations: 11.44 kB / 0.7624 GB, free: 14.47 MB / 0.6511 GB Notification: Performance of SimCode: time 1.519e-06/0.4547, allocations: 0 / 0.7624 GB, free: 14.47 MB / 0.6511 GB Notification: Performance of Templates: time 0.003849/0.4585, allocations: 0.8774 MB / 0.7633 GB, free: 13.6 MB / 0.6511 GB