Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.conf.json Using package Buildings with version 7.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.3.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.3/package.mo) Running command: "" <> buildModelFMU(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,fileNamePrefix="Buildings_7_0_0_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.3/package.mo): time 0.01026/0.01026, allocations: 88.16 kB / 15.04 MB, free: 6.055 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.3.mo): time 0.001157/0.001157, allocations: 171.8 kB / 15.92 MB, free: 5.992 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/package.mo): time 2.305/2.305, allocations: 205.5 MB / 222.2 MB, free: 13.71 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/package.mo): time 2.742/2.742, allocations: 252.8 MB / 0.511 GB, free: 8.352 MB / 426.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005084/0.0005084, allocations: 18.66 kB / 0.6243 GB, free: 28.29 MB / 0.4948 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2298/0.2304, allocations: 106.2 MB / 0.7281 GB, free: 10.14 MB / 0.5573 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.001915/0.2323, allocations: 1.112 MB / 0.7292 GB, free: 9.02 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.0007155/0.2331, allocations: 276.8 kB / 0.7294 GB, free: 8.746 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.363e-05/0.2332, allocations: 0 / 0.7294 GB, free: 8.746 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 8.416e-05/0.2333, allocations: 3.938 kB / 0.7294 GB, free: 8.742 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.0001309/0.2334, allocations: 15.97 kB / 0.7295 GB, free: 8.727 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001502/0.2336, allocations: 31.84 kB / 0.7295 GB, free: 8.695 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.0001006/0.2337, allocations: 31.95 kB / 0.7295 GB, free: 8.664 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 8.913e-05/0.2338, allocations: 8 kB / 0.7295 GB, free: 8.656 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001176/0.2339, allocations: 31.91 kB / 0.7296 GB, free: 8.625 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001129/0.234, allocations: 23.91 kB / 0.7296 GB, free: 8.602 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 2.32e-05/0.2341, allocations: 4 kB / 0.7296 GB, free: 8.598 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 1.801e-05/0.2341, allocations: 0 / 0.7296 GB, free: 8.598 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 3.265e-05/0.2341, allocations: 11.92 kB / 0.7296 GB, free: 8.586 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 5.827e-05/0.2342, allocations: 37.7 kB / 0.7296 GB, free: 8.543 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 9.711e-05/0.2343, allocations: 35.92 kB / 0.7297 GB, free: 8.508 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 2.575e-06/0.2343, allocations: 7.938 kB / 0.7297 GB, free: 8.5 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.933e-06/0.2343, allocations: 0 / 0.7297 GB, free: 8.5 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 4.758e-06/0.2344, allocations: 0 / 0.7297 GB, free: 8.5 MB / 0.5573 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.0005493/0.2349, allocations: 385.2 kB / 0.73 GB, free: 8.07 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.577e-05/0.235, allocations: 12.02 kB / 0.7301 GB, free: 8.059 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.967e-05/0.235, allocations: 38.56 kB / 0.7301 GB, free: 8.012 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.616e-05/0.2351, allocations: 7.906 kB / 0.7301 GB, free: 8.004 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001882/0.2353, allocations: 182.9 kB / 0.7303 GB, free: 7.785 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.728e-05/0.2353, allocations: 4 kB / 0.7303 GB, free: 7.781 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.97e-05/0.2353, allocations: 12 kB / 0.7303 GB, free: 7.77 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002394/0.2356, allocations: 77.59 kB / 0.7304 GB, free: 7.688 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.2356, allocations: 3.984 kB / 0.7304 GB, free: 7.684 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.294e-05/0.2356, allocations: 0 / 0.7304 GB, free: 7.684 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.2356, allocations: 0 / 0.7304 GB, free: 7.684 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001862/0.2358, allocations: 39.98 kB / 0.7304 GB, free: 7.645 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005597/0.2364, allocations: 300.7 kB / 0.7307 GB, free: 7.301 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001872/0.2366, allocations: 70.56 kB / 0.7308 GB, free: 7.223 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 1.802e-05/0.2366, allocations: 48 / 0.7308 GB, free: 7.223 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002827/0.2369, allocations: 129.1 kB / 0.7309 GB, free: 7.078 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=11): time 1.994e-06/0.237, allocations: 0 / 0.7309 GB, free: 7.078 MB / 0.5573 GB Notification: Performance of matching and sorting (n=11): time 0.0006731/0.2376, allocations: 284.4 kB / 0.7311 GB, free: 6.77 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.873e-05/0.2377, allocations: 122.8 kB / 0.7313 GB, free: 6.625 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.464e-05/0.2378, allocations: 105.8 kB / 0.7314 GB, free: 6.512 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 3.183e-05/0.2379, allocations: 33.7 kB / 0.7314 GB, free: 6.473 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 5.105e-05/0.238, allocations: 88.14 kB / 0.7315 GB, free: 6.383 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 4.636e-05/0.238, allocations: 35.62 kB / 0.7315 GB, free: 6.348 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.276e-05/0.238, allocations: 4 kB / 0.7315 GB, free: 6.344 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001181/0.2382, allocations: 322.8 kB / 0.7318 GB, free: 6.02 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001403/0.2383, allocations: 31.98 kB / 0.7319 GB, free: 5.988 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001971/0.2385, allocations: 112.5 kB / 0.732 GB, free: 5.848 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002009/0.2387, allocations: 81.69 kB / 0.732 GB, free: 5.762 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.2388, allocations: 3.938 kB / 0.732 GB, free: 5.758 MB / 0.5573 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004915/0.2393, allocations: 199.1 kB / 0.7322 GB, free: 5.551 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 4.317e-05/0.2393, allocations: 37.97 kB / 0.7323 GB, free: 5.508 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.849e-06/0.2393, allocations: 7.953 kB / 0.7323 GB, free: 5.5 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.106e-05/0.2394, allocations: 4 kB / 0.7323 GB, free: 5.496 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001899/0.2396, allocations: 31.92 kB / 0.7323 GB, free: 5.465 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.916e-06/0.2396, allocations: 0 / 0.7323 GB, free: 5.465 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001096/0.2397, allocations: 11.91 kB / 0.7323 GB, free: 5.453 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.632e-05/0.2397, allocations: 15.94 kB / 0.7323 GB, free: 5.438 MB / 0.5573 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 () * Number of clocked 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.0001866/0.2399, allocations: 171.5 kB / 0.7325 GB, free: 5.254 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.939e-05/0.24, allocations: 11.94 kB / 0.7325 GB, free: 5.242 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.772e-05/0.24, allocations: 4.375 kB / 0.7325 GB, free: 5.238 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.462e-06/0.24, allocations: 3.953 kB / 0.7325 GB, free: 5.234 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.2401, allocations: 4 kB / 0.7325 GB, free: 5.23 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.2401, allocations: 0 / 0.7325 GB, free: 5.23 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001826/0.2403, allocations: 189.5 kB / 0.7327 GB, free: 4.996 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.2403, allocations: 0 / 0.7327 GB, free: 4.996 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.553e-05/0.2403, allocations: 11.92 kB / 0.7327 GB, free: 4.984 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.2404, allocations: 0 / 0.7327 GB, free: 4.984 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.937e-05/0.2404, allocations: 8 kB / 0.7327 GB, free: 4.977 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.2404, allocations: 0 / 0.7327 GB, free: 4.977 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/0.2404, allocations: 3.953 kB / 0.7327 GB, free: 4.973 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005211/0.2409, allocations: 234.8 kB / 0.733 GB, free: 4.719 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 4.646e-05/0.241, allocations: 81.02 kB / 0.733 GB, free: 4.621 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.7e-05/0.2411, allocations: 12 kB / 0.733 GB, free: 4.609 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.618e-05/0.2412, allocations: 8 kB / 0.7331 GB, free: 4.602 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.569e-05/0.2412, allocations: 7.938 kB / 0.7331 GB, free: 4.594 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.922e-05/0.2413, allocations: 4 kB / 0.7331 GB, free: 4.59 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 6.125e-05/0.2413, allocations: 91.27 kB / 0.7332 GB, free: 4.5 MB / 0.5573 GB Notification: Performance of sort global known variables: time 4.71e-07/0.2413, allocations: 0 / 0.7332 GB, free: 4.5 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0003098/0.2417, allocations: 24 kB / 0.7332 GB, free: 4.477 MB / 0.5573 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) * Number of clocked states: 0 () * 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.0008569/0.2425, allocations: 0.778 MB / 0.7339 GB, free: 3.664 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0004508/0.243, allocations: 175.6 kB / 0.7341 GB, free: 3.48 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.243, allocations: 0 / 0.7341 GB, free: 3.48 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0002954/0.2433, allocations: 191.4 kB / 0.7343 GB, free: 3.281 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002051/0.2435, allocations: 4 kB / 0.7343 GB, free: 3.277 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001289/0.2448, allocations: 1.806 MB / 0.7361 GB, free: 1.379 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002704/0.2451, allocations: 0.6897 MB / 0.7367 GB, free: 0.6641 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 6.951e-05/0.2452, allocations: 12.66 kB / 0.7367 GB, free: 0.6484 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.898e-05/0.2453, allocations: 19.44 kB / 0.7368 GB, free: 0.6289 MB / 0.5573 GB Notification: Performance of SimCode: time 9.72e-07/0.2453, allocations: 0 / 0.7368 GB, free: 0.6289 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02052/0.2658, allocations: 1.809 MB / 0.7385 GB, free: 14.93 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003472/0.2663, allocations: 201.2 kB / 0.7387 GB, free: 14.69 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.53/2.796, allocations: 3.281 kB / 0.7387 GB, free: 14.69 MB / 0.573 GB