Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.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.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery") [: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.342/2.342, allocations: 253.1 MB / 260.4 MB, free: 7.547 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.002386/0.002386, allocations: 181.3 kB / 319.6 MB, free: 3.309 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.002/2.002, allocations: 205.4 MB / 0.5704 GB, free: 15.13 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.001769/0.001768, allocations: 91.28 kB / 0.6746 GB, free: 4.492 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.116e-05/1.134e-05, allocations: 0 / 0.7843 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2393/0.2394, allocations: 106.3 MB / 0.8881 GB, free: 12.2 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6922/0.9316, allocations: 152 MB / 1.037 GB, free: 3.797 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000377/0.9321, allocations: 92 kB / 1.037 GB, free: 3.746 MB / 0.6511 GB Notification: Performance of FrontEnd: time 0.1245/1.057, allocations: 28.57 MB / 1.065 GB, free: 12.1 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 5.239e-05/1.057, allocations: 16 kB / 1.065 GB, free: 12.09 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.002475/1.059, allocations: 0.8161 MB / 1.065 GB, free: 11.26 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.044e-05/1.059, allocations: 12.03 kB / 1.065 GB, free: 11.25 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001498/1.061, allocations: 151 kB / 1.065 GB, free: 11.1 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001046/1.062, allocations: 436.4 kB / 1.066 GB, free: 10.7 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.931e-05/1.062, allocations: 16 kB / 1.066 GB, free: 10.68 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001418/1.062, allocations: 32 kB / 1.066 GB, free: 10.65 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001424/1.063, allocations: 461.4 kB / 1.066 GB, free: 10.36 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001558/1.065, allocations: 0.5965 MB / 1.067 GB, free: 9.891 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.92e-05/1.065, allocations: 7.922 kB / 1.067 GB, free: 9.883 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.783e-05/1.065, allocations: 7.25 kB / 1.067 GB, free: 9.879 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.722e-05/1.065, allocations: 48.38 kB / 1.067 GB, free: 9.836 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005535/1.071, allocations: 2.708 MB / 1.07 GB, free: 7.316 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00143/1.072, allocations: 0.5181 MB / 1.07 GB, free: 6.945 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005864/1.073, allocations: 247.5 kB / 1.07 GB, free: 6.781 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006405/1.074, allocations: 0.5622 MB / 1.071 GB, free: 6.09 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008282/1.074, allocations: 343.3 kB / 1.071 GB, free: 5.832 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=49): time 3.466e-06/1.075, allocations: 0 / 1.071 GB, free: 5.832 MB / 0.6823 GB Notification: Performance of matching and sorting (n=49): time 0.001635/1.076, allocations: 0.5038 MB / 1.072 GB, free: 5.453 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.187e-05/1.076, allocations: 85.55 kB / 1.072 GB, free: 5.352 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005269/1.077, allocations: 278.1 kB / 1.072 GB, free: 5.129 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0001117/1.077, allocations: 33.14 kB / 1.072 GB, free: 5.094 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002941/1.077, allocations: 235.9 kB / 1.072 GB, free: 4.879 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003473/1.078, allocations: 155.7 kB / 1.073 GB, free: 4.746 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.527e-05/1.078, allocations: 0 / 1.073 GB, free: 4.746 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0002972/1.078, allocations: 352.5 kB / 1.073 GB, free: 4.41 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001012/1.079, allocations: 212 kB / 1.073 GB, free: 4.285 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001175/1.08, allocations: 332.4 kB / 1.073 GB, free: 4.016 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001337/1.082, allocations: 251.6 kB / 1.074 GB, free: 3.855 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.251e-05/1.082, allocations: 0 / 1.074 GB, free: 3.855 MB / 0.6823 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.003253/1.085, allocations: 0.5909 MB / 1.074 GB, free: 3.422 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007776/1.086, allocations: 1.063 MB / 1.075 GB, free: 2.297 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.977e-05/1.086, allocations: 0 / 1.075 GB, free: 2.297 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.804e-05/1.086, allocations: 11.91 kB / 1.075 GB, free: 2.285 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001775/1.088, allocations: 107.2 kB / 1.075 GB, free: 2.184 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.827e-05/1.088, allocations: 11.98 kB / 1.075 GB, free: 2.172 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001779/1.09, allocations: 55.64 kB / 1.075 GB, free: 2.117 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001451/1.09, allocations: 22.88 kB / 1.075 GB, free: 2.102 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 2.342e-05/1.09, allocations: 4 kB / 1.075 GB, free: 2.098 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002187/1.092, allocations: 472.4 kB / 1.076 GB, free: 1.773 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.187e-05/1.092, allocations: 4 kB / 1.076 GB, free: 1.77 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.7e-05/1.092, allocations: 7.938 kB / 1.076 GB, free: 1.762 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001414/1.094, allocations: 107.7 kB / 1.076 GB, free: 1.66 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.181e-05/1.094, allocations: 7.938 kB / 1.076 GB, free: 1.652 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001305/1.095, allocations: 59.83 kB / 1.076 GB, free: 1.594 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001016/1.095, allocations: 19.88 kB / 1.076 GB, free: 1.578 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition2,$PRE.bat_ideal.cha.underCharged,bat_ideal.cha.underCharged,$PRE.bat_ideal.cha.overCharged,bat_ideal.cha.overCharged,$whenCondition3,$PRE.bat_loss_acdc.cha.underCharged,bat_loss_acdc.cha.underCharged,$PRE.bat_loss_acdc.cha.overCharged,bat_loss_acdc.cha.overCharged,$whenCondition4,$PRE.bat.cha.underCharged,bat.cha.underCharged,$PRE.bat.cha.overCharged,bat.cha.overCharged,$whenCondition1,$PRE.pow.T_start,pow.T_start,$PRE.pow.count,pow.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 68 * 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.0004405/1.095, allocations: 130.7 kB / 1.076 GB, free: 1.445 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002204/1.096, allocations: 51.42 kB / 1.076 GB, free: 1.395 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002458/1.098, allocations: 0.5385 MB / 1.077 GB, free: 1.02 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.016e-05/1.098, allocations: 8 kB / 1.077 GB, free: 1.012 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.361e-05/1.098, allocations: 3.906 kB / 1.077 GB, free: 1.008 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.846e-05/1.098, allocations: 3.984 kB / 1.077 GB, free: 1.004 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001607/1.1, allocations: 0.5374 MB / 1.077 GB, free: 0.5586 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.127e-06/1.1, allocations: 0 / 1.077 GB, free: 0.5586 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001689/1.102, allocations: 95.56 kB / 1.077 GB, free: 480 kB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.937e-05/1.102, allocations: 4 kB / 1.077 GB, free: 476 kB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.837e-05/1.102, allocations: 6.734 kB / 1.077 GB, free: 472 kB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.664e-05/1.102, allocations: 4 kB / 1.077 GB, free: 468 kB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/1.102, allocations: 0 / 1.077 GB, free: 468 kB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003384/1.105, allocations: 0.8589 MB / 1.078 GB, free: 15.84 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006057/1.106, allocations: 177.4 kB / 1.078 GB, free: 15.67 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002121/1.106, allocations: 7.906 kB / 1.078 GB, free: 15.66 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00105/1.107, allocations: 30.95 kB / 1.078 GB, free: 15.64 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002934/1.108, allocations: 40.06 kB / 1.079 GB, free: 15.61 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001049/1.108, allocations: 19.73 kB / 1.079 GB, free: 15.59 MB / 0.698 GB Notification: Performance of sort global known variables: time 0.0005876/1.108, allocations: 220.7 kB / 1.079 GB, free: 15.42 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.00186/1.11, allocations: 262.9 kB / 1.079 GB, free: 15.17 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (bat_ideal.cha.SOC,bat_loss_acdc.cha.SOC,bat.cha.SOC) * Number of discrete variables: 12 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,bat_ideal.cha.underCharged,bat_ideal.cha.overCharged,pow.T_start,pow.count,bat_loss_acdc.cha.underCharged,bat_loss_acdc.cha.overCharged,bat.cha.underCharged,bat.cha.overCharged) * Number of discrete states: 7 (pow.count,bat_ideal.cha.underCharged,bat_ideal.cha.overCharged,bat_loss_acdc.cha.underCharged,bat_loss_acdc.cha.overCharged,bat.cha.underCharged,bat.cha.overCharged) * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * 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.0004517/1.111, allocations: 137.5 kB / 1.079 GB, free: 15.03 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.003404/1.114, allocations: 0.8579 MB / 1.08 GB, free: 14.43 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 9.888e-06/1.114, allocations: 1 kB / 1.08 GB, free: 14.43 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.001067/1.115, allocations: 261.2 kB / 1.08 GB, free: 14.25 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002343/1.118, allocations: 151.9 kB / 1.08 GB, free: 14.13 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00428/1.122, allocations: 0.8043 MB / 1.081 GB, free: 13.41 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001556/1.124, allocations: 0.9624 MB / 1.082 GB, free: 12.44 MB / 0.698 GB Notification: Performance of SimCode: time 2.214e-06/1.124, allocations: 0 / 1.082 GB, free: 12.44 MB / 0.698 GB Notification: Performance of Templates: time 0.04952/1.173, allocations: 10.4 MB / 1.092 GB, free: 2.133 MB / 0.698 GB