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.Continuous.Validation.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.Continuous.Validation.MovingMean,fileNamePrefix="Buildings_6_0_0_Buildings_Controls_OBC_CDL_Continuous_Validation_MovingMean",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.124/4.124, allocations: 432.6 MB / 445.2 MB, free: 15.72 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 4.623e-05/4.644e-05, allocations: 7.344 kB / 0.5383 GB, free: 10.29 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2293/0.2294, allocations: 98.73 MB / 0.6347 GB, free: 1.863 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2612/0.4906, allocations: 125.2 MB / 0.757 GB, free: 4.516 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002948/0.4909, allocations: 67.97 kB / 0.757 GB, free: 4.449 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.0481/0.5391, allocations: 8.668 MB / 0.7655 GB, free: 11.77 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.984e-06/0.5391, allocations: 0 / 0.7655 GB, free: 11.77 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.46e-05/0.5391, allocations: 4 kB / 0.7655 GB, free: 11.76 MB / 0.6511 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.00177/0.5409, allocations: 0.6014 MB / 0.7661 GB, free: 11.12 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.999e-05/0.541, allocations: 8.031 kB / 0.7661 GB, free: 11.11 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001151/0.5411, allocations: 58.53 kB / 0.7662 GB, free: 11.04 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001024/0.5412, allocations: 31.62 kB / 0.7662 GB, free: 11.01 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001927/0.5414, allocations: 195.7 kB / 0.7664 GB, free: 10.78 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002825/0.5417, allocations: 275.7 kB / 0.7666 GB, free: 10.45 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.824e-05/0.5418, allocations: 31.94 kB / 0.7667 GB, free: 10.42 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006524/0.5425, allocations: 237.8 kB / 0.7669 GB, free: 10.18 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.342e-05/0.5425, allocations: 0 / 0.7669 GB, free: 10.18 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.186e-05/0.5426, allocations: 8 kB / 0.7669 GB, free: 10.17 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.09e-05/0.5426, allocations: 4.219 kB / 0.7669 GB, free: 10.17 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005139/0.5431, allocations: 147.9 kB / 0.7671 GB, free: 10.02 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002085/0.5452, allocations: 0.8051 MB / 0.7678 GB, free: 9.156 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006732/0.546, allocations: 190.2 kB / 0.768 GB, free: 8.945 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003325/0.5463, allocations: 119.5 kB / 0.7681 GB, free: 8.82 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 7.615e-05/0.5464, allocations: 12.17 kB / 0.7681 GB, free: 8.809 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007083/0.5471, allocations: 295.5 kB / 0.7684 GB, free: 8.496 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=48): time 3.637e-06/0.5472, allocations: 4 kB / 0.7684 GB, free: 8.492 MB / 0.6511 GB Notification: Performance of matching and sorting (n=48): time 0.001091/0.5483, allocations: 324.4 kB / 0.7687 GB, free: 8.172 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.96e-05/0.5484, allocations: 122.7 kB / 0.7689 GB, free: 8.027 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002784/0.5487, allocations: 158.6 kB / 0.769 GB, free: 7.863 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 6.849e-05/0.5488, allocations: 41.7 kB / 0.7691 GB, free: 7.816 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001074/0.5489, allocations: 121.2 kB / 0.7692 GB, free: 7.691 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001903/0.5491, allocations: 146 kB / 0.7693 GB, free: 7.547 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.257e-05/0.5491, allocations: 12 kB / 0.7693 GB, free: 7.535 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001692/0.5493, allocations: 342.8 kB / 0.7696 GB, free: 7.191 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000409/0.5497, allocations: 129.6 kB / 0.7698 GB, free: 7.062 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005049/0.5503, allocations: 226.1 kB / 0.77 GB, free: 6.801 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004647/0.5507, allocations: 151.8 kB / 0.7701 GB, free: 6.652 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.481e-06/0.5508, allocations: 0 / 0.7701 GB, free: 6.652 MB / 0.6511 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001238/0.552, allocations: 453 kB / 0.7706 GB, free: 6.203 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 3.273e-05/0.5521, allocations: 14.64 kB / 0.7706 GB, free: 6.191 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/0.5521, allocations: 0 / 0.7706 GB, free: 6.191 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.752e-05/0.5521, allocations: 8 kB / 0.7706 GB, free: 6.184 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008441/0.553, allocations: 95.83 kB / 0.7707 GB, free: 6.09 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.048e-05/0.553, allocations: 8 kB / 0.7707 GB, free: 6.082 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005524/0.5536, allocations: 71.66 kB / 0.7707 GB, free: 6.012 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.281e-05/0.5537, allocations: 27.89 kB / 0.7708 GB, free: 5.984 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 27 ($whenCondition5,$PRE.movingMean_1.mode,movingMean_1.mode,$whenCondition6,$PRE.movingMean_2.mode,movingMean_2.mode,$whenCondition7,$PRE.movingMean_3.mode,movingMean_3.mode,$whenCondition8,$PRE.movingMean_4.mode,movingMean_4.mode,$whenCondition9,$PRE.movingMean_5.mode,movingMean_5.mode,$whenCondition3,$PRE.movingMean_6.mode,movingMean_6.mode,$whenCondition4,$PRE.movingMean_7.mode,movingMean_7.mode,$whenCondition1,$PRE.movingMean_8.mode,movingMean_8.mode,$whenCondition2,$PRE.movingMean_9.mode,movingMean_9.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (75): * Single equations (assignments): 75 * Array equations: 0 * Algorithm blocks: 0 * 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.000231/0.5539, allocations: 151.1 kB / 0.7709 GB, free: 5.832 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.678e-05/0.554, allocations: 23.72 kB / 0.7709 GB, free: 5.809 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001107/0.5542, allocations: 33.66 kB / 0.771 GB, free: 5.77 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.221e-05/0.5542, allocations: 4 kB / 0.771 GB, free: 5.766 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.419e-05/0.5542, allocations: 3.984 kB / 0.771 GB, free: 5.762 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.476e-06/0.5542, allocations: 3.938 kB / 0.771 GB, free: 5.758 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006173/0.5548, allocations: 365 kB / 0.7713 GB, free: 5.352 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.815e-06/0.5549, allocations: 4 kB / 0.7713 GB, free: 5.348 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008986/0.5558, allocations: 75.89 kB / 0.7714 GB, free: 5.273 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.331e-05/0.5558, allocations: 8 kB / 0.7714 GB, free: 5.266 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.918e-05/0.5559, allocations: 12.06 kB / 0.7714 GB, free: 5.254 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.017e-05/0.5559, allocations: 4 kB / 0.7714 GB, free: 5.25 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.5559, allocations: 0 / 0.7714 GB, free: 5.25 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001593/0.5575, allocations: 0.5584 MB / 0.772 GB, free: 4.652 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001273/0.5577, allocations: 108.7 kB / 0.7721 GB, free: 4.527 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.795e-05/0.5578, allocations: 12 kB / 0.7721 GB, free: 4.516 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004727/0.5583, allocations: 35.97 kB / 0.7721 GB, free: 4.48 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001654/0.5585, allocations: 51.89 kB / 0.7722 GB, free: 4.43 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.904e-05/0.5585, allocations: 12 kB / 0.7722 GB, free: 4.418 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0001536/0.5587, allocations: 129.2 kB / 0.7723 GB, free: 4.293 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.11e-07/0.5587, allocations: 0 / 0.7723 GB, free: 4.293 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0005155/0.5592, allocations: 80 kB / 0.7724 GB, free: 4.215 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 9 (movingMean_1.mu,movingMean_2.mu,movingMean_3.mu,movingMean_4.mu,movingMean_5.mu,movingMean_6.mu,movingMean_7.mu,movingMean_8.mu,movingMean_9.mu) * Number of discrete variables: 18 ($whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,movingMean_1.mode,movingMean_2.mode,movingMean_3.mode,movingMean_4.mode,movingMean_5.mode,$whenCondition4,$whenCondition3,movingMean_6.mode,movingMean_7.mode,$whenCondition2,$whenCondition1,movingMean_8.mode,movingMean_9.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * 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.002077/0.5613, allocations: 1.268 MB / 0.7736 GB, free: 2.906 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.001083/0.5625, allocations: 340.2 kB / 0.774 GB, free: 2.578 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.5625, allocations: 3.938 kB / 0.774 GB, free: 2.574 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0005127/0.563, allocations: 160.3 kB / 0.7741 GB, free: 2.418 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004368/0.5635, allocations: 38.25 kB / 0.7741 GB, free: 2.383 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00194/0.5654, allocations: 0.5903 MB / 0.7747 GB, free: 1.746 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004156/0.5659, allocations: 0.7725 MB / 0.7755 GB, free: 0.9492 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0003279/0.5662, allocations: 47.12 kB / 0.7755 GB, free: 0.9023 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002598/0.5665, allocations: 87.34 kB / 0.7756 GB, free: 0.8203 MB / 0.6511 GB Notification: Performance of SimCode: time 1.704e-06/0.5665, allocations: 0 / 0.7756 GB, free: 0.8203 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6171/1.184, allocations: 5.55 MB / 0.781 GB, free: 140.3 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002155/1.184, allocations: 161.2 kB / 0.7812 GB, free: 140.1 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.787/3.971, allocations: 0 / 0.7812 GB, free: 140.1 MB / 0.6511 GB