Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.633/1.633, allocations: 289.7 MB / 302.3 MB, free: 2.18 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.001329/0.001329, allocations: 182 kB / 371.6 MB, free: 3.359 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.467/1.467, allocations: 205.1 MB / 0.6309 GB, free: 11.77 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.0009167/0.0009167, allocations: 88.12 kB / 0.745 GB, free: 54.53 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 3.694e-05/3.696e-05, allocations: 4 kB / 0.8662 GB, free: 15.07 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2689/0.2689, allocations: 116.3 MB / 0.9798 GB, free: 10.61 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8911/1.16, allocations: 157.6 MB / 1.134 GB, free: 31.37 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003061/1.16, allocations: 92.03 kB / 1.134 GB, free: 31.33 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 0.06999/1.23, allocations: 27.46 MB / 1.161 GB, free: 17.09 MB / 0.7448 GB Notification: Performance of FrontEnd: time 2.355e-06/1.231, allocations: 0 / 1.161 GB, free: 17.09 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 4.255e-05/1.231, allocations: 19.98 kB / 1.161 GB, free: 17.07 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.001648/1.232, allocations: 0.8094 MB / 1.161 GB, free: 16.32 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.482e-05/1.232, allocations: 18.66 kB / 1.161 GB, free: 16.3 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008945/1.233, allocations: 146.6 kB / 1.162 GB, free: 16.2 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006423/1.234, allocations: 442.6 kB / 1.162 GB, free: 15.84 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.663e-05/1.234, allocations: 42.25 kB / 1.162 GB, free: 15.81 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.565e-05/1.234, allocations: 51.44 kB / 1.162 GB, free: 15.78 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001064/1.235, allocations: 0.6496 MB / 1.163 GB, free: 15.38 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.653e-05/1.235, allocations: 0 / 1.163 GB, free: 15.38 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.098e-05/1.235, allocations: 26.88 kB / 1.163 GB, free: 15.37 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.629e-05/1.235, allocations: 40.61 kB / 1.163 GB, free: 15.34 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007732/1.236, allocations: 0.5218 MB / 1.163 GB, free: 15.04 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003025/1.239, allocations: 2.844 MB / 1.166 GB, free: 12.46 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007986/1.24, allocations: 0.5483 MB / 1.167 GB, free: 12.07 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003018/1.24, allocations: 241.2 kB / 1.167 GB, free: 11.91 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004062/1.241, allocations: 0.5616 MB / 1.167 GB, free: 11.23 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005175/1.241, allocations: 393.2 kB / 1.168 GB, free: 10.93 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=49): time 2.905e-06/1.241, allocations: 0 / 1.168 GB, free: 10.93 MB / 0.7448 GB Notification: Performance of matching and sorting (n=49): time 0.0008753/1.242, allocations: 0.5133 MB / 1.168 GB, free: 10.55 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.415e-05/1.242, allocations: 85.55 kB / 1.168 GB, free: 10.45 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003023/1.242, allocations: 298.4 kB / 1.169 GB, free: 10.2 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 5.587e-05/1.242, allocations: 44.14 kB / 1.169 GB, free: 10.16 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001494/1.243, allocations: 276.1 kB / 1.169 GB, free: 9.949 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 0.000124/1.243, allocations: 162 kB / 1.169 GB, free: 9.812 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.754e-05/1.243, allocations: 6.562 kB / 1.169 GB, free: 9.812 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 9.038e-05/1.243, allocations: 356.2 kB / 1.169 GB, free: 9.477 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002949/1.243, allocations: 216.5 kB / 1.17 GB, free: 9.352 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003519/1.244, allocations: 346 kB / 1.17 GB, free: 9.066 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003395/1.244, allocations: 269 kB / 1.17 GB, free: 8.883 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/1.244, allocations: 0 / 1.17 GB, free: 8.883 MB / 0.7448 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008504/1.245, allocations: 0.6625 MB / 1.171 GB, free: 8.398 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002964/1.245, allocations: 1.085 MB / 1.172 GB, free: 7.246 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.348e-05/1.245, allocations: 4 kB / 1.172 GB, free: 7.242 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.6e-05/1.245, allocations: 7.938 kB / 1.172 GB, free: 7.234 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005423/1.246, allocations: 115.4 kB / 1.172 GB, free: 7.125 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.402e-05/1.246, allocations: 4.703 kB / 1.172 GB, free: 7.121 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000477/1.246, allocations: 78.72 kB / 1.172 GB, free: 7.055 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.438e-05/1.246, allocations: 19.44 kB / 1.172 GB, free: 7.039 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.013e-05/1.246, allocations: 4 kB / 1.172 GB, free: 7.035 MB / 0.7448 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007489/1.247, allocations: 0.54 MB / 1.173 GB, free: 6.656 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/1.247, allocations: 4 kB / 1.173 GB, free: 6.652 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.432e-06/1.247, allocations: 4 kB / 1.173 GB, free: 6.648 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003962/1.247, allocations: 115.4 kB / 1.173 GB, free: 6.543 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/1.247, allocations: 7.953 kB / 1.173 GB, free: 6.535 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003714/1.248, allocations: 66.5 kB / 1.173 GB, free: 6.477 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.598e-05/1.248, allocations: 19.94 kB / 1.173 GB, free: 6.461 MB / 0.7448 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.000153/1.248, allocations: 145.5 kB / 1.173 GB, free: 6.332 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.32e-05/1.248, allocations: 55.38 kB / 1.173 GB, free: 6.277 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000943/1.249, allocations: 0.5668 MB / 1.174 GB, free: 5.895 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.723e-06/1.249, allocations: 4.375 kB / 1.174 GB, free: 5.891 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/1.249, allocations: 0 / 1.174 GB, free: 5.891 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.156e-06/1.249, allocations: 3.953 kB / 1.174 GB, free: 5.887 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007138/1.25, allocations: 0.6293 MB / 1.174 GB, free: 5.363 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/1.25, allocations: 0 / 1.174 GB, free: 5.363 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000467/1.25, allocations: 95.17 kB / 1.174 GB, free: 5.273 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.45e-06/1.25, allocations: 4 kB / 1.174 GB, free: 5.27 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.402e-05/1.25, allocations: 15.73 kB / 1.174 GB, free: 5.262 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.318e-06/1.25, allocations: 4 kB / 1.174 GB, free: 5.258 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/1.25, allocations: 3.938 kB / 1.174 GB, free: 5.254 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001169/1.252, allocations: 0.8654 MB / 1.175 GB, free: 4.641 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000225/1.252, allocations: 169.9 kB / 1.175 GB, free: 4.48 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.221e-05/1.252, allocations: 14.88 kB / 1.175 GB, free: 4.473 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003087/1.252, allocations: 42.58 kB / 1.175 GB, free: 4.441 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001375/1.252, allocations: 55.88 kB / 1.176 GB, free: 4.395 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.511e-05/1.252, allocations: 19.61 kB / 1.176 GB, free: 4.379 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0002435/1.253, allocations: 234.6 kB / 1.176 GB, free: 4.203 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.4e-07/1.253, allocations: 0 / 1.176 GB, free: 4.203 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0007301/1.253, allocations: 284.1 kB / 1.176 GB, free: 3.949 MB / 0.7448 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.0002623/1.254, allocations: 158.8 kB / 1.176 GB, free: 3.797 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.001243/1.255, allocations: 0.9337 MB / 1.177 GB, free: 3.109 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/1.255, allocations: 1 kB / 1.177 GB, free: 3.109 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0003291/1.255, allocations: 267.2 kB / 1.177 GB, free: 2.93 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007113/1.256, allocations: 157.7 kB / 1.178 GB, free: 2.805 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001344/1.257, allocations: 0.8034 MB / 1.178 GB, free: 2.113 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003106/1.258, allocations: 0.9051 MB / 1.179 GB, free: 1.191 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.0005748/1.258, allocations: 157.8 kB / 1.179 GB, free: 1.039 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001354/1.258, allocations: 42.61 kB / 1.179 GB, free: 1.004 MB / 0.7448 GB Notification: Performance of SimCode: time 5.21e-07/1.258, allocations: 0 / 1.179 GB, free: 1.004 MB / 0.7448 GB Notification: Performance of Templates: time 0.01497/1.273, allocations: 8.25 MB / 1.187 GB, free: 8.855 MB / 0.7605 GB make -j1 -f Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.makefile (rm -f Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe >> ../files/Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.sim & ./Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1)