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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.915/3.915, allocations: 433.4 MB / 440.9 MB, free: 10.45 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.327e-05/2.337e-05, allocations: 4 kB / 0.5325 GB, free: 1.918 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4977/0.4977, allocations: 98.7 MB / 0.6289 GB, free: 15.71 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1955/0.6933, allocations: 123.8 MB / 0.7498 GB, free: 3.73 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002098/0.6935, allocations: 71.95 kB / 0.7499 GB, free: 3.66 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 0.006749/0.7003, allocations: 1.548 MB / 0.7514 GB, free: 2.109 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.849e-06/0.7003, allocations: 0 / 0.7514 GB, free: 2.109 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 1.296e-05/0.7003, allocations: 4 kB / 0.7514 GB, free: 2.105 MB / 0.6198 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.0004597/0.7008, allocations: 384.1 kB / 0.7518 GB, free: 1.68 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.105e-05/0.7009, allocations: 12.02 kB / 0.7518 GB, free: 1.668 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.177e-05/0.7009, allocations: 11.86 kB / 0.7518 GB, free: 1.656 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000247/0.7012, allocations: 186.8 kB / 0.752 GB, free: 1.434 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.131e-05/0.7012, allocations: 0 / 0.752 GB, free: 1.434 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.197e-05/0.7012, allocations: 7.984 kB / 0.752 GB, free: 1.426 MB / 0.6198 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001073/0.7014, allocations: 31.94 kB / 0.752 GB, free: 1.395 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001382/0.7015, allocations: 69.61 kB / 0.7521 GB, free: 1.32 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.7015, allocations: 4 kB / 0.7521 GB, free: 1.316 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.234e-05/0.7016, allocations: 0 / 0.7521 GB, free: 1.316 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.663e-06/0.7016, allocations: 4 kB / 0.7521 GB, free: 1.312 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005931/0.7022, allocations: 265.3 kB / 0.7524 GB, free: 1.016 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001582/0.7024, allocations: 62.56 kB / 0.7524 GB, free: 0.9453 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.986e-05/0.7025, allocations: 52.86 kB / 0.7525 GB, free: 0.8906 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.382e-05/0.7025, allocations: 8.016 kB / 0.7525 GB, free: 0.8828 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001674/0.7027, allocations: 109.1 kB / 0.7526 GB, free: 0.7578 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=11): time 2.597e-06/0.7027, allocations: 0 / 0.7526 GB, free: 0.7578 MB / 0.6198 GB Notification: Performance of matching and sorting (n=11): time 0.0003141/0.703, allocations: 117.6 kB / 0.7527 GB, free: 0.6367 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.275e-05/0.7031, allocations: 114.8 kB / 0.7528 GB, free: 0.5 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.42e-05/0.7032, allocations: 101 kB / 0.7529 GB, free: 404 kB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 3.019e-05/0.7033, allocations: 37.69 kB / 0.7529 GB, free: 360 kB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 6.258e-05/0.7034, allocations: 88.25 kB / 0.753 GB, free: 268 kB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 3.745e-05/0.7034, allocations: 27.59 kB / 0.753 GB, free: 240 kB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.566e-06/0.7034, allocations: 0 / 0.753 GB, free: 240 kB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.000176/0.7036, allocations: 322.8 kB / 0.7533 GB, free: 15.91 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.92e-05/0.7037, allocations: 31.98 kB / 0.7534 GB, free: 15.88 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001294/0.7039, allocations: 88.58 kB / 0.7535 GB, free: 15.76 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001166/0.704, allocations: 54.05 kB / 0.7535 GB, free: 15.71 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.364e-06/0.704, allocations: 4 kB / 0.7535 GB, free: 15.71 MB / 0.6355 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003291/0.7043, allocations: 137.4 kB / 0.7537 GB, free: 15.57 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 4.316e-05/0.7044, allocations: 33.7 kB / 0.7537 GB, free: 15.53 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.7044, allocations: 3.938 kB / 0.7537 GB, free: 15.52 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.797e-05/0.7044, allocations: 4 kB / 0.7537 GB, free: 15.52 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000148/0.7046, allocations: 27.94 kB / 0.7537 GB, free: 15.49 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.444e-05/0.7046, allocations: 8.531 kB / 0.7537 GB, free: 15.48 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001041/0.7048, allocations: 15.89 kB / 0.7537 GB, free: 15.47 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.299e-05/0.7048, allocations: 12 kB / 0.7538 GB, free: 15.46 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.0001578/0.705, allocations: 146.7 kB / 0.7539 GB, free: 15.3 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.896e-05/0.705, allocations: 11.91 kB / 0.7539 GB, free: 15.29 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.777e-05/0.705, allocations: 4.625 kB / 0.7539 GB, free: 15.29 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.212e-06/0.7051, allocations: 0 / 0.7539 GB, free: 15.29 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.908e-06/0.7051, allocations: 7.953 kB / 0.7539 GB, free: 15.28 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.798e-06/0.7051, allocations: 0 / 0.7539 GB, free: 15.28 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001676/0.7053, allocations: 166.1 kB / 0.7541 GB, free: 15.08 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.589e-06/0.7053, allocations: 3.984 kB / 0.7541 GB, free: 15.07 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.802e-05/0.7053, allocations: 7.938 kB / 0.7541 GB, free: 15.07 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.52e-06/0.7054, allocations: 7.938 kB / 0.7541 GB, free: 15.06 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.799e-05/0.7054, allocations: 4 kB / 0.7541 GB, free: 15.05 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.111e-06/0.7054, allocations: 0 / 0.7541 GB, free: 15.05 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.7054, allocations: 0 / 0.7541 GB, free: 15.05 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000337/0.7058, allocations: 172.9 kB / 0.7543 GB, free: 14.87 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.875e-05/0.7058, allocations: 85.02 kB / 0.7543 GB, free: 14.77 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.115e-05/0.7059, allocations: 4 kB / 0.7543 GB, free: 14.76 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.734e-05/0.706, allocations: 7.984 kB / 0.7544 GB, free: 14.75 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.151e-05/0.7061, allocations: 4 kB / 0.7544 GB, free: 14.75 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.307e-05/0.7061, allocations: 8 kB / 0.7544 GB, free: 14.74 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 6.316e-05/0.7062, allocations: 91.23 kB / 0.7545 GB, free: 14.65 MB / 0.6355 GB Notification: Performance of sort global known variables: time 7.08e-07/0.7062, allocations: 0 / 0.7545 GB, free: 14.65 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003084/0.7065, allocations: 20 kB / 0.7545 GB, free: 14.63 MB / 0.6355 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.0001626/0.7067, allocations: 120 kB / 0.7546 GB, free: 14.51 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0002949/0.707, allocations: 159.2 kB / 0.7547 GB, free: 14.34 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.493e-06/0.707, allocations: 0 / 0.7547 GB, free: 14.34 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0002214/0.7072, allocations: 175.4 kB / 0.7549 GB, free: 14.16 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001818/0.7074, allocations: 14.58 kB / 0.7549 GB, free: 14.14 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003475/0.7078, allocations: 108.7 kB / 0.755 GB, free: 14.02 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003599/0.7082, allocations: 0.6963 MB / 0.7557 GB, free: 13.29 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 5.075e-05/0.7082, allocations: 12.59 kB / 0.7557 GB, free: 13.28 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.406e-05/0.7083, allocations: 11.44 kB / 0.7557 GB, free: 13.27 MB / 0.6355 GB Notification: Performance of SimCode: time 1.44e-06/0.7083, allocations: 0 / 0.7557 GB, free: 13.27 MB / 0.6355 GB Notification: Performance of Templates: time 0.003582/0.7119, allocations: 0.8356 MB / 0.7565 GB, free: 12.44 MB / 0.6355 GB