Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.OnePhase.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.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.346/1.346, allocations: 289.8 MB / 297.1 MB, free: 6.598 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.0009691/0.000969, allocations: 188.2 kB / 366.3 MB, free: 1.926 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.031/1.031, allocations: 205.1 MB / 0.6256 GB, free: 5.773 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.0007658/0.0007658, allocations: 90.61 kB / 0.7395 GB, free: 39.59 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.141e-06/6.161e-06, allocations: 4 kB / 0.859 GB, free: 13.29 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3811/0.3811, allocations: 116.3 MB / 0.9726 GB, free: 68.27 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1437/0.5249, allocations: 156.9 MB / 1.126 GB, free: 7.496 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000195/0.5251, allocations: 92.47 kB / 1.126 GB, free: 7.406 MB / 0.7292 GB Notification: Performance of FrontEnd: time 0.06163/0.5867, allocations: 26.93 MB / 1.152 GB, free: 12.31 MB / 0.7605 GB Notification: Performance of Transformations before backend: time 2.824e-05/0.5868, allocations: 12 kB / 1.152 GB, free: 12.3 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.001304/0.5881, allocations: 0.8178 MB / 1.153 GB, free: 11.42 MB / 0.7605 GB Notification: Performance of prepare preOptimizeDAE: time 2.984e-05/0.5881, allocations: 8.031 kB / 1.153 GB, free: 11.41 MB / 0.7605 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007866/0.5889, allocations: 151.1 kB / 1.153 GB, free: 11.27 MB / 0.7605 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005773/0.5895, allocations: 443.2 kB / 1.154 GB, free: 10.79 MB / 0.7605 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.49e-05/0.5895, allocations: 19.91 kB / 1.154 GB, free: 10.77 MB / 0.7605 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.312e-05/0.5896, allocations: 32 kB / 1.154 GB, free: 10.74 MB / 0.7605 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007126/0.5903, allocations: 462.2 kB / 1.154 GB, free: 10.29 MB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008294/0.5912, allocations: 0.5981 MB / 1.155 GB, free: 9.66 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.334e-05/0.5912, allocations: 0 / 1.155 GB, free: 9.66 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.538e-05/0.5912, allocations: 0 / 1.155 GB, free: 9.66 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.513e-05/0.5913, allocations: 48.97 kB / 1.155 GB, free: 9.613 MB / 0.7605 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002773/0.5941, allocations: 2.718 MB / 1.157 GB, free: 6.68 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007005/0.5948, allocations: 0.5213 MB / 1.158 GB, free: 6.137 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003008/0.5951, allocations: 237.6 kB / 1.158 GB, free: 5.898 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000386/0.5955, allocations: 0.5583 MB / 1.159 GB, free: 5.211 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004289/0.5959, allocations: 343 kB / 1.159 GB, free: 4.855 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=49): time 1.533e-06/0.5959, allocations: 0 / 1.159 GB, free: 4.855 MB / 0.7605 GB Notification: Performance of matching and sorting (n=49): time 0.0007898/0.5967, allocations: 0.4986 MB / 1.159 GB, free: 4.352 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.386e-05/0.5968, allocations: 85.55 kB / 1.16 GB, free: 4.25 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002647/0.5971, allocations: 282 kB / 1.16 GB, free: 3.969 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 4.933e-05/0.5971, allocations: 33.7 kB / 1.16 GB, free: 3.93 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001257/0.5973, allocations: 228.6 kB / 1.16 GB, free: 3.699 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001171/0.5974, allocations: 161.8 kB / 1.16 GB, free: 3.539 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.772e-05/0.5974, allocations: 4 kB / 1.16 GB, free: 3.535 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001119/0.5975, allocations: 350.8 kB / 1.161 GB, free: 3.184 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000304/0.5978, allocations: 221.2 kB / 1.161 GB, free: 2.969 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003841/0.5982, allocations: 331.3 kB / 1.161 GB, free: 2.602 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003719/0.5986, allocations: 251.7 kB / 1.161 GB, free: 2.355 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.5986, allocations: 4 kB / 1.161 GB, free: 2.352 MB / 0.7605 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008565/0.5995, allocations: 0.5828 MB / 1.162 GB, free: 1.762 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003256/0.5998, allocations: 1.059 MB / 1.163 GB, free: 0.6211 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.792e-06/0.5998, allocations: 3.984 kB / 1.163 GB, free: 0.6172 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.022e-05/0.5998, allocations: 8 kB / 1.163 GB, free: 0.6094 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005187/0.6004, allocations: 111.8 kB / 1.163 GB, free: 0.5 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.105e-06/0.6004, allocations: 7.938 kB / 1.163 GB, free: 0.4922 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004448/0.6008, allocations: 67.48 kB / 1.163 GB, free: 436 kB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.244e-05/0.6009, allocations: 20.19 kB / 1.163 GB, free: 416 kB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 5.34e-06/0.6009, allocations: 7.938 kB / 1.163 GB, free: 408 kB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007078/0.6016, allocations: 467.6 kB / 1.164 GB, free: 15.94 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.309e-06/0.6016, allocations: 4.25 kB / 1.164 GB, free: 15.93 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.462e-06/0.6016, allocations: 8 kB / 1.164 GB, free: 15.93 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004165/0.6021, allocations: 107.8 kB / 1.164 GB, free: 15.82 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.582e-06/0.6021, allocations: 9.078 kB / 1.164 GB, free: 15.81 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000371/0.6025, allocations: 55.56 kB / 1.164 GB, free: 15.76 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.551e-05/0.6025, allocations: 20 kB / 1.164 GB, free: 15.74 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.0001215/0.6026, allocations: 127.5 kB / 1.164 GB, free: 15.61 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.492e-05/0.6027, allocations: 47.44 kB / 1.164 GB, free: 15.56 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008274/0.6035, allocations: 0.5418 MB / 1.164 GB, free: 15.02 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.125e-05/0.6036, allocations: 4 kB / 1.164 GB, free: 15.01 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/0.6036, allocations: 0 / 1.164 GB, free: 15.01 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.6036, allocations: 4 kB / 1.164 GB, free: 15.01 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005305/0.6041, allocations: 0.5447 MB / 1.165 GB, free: 14.43 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.6041, allocations: 0 / 1.165 GB, free: 14.43 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000483/0.6046, allocations: 91.86 kB / 1.165 GB, free: 14.34 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.949e-06/0.6046, allocations: 4 kB / 1.165 GB, free: 14.34 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.174e-05/0.6047, allocations: 3.906 kB / 1.165 GB, free: 14.33 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.6047, allocations: 4 kB / 1.165 GB, free: 14.33 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.6047, allocations: 4 kB / 1.165 GB, free: 14.32 MB / 0.7761 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001104/0.6058, allocations: 0.8614 MB / 1.166 GB, free: 13.43 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002043/0.606, allocations: 176.4 kB / 1.166 GB, free: 13.24 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.013e-05/0.6061, allocations: 4 kB / 1.166 GB, free: 13.24 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003319/0.6064, allocations: 32.14 kB / 1.166 GB, free: 13.21 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001193/0.6066, allocations: 56.27 kB / 1.166 GB, free: 13.15 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.597e-05/0.6066, allocations: 16 kB / 1.166 GB, free: 13.14 MB / 0.7761 GB Notification: Performance of sort global known variables: time 0.0001892/0.6068, allocations: 228.5 kB / 1.166 GB, free: 12.92 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0005736/0.6074, allocations: 247.2 kB / 1.167 GB, free: 12.68 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.0001727/0.6076, allocations: 139.8 kB / 1.167 GB, free: 12.53 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.001078/0.6086, allocations: 0.8579 MB / 1.168 GB, free: 11.66 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.6087, allocations: 0 / 1.168 GB, free: 11.66 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0003419/0.609, allocations: 269.5 kB / 1.168 GB, free: 11.4 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006483/0.6097, allocations: 137.4 kB / 1.168 GB, free: 11.27 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001408/0.6111, allocations: 0.8151 MB / 1.169 GB, free: 10.43 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005941/0.6117, allocations: 0.9613 MB / 1.17 GB, free: 9.438 MB / 0.7761 GB Notification: Performance of SimCode: time 2.41e-07/0.6117, allocations: 0 / 1.17 GB, free: 9.438 MB / 0.7761 GB Notification: Performance of Templates: time 0.01492/0.6266, allocations: 10.42 MB / 1.18 GB, free: 15.14 MB / 0.7917 GB make -j1 -f Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.makefile (rm -f Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe >> ../files/Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.sim & ./Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1)