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.491/2.491, allocations: 284.8 MB / 297.3 MB, free: 6.344 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.001443/0.001443, allocations: 183.5 kB / 365.7 MB, free: 2.57 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 1.992/1.992, allocations: 205.1 MB / 0.6241 GB, free: 8.164 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001081/0.001081, allocations: 93.16 kB / 0.7372 GB, free: 40.75 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.305e-05/3.309e-05, allocations: 8 kB / 0.8575 GB, free: 13.67 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.81/0.81, allocations: 115.2 MB / 0.97 GB, free: 78.18 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2675/1.078, allocations: 158.1 MB / 1.124 GB, free: 10.29 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003218/1.078, allocations: 95.94 kB / 1.124 GB, free: 10.2 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.1209/1.199, allocations: 29.1 MB / 1.153 GB, free: 13.05 MB / 0.7605 GB Notification: Performance of FrontEnd: time 2.014e-06/1.199, allocations: 0 / 1.153 GB, free: 13.05 MB / 0.7605 GB Notification: Performance of Transformations before backend: time 4.868e-05/1.199, allocations: 12 kB / 1.153 GB, free: 13.04 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.002475/1.201, allocations: 0.8139 MB / 1.154 GB, free: 12.17 MB / 0.7605 GB Notification: Performance of prepare preOptimizeDAE: time 5.729e-05/1.202, allocations: 12.03 kB / 1.154 GB, free: 12.16 MB / 0.7605 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001438/1.203, allocations: 152.2 kB / 1.154 GB, free: 12.01 MB / 0.7605 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001047/1.204, allocations: 443.1 kB / 1.154 GB, free: 11.54 MB / 0.7605 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.731e-05/1.204, allocations: 43.98 kB / 1.154 GB, free: 11.5 MB / 0.7605 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001472/1.204, allocations: 48 kB / 1.154 GB, free: 11.45 MB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001748/1.206, allocations: 0.6536 MB / 1.155 GB, free: 10.77 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.437e-05/1.206, allocations: 0.9375 kB / 1.155 GB, free: 10.77 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001048/1.206, allocations: 35.97 kB / 1.155 GB, free: 10.73 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001059/1.206, allocations: 36.98 kB / 1.155 GB, free: 10.7 MB / 0.7605 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001642/1.208, allocations: 0.5231 MB / 1.156 GB, free: 10.18 MB / 0.7605 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005865/1.214, allocations: 2.833 MB / 1.158 GB, free: 7.113 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001711/1.216, allocations: 0.537 MB / 1.159 GB, free: 6.555 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007413/1.217, allocations: 241.6 kB / 1.159 GB, free: 6.312 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007476/1.217, allocations: 0.5701 MB / 1.16 GB, free: 5.613 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001085/1.218, allocations: 385.5 kB / 1.16 GB, free: 5.223 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=49): time 3.616e-06/1.218, allocations: 0 / 1.16 GB, free: 5.223 MB / 0.7605 GB Notification: Performance of matching and sorting (n=49): time 0.001621/1.22, allocations: 0.5073 MB / 1.161 GB, free: 4.707 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.126e-05/1.22, allocations: 89.58 kB / 1.161 GB, free: 4.602 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005978/1.221, allocations: 299.5 kB / 1.161 GB, free: 4.301 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 0.0001964/1.221, allocations: 45.69 kB / 1.161 GB, free: 4.25 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003394/1.221, allocations: 284.5 kB / 1.161 GB, free: 3.969 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002549/1.222, allocations: 145.9 kB / 1.161 GB, free: 3.824 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.219e-05/1.222, allocations: 16 kB / 1.161 GB, free: 3.809 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0002038/1.222, allocations: 350.8 kB / 1.162 GB, free: 3.457 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006617/1.223, allocations: 221.1 kB / 1.162 GB, free: 3.242 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007959/1.223, allocations: 344.8 kB / 1.162 GB, free: 2.863 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007385/1.224, allocations: 273.5 kB / 1.162 GB, free: 2.59 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.267e-06/1.224, allocations: 4 kB / 1.162 GB, free: 2.586 MB / 0.7605 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001878/1.226, allocations: 0.6631 MB / 1.163 GB, free: 1.91 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005936/1.227, allocations: 1.07 MB / 1.164 GB, free: 0.7539 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.534e-05/1.227, allocations: 4 kB / 1.164 GB, free: 0.75 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.035e-05/1.227, allocations: 8 kB / 1.164 GB, free: 0.7422 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001157/1.228, allocations: 119.8 kB / 1.164 GB, free: 0.625 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.595e-05/1.228, allocations: 13.25 kB / 1.164 GB, free: 0.6133 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009841/1.229, allocations: 71.55 kB / 1.164 GB, free: 0.543 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.099e-05/1.229, allocations: 26.59 kB / 1.164 GB, free: 0.5195 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/1.229, allocations: 7.938 kB / 1.164 GB, free: 0.5117 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001549/1.231, allocations: 0.5406 MB / 1.165 GB, free: 15.96 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.076e-05/1.231, allocations: 4 kB / 1.165 GB, free: 15.96 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.503e-05/1.231, allocations: 4 kB / 1.165 GB, free: 15.96 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009034/1.232, allocations: 115.8 kB / 1.165 GB, free: 15.84 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.342e-05/1.232, allocations: 4 kB / 1.165 GB, free: 15.84 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000802/1.233, allocations: 71.86 kB / 1.165 GB, free: 15.77 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.773e-05/1.233, allocations: 20 kB / 1.165 GB, free: 15.75 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.0002871/1.233, allocations: 143 kB / 1.165 GB, free: 15.6 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001313/1.233, allocations: 47.42 kB / 1.165 GB, free: 15.55 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001601/1.235, allocations: 0.5618 MB / 1.166 GB, free: 14.98 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.01e-05/1.235, allocations: 4 kB / 1.166 GB, free: 14.98 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.607e-05/1.235, allocations: 3.953 kB / 1.166 GB, free: 14.97 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.524e-05/1.235, allocations: 13.11 kB / 1.166 GB, free: 14.96 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001228/1.236, allocations: 0.632 MB / 1.167 GB, free: 14.28 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/1.236, allocations: 0 / 1.167 GB, free: 14.28 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001029/1.237, allocations: 91.86 kB / 1.167 GB, free: 14.19 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.738e-06/1.237, allocations: 0 / 1.167 GB, free: 14.19 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.461e-05/1.237, allocations: 12 kB / 1.167 GB, free: 14.18 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.857e-06/1.237, allocations: 4 kB / 1.167 GB, free: 14.18 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.018e-06/1.237, allocations: 2.75 kB / 1.167 GB, free: 14.18 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002162/1.239, allocations: 0.8735 MB / 1.167 GB, free: 13.28 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003741/1.24, allocations: 172.5 kB / 1.168 GB, free: 13.09 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001205/1.24, allocations: 12 kB / 1.168 GB, free: 13.08 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006437/1.241, allocations: 43.94 kB / 1.168 GB, free: 13.04 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002089/1.241, allocations: 52.33 kB / 1.168 GB, free: 12.98 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.963e-05/1.241, allocations: 23.98 kB / 1.168 GB, free: 12.96 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0004277/1.241, allocations: 230.2 kB / 1.168 GB, free: 12.74 MB / 0.7761 GB Notification: Performance of sort global known variables: time 7.31e-07/1.241, allocations: 0 / 1.168 GB, free: 12.74 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.00113/1.243, allocations: 287.1 kB / 1.168 GB, free: 12.46 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.0003189/1.243, allocations: 147.7 kB / 1.168 GB, free: 12.31 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.002331/1.245, allocations: 0.9408 MB / 1.169 GB, free: 11.34 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 7.785e-06/1.245, allocations: 4 kB / 1.169 GB, free: 11.34 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0006952/1.246, allocations: 262.4 kB / 1.17 GB, free: 11.08 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001332/1.247, allocations: 159.5 kB / 1.17 GB, free: 10.94 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002347/1.25, allocations: 0.8001 MB / 1.171 GB, free: 10.11 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006811/1.25, allocations: 0.8996 MB / 1.171 GB, free: 9.188 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.001087/1.251, allocations: 162.1 kB / 1.172 GB, free: 9.031 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002566/1.252, allocations: 47.42 kB / 1.172 GB, free: 8.984 MB / 0.7761 GB Notification: Performance of SimCode: time 1.272e-06/1.252, allocations: 0 / 1.172 GB, free: 8.984 MB / 0.7761 GB Notification: Performance of Templates: time 0.02409/1.276, allocations: 8.241 MB / 1.18 GB, free: 0.9023 MB / 0.7761 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)