Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.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.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_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_maint.8.0.x_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.0.1-maint.8.0.x/package.mo): time 1.306/1.306, allocations: 285.5 MB / 292.8 MB, free: 10.43 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.0009274/0.0009274, allocations: 181.3 kB / 361.1 MB, free: 7.066 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.9864/0.9864, allocations: 205.1 MB / 0.6195 GB, free: 10.27 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.0007422/0.0007423, allocations: 86.16 kB / 0.7325 GB, free: 44.12 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.951e-06/5.972e-06, allocations: 0 / 0.8511 GB, free: 2.871 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.397/0.3971, allocations: 115.3 MB / 0.9637 GB, free: 78.3 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1446/0.5417, allocations: 155.9 MB / 1.116 GB, free: 15.99 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002218/0.5419, allocations: 95.16 kB / 1.116 GB, free: 15.91 MB / 0.7292 GB Notification: Performance of FrontEnd: time 0.06551/0.6074, allocations: 26.93 MB / 1.142 GB, free: 4.953 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 2.484e-05/0.6075, allocations: 12 kB / 1.142 GB, free: 4.941 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.001366/0.6089, allocations: 0.8217 MB / 1.143 GB, free: 4.062 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.135e-05/0.6089, allocations: 13.34 kB / 1.143 GB, free: 4.051 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007993/0.6097, allocations: 143.1 kB / 1.143 GB, free: 3.91 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005988/0.6103, allocations: 443.2 kB / 1.144 GB, free: 3.434 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.292e-05/0.6103, allocations: 23.84 kB / 1.144 GB, free: 3.41 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.422e-05/0.6104, allocations: 32 kB / 1.144 GB, free: 3.379 MB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007353/0.6112, allocations: 463.5 kB / 1.144 GB, free: 2.93 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008624/0.612, allocations: 0.5931 MB / 1.145 GB, free: 2.309 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.433e-05/0.6121, allocations: 4 kB / 1.145 GB, free: 2.305 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.838e-05/0.6121, allocations: 3.984 kB / 1.145 GB, free: 2.301 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.567e-05/0.6122, allocations: 40.98 kB / 1.145 GB, free: 2.262 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002979/0.6152, allocations: 2.718 MB / 1.148 GB, free: 15.33 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000749/0.6159, allocations: 0.5173 MB / 1.148 GB, free: 14.79 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003232/0.6163, allocations: 238.8 kB / 1.148 GB, free: 14.55 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004114/0.6167, allocations: 0.5622 MB / 1.149 GB, free: 13.86 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004465/0.6171, allocations: 339 kB / 1.149 GB, free: 13.51 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=49): time 3.366e-06/0.6171, allocations: 4 kB / 1.149 GB, free: 13.51 MB / 0.7605 GB Notification: Performance of matching and sorting (n=49): time 0.0008423/0.618, allocations: 0.5024 MB / 1.15 GB, free: 13 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.672e-05/0.618, allocations: 81.55 kB / 1.15 GB, free: 12.9 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002853/0.6183, allocations: 282 kB / 1.15 GB, free: 12.62 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 5.081e-05/0.6184, allocations: 37.69 kB / 1.15 GB, free: 12.57 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.000137/0.6185, allocations: 228.6 kB / 1.15 GB, free: 12.34 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001186/0.6187, allocations: 157.8 kB / 1.15 GB, free: 12.19 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.591e-05/0.6187, allocations: 0 / 1.15 GB, free: 12.19 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001155/0.6188, allocations: 354.8 kB / 1.151 GB, free: 11.83 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003128/0.6191, allocations: 214 kB / 1.151 GB, free: 11.62 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003912/0.6195, allocations: 343.2 kB / 1.151 GB, free: 11.25 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003836/0.6199, allocations: 245.8 kB / 1.151 GB, free: 11.01 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.6199, allocations: 8 kB / 1.151 GB, free: 11 MB / 0.7605 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008817/0.6208, allocations: 0.5866 MB / 1.152 GB, free: 10.41 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.000315/0.6211, allocations: 1.049 MB / 1.153 GB, free: 9.277 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/0.6212, allocations: 8 kB / 1.153 GB, free: 9.27 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.417e-05/0.6212, allocations: 4 kB / 1.153 GB, free: 9.266 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005451/0.6217, allocations: 112.4 kB / 1.153 GB, free: 9.156 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.095e-05/0.6218, allocations: 8.703 kB / 1.153 GB, free: 9.148 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004635/0.6222, allocations: 63.48 kB / 1.153 GB, free: 9.086 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.261e-05/0.6223, allocations: 20 kB / 1.153 GB, free: 9.066 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 5.481e-06/0.6223, allocations: 4 kB / 1.153 GB, free: 9.062 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007366/0.623, allocations: 477.5 kB / 1.154 GB, free: 8.598 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.623, allocations: 5.031 kB / 1.154 GB, free: 8.594 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.795e-06/0.6231, allocations: 8.25 kB / 1.154 GB, free: 8.586 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004415/0.6235, allocations: 107.8 kB / 1.154 GB, free: 8.48 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.6235, allocations: 4 kB / 1.154 GB, free: 8.477 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003861/0.6239, allocations: 55.56 kB / 1.154 GB, free: 8.422 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.858e-05/0.624, allocations: 23.98 kB / 1.154 GB, free: 8.398 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.0001148/0.6241, allocations: 122.9 kB / 1.154 GB, free: 8.273 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.166e-05/0.6241, allocations: 47.44 kB / 1.154 GB, free: 8.227 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008356/0.625, allocations: 0.542 MB / 1.155 GB, free: 7.68 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.625, allocations: 4 kB / 1.155 GB, free: 7.676 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.625, allocations: 0 / 1.155 GB, free: 7.676 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.625, allocations: 5.875 kB / 1.155 GB, free: 7.672 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005459/0.6256, allocations: 0.5487 MB / 1.155 GB, free: 7.086 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.6256, allocations: 1.938 kB / 1.155 GB, free: 7.086 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005027/0.6261, allocations: 87.88 kB / 1.155 GB, free: 7 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.491e-06/0.6261, allocations: 4 kB / 1.155 GB, free: 6.996 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.376e-05/0.6262, allocations: 7.906 kB / 1.155 GB, free: 6.988 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.6262, allocations: 0 / 1.155 GB, free: 6.988 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.6262, allocations: 0 / 1.155 GB, free: 6.988 MB / 0.7605 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001135/0.6273, allocations: 0.8668 MB / 1.156 GB, free: 6.098 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001935/0.6275, allocations: 172.4 kB / 1.156 GB, free: 5.91 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.295e-05/0.6276, allocations: 8 kB / 1.156 GB, free: 5.902 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003428/0.6279, allocations: 31.95 kB / 1.156 GB, free: 5.871 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000118/0.6281, allocations: 56.27 kB / 1.156 GB, free: 5.816 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.351e-05/0.6281, allocations: 12 kB / 1.156 GB, free: 5.805 MB / 0.7605 GB Notification: Performance of sort global known variables: time 0.0001939/0.6283, allocations: 220.6 kB / 1.157 GB, free: 5.594 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.0006063/0.6289, allocations: 251.1 kB / 1.157 GB, free: 5.348 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.0001921/0.6291, allocations: 149.6 kB / 1.157 GB, free: 5.195 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.001124/0.6303, allocations: 0.8642 MB / 1.158 GB, free: 4.316 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.6303, allocations: 4 kB / 1.158 GB, free: 4.312 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0003452/0.6306, allocations: 261.5 kB / 1.158 GB, free: 4.059 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006601/0.6313, allocations: 137 kB / 1.158 GB, free: 3.93 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001428/0.6327, allocations: 0.8121 MB / 1.159 GB, free: 3.09 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005852/0.6333, allocations: 0.9545 MB / 1.16 GB, free: 2.109 MB / 0.7605 GB Notification: Performance of SimCode: time 2.91e-07/0.6333, allocations: 4 kB / 1.16 GB, free: 2.105 MB / 0.7605 GB Notification: Performance of Templates: time 0.01512/0.6485, allocations: 10.4 MB / 1.17 GB, free: 7.902 MB / 0.7761 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.makefile (rm -f Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.sim & ./Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1)