Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.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.Logical.Validation.IntegerSwitch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch") [: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.595/2.595, allocations: 253.1 MB / 260.4 MB, free: 7.582 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.001857/0.001856, allocations: 181.2 kB / 319.6 MB, free: 3.312 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.902/1.902, 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.001295/0.001294, allocations: 89.77 kB / 0.6746 GB, free: 4.434 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.106e-05/1.138e-05, allocations: 4 kB / 0.7843 GB, free: 102.5 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2348/0.2349, allocations: 106.2 MB / 0.8881 GB, free: 12.18 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7013/0.9362, allocations: 131.9 MB / 1.017 GB, free: 6.488 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000294/0.9366, allocations: 72.08 kB / 1.017 GB, free: 6.449 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.007161/0.9437, allocations: 1.323 MB / 1.018 GB, free: 5.32 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.286e-05/0.9438, allocations: 4 kB / 1.018 GB, free: 5.316 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0009028/0.9447, allocations: 414.7 kB / 1.019 GB, free: 4.867 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.006e-05/0.9448, allocations: 8.031 kB / 1.019 GB, free: 4.859 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.627e-05/0.9449, allocations: 15.81 kB / 1.019 GB, free: 4.844 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000227/0.9451, allocations: 189.2 kB / 1.019 GB, free: 4.625 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.728e-05/0.9452, allocations: 4 kB / 1.019 GB, free: 4.621 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.057e-05/0.9452, allocations: 8 kB / 1.019 GB, free: 4.613 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002081/0.9454, allocations: 48.61 kB / 1.019 GB, free: 4.582 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002161/0.9456, allocations: 77.73 kB / 1.019 GB, free: 4.516 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.9457, allocations: 0 / 1.019 GB, free: 4.516 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.003e-05/0.9457, allocations: 3.906 kB / 1.019 GB, free: 4.512 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.252e-05/0.9457, allocations: 4 kB / 1.019 GB, free: 4.508 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007215/0.9464, allocations: 346.7 kB / 1.019 GB, free: 4.168 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002106/0.9467, allocations: 78.83 kB / 1.019 GB, free: 4.102 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.911e-05/0.9468, allocations: 24.33 kB / 1.019 GB, free: 4.082 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.609e-05/0.9468, allocations: 11.94 kB / 1.019 GB, free: 4.07 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001805/0.947, allocations: 84.11 kB / 1.019 GB, free: 3.992 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=14): time 2.124e-06/0.947, allocations: 0 / 1.019 GB, free: 3.992 MB / 0.6355 GB Notification: Performance of matching and sorting (n=14): time 0.0003213/0.9473, allocations: 91.78 kB / 1.02 GB, free: 3.91 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.583e-05/0.9474, allocations: 62.89 kB / 1.02 GB, free: 3.84 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001529/0.9476, allocations: 126.7 kB / 1.02 GB, free: 3.723 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.918e-05/0.9476, allocations: 29.7 kB / 1.02 GB, free: 3.688 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 6.799e-05/0.9477, allocations: 99.22 kB / 1.02 GB, free: 3.59 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 4.247e-05/0.9478, allocations: 27.44 kB / 1.02 GB, free: 3.566 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.528e-06/0.9478, allocations: 0 / 1.02 GB, free: 3.566 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001701/0.948, allocations: 325.5 kB / 1.02 GB, free: 3.246 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001004/0.9481, allocations: 19.5 kB / 1.02 GB, free: 3.234 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000125/0.9482, allocations: 64.16 kB / 1.02 GB, free: 3.176 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.543e-05/0.9483, allocations: 27.66 kB / 1.02 GB, free: 3.156 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.9483, allocations: 0 / 1.02 GB, free: 3.156 MB / 0.6355 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0002759/0.9486, allocations: 108.3 kB / 1.02 GB, free: 3.059 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/0.9486, allocations: 4 kB / 1.02 GB, free: 3.055 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.871e-05/0.9487, allocations: 4 kB / 1.02 GB, free: 3.051 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.626e-05/0.9487, allocations: 0 / 1.02 GB, free: 3.051 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001686/0.9489, allocations: 19.92 kB / 1.02 GB, free: 3.031 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.408e-06/0.9489, allocations: 4 kB / 1.02 GB, free: 3.027 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002564/0.9492, allocations: 35.17 kB / 1.02 GB, free: 2.996 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.994e-05/0.9492, allocations: 15.92 kB / 1.021 GB, free: 2.98 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition3,$whenCondition2,$whenCondition1,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,booPul1.y,$PRE.booPul1.pulseStart,booPul1.pulseStart,booPul2.y,$PRE.booPul2.pulseStart,booPul2.pulseStart,booPul3.y,$PRE.booPul3.pulseStart,booPul3.pulseStart,booToInt.y,booToInt1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * 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.0001207/0.9493, allocations: 116.8 kB / 1.021 GB, free: 2.859 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.578e-05/0.9494, allocations: 14.77 kB / 1.021 GB, free: 2.848 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.437e-05/0.9494, allocations: 12.38 kB / 1.021 GB, free: 2.84 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.973e-06/0.9495, allocations: 3.906 kB / 1.021 GB, free: 2.836 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.9495, allocations: 0 / 1.021 GB, free: 2.836 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.9495, allocations: 0 / 1.021 GB, free: 2.836 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003348/0.9498, allocations: 187.3 kB / 1.021 GB, free: 2.633 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.9498, allocations: 0 / 1.021 GB, free: 2.633 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.074e-05/0.9499, allocations: 8 kB / 1.021 GB, free: 2.625 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.993e-06/0.95, allocations: 3.984 kB / 1.021 GB, free: 2.621 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.908e-05/0.95, allocations: 7.906 kB / 1.021 GB, free: 2.613 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.432e-06/0.95, allocations: 7.938 kB / 1.021 GB, free: 2.605 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.95, allocations: 0 / 1.021 GB, free: 2.605 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002925/0.9503, allocations: 130.2 kB / 1.021 GB, free: 2.48 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 6.507e-05/0.9504, allocations: 88.92 kB / 1.021 GB, free: 2.375 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.079e-05/0.9504, allocations: 0 / 1.021 GB, free: 2.375 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002365/0.9507, allocations: 31.09 kB / 1.021 GB, free: 2.348 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.485e-05/0.9508, allocations: 7.984 kB / 1.021 GB, free: 2.34 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.809e-05/0.9508, allocations: 11.48 kB / 1.021 GB, free: 2.332 MB / 0.6355 GB Notification: Performance of sort global known variables: time 0.0001036/0.9509, allocations: 98.09 kB / 1.021 GB, free: 2.242 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003115/0.9512, allocations: 23.91 kB / 1.021 GB, free: 2.219 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: 14 ($whenCondition3,$whenCondition2,$whenCondition1,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,booPul1.y,booPul1.pulseStart,booPul2.y,booPul2.pulseStart,booPul3.y,booPul3.pulseStart,booToInt.y,booToInt1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 11 * 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.0001901/0.9514, allocations: 109.2 kB / 1.021 GB, free: 2.109 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0002694/0.9517, allocations: 73.75 kB / 1.021 GB, free: 2.055 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.9517, allocations: 0 / 1.021 GB, free: 2.055 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0001351/0.9519, allocations: 42.5 kB / 1.021 GB, free: 2.023 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004254/0.9523, allocations: 19.92 kB / 1.021 GB, free: 2.012 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006087/0.9529, allocations: 164.9 kB / 1.022 GB, free: 1.844 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004688/0.9534, allocations: 0.7231 MB / 1.022 GB, free: 1.094 MB / 0.6355 GB Notification: Performance of SimCode: time 1.413e-06/0.9535, allocations: 0 / 1.022 GB, free: 1.094 MB / 0.6355 GB Notification: Performance of Templates: time 0.00917/0.9626, allocations: 1.377 MB / 1.024 GB, free: 15.74 MB / 0.6511 GB