Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.conf.json Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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"}) [: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 loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.428/2.428, allocations: 248.6 MB / 255.9 MB, free: 7.172 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00167/0.001669, allocations: 187.6 kB / 315.1 MB, free: 4.258 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.974/1.974, allocations: 205.1 MB / 0.5658 GB, free: 304 kB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001787/0.001787, allocations: 87.27 kB / 0.67 GB, free: 5.496 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.4572/0.4591, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1891/0.6482, allocations: 106.3 MB / 0.8835 GB, free: 13.31 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6237/1.272, allocations: 132.1 MB / 1.013 GB, free: 8.035 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002793/1.272, allocations: 76.33 kB / 1.013 GB, free: 7.992 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.007616/1.28, allocations: 1.698 MB / 1.014 GB, free: 6.52 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.145e-05/1.28, allocations: 12 kB / 1.014 GB, free: 6.508 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.391e-05/1.28, allocations: 7.906 kB / 1.014 GB, free: 6.5 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003062/1.28, allocations: 178.5 kB / 1.014 GB, free: 6.289 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.824e-05/1.28, allocations: 3.938 kB / 1.014 GB, free: 6.285 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.21e-05/1.281, allocations: 4 kB / 1.014 GB, free: 6.281 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001293/1.281, allocations: 30.69 kB / 1.014 GB, free: 6.262 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001524/1.281, allocations: 68.05 kB / 1.015 GB, free: 6.199 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.446e-06/1.281, allocations: 0 / 1.015 GB, free: 6.199 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.823e-05/1.281, allocations: 3.984 kB / 1.015 GB, free: 6.195 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.784e-06/1.281, allocations: 0 / 1.015 GB, free: 6.195 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005163/1.281, allocations: 267.2 kB / 1.015 GB, free: 5.91 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001527/1.282, allocations: 75.38 kB / 1.015 GB, free: 5.855 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001129/1.282, allocations: 51.95 kB / 1.015 GB, free: 5.824 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.777e-05/1.282, allocations: 3.984 kB / 1.015 GB, free: 5.82 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001842/1.282, allocations: 113.9 kB / 1.015 GB, free: 5.707 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=11): time 2.425e-06/1.282, allocations: 0 / 1.015 GB, free: 5.707 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11): time 0.0003451/1.282, allocations: 113.1 kB / 1.015 GB, free: 5.613 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.663e-05/1.282, allocations: 113.8 kB / 1.015 GB, free: 5.48 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000159/1.283, allocations: 100.9 kB / 1.015 GB, free: 5.379 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.998e-05/1.283, allocations: 29.7 kB / 1.015 GB, free: 5.344 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.558e-05/1.283, allocations: 91.83 kB / 1.015 GB, free: 5.254 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 5.062e-05/1.283, allocations: 31.59 kB / 1.016 GB, free: 5.227 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.118e-05/1.283, allocations: 3.938 kB / 1.016 GB, free: 5.223 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001579/1.283, allocations: 321.8 kB / 1.016 GB, free: 4.902 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.807e-05/1.283, allocations: 25.56 kB / 1.016 GB, free: 4.887 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000152/1.283, allocations: 100.1 kB / 1.016 GB, free: 4.777 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001347/1.283, allocations: 45.41 kB / 1.016 GB, free: 4.742 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/1.283, allocations: 3.938 kB / 1.016 GB, free: 4.738 MB / 0.6355 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003637/1.284, allocations: 142.9 kB / 1.016 GB, free: 4.613 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.095e-05/1.284, allocations: 7.906 kB / 1.016 GB, free: 4.605 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.366e-06/1.284, allocations: 0 / 1.016 GB, free: 4.605 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.955e-05/1.284, allocations: 4.281 kB / 1.016 GB, free: 4.602 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002334/1.284, allocations: 35.55 kB / 1.016 GB, free: 4.57 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.024e-05/1.284, allocations: 4 kB / 1.016 GB, free: 4.566 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001179/1.284, allocations: 7.906 kB / 1.016 GB, free: 4.559 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.296e-05/1.284, allocations: 8 kB / 1.016 GB, free: 4.551 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.0001933/1.284, allocations: 153.4 kB / 1.016 GB, free: 4.391 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.588e-05/1.285, allocations: 15.91 kB / 1.016 GB, free: 4.375 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.33e-05/1.285, allocations: 11.3 kB / 1.016 GB, free: 4.363 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.579e-06/1.285, allocations: 0 / 1.016 GB, free: 4.363 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.341e-06/1.285, allocations: 0 / 1.016 GB, free: 4.363 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/1.285, allocations: 0 / 1.016 GB, free: 4.363 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000187/1.285, allocations: 163.4 kB / 1.017 GB, free: 4.176 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/1.285, allocations: 0 / 1.017 GB, free: 4.176 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.428e-05/1.285, allocations: 4 kB / 1.017 GB, free: 4.172 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.738e-06/1.285, allocations: 4 kB / 1.017 GB, free: 4.168 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.905e-05/1.285, allocations: 11.86 kB / 1.017 GB, free: 4.156 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.686e-06/1.285, allocations: 4 kB / 1.017 GB, free: 4.152 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.072e-06/1.285, allocations: 4 kB / 1.017 GB, free: 4.148 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003738/1.285, allocations: 166.2 kB / 1.017 GB, free: 4.004 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005562/1.286, allocations: 0.5278 MB / 1.017 GB, free: 3.484 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 6.627e-05/1.286, allocations: 89.02 kB / 1.017 GB, free: 3.379 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.626e-05/1.286, allocations: 7.75 kB / 1.017 GB, free: 3.375 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001305/1.286, allocations: 11.94 kB / 1.017 GB, free: 3.363 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.541e-05/1.286, allocations: 4.172 kB / 1.017 GB, free: 3.359 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.387e-05/1.286, allocations: 4 kB / 1.017 GB, free: 3.355 MB / 0.6355 GB Notification: Performance of sort global known variables: time 6.869e-05/1.286, allocations: 86.7 kB / 1.017 GB, free: 3.273 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.001136/1.288, allocations: 20 kB / 1.017 GB, free: 3.254 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.0002011/1.288, allocations: 117.8 kB / 1.018 GB, free: 3.133 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0003505/1.288, allocations: 130 kB / 1.018 GB, free: 3.023 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/1.288, allocations: 0 / 1.018 GB, free: 3.023 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0002292/1.288, allocations: 147.5 kB / 1.018 GB, free: 2.938 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002453/1.289, allocations: 15.89 kB / 1.018 GB, free: 2.922 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004651/1.289, allocations: 111.5 kB / 1.018 GB, free: 2.801 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004277/1.29, allocations: 0.7075 MB / 1.019 GB, free: 2.066 MB / 0.6355 GB Notification: Performance of SimCode: time 1.112e-06/1.29, allocations: 0 / 1.019 GB, free: 2.066 MB / 0.6355 GB