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.397/2.397, allocations: 285 MB / 292.5 MB, free: 10.51 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.001486/0.001486, allocations: 184.9 kB / 360.7 MB, free: 7.223 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.914/1.914, allocations: 205.3 MB / 0.6192 GB, free: 12.11 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.001099/0.001098, allocations: 93.67 kB / 0.7322 GB, free: 44.68 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.893e-05/1.882e-05, allocations: 4 kB / 0.8509 GB, free: 3.348 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8249/0.8249, allocations: 115.2 MB / 0.9634 GB, free: 78.63 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2712/1.096, allocations: 157.4 MB / 1.117 GB, free: 15.02 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003688/1.097, allocations: 95.08 kB / 1.117 GB, free: 14.93 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.1256/1.222, allocations: 28.97 MB / 1.146 GB, free: 1.895 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.603e-06/1.222, allocations: 4 kB / 1.146 GB, free: 1.891 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 4.594e-05/1.222, allocations: 12 kB / 1.146 GB, free: 1.879 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.002278/1.225, allocations: 0.8181 MB / 1.146 GB, free: 1.004 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 5.039e-05/1.225, allocations: 12.03 kB / 1.146 GB, free: 0.9922 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001375/1.226, allocations: 150.3 kB / 1.147 GB, free: 0.8477 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000996/1.227, allocations: 447.2 kB / 1.147 GB, free: 376 kB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.987e-05/1.227, allocations: 16 kB / 1.147 GB, free: 360 kB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001401/1.227, allocations: 31.47 kB / 1.147 GB, free: 332 kB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001244/1.229, allocations: 454.5 kB / 1.147 GB, free: 15.88 MB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001432/1.23, allocations: 0.5871 MB / 1.148 GB, free: 15.26 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.114e-05/1.23, allocations: 0 / 1.148 GB, free: 15.26 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.523e-05/1.23, allocations: 7.984 kB / 1.148 GB, free: 15.25 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.626e-05/1.23, allocations: 41.3 kB / 1.148 GB, free: 15.21 MB / 0.7605 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005165/1.235, allocations: 2.723 MB / 1.151 GB, free: 12.28 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001333/1.237, allocations: 0.5251 MB / 1.151 GB, free: 11.73 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005501/1.237, allocations: 225.7 kB / 1.151 GB, free: 11.5 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006515/1.238, allocations: 0.5661 MB / 1.152 GB, free: 10.81 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008751/1.239, allocations: 362.9 kB / 1.152 GB, free: 10.44 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=49): time 3.116e-06/1.239, allocations: 4 kB / 1.152 GB, free: 10.43 MB / 0.7605 GB Notification: Performance of matching and sorting (n=49): time 0.001492/1.24, allocations: 499.4 kB / 1.153 GB, free: 9.938 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.62e-05/1.241, allocations: 89.55 kB / 1.153 GB, free: 9.832 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005195/1.241, allocations: 286.3 kB / 1.153 GB, free: 9.551 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 9.694e-05/1.241, allocations: 33.7 kB / 1.153 GB, free: 9.512 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003124/1.242, allocations: 280.6 kB / 1.153 GB, free: 9.23 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002006/1.242, allocations: 145.9 kB / 1.154 GB, free: 9.086 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.633e-05/1.242, allocations: 4 kB / 1.154 GB, free: 9.082 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001962/1.242, allocations: 354.8 kB / 1.154 GB, free: 8.727 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005457/1.243, allocations: 209.1 kB / 1.154 GB, free: 8.523 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006747/1.243, allocations: 330 kB / 1.154 GB, free: 8.156 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006795/1.244, allocations: 241.4 kB / 1.155 GB, free: 7.922 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.885e-06/1.244, allocations: 4 kB / 1.155 GB, free: 7.918 MB / 0.7605 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001653/1.246, allocations: 0.5889 MB / 1.155 GB, free: 7.324 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005618/1.246, allocations: 1.086 MB / 1.156 GB, free: 6.152 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.201e-05/1.246, allocations: 0 / 1.156 GB, free: 6.152 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.841e-05/1.246, allocations: 8 kB / 1.156 GB, free: 6.145 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001038/1.247, allocations: 111.8 kB / 1.156 GB, free: 6.035 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.449e-05/1.247, allocations: 8 kB / 1.156 GB, free: 6.027 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008915/1.248, allocations: 63.53 kB / 1.157 GB, free: 5.965 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.57e-05/1.248, allocations: 27.98 kB / 1.157 GB, free: 5.938 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 9.858e-06/1.248, allocations: 7.938 kB / 1.157 GB, free: 5.93 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001397/1.25, allocations: 469.9 kB / 1.157 GB, free: 5.473 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.051e-05/1.25, allocations: 4 kB / 1.157 GB, free: 5.469 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.659e-05/1.25, allocations: 9.969 kB / 1.157 GB, free: 5.461 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008474/1.251, allocations: 108.1 kB / 1.157 GB, free: 5.355 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.432e-05/1.251, allocations: 7.984 kB / 1.157 GB, free: 5.348 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007856/1.252, allocations: 55.59 kB / 1.157 GB, free: 5.293 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.456e-05/1.252, allocations: 20 kB / 1.157 GB, free: 5.273 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.0002787/1.252, allocations: 132.4 kB / 1.157 GB, free: 5.137 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001386/1.252, allocations: 47.44 kB / 1.157 GB, free: 5.09 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001564/1.254, allocations: 0.5337 MB / 1.158 GB, free: 4.551 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.16e-05/1.254, allocations: 4 kB / 1.158 GB, free: 4.547 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.263e-06/1.254, allocations: 0 / 1.158 GB, free: 4.547 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.024e-05/1.254, allocations: 11.94 kB / 1.158 GB, free: 4.535 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001099/1.255, allocations: 0.5331 MB / 1.158 GB, free: 3.965 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.613e-06/1.255, allocations: 2 kB / 1.158 GB, free: 3.965 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009664/1.256, allocations: 91.86 kB / 1.159 GB, free: 3.875 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.147e-06/1.256, allocations: 0 / 1.159 GB, free: 3.875 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.349e-05/1.256, allocations: 15.98 kB / 1.159 GB, free: 3.859 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.529e-06/1.256, allocations: 0 / 1.159 GB, free: 3.859 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.56e-06/1.256, allocations: 4 kB / 1.159 GB, free: 3.855 MB / 0.7605 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002091/1.258, allocations: 0.8344 MB / 1.159 GB, free: 2.992 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000386/1.258, allocations: 172.5 kB / 1.16 GB, free: 2.805 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001166/1.259, allocations: 8 kB / 1.16 GB, free: 2.797 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006318/1.259, allocations: 35.8 kB / 1.16 GB, free: 2.766 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002566/1.26, allocations: 52.36 kB / 1.16 GB, free: 2.715 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.801e-05/1.26, allocations: 19.98 kB / 1.16 GB, free: 2.695 MB / 0.7605 GB Notification: Performance of sorting global known variables: time 0.000425/1.26, allocations: 220.6 kB / 1.16 GB, free: 2.48 MB / 0.7605 GB Notification: Performance of sort global known variables: time 4.81e-07/1.26, allocations: 0 / 1.16 GB, free: 2.48 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.001289/1.261, allocations: 255.1 kB / 1.16 GB, free: 2.23 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.0003476/1.262, allocations: 147.2 kB / 1.16 GB, free: 2.078 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.002331/1.264, allocations: 0.8934 MB / 1.161 GB, free: 1.16 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 7.494e-06/1.264, allocations: 0 / 1.161 GB, free: 1.16 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0006922/1.265, allocations: 253.5 kB / 1.161 GB, free: 0.9102 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001395/1.266, allocations: 151.5 kB / 1.161 GB, free: 0.7695 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002473/1.269, allocations: 0.7648 MB / 1.162 GB, free: 15.98 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006874/1.27, allocations: 0.9074 MB / 1.163 GB, free: 15.04 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.001294/1.271, allocations: 165.3 kB / 1.163 GB, free: 14.89 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002627/1.271, allocations: 43.42 kB / 1.163 GB, free: 14.85 MB / 0.7761 GB Notification: Performance of SimCode: time 1.493e-06/1.271, allocations: 0 / 1.163 GB, free: 14.85 MB / 0.7761 GB Notification: Performance of Templates: time 0.03266/1.304, allocations: 7.871 MB / 1.171 GB, free: 7.137 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)