Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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_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.1.4-maint.8.1.x/package.mo): time 1.31/1.31, allocations: 289.8 MB / 297.1 MB, free: 6.668 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.0009785/0.0009786, allocations: 177.3 kB / 366.3 MB, free: 1.957 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.9939/0.9939, allocations: 205.1 MB / 0.6256 GB, free: 5.801 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.0008285/0.0008284, allocations: 93.92 kB / 0.7396 GB, free: 39.64 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.58e-06/5.68e-06, allocations: 0 / 0.859 GB, free: 13.34 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3999/0.4, allocations: 116.3 MB / 0.9726 GB, free: 68.22 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1499/0.5499, allocations: 158.4 MB / 1.127 GB, free: 6.129 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002203/0.5501, allocations: 95.92 kB / 1.127 GB, free: 6.035 MB / 0.7292 GB Notification: Performance of FrontEnd: time 0.06814/0.6183, allocations: 28.82 MB / 1.155 GB, free: 9.031 MB / 0.7605 GB Notification: Performance of Transformations before backend: time 2.818e-05/0.6184, allocations: 12 kB / 1.155 GB, free: 9.02 MB / 0.7605 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.001545/0.6199, allocations: 0.8255 MB / 1.156 GB, free: 8.137 MB / 0.7605 GB Notification: Performance of prepare preOptimizeDAE: time 3.438e-05/0.62, allocations: 16.02 kB / 1.156 GB, free: 8.121 MB / 0.7605 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008873/0.6208, allocations: 151.1 kB / 1.156 GB, free: 7.973 MB / 0.7605 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007032/0.6216, allocations: 427.3 kB / 1.157 GB, free: 7.512 MB / 0.7605 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.025e-05/0.6216, allocations: 23.91 kB / 1.157 GB, free: 7.488 MB / 0.7605 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.988e-05/0.6217, allocations: 35.94 kB / 1.157 GB, free: 7.453 MB / 0.7605 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007635/0.6225, allocations: 466.1 kB / 1.157 GB, free: 6.996 MB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008895/0.6234, allocations: 0.6009 MB / 1.158 GB, free: 6.363 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.414e-05/0.6234, allocations: 0 / 1.158 GB, free: 6.363 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.729e-05/0.6234, allocations: 0 / 1.158 GB, free: 6.363 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.006e-05/0.6235, allocations: 44.97 kB / 1.158 GB, free: 6.32 MB / 0.7605 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003041/0.6266, allocations: 2.722 MB / 1.161 GB, free: 3.383 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007293/0.6273, allocations: 0.5134 MB / 1.161 GB, free: 2.848 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003405/0.6276, allocations: 241.6 kB / 1.161 GB, free: 2.605 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004063/0.6281, allocations: 0.5583 MB / 1.162 GB, free: 1.918 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004659/0.6285, allocations: 339 kB / 1.162 GB, free: 1.566 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=49): time 1.814e-06/0.6286, allocations: 0 / 1.162 GB, free: 1.566 MB / 0.7605 GB Notification: Performance of matching and sorting (n=49): time 0.0008538/0.6294, allocations: 0.5024 MB / 1.163 GB, free: 1.059 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.464e-05/0.6295, allocations: 89.53 kB / 1.163 GB, free: 0.9531 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002828/0.6298, allocations: 278 kB / 1.163 GB, free: 0.6758 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 5.438e-05/0.6298, allocations: 41.72 kB / 1.163 GB, free: 0.6289 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001374/0.63, allocations: 232.6 kB / 1.163 GB, free: 404 kB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001208/0.6301, allocations: 149.8 kB / 1.163 GB, free: 252 kB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.78e-05/0.6301, allocations: 0 / 1.163 GB, free: 252 kB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001649/0.6303, allocations: 358.8 kB / 1.164 GB, free: 15.89 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003221/0.6306, allocations: 213.3 kB / 1.164 GB, free: 15.68 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003904/0.631, allocations: 335.2 kB / 1.164 GB, free: 15.31 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003962/0.6314, allocations: 247.7 kB / 1.165 GB, free: 15.07 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.6314, allocations: 0 / 1.165 GB, free: 15.07 MB / 0.7761 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0009132/0.6324, allocations: 0.5905 MB / 1.165 GB, free: 14.47 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003643/0.6327, allocations: 1.055 MB / 1.166 GB, free: 13.33 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.6327, allocations: 4 kB / 1.166 GB, free: 13.33 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.972e-05/0.6328, allocations: 8.188 kB / 1.166 GB, free: 13.32 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000545/0.6333, allocations: 115.8 kB / 1.166 GB, free: 13.21 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.396e-06/0.6333, allocations: 7.938 kB / 1.166 GB, free: 13.2 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000466/0.6338, allocations: 63.55 kB / 1.166 GB, free: 13.14 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.619e-05/0.6339, allocations: 21.25 kB / 1.166 GB, free: 13.12 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 6.803e-06/0.6339, allocations: 4 kB / 1.166 GB, free: 13.11 MB / 0.7761 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007754/0.6347, allocations: 471.6 kB / 1.167 GB, free: 12.65 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.6347, allocations: 4 kB / 1.167 GB, free: 12.65 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.133e-06/0.6347, allocations: 7.938 kB / 1.167 GB, free: 12.64 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004276/0.6351, allocations: 107.8 kB / 1.167 GB, free: 12.54 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.701e-06/0.6351, allocations: 4 kB / 1.167 GB, free: 12.53 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003917/0.6355, allocations: 55.75 kB / 1.167 GB, free: 12.48 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.279e-05/0.6356, allocations: 23.98 kB / 1.167 GB, free: 12.45 MB / 0.7761 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.0001367/0.6357, allocations: 126.8 kB / 1.167 GB, free: 12.32 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.834e-05/0.6358, allocations: 47.44 kB / 1.167 GB, free: 12.28 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008387/0.6366, allocations: 0.5378 MB / 1.168 GB, free: 11.73 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.863e-06/0.6367, allocations: 12.05 kB / 1.168 GB, free: 11.72 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.6367, allocations: 3.984 kB / 1.168 GB, free: 11.72 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.464e-06/0.6367, allocations: 3.984 kB / 1.168 GB, free: 11.71 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005677/0.6373, allocations: 0.5409 MB / 1.168 GB, free: 11.14 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.6373, allocations: 4 kB / 1.168 GB, free: 11.13 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004851/0.6378, allocations: 83.88 kB / 1.168 GB, free: 11.05 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.43e-06/0.6378, allocations: 0 / 1.168 GB, free: 11.05 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.592e-05/0.6378, allocations: 12 kB / 1.168 GB, free: 11.04 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.447e-06/0.6378, allocations: 4 kB / 1.168 GB, free: 11.04 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.6378, allocations: 4.094 kB / 1.168 GB, free: 11.03 MB / 0.7761 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001127/0.639, allocations: 0.8614 MB / 1.169 GB, free: 10.14 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002081/0.6392, allocations: 176.4 kB / 1.169 GB, free: 9.949 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.604e-05/0.6393, allocations: 11.98 kB / 1.169 GB, free: 9.938 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003461/0.6396, allocations: 27.97 kB / 1.169 GB, free: 9.91 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001118/0.6398, allocations: 44.36 kB / 1.169 GB, free: 9.867 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.703e-05/0.6398, allocations: 16 kB / 1.169 GB, free: 9.852 MB / 0.7761 GB Notification: Performance of sort global known variables: time 0.0002007/0.64, allocations: 228.5 kB / 1.17 GB, free: 9.633 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0006568/0.6407, allocations: 251.1 kB / 1.17 GB, free: 9.387 MB / 0.7761 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.0001948/0.6409, allocations: 136.7 kB / 1.17 GB, free: 9.246 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.001155/0.642, allocations: 0.854 MB / 1.171 GB, free: 8.383 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.642, allocations: 0 / 1.171 GB, free: 8.383 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0003483/0.6424, allocations: 270.5 kB / 1.171 GB, free: 8.121 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006669/0.6431, allocations: 146.8 kB / 1.171 GB, free: 7.98 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001507/0.6446, allocations: 0.8035 MB / 1.172 GB, free: 7.145 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006248/0.6452, allocations: 0.9691 MB / 1.173 GB, free: 6.148 MB / 0.7761 GB Notification: Performance of SimCode: time 2.61e-07/0.6452, allocations: 0 / 1.173 GB, free: 6.148 MB / 0.7761 GB Notification: Performance of Templates: time 0.01633/0.6616, allocations: 10.41 MB / 1.183 GB, free: 11.86 MB / 0.7917 GB make -j1 -f Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.makefile (rm -f Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe >> ../files/Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.sim & ./Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe 2>&1)