Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.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.Controls.OBC.CDL.Integers.Validation.OnCounter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter") [: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.353/2.353, allocations: 253.1 MB / 260.4 MB, free: 7.605 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.001621/0.00162, allocations: 189.2 kB / 319.6 MB, free: 3.301 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 2.321/2.321, allocations: 205.4 MB / 0.5704 GB, free: 15.04 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.001567/0.001568, allocations: 94.69 kB / 0.6746 GB, free: 4.402 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.694e-05/1.715e-05, allocations: 4 kB / 0.7843 GB, free: 102.5 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2794/0.2794, allocations: 106.2 MB / 0.8881 GB, free: 12.18 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7769/1.056, allocations: 131.5 MB / 1.017 GB, free: 6.68 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002725/1.057, allocations: 69.95 kB / 1.017 GB, free: 6.641 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.003654/1.06, allocations: 0.621 MB / 1.017 GB, free: 6.109 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 9.417e-06/1.06, allocations: 0 / 1.017 GB, free: 6.109 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006436/1.061, allocations: 362.2 kB / 1.018 GB, free: 5.715 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.782e-05/1.061, allocations: 8.031 kB / 1.018 GB, free: 5.707 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.97e-05/1.061, allocations: 7.906 kB / 1.018 GB, free: 5.699 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002383/1.061, allocations: 177.6 kB / 1.018 GB, free: 5.488 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.664e-05/1.061, allocations: 6.625 kB / 1.018 GB, free: 5.484 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.987e-05/1.062, allocations: 0.8438 kB / 1.018 GB, free: 5.484 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001029/1.062, allocations: 19.86 kB / 1.018 GB, free: 5.469 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001246/1.062, allocations: 49.31 kB / 1.018 GB, free: 5.422 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.056e-05/1.062, allocations: 4 kB / 1.018 GB, free: 5.418 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.451e-05/1.062, allocations: 0 / 1.018 GB, free: 5.418 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.057e-06/1.062, allocations: 0 / 1.018 GB, free: 5.418 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005285/1.062, allocations: 267.3 kB / 1.018 GB, free: 5.133 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001314/1.063, allocations: 52.7 kB / 1.018 GB, free: 5.082 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.844e-05/1.063, allocations: 18.3 kB / 1.018 GB, free: 5.066 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 9.167e-06/1.063, allocations: 3.938 kB / 1.018 GB, free: 5.062 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001344/1.063, allocations: 70.17 kB / 1.018 GB, free: 4.988 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=9): time 1.864e-06/1.063, allocations: 0 / 1.018 GB, free: 4.988 MB / 0.6355 GB Notification: Performance of matching and sorting (n=9): time 0.0002416/1.063, allocations: 75.78 kB / 1.018 GB, free: 4.918 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.141e-05/1.063, allocations: 55.41 kB / 1.018 GB, free: 4.852 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001074/1.063, allocations: 110.5 kB / 1.018 GB, free: 4.746 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.596e-05/1.063, allocations: 25.7 kB / 1.018 GB, free: 4.715 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.289e-05/1.063, allocations: 91.98 kB / 1.019 GB, free: 4.621 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.558e-05/1.063, allocations: 14 kB / 1.019 GB, free: 4.613 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.03e-05/1.063, allocations: 0 / 1.019 GB, free: 4.613 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001283/1.063, allocations: 322.7 kB / 1.019 GB, free: 4.289 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.281e-05/1.064, allocations: 15.25 kB / 1.019 GB, free: 4.281 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.261e-05/1.064, allocations: 54.72 kB / 1.019 GB, free: 4.219 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.787e-05/1.064, allocations: 17.92 kB / 1.019 GB, free: 4.207 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.959e-06/1.064, allocations: 4 kB / 1.019 GB, free: 4.203 MB / 0.6355 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002042/1.064, allocations: 79.09 kB / 1.019 GB, free: 4.129 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.616e-05/1.064, allocations: 10.59 kB / 1.019 GB, free: 4.121 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/1.064, allocations: 4 kB / 1.019 GB, free: 4.117 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.494e-05/1.064, allocations: 0 / 1.019 GB, free: 4.117 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.193e-05/1.064, allocations: 18.23 kB / 1.019 GB, free: 4.102 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.989e-06/1.064, allocations: 0 / 1.019 GB, free: 4.102 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001704/1.064, allocations: 15.98 kB / 1.019 GB, free: 4.086 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.376e-05/1.064, allocations: 12.45 kB / 1.019 GB, free: 4.074 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.onCounter.y,onCounter.y,$whenCondition4,$whenCondition3,$whenCondition1,booPul.y,$PRE.booPul.pulseStart,booPul.pulseStart,$whenCondition2,onCounter.reset,$PRE.reset.pulseStart,reset.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * 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.0001002/1.064, allocations: 115.9 kB / 1.019 GB, free: 3.957 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.051e-05/1.064, allocations: 7.906 kB / 1.019 GB, free: 3.949 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.805e-05/1.065, allocations: 11.77 kB / 1.019 GB, free: 3.938 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/1.065, allocations: 0 / 1.019 GB, free: 3.938 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/1.065, allocations: 3.938 kB / 1.019 GB, free: 3.934 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.226e-05/1.065, allocations: 7.984 kB / 1.019 GB, free: 3.926 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000725/1.065, allocations: 351.5 kB / 1.02 GB, free: 3.559 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/1.065, allocations: 0 / 1.02 GB, free: 3.559 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.285e-05/1.065, allocations: 4 kB / 1.02 GB, free: 3.555 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/1.065, allocations: 0 / 1.02 GB, free: 3.555 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.638e-05/1.065, allocations: 7.984 kB / 1.02 GB, free: 3.547 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/1.065, allocations: 0 / 1.02 GB, free: 3.547 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.015e-06/1.065, allocations: 0 / 1.02 GB, free: 3.547 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002109/1.066, allocations: 166.8 kB / 1.02 GB, free: 3.379 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.938e-05/1.066, allocations: 92.33 kB / 1.02 GB, free: 3.273 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.365e-05/1.066, allocations: 4.859 kB / 1.02 GB, free: 3.27 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002063/1.066, allocations: 23.89 kB / 1.02 GB, free: 3.246 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.528e-05/1.066, allocations: 7.984 kB / 1.02 GB, free: 3.238 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.338e-05/1.066, allocations: 0 / 1.02 GB, free: 3.238 MB / 0.6355 GB Notification: Performance of sort global known variables: time 6.735e-05/1.066, allocations: 90.34 kB / 1.02 GB, free: 3.156 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003218/1.066, allocations: 12 kB / 1.02 GB, free: 3.145 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: 9 (booPul.y,onCounter.reset,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,onCounter.y,booPul.pulseStart,reset.pulseStart) * Number of discrete states: 1 (onCounter.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001604/1.067, allocations: 111.2 kB / 1.02 GB, free: 3.027 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.000184/1.067, allocations: 47.16 kB / 1.02 GB, free: 2.992 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/1.067, allocations: 0 / 1.02 GB, free: 2.992 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 9.077e-05/1.067, allocations: 30.62 kB / 1.02 GB, free: 2.969 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003409/1.067, allocations: 15.42 kB / 1.02 GB, free: 2.957 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004349/1.068, allocations: 114.4 kB / 1.02 GB, free: 2.832 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000349/1.068, allocations: 0.7036 MB / 1.021 GB, free: 2.102 MB / 0.6355 GB Notification: Performance of SimCode: time 8.12e-07/1.068, allocations: 0 / 1.021 GB, free: 2.102 MB / 0.6355 GB Notification: Performance of Templates: time 0.004559/1.073, allocations: 0.9205 MB / 1.022 GB, free: 1.203 MB / 0.6355 GB