Running: ./testmodel.py --libraries=/var/lib/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 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean") [: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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.073/2.073, allocations: 253.1 MB / 260.4 MB, free: 7.527 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001614/0.001613, allocations: 181.2 kB / 319.6 MB, free: 3.328 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.754/1.754, allocations: 205.4 MB / 0.5704 GB, free: 15.08 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001295/0.001294, allocations: 91.39 kB / 0.6746 GB, free: 4.438 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 9.788e-06/9.829e-06, allocations: 4 kB / 0.7843 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2112/0.2112, allocations: 106.3 MB / 0.8881 GB, free: 12.2 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6354/0.8467, allocations: 132.1 MB / 1.017 GB, free: 6.258 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002492/0.847, allocations: 74.17 kB / 1.017 GB, free: 6.219 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.006715/0.8537, allocations: 1.318 MB / 1.018 GB, free: 5.16 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.029e-05/0.8538, allocations: 0 / 1.018 GB, free: 5.16 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.0004737/0.8542, allocations: 383 kB / 1.019 GB, free: 4.742 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.179e-05/0.8543, allocations: 8.031 kB / 1.019 GB, free: 4.734 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.858e-05/0.8544, allocations: 7.906 kB / 1.019 GB, free: 4.727 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002647/0.8546, allocations: 186.3 kB / 1.019 GB, free: 4.508 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.596e-05/0.8547, allocations: 0 / 1.019 GB, free: 4.508 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.23e-05/0.8547, allocations: 4 kB / 1.019 GB, free: 4.504 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001244/0.8548, allocations: 33.05 kB / 1.019 GB, free: 4.484 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001528/0.855, allocations: 67.8 kB / 1.019 GB, free: 4.422 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.706e-06/0.855, allocations: 0 / 1.019 GB, free: 4.422 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.438e-05/0.855, allocations: 0 / 1.019 GB, free: 4.422 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.516e-06/0.8551, allocations: 4 kB / 1.019 GB, free: 4.418 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004691/0.8555, allocations: 261.5 kB / 1.019 GB, free: 4.137 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001246/0.8557, allocations: 66.02 kB / 1.019 GB, free: 4.09 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001052/0.8558, allocations: 56.83 kB / 1.019 GB, free: 4.055 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.125e-05/0.8558, allocations: 4 kB / 1.019 GB, free: 4.051 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001675/0.856, allocations: 109 kB / 1.02 GB, free: 3.945 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=11): time 1.814e-06/0.856, allocations: 4 kB / 1.02 GB, free: 3.941 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11): time 0.000331/0.8564, allocations: 114.1 kB / 1.02 GB, free: 3.844 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.704e-05/0.8565, allocations: 118.7 kB / 1.02 GB, free: 3.707 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.567e-05/0.8566, allocations: 98.94 kB / 1.02 GB, free: 3.609 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 3.25e-05/0.8566, allocations: 29.78 kB / 1.02 GB, free: 3.574 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.132e-05/0.8567, allocations: 92.12 kB / 1.02 GB, free: 3.48 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 4.282e-05/0.8567, allocations: 34.2 kB / 1.02 GB, free: 3.453 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.009e-05/0.8567, allocations: 0 / 1.02 GB, free: 3.453 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.000123/0.8569, allocations: 326.4 kB / 1.02 GB, free: 3.129 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.99e-05/0.857, allocations: 30.3 kB / 1.02 GB, free: 3.109 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001441/0.8571, allocations: 91.11 kB / 1.02 GB, free: 3.004 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001348/0.8573, allocations: 53.22 kB / 1.021 GB, free: 2.965 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.8573, allocations: 0 / 1.021 GB, free: 2.965 MB / 0.6355 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003441/0.8576, allocations: 144.8 kB / 1.021 GB, free: 2.84 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.826e-05/0.8577, allocations: 7.906 kB / 1.021 GB, free: 2.832 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.076e-05/0.8577, allocations: 4 kB / 1.021 GB, free: 2.828 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.777e-05/0.8577, allocations: 4 kB / 1.021 GB, free: 2.824 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002073/0.8579, allocations: 23.92 kB / 1.021 GB, free: 2.801 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.448e-06/0.8579, allocations: 4 kB / 1.021 GB, free: 2.797 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001186/0.8581, allocations: 11.89 kB / 1.021 GB, free: 2.785 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.218e-05/0.8581, allocations: 11.88 kB / 1.021 GB, free: 2.777 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.0001718/0.8583, allocations: 162.5 kB / 1.021 GB, free: 2.609 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.86e-05/0.8583, allocations: 7.906 kB / 1.021 GB, free: 2.602 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.928e-05/0.8584, allocations: 11.89 kB / 1.021 GB, free: 2.59 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.8584, allocations: 0 / 1.021 GB, free: 2.59 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.8584, allocations: 4 kB / 1.021 GB, free: 2.586 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.8584, allocations: 0 / 1.021 GB, free: 2.586 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001623/0.8586, allocations: 163.7 kB / 1.021 GB, free: 2.398 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.588e-06/0.8586, allocations: 4 kB / 1.021 GB, free: 2.395 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.463e-05/0.8587, allocations: 11.98 kB / 1.021 GB, free: 2.383 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.435e-06/0.8587, allocations: 0 / 1.021 GB, free: 2.383 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.651e-05/0.8587, allocations: 0 / 1.021 GB, free: 2.383 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.8587, allocations: 4 kB / 1.021 GB, free: 2.379 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.8587, allocations: 0 / 1.021 GB, free: 2.379 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003355/0.8591, allocations: 161.3 kB / 1.021 GB, free: 2.234 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.108e-05/0.8592, allocations: 89 kB / 1.021 GB, free: 2.129 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.813e-05/0.8592, allocations: 4 kB / 1.021 GB, free: 2.125 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001019/0.8593, allocations: 11.91 kB / 1.021 GB, free: 2.113 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.481e-05/0.8594, allocations: 11.23 kB / 1.021 GB, free: 2.105 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.917e-05/0.8594, allocations: 4 kB / 1.021 GB, free: 2.102 MB / 0.6355 GB Notification: Performance of sort global known variables: time 5.247e-05/0.8595, allocations: 82.72 kB / 1.021 GB, free: 2.023 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003128/0.8598, allocations: 20 kB / 1.021 GB, free: 2.004 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.0001591/0.86, allocations: 118.4 kB / 1.022 GB, free: 1.887 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0003422/0.8603, allocations: 131.4 kB / 1.022 GB, free: 1.777 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.8603, allocations: 0 / 1.022 GB, free: 1.777 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0002182/0.8606, allocations: 149.1 kB / 1.022 GB, free: 1.691 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002093/0.8608, allocations: 15.88 kB / 1.022 GB, free: 1.68 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004128/0.8612, allocations: 112.9 kB / 1.022 GB, free: 1.559 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003605/0.8616, allocations: 0.7041 MB / 1.023 GB, free: 0.8281 MB / 0.6355 GB Notification: Performance of SimCode: time 1.022e-06/0.8616, allocations: 0 / 1.023 GB, free: 0.8281 MB / 0.6355 GB Notification: Performance of Templates: time 0.004337/0.866, allocations: 1.01 MB / 1.024 GB, free: 15.84 MB / 0.6511 GB