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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.638/1.638, allocations: 285.6 MB / 293.1 MB, free: 10.2 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.001261/0.001261, allocations: 172.9 kB / 361.4 MB, free: 6.812 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.704/1.704, allocations: 205.2 MB / 0.62 GB, free: 11.66 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.0009175/0.0009176, allocations: 92.41 kB / 0.733 GB, free: 44.19 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.416e-05/1.417e-05, allocations: 0 / 0.8518 GB, free: 2.734 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.765/0.7651, allocations: 115.3 MB / 0.9644 GB, free: 78.8 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.224/0.9891, allocations: 157.5 MB / 1.118 GB, free: 14.34 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003174/0.9895, allocations: 93.7 kB / 1.118 GB, free: 14.25 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.07842/1.068, allocations: 29.25 MB / 1.147 GB, free: 0.9375 MB / 0.7448 GB Notification: Performance of FrontEnd: time 2.294e-06/1.068, allocations: 0 / 1.147 GB, free: 0.9375 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 4.854e-05/1.068, allocations: 12 kB / 1.147 GB, free: 0.9258 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.001972/1.07, allocations: 0.8143 MB / 1.148 GB, free: 56 kB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.778e-05/1.07, allocations: 12.02 kB / 1.148 GB, free: 44 kB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001036/1.071, allocations: 144.2 kB / 1.148 GB, free: 15.9 MB / 0.7605 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008181/1.072, allocations: 443.1 kB / 1.148 GB, free: 15.43 MB / 0.7605 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.422e-05/1.072, allocations: 16 kB / 1.148 GB, free: 15.41 MB / 0.7605 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001107/1.072, allocations: 31.94 kB / 1.148 GB, free: 15.38 MB / 0.7605 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008689/1.073, allocations: 458.5 kB / 1.149 GB, free: 14.94 MB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001032/1.074, allocations: 0.5832 MB / 1.149 GB, free: 14.32 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.626e-05/1.074, allocations: 0 / 1.149 GB, free: 14.32 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.812e-05/1.074, allocations: 7.984 kB / 1.149 GB, free: 14.31 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.752e-05/1.074, allocations: 45.28 kB / 1.149 GB, free: 14.27 MB / 0.7605 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003322/1.078, allocations: 2.719 MB / 1.152 GB, free: 11.34 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007844/1.078, allocations: 0.5212 MB / 1.152 GB, free: 10.79 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003245/1.079, allocations: 231 kB / 1.153 GB, free: 10.56 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00049/1.079, allocations: 0.5701 MB / 1.153 GB, free: 9.863 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005603/1.08, allocations: 374.9 kB / 1.154 GB, free: 9.48 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=49): time 1.914e-06/1.08, allocations: 0 / 1.154 GB, free: 9.48 MB / 0.7605 GB Notification: Performance of matching and sorting (n=49): time 0.0008699/1.081, allocations: 499.4 kB / 1.154 GB, free: 8.984 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.402e-05/1.081, allocations: 81.55 kB / 1.154 GB, free: 8.887 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003084/1.081, allocations: 286.3 kB / 1.154 GB, free: 8.605 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 5.466e-05/1.081, allocations: 37.69 kB / 1.154 GB, free: 8.562 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001951/1.081, allocations: 276.6 kB / 1.155 GB, free: 8.285 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001305/1.081, allocations: 145.9 kB / 1.155 GB, free: 8.141 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.688e-05/1.081, allocations: 0 / 1.155 GB, free: 8.141 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001455/1.082, allocations: 354.8 kB / 1.155 GB, free: 7.785 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003175/1.082, allocations: 213 kB / 1.155 GB, free: 7.578 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004085/1.082, allocations: 326 kB / 1.156 GB, free: 7.211 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003774/1.083, allocations: 248.2 kB / 1.156 GB, free: 6.969 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/1.083, allocations: 1.219 kB / 1.156 GB, free: 6.969 MB / 0.7605 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0009291/1.084, allocations: 0.5769 MB / 1.156 GB, free: 6.387 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004509/1.084, allocations: 1.096 MB / 1.158 GB, free: 5.203 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/1.084, allocations: 4 kB / 1.158 GB, free: 5.199 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.66e-05/1.084, allocations: 4 kB / 1.158 GB, free: 5.195 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005442/1.085, allocations: 119.7 kB / 1.158 GB, free: 5.078 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.758e-06/1.085, allocations: 7.938 kB / 1.158 GB, free: 5.07 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004561/1.085, allocations: 67.53 kB / 1.158 GB, free: 5.004 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.756e-05/1.085, allocations: 21.62 kB / 1.158 GB, free: 4.984 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 6.773e-06/1.085, allocations: 4 kB / 1.158 GB, free: 4.98 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007436/1.086, allocations: 467.5 kB / 1.158 GB, free: 4.523 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.497e-06/1.086, allocations: 0 / 1.158 GB, free: 4.523 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.259e-05/1.086, allocations: 8.25 kB / 1.158 GB, free: 4.516 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000422/1.087, allocations: 112.2 kB / 1.158 GB, free: 4.41 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.662e-06/1.087, allocations: 8 kB / 1.158 GB, free: 4.402 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003695/1.087, allocations: 51.64 kB / 1.158 GB, free: 4.352 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.097e-05/1.087, allocations: 27.94 kB / 1.158 GB, free: 4.324 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.0001775/1.087, allocations: 131.1 kB / 1.159 GB, free: 4.191 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.535e-05/1.087, allocations: 43.44 kB / 1.159 GB, free: 4.148 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009166/1.088, allocations: 0.5259 MB / 1.159 GB, free: 3.617 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.745e-06/1.088, allocations: 8 kB / 1.159 GB, free: 3.609 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/1.088, allocations: 0 / 1.159 GB, free: 3.609 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.347e-06/1.088, allocations: 3.984 kB / 1.159 GB, free: 3.605 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006528/1.089, allocations: 0.5447 MB / 1.16 GB, free: 3.023 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/1.089, allocations: 0 / 1.16 GB, free: 3.023 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004805/1.089, allocations: 99.86 kB / 1.16 GB, free: 2.926 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/1.089, allocations: 0 / 1.16 GB, free: 2.926 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.905e-05/1.089, allocations: 4 kB / 1.16 GB, free: 2.922 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.172e-06/1.089, allocations: 5.562 kB / 1.16 GB, free: 2.918 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/1.089, allocations: 0 / 1.16 GB, free: 2.918 MB / 0.7605 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001156/1.091, allocations: 0.8344 MB / 1.161 GB, free: 2.055 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000205/1.091, allocations: 184.5 kB / 1.161 GB, free: 1.855 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.922e-05/1.091, allocations: 0 / 1.161 GB, free: 1.855 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003284/1.091, allocations: 31.95 kB / 1.161 GB, free: 1.824 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001332/1.091, allocations: 52.36 kB / 1.161 GB, free: 1.773 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.249e-05/1.091, allocations: 15.94 kB / 1.161 GB, free: 1.758 MB / 0.7605 GB Notification: Performance of sorting global known variables: time 0.000224/1.092, allocations: 224.6 kB / 1.161 GB, free: 1.539 MB / 0.7605 GB Notification: Performance of sort global known variables: time 1.4e-07/1.092, allocations: 0 / 1.161 GB, free: 1.539 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.0007091/1.092, allocations: 247.1 kB / 1.161 GB, free: 1.297 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.0002302/1.093, allocations: 162.1 kB / 1.161 GB, free: 1.133 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.0012/1.094, allocations: 0.8995 MB / 1.162 GB, free: 216 kB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/1.094, allocations: 0 / 1.162 GB, free: 216 kB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0003691/1.094, allocations: 258.5 kB / 1.163 GB, free: 15.95 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007271/1.095, allocations: 141 kB / 1.163 GB, free: 15.83 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001416/1.096, allocations: 0.7738 MB / 1.163 GB, free: 15.03 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004831/1.097, allocations: 0.9043 MB / 1.164 GB, free: 14.1 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.0005984/1.097, allocations: 163.6 kB / 1.165 GB, free: 13.95 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001377/1.098, allocations: 39.44 kB / 1.165 GB, free: 13.91 MB / 0.7761 GB Notification: Performance of SimCode: time 6.31e-07/1.098, allocations: 4 kB / 1.165 GB, free: 13.9 MB / 0.7761 GB Notification: Performance of Templates: time 0.01325/1.111, allocations: 7.887 MB / 1.172 GB, free: 6.195 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)