Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.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.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter") [: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.36/2.36, allocations: 253.1 MB / 260.4 MB, free: 7.648 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.001681/0.001681, allocations: 185.2 kB / 319.6 MB, free: 3.32 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.825/1.825, allocations: 205.4 MB / 0.5704 GB, free: 15.06 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.001328/0.001328, allocations: 90.59 kB / 0.6746 GB, free: 4.422 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 9.267e-06/9.418e-06, allocations: 0 / 0.7843 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2119/0.2119, allocations: 106.2 MB / 0.8881 GB, free: 12.21 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7837/0.9957, allocations: 133.3 MB / 1.018 GB, free: 5.176 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005183/0.9963, allocations: 86.88 kB / 1.018 GB, free: 5.125 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.009773/1.006, allocations: 1.21 MB / 1.019 GB, free: 4.113 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.556e-05/1.006, allocations: 3.562 kB / 1.019 GB, free: 4.113 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.001058/1.007, allocations: 437.6 kB / 1.02 GB, free: 3.633 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.763e-05/1.007, allocations: 8.031 kB / 1.02 GB, free: 3.625 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.57e-05/1.007, allocations: 11.81 kB / 1.02 GB, free: 3.613 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003737/1.008, allocations: 193 kB / 1.02 GB, free: 3.391 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.654e-05/1.008, allocations: 8.469 kB / 1.02 GB, free: 3.383 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.119e-05/1.008, allocations: 4 kB / 1.02 GB, free: 3.379 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002707/1.008, allocations: 41.55 kB / 1.02 GB, free: 3.352 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002544/1.008, allocations: 71.86 kB / 1.02 GB, free: 3.285 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/1.008, allocations: 0 / 1.02 GB, free: 3.285 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.872e-05/1.009, allocations: 3.984 kB / 1.02 GB, free: 3.281 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.08e-05/1.009, allocations: 0 / 1.02 GB, free: 3.281 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001107/1.01, allocations: 321.6 kB / 1.021 GB, free: 2.953 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002046/1.01, allocations: 43.95 kB / 1.021 GB, free: 2.91 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001415/1.01, allocations: 34.84 kB / 1.021 GB, free: 2.883 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.028e-05/1.01, allocations: 4 kB / 1.021 GB, free: 2.879 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002462/1.01, allocations: 81.25 kB / 1.021 GB, free: 2.797 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 2.925e-06/1.01, allocations: 3.938 kB / 1.021 GB, free: 2.793 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.0004027/1.011, allocations: 84.25 kB / 1.021 GB, free: 2.715 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.186e-05/1.011, allocations: 77.11 kB / 1.021 GB, free: 2.621 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002466/1.011, allocations: 119.6 kB / 1.021 GB, free: 2.508 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 4.186e-05/1.011, allocations: 29.7 kB / 1.021 GB, free: 2.473 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 9.32e-05/1.011, allocations: 91.67 kB / 1.021 GB, free: 2.383 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 5.461e-05/1.011, allocations: 23.23 kB / 1.021 GB, free: 2.363 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.65e-05/1.011, allocations: 0 / 1.021 GB, free: 2.363 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0002142/1.012, allocations: 318.2 kB / 1.021 GB, free: 2.047 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001381/1.012, allocations: 27.17 kB / 1.021 GB, free: 2.027 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001481/1.012, allocations: 26.69 kB / 1.021 GB, free: 2.012 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001157/1.012, allocations: 22.92 kB / 1.021 GB, free: 1.996 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/1.012, allocations: 3.938 kB / 1.021 GB, free: 1.992 MB / 0.6355 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004037/1.013, allocations: 95.48 kB / 1.022 GB, free: 1.906 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.501e-05/1.013, allocations: 16.03 kB / 1.022 GB, free: 1.891 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.498e-06/1.013, allocations: 4.625 kB / 1.022 GB, free: 1.887 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.311e-05/1.013, allocations: 0 / 1.022 GB, free: 1.887 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003402/1.013, allocations: 23.3 kB / 1.022 GB, free: 1.867 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.089e-05/1.013, allocations: 3.938 kB / 1.022 GB, free: 1.863 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003578/1.013, allocations: 27.97 kB / 1.022 GB, free: 1.836 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.749e-05/1.013, allocations: 0 / 1.022 GB, free: 1.836 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,reqCou.nInc,$PRE.act1.T_start,act1.T_start,$PRE.act1.count,act1.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 2 * 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.0001947/1.014, allocations: 134.6 kB / 1.022 GB, free: 1.691 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.662e-05/1.014, allocations: 11.91 kB / 1.022 GB, free: 1.68 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.187e-05/1.014, allocations: 11.88 kB / 1.022 GB, free: 1.672 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.295e-06/1.014, allocations: 7.984 kB / 1.022 GB, free: 1.664 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/1.014, allocations: 0 / 1.022 GB, free: 1.664 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/1.014, allocations: 0 / 1.022 GB, free: 1.664 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006349/1.015, allocations: 314.6 kB / 1.022 GB, free: 1.336 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/1.015, allocations: 0 / 1.022 GB, free: 1.336 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002445/1.015, allocations: 27.91 kB / 1.022 GB, free: 1.309 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.901e-06/1.015, allocations: 4 kB / 1.022 GB, free: 1.305 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.436e-05/1.015, allocations: 3.688 kB / 1.022 GB, free: 1.305 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.936e-06/1.015, allocations: 0 / 1.022 GB, free: 1.305 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/1.015, allocations: 0 / 1.022 GB, free: 1.305 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003885/1.015, allocations: 188.2 kB / 1.022 GB, free: 1.121 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 9.118e-05/1.015, allocations: 85.02 kB / 1.022 GB, free: 1.02 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.641e-05/1.015, allocations: 3.906 kB / 1.022 GB, free: 1.016 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004153/1.016, allocations: 27.97 kB / 1.022 GB, free: 0.9883 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001917/1.016, allocations: 19.53 kB / 1.022 GB, free: 0.9727 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.421e-05/1.016, allocations: 3.5 kB / 1.022 GB, free: 0.9727 MB / 0.6355 GB Notification: Performance of sort global known variables: time 0.0001223/1.016, allocations: 93.25 kB / 1.023 GB, free: 0.8867 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0006403/1.017, allocations: 23.56 kB / 1.023 GB, free: 0.8672 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: 4 ($whenCondition1,reqCou.nInc,act1.T_start,act1.count) * Number of discrete states: 2 (act1.count,reqCou.nInc) * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * 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.0002417/1.017, allocations: 115.1 kB / 1.023 GB, free: 0.7422 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0004331/1.018, allocations: 116.8 kB / 1.023 GB, free: 0.6328 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/1.018, allocations: 0 / 1.023 GB, free: 0.6328 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0002223/1.018, allocations: 67.44 kB / 1.023 GB, free: 0.5742 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004284/1.018, allocations: 4 kB / 1.023 GB, free: 0.5703 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007984/1.019, allocations: 129.2 kB / 1.023 GB, free: 444 kB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000626/1.02, allocations: 0.7114 MB / 1.024 GB, free: 15.7 MB / 0.6511 GB Notification: Performance of SimCode: time 1.202e-06/1.02, allocations: 0 / 1.024 GB, free: 15.7 MB / 0.6511 GB Notification: Performance of Templates: time 0.00708/1.027, allocations: 1.213 MB / 1.025 GB, free: 14.51 MB / 0.6511 GB