Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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 8.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") translateModel(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.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 8.0.0/package.mo): time 2.153/2.153, allocations: 284.9 MB / 292.2 MB, free: 9.848 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001601/0.0016, allocations: 182.7 kB / 360.4 MB, free: 0.9805 MB / 282.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.63/1.63, allocations: 205.1 MB / 0.6188 GB, free: 3.25 MB / 442.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001235/0.001234, allocations: 100.4 kB / 0.7318 GB, free: 1.691 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 1.182e-05/1.198e-05, allocations: 5.625 kB / 0.8503 GB, free: 150 MB / 0.6355 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2264/0.2265, allocations: 115.2 MB / 0.9628 GB, free: 57 MB / 0.6355 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6178/0.8443, allocations: 155.9 MB / 1.115 GB, free: 25.02 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003063/0.8447, allocations: 89.25 kB / 1.115 GB, free: 25.02 MB / 0.7136 GB Notification: Performance of FrontEnd: time 0.101/0.9457, allocations: 26.66 MB / 1.141 GB, free: 22.95 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 4.023e-05/0.9458, allocations: 11.75 kB / 1.141 GB, free: 22.95 MB / 0.7136 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.002365/0.9482, allocations: 0.82 MB / 1.142 GB, free: 22.36 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.416e-05/0.9482, allocations: 8.25 kB / 1.142 GB, free: 22.36 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001656/0.9499, allocations: 149 kB / 1.142 GB, free: 22.33 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001128/0.9511, allocations: 448.8 kB / 1.143 GB, free: 22.05 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.427e-05/0.9511, allocations: 15.34 kB / 1.143 GB, free: 22.05 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001529/0.9513, allocations: 35.58 kB / 1.143 GB, free: 22.05 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001299/0.9526, allocations: 465.5 kB / 1.143 GB, free: 22.05 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001411/0.954, allocations: 0.5946 MB / 1.144 GB, free: 21.93 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.291e-05/0.9541, allocations: 3.875 kB / 1.144 GB, free: 21.93 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.896e-05/0.9542, allocations: 5.172 kB / 1.144 GB, free: 21.93 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.023e-05/0.9543, allocations: 41.98 kB / 1.144 GB, free: 21.93 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00457/0.9589, allocations: 2.719 MB / 1.146 GB, free: 20.25 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001185/0.9601, allocations: 0.5137 MB / 1.147 GB, free: 20.19 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005066/0.9606, allocations: 239.9 kB / 1.147 GB, free: 20.17 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004367/0.9611, allocations: 0.5613 MB / 1.148 GB, free: 19.52 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000737/0.9618, allocations: 346.6 kB / 1.148 GB, free: 19.44 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=49): time 2.815e-06/0.9618, allocations: 0 / 1.148 GB, free: 19.44 MB / 0.7136 GB Notification: Performance of matching and sorting (n=49): time 0.001381/0.9632, allocations: 0.4957 MB / 1.148 GB, free: 19.38 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.712e-05/0.9633, allocations: 82.22 kB / 1.148 GB, free: 35.28 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004479/0.9638, allocations: 283.9 kB / 1.149 GB, free: 35.17 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 8.953e-05/0.9639, allocations: 33.66 kB / 1.149 GB, free: 35.14 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002038/0.9641, allocations: 240.9 kB / 1.149 GB, free: 34.97 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001542/0.9642, allocations: 148.3 kB / 1.149 GB, free: 34.88 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.721e-05/0.9643, allocations: 3.938 kB / 1.149 GB, free: 34.88 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001632/0.9645, allocations: 355.1 kB / 1.149 GB, free: 34.56 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005152/0.965, allocations: 213.8 kB / 1.15 GB, free: 34.56 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006267/0.9656, allocations: 332.7 kB / 1.15 GB, free: 34.44 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006574/0.9663, allocations: 252 kB / 1.15 GB, free: 34.42 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.538e-06/0.9663, allocations: 0 / 1.15 GB, free: 34.42 MB / 0.7292 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001488/0.9678, allocations: 0.5888 MB / 1.151 GB, free: 34.35 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003692/0.9682, allocations: 1.052 MB / 1.152 GB, free: 33.25 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.498e-06/0.9682, allocations: 0 / 1.152 GB, free: 33.25 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.618e-05/0.9683, allocations: 7.75 kB / 1.152 GB, free: 33.25 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001039/0.9693, allocations: 113.8 kB / 1.152 GB, free: 33.24 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.656e-05/0.9693, allocations: 8.594 kB / 1.152 GB, free: 33.24 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009124/0.9703, allocations: 66.52 kB / 1.152 GB, free: 33.21 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.547e-05/0.9703, allocations: 18.75 kB / 1.152 GB, free: 33.21 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 7.554e-06/0.9704, allocations: 3.875 kB / 1.152 GB, free: 33.21 MB / 0.7292 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001191/0.9716, allocations: 475.2 kB / 1.153 GB, free: 33.18 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.9716, allocations: 8.359 kB / 1.153 GB, free: 33.18 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.032e-05/0.9716, allocations: 3.938 kB / 1.153 GB, free: 33.18 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008303/0.9724, allocations: 104.8 kB / 1.153 GB, free: 33.17 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.874e-06/0.9725, allocations: 8.25 kB / 1.153 GB, free: 33.17 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007355/0.9732, allocations: 57.31 kB / 1.153 GB, free: 33.15 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.326e-05/0.9733, allocations: 19.81 kB / 1.153 GB, free: 33.15 MB / 0.7292 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.0002217/0.9735, allocations: 136.6 kB / 1.153 GB, free: 33.02 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001106/0.9736, allocations: 47.42 kB / 1.153 GB, free: 33 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001395/0.975, allocations: 0.5407 MB / 1.153 GB, free: 32.94 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.505e-06/0.9751, allocations: 11.75 kB / 1.153 GB, free: 32.93 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.9751, allocations: 0 / 1.153 GB, free: 32.93 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.758e-06/0.9751, allocations: 3.375 kB / 1.153 GB, free: 32.93 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000892/0.976, allocations: 0.5378 MB / 1.154 GB, free: 32.77 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.357e-06/0.976, allocations: 0 / 1.154 GB, free: 32.77 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009298/0.9769, allocations: 90.25 kB / 1.154 GB, free: 32.76 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.312e-06/0.977, allocations: 0 / 1.154 GB, free: 32.76 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.055e-05/0.977, allocations: 10.72 kB / 1.154 GB, free: 32.76 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.689e-06/0.977, allocations: 7.844 kB / 1.154 GB, free: 32.76 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.9771, allocations: 3.906 kB / 1.154 GB, free: 32.75 MB / 0.7292 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001788/0.9789, allocations: 0.8559 MB / 1.155 GB, free: 32.63 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002953/0.9792, allocations: 184.4 kB / 1.155 GB, free: 32.51 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001292/0.9793, allocations: 7.875 kB / 1.155 GB, free: 32.5 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006312/0.9799, allocations: 33.41 kB / 1.155 GB, free: 32.5 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001656/0.9801, allocations: 47.2 kB / 1.155 GB, free: 32.5 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.242e-05/0.9802, allocations: 17.78 kB / 1.155 GB, free: 32.5 MB / 0.7292 GB Notification: Performance of sort global known variables: time 0.0003172/0.9805, allocations: 218.1 kB / 1.155 GB, free: 32.42 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.001023/0.9816, allocations: 254.7 kB / 1.156 GB, free: 32.37 MB / 0.7292 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.0002755/0.9818, allocations: 135.9 kB / 1.156 GB, free: 32.27 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.001822/0.9837, allocations: 0.8617 MB / 1.157 GB, free: 32.17 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 5.15e-06/0.9837, allocations: 0 / 1.157 GB, free: 32.17 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0005801/0.9843, allocations: 269.7 kB / 1.157 GB, free: 32.15 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00134/0.9856, allocations: 134.5 kB / 1.157 GB, free: 32.14 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002415/0.9881, allocations: 0.8155 MB / 1.158 GB, free: 31.9 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008681/0.989, allocations: 0.9584 MB / 1.159 GB, free: 31.18 MB / 0.7292 GB Notification: Performance of SimCode: time 1.232e-06/0.989, allocations: 0 / 1.159 GB, free: 31.18 MB / 0.7292 GB Notification: Performance of Templates: time 0.02604/1.015, allocations: 10.41 MB / 1.169 GB, free: 27.02 MB / 0.7292 GB make -j1 -f Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.makefile (rm -f Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe >> ../files/Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.sim & ./Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1)