Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_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_maint.8.0.x_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.293/1.293, allocations: 285.5 MB / 292.8 MB, free: 10.48 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009677/0.0009675, allocations: 177.3 kB / 361.1 MB, free: 7.086 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9841/0.9841, allocations: 205.1 MB / 0.6195 GB, free: 10.29 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008002/0.0008002, allocations: 94.41 kB / 0.7326 GB, free: 44.25 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.641e-06/5.661e-06, allocations: 0 / 0.8511 GB, free: 2.973 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4121/0.4121, allocations: 115.3 MB / 0.9637 GB, free: 78.14 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1486/0.5608, allocations: 157.4 MB / 1.117 GB, free: 14.58 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002294/0.561, allocations: 96.64 kB / 1.117 GB, free: 14.48 MB / 0.7292 GB Notification: Performance of FrontEnd: time 0.06907/0.6301, allocations: 28.83 MB / 1.146 GB, free: 1.621 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 2.713e-05/0.6302, allocations: 16 kB / 1.146 GB, free: 1.605 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.00145/0.6316, allocations: 0.8217 MB / 1.146 GB, free: 0.7266 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.386e-05/0.6317, allocations: 8.531 kB / 1.146 GB, free: 0.7188 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000855/0.6325, allocations: 147.1 kB / 1.147 GB, free: 0.5742 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006142/0.6332, allocations: 447.2 kB / 1.147 GB, free: 96 kB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.762e-05/0.6332, allocations: 19.91 kB / 1.147 GB, free: 76 kB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.69e-05/0.6333, allocations: 29.88 kB / 1.147 GB, free: 48 kB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007638/0.634, allocations: 462.2 kB / 1.147 GB, free: 15.59 MB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008621/0.6349, allocations: 0.597 MB / 1.148 GB, free: 14.97 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.492e-05/0.6349, allocations: 0 / 1.148 GB, free: 14.97 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.639e-05/0.635, allocations: 4 kB / 1.148 GB, free: 14.96 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.675e-05/0.6351, allocations: 44.97 kB / 1.148 GB, free: 14.92 MB / 0.7605 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00296/0.638, allocations: 2.714 MB / 1.151 GB, free: 12 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007655/0.6388, allocations: 0.5212 MB / 1.151 GB, free: 11.45 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003145/0.6391, allocations: 233.6 kB / 1.152 GB, free: 11.22 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000415/0.6395, allocations: 0.5662 MB / 1.152 GB, free: 10.52 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004523/0.64, allocations: 339 kB / 1.152 GB, free: 10.18 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=49): time 1.693e-06/0.64, allocations: 0 / 1.152 GB, free: 10.18 MB / 0.7605 GB Notification: Performance of matching and sorting (n=49): time 0.0008749/0.6409, allocations: 0.5064 MB / 1.153 GB, free: 9.66 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.154e-05/0.641, allocations: 81.55 kB / 1.153 GB, free: 9.562 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002883/0.6412, allocations: 290 kB / 1.153 GB, free: 9.273 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 5.061e-05/0.6413, allocations: 33.7 kB / 1.153 GB, free: 9.234 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001321/0.6414, allocations: 226.1 kB / 1.153 GB, free: 9.008 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 0.000125/0.6416, allocations: 161.8 kB / 1.154 GB, free: 8.848 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.74e-05/0.6416, allocations: 0 / 1.154 GB, free: 8.848 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001176/0.6417, allocations: 346.8 kB / 1.154 GB, free: 8.5 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003219/0.6421, allocations: 213.3 kB / 1.154 GB, free: 8.293 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003988/0.6425, allocations: 347.2 kB / 1.155 GB, free: 7.91 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004139/0.6429, allocations: 240.9 kB / 1.155 GB, free: 7.676 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.6429, allocations: 4 kB / 1.155 GB, free: 7.672 MB / 0.7605 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0009179/0.6438, allocations: 0.5881 MB / 1.155 GB, free: 7.078 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.000335/0.6442, allocations: 1.055 MB / 1.156 GB, free: 5.938 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.695e-06/0.6442, allocations: 4 kB / 1.156 GB, free: 5.934 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.841e-05/0.6442, allocations: 4 kB / 1.156 GB, free: 5.93 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005583/0.6448, allocations: 115.7 kB / 1.156 GB, free: 5.816 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.427e-06/0.6448, allocations: 8 kB / 1.156 GB, free: 5.809 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004652/0.6453, allocations: 59.55 kB / 1.157 GB, free: 5.75 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.737e-05/0.6453, allocations: 26.38 kB / 1.157 GB, free: 5.727 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 8.235e-06/0.6453, allocations: 5.125 kB / 1.157 GB, free: 5.723 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007556/0.6461, allocations: 471.9 kB / 1.157 GB, free: 5.262 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.6461, allocations: 4 kB / 1.157 GB, free: 5.258 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.464e-06/0.6461, allocations: 4 kB / 1.157 GB, free: 5.254 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004319/0.6466, allocations: 107.8 kB / 1.157 GB, free: 5.148 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.662e-06/0.6466, allocations: 6.891 kB / 1.157 GB, free: 5.145 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003939/0.647, allocations: 55.83 kB / 1.157 GB, free: 5.09 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.737e-05/0.647, allocations: 20 kB / 1.157 GB, free: 5.07 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.0001333/0.6472, allocations: 126.8 kB / 1.157 GB, free: 4.941 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.008e-05/0.6472, allocations: 51.42 kB / 1.157 GB, free: 4.891 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008642/0.6481, allocations: 0.5405 MB / 1.158 GB, free: 4.348 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.71e-06/0.6481, allocations: 4 kB / 1.158 GB, free: 4.344 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.6481, allocations: 4.062 kB / 1.158 GB, free: 4.344 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.644e-06/0.6481, allocations: 3.984 kB / 1.158 GB, free: 4.34 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000613/0.6488, allocations: 0.5448 MB / 1.158 GB, free: 3.758 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.6488, allocations: 0 / 1.158 GB, free: 3.758 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004989/0.6493, allocations: 87.88 kB / 1.159 GB, free: 3.672 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.134e-06/0.6493, allocations: 4 kB / 1.159 GB, free: 3.668 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.486e-05/0.6493, allocations: 7.984 kB / 1.159 GB, free: 3.66 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.369e-06/0.6494, allocations: 4 kB / 1.159 GB, free: 3.656 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.6494, allocations: 3.906 kB / 1.159 GB, free: 3.652 MB / 0.7605 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001169/0.6505, allocations: 0.8614 MB / 1.159 GB, free: 2.766 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002054/0.6507, allocations: 176.4 kB / 1.16 GB, free: 2.574 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.83e-05/0.6508, allocations: 4 kB / 1.16 GB, free: 2.57 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003402/0.6512, allocations: 35.95 kB / 1.16 GB, free: 2.535 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001247/0.6513, allocations: 40.38 kB / 1.16 GB, free: 2.496 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.046e-05/0.6514, allocations: 23.92 kB / 1.16 GB, free: 2.473 MB / 0.7605 GB Notification: Performance of sort global known variables: time 0.0002101/0.6516, allocations: 220.6 kB / 1.16 GB, free: 2.262 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.0006856/0.6523, allocations: 255 kB / 1.16 GB, free: 2.012 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.0002004/0.6525, allocations: 147 kB / 1.16 GB, free: 1.855 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.001168/0.6537, allocations: 0.8617 MB / 1.161 GB, free: 0.9805 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.6537, allocations: 4 kB / 1.161 GB, free: 0.9766 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0003583/0.654, allocations: 270.5 kB / 1.161 GB, free: 0.7148 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006746/0.6547, allocations: 128.6 kB / 1.161 GB, free: 0.5898 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001541/0.6563, allocations: 0.8085 MB / 1.162 GB, free: 15.75 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006089/0.6569, allocations: 0.9584 MB / 1.163 GB, free: 14.77 MB / 0.7761 GB Notification: Performance of SimCode: time 3.81e-07/0.6569, allocations: 0 / 1.163 GB, free: 14.77 MB / 0.7761 GB Notification: Performance of Templates: time 0.01637/0.6733, allocations: 10.4 MB / 1.173 GB, free: 4.562 MB / 0.7761 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.makefile (rm -f Buildings_maint.8.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.sim & ./Buildings_maint.8.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe 2>&1)