Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_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.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.712/2.712, allocations: 287.5 MB / 302.4 MB, free: 8.219 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001515/0.001515, allocations: 191 kB / 371 MB, free: 10.77 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.14/2.14, allocations: 205.4 MB / 0.6297 GB, free: 10.49 MB / 458.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001184/0.001184, allocations: 97.72 kB / 0.743 GB, free: 6.496 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000751/0.0007511, allocations: 15.91 kB / 0.8658 GB, free: 141 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2395/0.2402, allocations: 115.3 MB / 0.9784 GB, free: 28.27 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.07/1.311, allocations: 158.1 MB / 1.133 GB, free: 15.61 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004951/1.311, allocations: 99.06 kB / 1.133 GB, free: 15.59 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.1231/1.434, allocations: 29.26 MB / 1.162 GB, free: 16.14 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.445e-06/1.435, allocations: 0 / 1.162 GB, free: 16.14 MB / 0.698 GB Notification: Performance of Transformations before backend: time 4.281e-05/1.435, allocations: 12 kB / 1.162 GB, free: 16.12 MB / 0.698 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.002445/1.437, allocations: 0.8754 MB / 1.162 GB, free: 15.23 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.973e-05/1.437, allocations: 12.03 kB / 1.162 GB, free: 15.22 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001454/1.439, allocations: 155 kB / 1.163 GB, free: 15.07 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001021/1.44, allocations: 440 kB / 1.163 GB, free: 14.66 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.809e-05/1.44, allocations: 37.75 kB / 1.163 GB, free: 14.64 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001496/1.44, allocations: 54.61 kB / 1.163 GB, free: 14.6 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00187/1.442, allocations: 0.6814 MB / 1.164 GB, free: 14.08 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.44e-05/1.442, allocations: 0 / 1.164 GB, free: 14.08 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.794e-05/1.442, allocations: 22.3 kB / 1.164 GB, free: 14.07 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.385e-05/1.442, allocations: 47.84 kB / 1.164 GB, free: 14.03 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00182/1.444, allocations: 0.5757 MB / 1.164 GB, free: 13.64 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00553/1.449, allocations: 2.82 MB / 1.167 GB, free: 11.04 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00188/1.451, allocations: 0.5949 MB / 1.168 GB, free: 10.6 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006384/1.452, allocations: 0.5623 MB / 1.168 GB, free: 9.91 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001108/1.453, allocations: 414.3 kB / 1.169 GB, free: 9.586 MB / 0.698 GB Notification: Performance of pre-optimization done (n=49): time 3.757e-06/1.453, allocations: 0 / 1.169 GB, free: 9.586 MB / 0.698 GB Notification: Performance of matching and sorting (n=49): time 0.002599/1.456, allocations: 0.7747 MB / 1.169 GB, free: 9.027 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.969e-05/1.456, allocations: 89.47 kB / 1.169 GB, free: 8.922 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005356/1.456, allocations: 303.3 kB / 1.17 GB, free: 8.676 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001003/1.456, allocations: 44.38 kB / 1.17 GB, free: 8.637 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002866/1.457, allocations: 278.1 kB / 1.17 GB, free: 8.426 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002101/1.457, allocations: 159.5 kB / 1.17 GB, free: 8.289 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.437e-05/1.457, allocations: 15 kB / 1.17 GB, free: 8.285 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.000177/1.457, allocations: 356.4 kB / 1.171 GB, free: 7.945 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007797/1.458, allocations: 241.3 kB / 1.171 GB, free: 7.797 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008941/1.459, allocations: 376.5 kB / 1.171 GB, free: 7.484 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008944/1.46, allocations: 297.1 kB / 1.171 GB, free: 7.293 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.062e-06/1.46, allocations: 0 / 1.171 GB, free: 7.293 MB / 0.698 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002078/1.462, allocations: 0.7052 MB / 1.172 GB, free: 6.777 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005205/1.463, allocations: 1.086 MB / 1.173 GB, free: 5.625 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.347e-05/1.463, allocations: 4 kB / 1.173 GB, free: 5.621 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.704e-05/1.463, allocations: 4 kB / 1.173 GB, free: 5.617 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001063/1.464, allocations: 115.6 kB / 1.173 GB, free: 5.508 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.71e-05/1.464, allocations: 7.984 kB / 1.173 GB, free: 5.5 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009047/1.465, allocations: 68.33 kB / 1.173 GB, free: 5.441 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.595e-05/1.465, allocations: 23.3 kB / 1.173 GB, free: 5.422 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.323e-05/1.465, allocations: 4 kB / 1.173 GB, free: 5.418 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001775/1.467, allocations: 0.5966 MB / 1.174 GB, free: 5.004 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.317e-06/1.467, allocations: 4 kB / 1.174 GB, free: 5 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.153e-05/1.467, allocations: 4 kB / 1.174 GB, free: 4.996 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008607/1.467, allocations: 111 kB / 1.174 GB, free: 4.891 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.615e-05/1.467, allocations: 11.89 kB / 1.174 GB, free: 4.879 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007874/1.468, allocations: 61.64 kB / 1.174 GB, free: 4.828 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.247e-05/1.468, allocations: 25.47 kB / 1.174 GB, free: 4.809 MB / 0.698 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 () * Number of clocked 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.0005633/1.469, allocations: 301.2 kB / 1.174 GB, free: 4.555 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001273/1.469, allocations: 47.44 kB / 1.175 GB, free: 4.508 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00188/1.471, allocations: 0.6094 MB / 1.175 GB, free: 4.094 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.043e-05/1.471, allocations: 4 kB / 1.175 GB, free: 4.09 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.137e-05/1.471, allocations: 7.938 kB / 1.175 GB, free: 4.082 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.137e-05/1.471, allocations: 4 kB / 1.175 GB, free: 4.078 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001185/1.472, allocations: 0.6236 MB / 1.176 GB, free: 3.562 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/1.472, allocations: 0 / 1.176 GB, free: 3.562 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000961/1.473, allocations: 95.05 kB / 1.176 GB, free: 3.473 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.456e-06/1.473, allocations: 0 / 1.176 GB, free: 3.473 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.182e-05/1.473, allocations: 15.31 kB / 1.176 GB, free: 3.465 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.193e-05/1.473, allocations: 11.92 kB / 1.176 GB, free: 3.453 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/1.473, allocations: 0 / 1.176 GB, free: 3.453 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002647/1.476, allocations: 0.9344 MB / 1.177 GB, free: 2.781 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003574/1.476, allocations: 175 kB / 1.177 GB, free: 2.617 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001203/1.477, allocations: 18.56 kB / 1.177 GB, free: 2.609 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006194/1.477, allocations: 39.83 kB / 1.177 GB, free: 2.578 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002648/1.477, allocations: 55.5 kB / 1.177 GB, free: 2.531 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.471e-05/1.477, allocations: 22.55 kB / 1.177 GB, free: 2.516 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0004124/1.478, allocations: 241.1 kB / 1.177 GB, free: 2.324 MB / 0.698 GB Notification: Performance of sort global known variables: time 4.21e-07/1.478, allocations: 0 / 1.177 GB, free: 2.324 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001141/1.479, allocations: 281.9 kB / 1.178 GB, free: 2.07 MB / 0.698 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) * Number of clocked states: 0 () * 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.0003214/1.479, allocations: 148.4 kB / 1.178 GB, free: 1.926 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.002759/1.482, allocations: 0.9926 MB / 1.179 GB, free: 1.18 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 8.255e-06/1.482, allocations: 8.125 kB / 1.179 GB, free: 1.172 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0008452/1.483, allocations: 294.2 kB / 1.179 GB, free: 0.9648 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001362/1.484, allocations: 151.9 kB / 1.179 GB, free: 0.8477 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003388/1.488, allocations: 1.277 MB / 1.18 GB, free: 15.68 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006038/1.489, allocations: 0.9003 MB / 1.181 GB, free: 14.76 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.0009918/1.49, allocations: 152.4 kB / 1.181 GB, free: 14.61 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002746/1.49, allocations: 46.8 kB / 1.181 GB, free: 14.57 MB / 0.7136 GB Notification: Performance of SimCode: time 2.605e-06/1.49, allocations: 0 / 1.181 GB, free: 14.57 MB / 0.7136 GB Notification: Performance of Templates: time 0.0229/1.513, allocations: 7.653 MB / 1.189 GB, free: 7.004 MB / 0.7136 GB make -j1 -f Buildings_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.makefile (rm -f Buildings_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe >> ../files/Buildings_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.sim & ./Buildings_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe 2>&1)