Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.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.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_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_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.549/2.549, allocations: 285 MB / 292.5 MB, free: 10.48 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.002226/0.002226, allocations: 184.9 kB / 360.7 MB, free: 7.227 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.925/1.925, allocations: 205.3 MB / 0.6192 GB, free: 12.12 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.001139/0.001139, allocations: 91.88 kB / 0.7322 GB, free: 44.65 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.167e-05/2.171e-05, allocations: 4 kB / 0.8509 GB, free: 3.328 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8313/0.8313, allocations: 115.3 MB / 0.9634 GB, free: 78.39 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2706/1.102, allocations: 156 MB / 1.116 GB, free: 492 kB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003605/1.102, allocations: 92.59 kB / 1.116 GB, free: 400 kB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.1179/1.22, allocations: 27.07 MB / 1.142 GB, free: 5.27 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.984e-06/1.22, allocations: 0 / 1.142 GB, free: 5.27 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 4.571e-05/1.22, allocations: 12 kB / 1.142 GB, free: 5.258 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.002259/1.223, allocations: 0.8221 MB / 1.143 GB, free: 4.383 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 5.119e-05/1.223, allocations: 16.02 kB / 1.143 GB, free: 4.367 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001347/1.224, allocations: 148.3 kB / 1.143 GB, free: 4.223 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001004/1.225, allocations: 447.1 kB / 1.144 GB, free: 3.742 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.899e-05/1.225, allocations: 12 kB / 1.144 GB, free: 3.73 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001279/1.225, allocations: 36 kB / 1.144 GB, free: 3.695 MB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001233/1.227, allocations: 450.5 kB / 1.144 GB, free: 3.254 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001458/1.228, allocations: 0.5871 MB / 1.145 GB, free: 2.637 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.113e-05/1.228, allocations: 0 / 1.145 GB, free: 2.637 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.235e-05/1.228, allocations: 4 kB / 1.145 GB, free: 2.633 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.941e-05/1.228, allocations: 45.28 kB / 1.145 GB, free: 2.586 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005165/1.234, allocations: 2.727 MB / 1.147 GB, free: 15.64 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001287/1.235, allocations: 0.5247 MB / 1.148 GB, free: 15.1 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000515/1.235, allocations: 229.6 kB / 1.148 GB, free: 14.87 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006078/1.236, allocations: 0.5622 MB / 1.149 GB, free: 14.18 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008367/1.237, allocations: 369.9 kB / 1.149 GB, free: 13.8 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=49): time 2.835e-06/1.237, allocations: 4 kB / 1.149 GB, free: 13.8 MB / 0.7605 GB Notification: Performance of matching and sorting (n=49): time 0.00141/1.238, allocations: 499.4 kB / 1.15 GB, free: 13.3 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.824e-05/1.238, allocations: 89.48 kB / 1.15 GB, free: 13.2 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004725/1.239, allocations: 282.3 kB / 1.15 GB, free: 12.92 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 8.775e-05/1.239, allocations: 33.7 kB / 1.15 GB, free: 12.88 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002888/1.239, allocations: 280.5 kB / 1.15 GB, free: 12.6 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001997/1.239, allocations: 149.9 kB / 1.15 GB, free: 12.45 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.561e-05/1.24, allocations: 0 / 1.15 GB, free: 12.45 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0002649/1.24, allocations: 358.8 kB / 1.151 GB, free: 12.09 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005558/1.24, allocations: 205.1 kB / 1.151 GB, free: 11.89 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006734/1.241, allocations: 326 kB / 1.151 GB, free: 11.53 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006526/1.242, allocations: 243.8 kB / 1.151 GB, free: 11.3 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.04e-06/1.242, allocations: 0 / 1.151 GB, free: 11.3 MB / 0.7605 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001585/1.243, allocations: 0.5905 MB / 1.152 GB, free: 10.7 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005127/1.244, allocations: 1.08 MB / 1.153 GB, free: 9.531 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.387e-05/1.244, allocations: 4 kB / 1.153 GB, free: 9.527 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.728e-05/1.244, allocations: 4 kB / 1.153 GB, free: 9.523 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00101/1.245, allocations: 123.8 kB / 1.153 GB, free: 9.402 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.538e-05/1.245, allocations: 7.938 kB / 1.153 GB, free: 9.395 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008678/1.246, allocations: 59.55 kB / 1.153 GB, free: 9.336 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.535e-05/1.246, allocations: 23.98 kB / 1.153 GB, free: 9.312 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 1.188e-05/1.246, allocations: 7.938 kB / 1.153 GB, free: 9.305 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001298/1.247, allocations: 474.2 kB / 1.154 GB, free: 8.844 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.5e-05/1.247, allocations: 4 kB / 1.154 GB, free: 8.84 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.302e-05/1.247, allocations: 4 kB / 1.154 GB, free: 8.836 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008668/1.248, allocations: 111.8 kB / 1.154 GB, free: 8.727 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.363e-05/1.248, allocations: 7.938 kB / 1.154 GB, free: 8.719 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007549/1.249, allocations: 59.84 kB / 1.154 GB, free: 8.66 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.122e-05/1.249, allocations: 20 kB / 1.154 GB, free: 8.641 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.0002334/1.249, allocations: 134.9 kB / 1.154 GB, free: 8.5 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001267/1.25, allocations: 51.42 kB / 1.154 GB, free: 8.449 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001456/1.251, allocations: 0.5166 MB / 1.155 GB, free: 7.93 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.07e-05/1.251, allocations: 8 kB / 1.155 GB, free: 7.922 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/1.251, allocations: 0 / 1.155 GB, free: 7.922 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.265e-05/1.251, allocations: 13.25 kB / 1.155 GB, free: 7.91 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001044/1.252, allocations: 0.5331 MB / 1.155 GB, free: 7.34 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.382e-06/1.252, allocations: 4 kB / 1.155 GB, free: 7.336 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009357/1.253, allocations: 87.86 kB / 1.155 GB, free: 7.25 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.16e-05/1.253, allocations: 4 kB / 1.155 GB, free: 7.246 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.137e-05/1.253, allocations: 9.984 kB / 1.155 GB, free: 7.238 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.093e-06/1.253, allocations: 4 kB / 1.155 GB, free: 7.234 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/1.253, allocations: 0 / 1.155 GB, free: 7.234 MB / 0.7605 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001954/1.255, allocations: 0.8423 MB / 1.156 GB, free: 6.363 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003663/1.256, allocations: 176.4 kB / 1.156 GB, free: 6.172 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001448/1.256, allocations: 4 kB / 1.156 GB, free: 6.168 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006107/1.256, allocations: 35.94 kB / 1.156 GB, free: 6.133 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001965/1.257, allocations: 48.38 kB / 1.156 GB, free: 6.086 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.049e-05/1.257, allocations: 23.98 kB / 1.156 GB, free: 6.062 MB / 0.7605 GB Notification: Performance of sorting global known variables: time 0.0003557/1.257, allocations: 218.5 kB / 1.157 GB, free: 5.852 MB / 0.7605 GB Notification: Performance of sort global known variables: time 7.42e-07/1.257, allocations: 0 / 1.157 GB, free: 5.852 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.001158/1.258, allocations: 251.2 kB / 1.157 GB, free: 5.605 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.0003148/1.258, allocations: 145.4 kB / 1.157 GB, free: 5.457 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.002076/1.261, allocations: 0.8932 MB / 1.158 GB, free: 4.539 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 4.389e-06/1.261, allocations: 0 / 1.158 GB, free: 4.539 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0006171/1.261, allocations: 257.5 kB / 1.158 GB, free: 4.285 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001299/1.263, allocations: 151 kB / 1.158 GB, free: 4.148 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002205/1.265, allocations: 0.7699 MB / 1.159 GB, free: 3.352 MB / 0.7605 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006111/1.265, allocations: 0.9035 MB / 1.16 GB, free: 2.422 MB / 0.7605 GB Notification: Performance of simCode: alias equations: time 0.001077/1.267, allocations: 157.7 kB / 1.16 GB, free: 2.273 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002505/1.267, allocations: 47.42 kB / 1.16 GB, free: 2.227 MB / 0.7605 GB Notification: Performance of SimCode: time 1.042e-06/1.267, allocations: 4 kB / 1.16 GB, free: 2.223 MB / 0.7605 GB Notification: Performance of Templates: time 0.0236/1.29, allocations: 7.881 MB / 1.168 GB, free: 10.52 MB / 0.7761 GB make -j1 -f Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.makefile (rm -f Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe >> ../files/Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.sim & ./Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1)