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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.267/4.267, allocations: 433.2 MB / 440.7 MB, free: 10.54 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.422e-05/2.43e-05, allocations: 4 kB / 0.5325 GB, free: 1.918 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6124/0.6125, allocations: 98.71 MB / 0.6289 GB, free: 15.72 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2225/0.835, allocations: 123.8 MB / 0.7498 GB, free: 3.73 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002658/0.8353, allocations: 75.94 kB / 0.7499 GB, free: 3.656 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 0.006599/0.8419, allocations: 1.548 MB / 0.7514 GB, free: 2.105 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.553e-06/0.842, allocations: 0 / 0.7514 GB, free: 2.105 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 1.025e-05/0.842, allocations: 0 / 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.0004992/0.8425, allocations: 396 kB / 0.7518 GB, free: 1.668 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.541e-05/0.8425, allocations: 8.031 kB / 0.7518 GB, free: 1.66 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.268e-05/0.8426, allocations: 7.953 kB / 0.7518 GB, free: 1.652 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002332/0.8428, allocations: 182.9 kB / 0.752 GB, free: 1.434 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.239e-05/0.8429, allocations: 0 / 0.752 GB, free: 1.434 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.237e-05/0.8429, allocations: 8 kB / 0.752 GB, free: 1.426 MB / 0.6198 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001147/0.843, allocations: 27.98 kB / 0.752 GB, free: 1.398 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001418/0.8432, allocations: 61.69 kB / 0.7521 GB, free: 1.332 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.148e-05/0.8432, allocations: 3.938 kB / 0.7521 GB, free: 1.328 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.436e-05/0.8432, allocations: 0 / 0.7521 GB, free: 1.328 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.142e-06/0.8432, allocations: 4 kB / 0.7521 GB, free: 1.324 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004997/0.8438, allocations: 273.4 kB / 0.7523 GB, free: 1.02 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001285/0.8439, allocations: 58.58 kB / 0.7524 GB, free: 0.9531 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001128/0.844, allocations: 52.89 kB / 0.7524 GB, free: 0.8984 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.306e-05/0.8441, allocations: 0 / 0.7524 GB, free: 0.8984 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001837/0.8443, allocations: 117.1 kB / 0.7526 GB, free: 0.7656 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=11): time 7.223e-06/0.8443, allocations: 96 / 0.7526 GB, free: 0.7656 MB / 0.6198 GB Notification: Performance of matching and sorting (n=11): time 0.000338/0.8446, allocations: 117.5 kB / 0.7527 GB, free: 0.6445 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.477e-05/0.8447, allocations: 114.8 kB / 0.7528 GB, free: 0.5078 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.791e-05/0.8448, allocations: 104.9 kB / 0.7529 GB, free: 408 kB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 4.411e-05/0.8449, allocations: 29.7 kB / 0.7529 GB, free: 372 kB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 5.441e-05/0.8449, allocations: 84.14 kB / 0.753 GB, free: 284 kB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 4.658e-05/0.845, allocations: 31.64 kB / 0.753 GB, free: 252 kB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.548e-06/0.845, allocations: 0 / 0.753 GB, free: 252 kB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001442/0.8452, allocations: 318.8 kB / 0.7533 GB, free: 15.93 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.725e-05/0.8453, allocations: 35.94 kB / 0.7534 GB, free: 15.89 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001471/0.8454, allocations: 92.91 kB / 0.7534 GB, free: 15.77 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001305/0.8456, allocations: 55.91 kB / 0.7535 GB, free: 15.72 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.476e-06/0.8456, allocations: 0 / 0.7535 GB, free: 15.72 MB / 0.6355 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003632/0.846, allocations: 145.3 kB / 0.7536 GB, free: 15.57 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 4.788e-05/0.846, allocations: 40.03 kB / 0.7537 GB, free: 15.53 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-06/0.8461, allocations: 0 / 0.7537 GB, free: 15.53 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.966e-05/0.8461, allocations: 8.281 kB / 0.7537 GB, free: 15.52 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002087/0.8463, allocations: 27.94 kB / 0.7537 GB, free: 15.49 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.288e-05/0.8463, allocations: 7.938 kB / 0.7537 GB, free: 15.48 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001099/0.8465, allocations: 7.906 kB / 0.7537 GB, free: 15.48 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.346e-05/0.8465, allocations: 12 kB / 0.7537 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.0001678/0.8467, allocations: 146.7 kB / 0.7539 GB, free: 15.31 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003288/0.847, allocations: 145.4 kB / 0.754 GB, free: 15.16 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.308e-05/0.8471, allocations: 8.141 kB / 0.754 GB, free: 15.15 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.928e-05/0.8471, allocations: 12.56 kB / 0.754 GB, free: 15.14 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.8471, allocations: 0 / 0.754 GB, free: 15.14 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.179e-06/0.8471, allocations: 4 kB / 0.754 GB, free: 15.14 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.8471, allocations: 0 / 0.754 GB, free: 15.14 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001698/0.8473, allocations: 170 kB / 0.7542 GB, free: 14.93 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.8473, allocations: 4 kB / 0.7542 GB, free: 14.93 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.25e-05/0.8474, allocations: 4 kB / 0.7542 GB, free: 14.93 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.278e-06/0.8474, allocations: 3.984 kB / 0.7542 GB, free: 14.92 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.658e-05/0.8475, allocations: 0 / 0.7542 GB, free: 14.92 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.8475, allocations: 8 kB / 0.7542 GB, free: 14.91 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/0.8475, allocations: 3.953 kB / 0.7542 GB, free: 14.91 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000345/0.8478, allocations: 156.9 kB / 0.7544 GB, free: 14.74 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.143e-05/0.8479, allocations: 85.09 kB / 0.7545 GB, free: 14.64 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.525e-05/0.848, allocations: 8 kB / 0.7545 GB, free: 14.63 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.623e-05/0.8481, allocations: 4 kB / 0.7545 GB, free: 14.62 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.168e-05/0.8481, allocations: 11.94 kB / 0.7545 GB, free: 14.61 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.871e-05/0.8482, allocations: 8 kB / 0.7545 GB, free: 14.61 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 5.545e-05/0.8482, allocations: 83.28 kB / 0.7546 GB, free: 14.52 MB / 0.6355 GB Notification: Performance of sort global known variables: time 3.91e-07/0.8482, allocations: 0 / 0.7546 GB, free: 14.52 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003335/0.8486, allocations: 20 kB / 0.7546 GB, free: 14.5 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.0008299/0.8494, allocations: 0.7178 MB / 0.7553 GB, free: 13.75 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0003553/0.8498, allocations: 143.3 kB / 0.7554 GB, free: 13.6 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.8498, allocations: 0 / 0.7554 GB, free: 13.6 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0002455/0.8501, allocations: 183.4 kB / 0.7556 GB, free: 13.41 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002253/0.8503, allocations: 11.92 kB / 0.7556 GB, free: 13.4 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005528/0.8509, allocations: 142 kB / 0.7557 GB, free: 13.22 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002866/0.8512, allocations: 0.7007 MB / 0.7564 GB, free: 12.5 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 5.613e-05/0.8513, allocations: 4.672 kB / 0.7564 GB, free: 12.49 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.787e-05/0.8513, allocations: 23.42 kB / 0.7565 GB, free: 12.47 MB / 0.6355 GB Notification: Performance of SimCode: time 7.52e-07/0.8513, allocations: 3.938 kB / 0.7565 GB, free: 12.46 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03884/0.8902, allocations: 1.489 MB / 0.7579 GB, free: 10.99 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003034/0.8906, allocations: 149.5 kB / 0.7581 GB, free: 10.8 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.256/3.147, allocations: 3.938 kB / 0.7581 GB, free: 10.79 MB / 0.6355 GB