Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.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.ThreePhasesBalanced.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.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 8.0.0/package.mo): time 2.114/2.114, allocations: 284.9 MB / 292.2 MB, free: 10.82 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.001616/0.001616, allocations: 177.2 kB / 360.4 MB, free: 7.523 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.635/1.635, allocations: 205.2 MB / 0.6188 GB, free: 12.45 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001251/0.00125, allocations: 93.19 kB / 0.7318 GB, free: 45.03 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 8.045e-06/8.185e-06, allocations: 0 / 0.8503 GB, free: 3.871 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5587/0.5587, allocations: 115.2 MB / 0.9628 GB, free: 78.03 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2503/0.809, allocations: 157.3 MB / 1.116 GB, free: 15.43 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003393/0.8094, allocations: 92.78 kB / 1.117 GB, free: 15.34 MB / 0.7292 GB Notification: Performance of FrontEnd: time 0.1162/0.9256, allocations: 28.57 MB / 1.144 GB, free: 2.719 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 4.579e-05/0.9257, allocations: 15.94 kB / 1.144 GB, free: 2.703 MB / 0.7448 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.002295/0.928, allocations: 0.8256 MB / 1.145 GB, free: 1.82 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.278e-05/0.9281, allocations: 8.531 kB / 1.145 GB, free: 1.812 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001415/0.9295, allocations: 147.1 kB / 1.145 GB, free: 1.668 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009701/0.9305, allocations: 439.2 kB / 1.146 GB, free: 1.195 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.209e-05/0.9306, allocations: 21.72 kB / 1.146 GB, free: 1.176 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001282/0.9307, allocations: 36 kB / 1.146 GB, free: 1.141 MB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001389/0.9321, allocations: 466.1 kB / 1.146 GB, free: 0.6875 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001489/0.9336, allocations: 0.5893 MB / 1.147 GB, free: 72 kB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.232e-05/0.9336, allocations: 3.938 kB / 1.147 GB, free: 68 kB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.179e-05/0.9337, allocations: 3.984 kB / 1.147 GB, free: 64 kB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.482e-05/0.9338, allocations: 52.97 kB / 1.147 GB, free: 12 kB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005077/0.9389, allocations: 2.711 MB / 1.15 GB, free: 13.09 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001363/0.9403, allocations: 0.5136 MB / 1.15 GB, free: 12.55 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006013/0.9409, allocations: 245.6 kB / 1.15 GB, free: 12.31 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005932/0.9415, allocations: 0.5583 MB / 1.151 GB, free: 11.62 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000805/0.9424, allocations: 339 kB / 1.151 GB, free: 11.27 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=49): time 3.106e-06/0.9424, allocations: 4 kB / 1.151 GB, free: 11.27 MB / 0.7605 GB Notification: Performance of matching and sorting (n=49): time 0.001553/0.944, allocations: 0.4985 MB / 1.152 GB, free: 10.76 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.622e-05/0.944, allocations: 85.55 kB / 1.152 GB, free: 10.66 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005209/0.9446, allocations: 282 kB / 1.152 GB, free: 10.38 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 8.574e-05/0.9447, allocations: 33.7 kB / 1.152 GB, free: 10.34 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002274/0.9449, allocations: 236.5 kB / 1.152 GB, free: 10.1 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001894/0.9451, allocations: 149.8 kB / 1.152 GB, free: 9.953 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.77e-05/0.9452, allocations: 0 / 1.152 GB, free: 9.953 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0002171/0.9454, allocations: 362.8 kB / 1.153 GB, free: 9.59 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006036/0.946, allocations: 213.3 kB / 1.153 GB, free: 9.383 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007059/0.9467, allocations: 338.7 kB / 1.153 GB, free: 9.008 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007162/0.9475, allocations: 246.5 kB / 1.154 GB, free: 8.77 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.9475, allocations: 0 / 1.154 GB, free: 8.77 MB / 0.7605 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001648/0.9491, allocations: 0.5983 MB / 1.154 GB, free: 8.164 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004165/0.9496, allocations: 1.048 MB / 1.155 GB, free: 7.035 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.176e-05/0.9496, allocations: 4 kB / 1.155 GB, free: 7.031 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.005e-05/0.9496, allocations: 14.19 kB / 1.155 GB, free: 7.02 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001086/0.9507, allocations: 107.8 kB / 1.155 GB, free: 6.914 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.246e-05/0.9507, allocations: 4 kB / 1.155 GB, free: 6.91 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000918/0.9517, allocations: 63.55 kB / 1.155 GB, free: 6.848 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.316e-05/0.9518, allocations: 23.98 kB / 1.155 GB, free: 6.824 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 1.108e-05/0.9518, allocations: 4 kB / 1.155 GB, free: 6.82 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00136/0.9532, allocations: 475.7 kB / 1.156 GB, free: 6.355 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.147e-06/0.9532, allocations: 4 kB / 1.156 GB, free: 6.352 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.207e-05/0.9532, allocations: 4 kB / 1.156 GB, free: 6.348 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008716/0.9541, allocations: 113.9 kB / 1.156 GB, free: 6.238 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.827e-06/0.9541, allocations: 4 kB / 1.156 GB, free: 6.234 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007578/0.9549, allocations: 54.73 kB / 1.156 GB, free: 6.184 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.017e-05/0.9549, allocations: 20 kB / 1.156 GB, free: 6.164 MB / 0.7605 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.0002206/0.9552, allocations: 138.5 kB / 1.156 GB, free: 6.02 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001209/0.9553, allocations: 43.44 kB / 1.156 GB, free: 5.977 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001677/0.957, allocations: 0.5393 MB / 1.157 GB, free: 5.438 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.177e-06/0.957, allocations: 4 kB / 1.157 GB, free: 5.434 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/0.957, allocations: 4 kB / 1.157 GB, free: 5.43 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.149e-05/0.9571, allocations: 3.984 kB / 1.157 GB, free: 5.426 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001007/0.9581, allocations: 0.537 MB / 1.157 GB, free: 4.852 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/0.9581, allocations: 8 kB / 1.157 GB, free: 4.844 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001009/0.9591, allocations: 91.81 kB / 1.157 GB, free: 4.754 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.805e-06/0.9591, allocations: 0 / 1.157 GB, free: 4.754 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.224e-05/0.9592, allocations: 4 kB / 1.157 GB, free: 4.75 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.404e-06/0.9592, allocations: 5.938 kB / 1.157 GB, free: 4.746 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.492e-06/0.9592, allocations: 7.891 kB / 1.157 GB, free: 4.738 MB / 0.7605 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002113/0.9614, allocations: 0.8576 MB / 1.158 GB, free: 3.855 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003335/0.9617, allocations: 176.4 kB / 1.158 GB, free: 3.664 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001342/0.9619, allocations: 8 kB / 1.158 GB, free: 3.656 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006481/0.9625, allocations: 27.97 kB / 1.158 GB, free: 3.629 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001889/0.9627, allocations: 48.36 kB / 1.158 GB, free: 3.582 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.258e-05/0.9628, allocations: 19.98 kB / 1.158 GB, free: 3.562 MB / 0.7605 GB Notification: Performance of sort global known variables: time 0.0003521/0.9631, allocations: 216.5 kB / 1.159 GB, free: 3.355 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.001077/0.9642, allocations: 259 kB / 1.159 GB, free: 3.102 MB / 0.7605 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.0003107/0.9646, allocations: 141.5 kB / 1.159 GB, free: 2.953 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.002162/0.9667, allocations: 0.8622 MB / 1.16 GB, free: 2.074 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 4.067e-06/0.9668, allocations: 3.938 kB / 1.16 GB, free: 2.07 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0007255/0.9675, allocations: 257.6 kB / 1.16 GB, free: 1.82 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001372/0.9689, allocations: 137.5 kB / 1.16 GB, free: 1.691 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002641/0.9715, allocations: 0.8159 MB / 1.161 GB, free: 0.8516 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009798/0.9726, allocations: 0.9537 MB / 1.162 GB, free: 15.87 MB / 0.7761 GB Notification: Performance of SimCode: time 1.072e-06/0.9726, allocations: 0 / 1.162 GB, free: 15.87 MB / 0.7761 GB Notification: Performance of Templates: time 0.02874/1.001, allocations: 10.41 MB / 1.172 GB, free: 5.645 MB / 0.7761 GB make -j1 -f Buildings_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.makefile (rm -f Buildings_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe >> ../files/Buildings_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.sim & ./Buildings_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe 2>&1)