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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadModel(Buildings): time 3.94/3.94, allocations: 433 MB / 440.3 MB, free: 4.816 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.5282/4.468, allocations: 104.3 MB / 0.5319 GB, free: 13.02 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.234/4.702, allocations: 98.72 MB / 0.6283 GB, free: 9.773 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2623/4.965, allocations: 123.7 MB / 0.7491 GB, free: 13.86 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002726/4.965, allocations: 79.53 kB / 0.7492 GB, free: 13.78 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.007343/4.972, allocations: 1.62 MB / 0.7508 GB, free: 12.11 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.665e-05/4.972, allocations: 8 kB / 0.7508 GB, free: 12.1 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.167e-05/4.972, allocations: 11.84 kB / 0.7508 GB, free: 12.09 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002795/4.973, allocations: 182.9 kB / 0.751 GB, free: 11.87 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.159e-05/4.973, allocations: 4 kB / 0.751 GB, free: 11.87 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.963e-05/4.973, allocations: 0 / 0.751 GB, free: 11.87 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001387/4.973, allocations: 39.92 kB / 0.751 GB, free: 11.83 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001642/4.973, allocations: 69.55 kB / 0.7511 GB, free: 11.75 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/4.973, allocations: 0 / 0.7511 GB, free: 11.75 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.562e-05/4.973, allocations: 4 kB / 0.7511 GB, free: 11.75 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.925e-06/4.973, allocations: 3.906 kB / 0.7511 GB, free: 11.75 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005277/4.974, allocations: 261.4 kB / 0.7514 GB, free: 11.45 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001348/4.974, allocations: 62.58 kB / 0.7514 GB, free: 11.38 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001191/4.974, allocations: 60.89 kB / 0.7515 GB, free: 11.32 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.616e-05/4.974, allocations: 0 / 0.7515 GB, free: 11.32 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001741/4.974, allocations: 113.1 kB / 0.7516 GB, free: 11.19 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=11): time 1.974e-06/4.974, allocations: 0 / 0.7516 GB, free: 11.19 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11): time 0.0003669/4.975, allocations: 105.6 kB / 0.7517 GB, free: 11.08 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.012e-05/4.975, allocations: 126.8 kB / 0.7518 GB, free: 10.93 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.853e-05/4.975, allocations: 101 kB / 0.7519 GB, free: 10.83 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 3.32e-05/4.975, allocations: 33.69 kB / 0.7519 GB, free: 10.79 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.459e-05/4.975, allocations: 84.14 kB / 0.752 GB, free: 10.7 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 4.282e-05/4.975, allocations: 23.66 kB / 0.752 GB, free: 10.68 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.053e-05/4.975, allocations: 0 / 0.752 GB, free: 10.68 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001783/4.975, allocations: 322.8 kB / 0.7523 GB, free: 10.36 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.097e-05/4.975, allocations: 31.98 kB / 0.7524 GB, free: 10.32 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001541/4.976, allocations: 101.3 kB / 0.7525 GB, free: 10.2 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001312/4.976, allocations: 48.69 kB / 0.7525 GB, free: 10.15 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/4.976, allocations: 0 / 0.7525 GB, free: 10.15 MB / 0.6355 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003575/4.976, allocations: 149.3 kB / 0.7527 GB, free: 9.996 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.63e-05/4.976, allocations: 6.656 kB / 0.7527 GB, free: 9.992 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.067e-05/4.976, allocations: 4 kB / 0.7527 GB, free: 9.988 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.984e-05/4.976, allocations: 4 kB / 0.7527 GB, free: 9.984 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002333/4.976, allocations: 28.2 kB / 0.7527 GB, free: 9.957 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.074e-05/4.976, allocations: 4 kB / 0.7527 GB, free: 9.953 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001236/4.977, allocations: 11.91 kB / 0.7527 GB, free: 9.941 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.113e-05/4.977, allocations: 7.984 kB / 0.7527 GB, free: 9.934 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.0001891/4.977, allocations: 159.4 kB / 0.7529 GB, free: 9.766 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.143e-05/4.977, allocations: 7.906 kB / 0.7529 GB, free: 9.758 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.746e-05/4.977, allocations: 12.38 kB / 0.7529 GB, free: 9.738 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.427e-06/4.977, allocations: 4 kB / 0.7529 GB, free: 9.734 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.852e-06/4.977, allocations: 0 / 0.7529 GB, free: 9.734 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/4.977, allocations: 7.875 kB / 0.7529 GB, free: 9.727 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000173/4.977, allocations: 166 kB / 0.7531 GB, free: 9.527 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/4.977, allocations: 0 / 0.7531 GB, free: 9.527 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.664e-05/4.977, allocations: 7.984 kB / 0.7531 GB, free: 9.52 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/4.977, allocations: 0 / 0.7531 GB, free: 9.52 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.989e-05/4.977, allocations: 4 kB / 0.7531 GB, free: 9.516 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.493e-06/4.977, allocations: 4 kB / 0.7531 GB, free: 9.512 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.746e-06/4.977, allocations: 4 kB / 0.7531 GB, free: 9.508 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003608/4.978, allocations: 160.9 kB / 0.7532 GB, free: 9.332 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000464/4.978, allocations: 0.5364 MB / 0.7538 GB, free: 8.773 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.903e-05/4.978, allocations: 81.02 kB / 0.7538 GB, free: 8.676 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.501e-05/4.978, allocations: 16 kB / 0.7539 GB, free: 8.66 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001138/4.978, allocations: 7.984 kB / 0.7539 GB, free: 8.652 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.124e-05/4.978, allocations: 4 kB / 0.7539 GB, free: 8.648 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.745e-05/4.978, allocations: 0 / 0.7539 GB, free: 8.648 MB / 0.6355 GB Notification: Performance of sort global known variables: time 6.26e-05/4.979, allocations: 91.27 kB / 0.7539 GB, free: 8.559 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.001162/4.98, allocations: 20 kB / 0.754 GB, free: 8.539 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.0002006/4.98, allocations: 114.8 kB / 0.7541 GB, free: 8.422 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0003396/4.98, allocations: 125.5 kB / 0.7542 GB, free: 8.293 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/4.98, allocations: 0 / 0.7542 GB, free: 8.293 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0002381/4.981, allocations: 153.7 kB / 0.7543 GB, free: 8.137 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002217/4.981, allocations: 11.91 kB / 0.7544 GB, free: 8.125 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004351/4.981, allocations: 107.6 kB / 0.7545 GB, free: 7.996 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003435/4.982, allocations: 0.7119 MB / 0.7552 GB, free: 7.258 MB / 0.6355 GB Notification: Performance of SimCode: time 8.82e-07/4.982, allocations: 0 / 0.7552 GB, free: 7.258 MB / 0.6355 GB