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.BatteryControl.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.BatteryControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") [: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.12/2.12, allocations: 253.1 MB / 260.4 MB, free: 7.535 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.001583/0.001583, allocations: 181 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.944/1.944, allocations: 205.4 MB / 0.5704 GB, free: 15.07 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.001367/0.001366, allocations: 89.02 kB / 0.6746 GB, free: 4.434 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.141e-05/1.161e-05, allocations: 4 kB / 0.7843 GB, free: 102.5 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2212/0.2213, allocations: 106.2 MB / 0.8881 GB, free: 12.18 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6769/0.8982, allocations: 135.9 MB / 1.021 GB, free: 2.398 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00037/0.8986, allocations: 89.36 kB / 1.021 GB, free: 2.344 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.03319/0.9318, allocations: 7.744 MB / 1.028 GB, free: 12.02 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 3.617e-05/0.9319, allocations: 16 kB / 1.028 GB, free: 12 MB / 0.6511 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.00139/0.9334, allocations: 0.6241 MB / 1.029 GB, free: 11.36 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 8.044e-05/0.9334, allocations: 8.031 kB / 1.029 GB, free: 11.36 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001577/0.9336, allocations: 51.44 kB / 1.029 GB, free: 11.3 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006477/0.9343, allocations: 337 kB / 1.029 GB, free: 10.99 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.429e-05/0.9343, allocations: 20 kB / 1.029 GB, free: 10.97 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001026/0.9345, allocations: 32 kB / 1.03 GB, free: 10.94 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001174/0.9357, allocations: 376.9 kB / 1.03 GB, free: 10.71 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00126/0.9369, allocations: 498.7 kB / 1.03 GB, free: 10.32 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.524e-05/0.937, allocations: 3.906 kB / 1.03 GB, free: 10.32 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.233e-05/0.9371, allocations: 0 / 1.03 GB, free: 10.32 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.69e-05/0.9371, allocations: 25 kB / 1.03 GB, free: 10.29 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003538/0.9407, allocations: 1.796 MB / 1.032 GB, free: 8.777 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008885/0.9416, allocations: 315.8 kB / 1.032 GB, free: 8.559 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004107/0.942, allocations: 169.2 kB / 1.033 GB, free: 8.457 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 8.076e-05/0.9421, allocations: 8 kB / 1.033 GB, free: 8.449 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004879/0.9426, allocations: 197.8 kB / 1.033 GB, free: 8.297 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=46): time 4.459e-06/0.9427, allocations: 0 / 1.033 GB, free: 8.297 MB / 0.6511 GB Notification: Performance of matching and sorting (n=46): time 0.0009715/0.9436, allocations: 293.5 kB / 1.033 GB, free: 8.07 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.725e-05/0.9437, allocations: 69.89 kB / 1.033 GB, free: 7.992 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000334/0.9441, allocations: 204.8 kB / 1.033 GB, free: 7.824 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 8.929e-05/0.9442, allocations: 43.5 kB / 1.033 GB, free: 7.781 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001867/0.9444, allocations: 202.8 kB / 1.034 GB, free: 7.598 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001409/0.9445, allocations: 101.4 kB / 1.034 GB, free: 7.516 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.356e-05/0.9446, allocations: 7.938 kB / 1.034 GB, free: 7.508 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001561/0.9447, allocations: 339.5 kB / 1.034 GB, free: 7.18 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004081/0.9451, allocations: 142 kB / 1.034 GB, free: 7.098 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005437/0.9457, allocations: 271 kB / 1.034 GB, free: 6.852 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004875/0.9462, allocations: 146.6 kB / 1.035 GB, free: 6.75 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.571e-06/0.9462, allocations: 4 kB / 1.035 GB, free: 6.746 MB / 0.6511 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001209/0.9475, allocations: 436.4 kB / 1.035 GB, free: 6.41 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.511e-05/0.9475, allocations: 8 kB / 1.035 GB, free: 6.402 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.186e-05/0.9475, allocations: 480 / 1.035 GB, free: 6.402 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.873e-05/0.9476, allocations: 12 kB / 1.035 GB, free: 6.391 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004858/0.948, allocations: 67.39 kB / 1.035 GB, free: 6.328 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.679e-05/0.9481, allocations: 11.84 kB / 1.035 GB, free: 6.316 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004145/0.9485, allocations: 39.83 kB / 1.035 GB, free: 6.277 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.193e-05/0.9486, allocations: 26.48 kB / 1.035 GB, free: 6.258 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 55 ($PRE.con.multiSwitch1.u[1],$PRE.con.multiSwitch1.u[2],$PRE.con.t1.enableFire,$PRE.con.t2.enableFire,$PRE.con.t3.enableFire,$PRE.con.t4.enableFire,con.stateGraphRoot.resume,con.stateGraphRoot.suspend,$whenCondition2,$whenCondition1,con.greaterEqualThreshold.y,con.and1.u1,con.and1.u2,con.and1.y,con.and2.u2,con.and2.y,con.lessEqualThreshold.y,con.multiSwitch1.u[1],con.multiSwitch1.u[2],con.multiSwitch1.firstActiveIndex,$PRE.con.off.localActive,con.off.localActive,con.off.inPort[1].set,con.off.outPort[1].reset,$PRE.con.off.newActive,con.off.newActive,$PRE.con.off.oldActive,con.off.oldActive,con.off.active,con.stateGraphRoot.activeSteps,con.alternative.split[2].available,con.t1.enableFire,con.t1.fire,$PRE.con.t1.t_start,con.t1.t_start,con.t2.enableFire,con.t2.fire,$PRE.con.t2.t_start,con.t2.t_start,$PRE.con.charge.localActive,con.charge.localActive,$PRE.con.charge.newActive,con.charge.newActive,$PRE.con.charge.oldActive,con.charge.oldActive,con.charge.active,$PRE.con.discharge.localActive,con.discharge.localActive,$PRE.con.discharge.newActive,con.discharge.newActive,$PRE.con.discharge.oldActive,con.discharge.oldActive,con.discharge.active,con.t3.enableFire,con.t4.enableFire) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (74): * Single equations (assignments): 74 * 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.000218/0.9488, allocations: 145.3 kB / 1.035 GB, free: 6.113 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.477e-05/0.9489, allocations: 30.94 kB / 1.035 GB, free: 6.086 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001269/0.9502, allocations: 374.5 kB / 1.036 GB, free: 5.812 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.828e-06/0.9502, allocations: 4 kB / 1.036 GB, free: 5.809 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/0.9503, allocations: 4 kB / 1.036 GB, free: 5.805 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.414e-05/0.9503, allocations: 7.891 kB / 1.036 GB, free: 5.797 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002361/0.9526, allocations: 0.9239 MB / 1.037 GB, free: 5.051 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.361e-06/0.9527, allocations: 0 / 1.037 GB, free: 5.051 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002991/0.953, allocations: 35.91 kB / 1.037 GB, free: 5.016 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.849e-06/0.953, allocations: 0 / 1.037 GB, free: 5.016 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.256e-05/0.9531, allocations: 11.48 kB / 1.037 GB, free: 5.008 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.169e-06/0.9531, allocations: 0 / 1.037 GB, free: 5.008 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.9531, allocations: 0 / 1.037 GB, free: 5.008 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001148/0.9543, allocations: 457.5 kB / 1.037 GB, free: 4.629 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 8.975e-05/0.9544, allocations: 104.8 kB / 1.037 GB, free: 4.508 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.484e-05/0.9545, allocations: 4 kB / 1.037 GB, free: 4.504 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003518/0.9548, allocations: 23.98 kB / 1.037 GB, free: 4.48 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002275/0.9551, allocations: 70.23 kB / 1.037 GB, free: 4.426 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.069e-05/0.9551, allocations: 19.56 kB / 1.037 GB, free: 4.41 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.000159/0.9553, allocations: 133.4 kB / 1.037 GB, free: 4.297 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.000635/0.956, allocations: 75.92 kB / 1.037 GB, free: 4.223 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 42 (con.t2.enableFire,con.t1.enableFire,con.discharge.active,con.discharge.localActive,con.charge.active,con.charge.localActive,con.off.localActive,$cse1,$cse2,$cse3,$cse4,$cse5,$cse6,$whenCondition2,$whenCondition1,con.greaterEqualThreshold.y,con.and1.u1,con.and1.u2,con.and1.y,con.and2.u2,con.and2.y,con.lessEqualThreshold.y,con.multiSwitch1.u[1],con.multiSwitch1.u[2],con.multiSwitch1.firstActiveIndex,con.off.inPort[1].set,con.off.outPort[1].reset,con.off.newActive,con.off.oldActive,con.off.active,con.stateGraphRoot.activeSteps,con.alternative.split[2].available,con.t1.fire,con.t1.t_start,con.t2.fire,con.t2.t_start,con.charge.newActive,con.charge.oldActive,con.discharge.newActive,con.discharge.oldActive,con.t3.enableFire,con.t4.enableFire) * Number of discrete states: 3 (con.off.newActive,con.charge.newActive,con.discharge.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0002826/0.9563, allocations: 129.9 kB / 1.038 GB, free: 4.094 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.001005/0.9573, allocations: 394.2 kB / 1.038 GB, free: 3.824 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.9573, allocations: 4 kB / 1.038 GB, free: 3.82 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0004812/0.9578, allocations: 198.6 kB / 1.038 GB, free: 3.684 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004241/0.9582, allocations: 31.36 kB / 1.038 GB, free: 3.66 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001793/0.96, allocations: 0.5169 MB / 1.039 GB, free: 3.211 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000753/0.9608, allocations: 0.875 MB / 1.04 GB, free: 2.32 MB / 0.6511 GB Notification: Performance of SimCode: time 1.022e-06/0.9608, allocations: 0 / 1.04 GB, free: 2.32 MB / 0.6511 GB Notification: Performance of Templates: time 0.01544/0.9763, allocations: 4.482 MB / 1.044 GB, free: 13.89 MB / 0.6667 GB