Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.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.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_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_maint.8.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.649/1.649, allocations: 288.4 MB / 304.3 MB, free: 8.105 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.001013/0.001013, allocations: 182.2 kB / 372.9 MB, free: 10.14 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.563/1.563, allocations: 205.4 MB / 0.6317 GB, free: 9.789 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000735/0.000735, allocations: 90.34 kB / 0.745 GB, free: 5.719 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005613/0.0005614, allocations: 11.34 kB / 0.8681 GB, free: 141.9 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3117/0.3123, allocations: 115.3 MB / 0.9807 GB, free: 27.38 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8145/1.127, allocations: 158.2 MB / 1.135 GB, free: 15.48 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003858/1.127, allocations: 100.4 kB / 1.135 GB, free: 15.46 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.06614/1.193, allocations: 29.58 MB / 1.164 GB, free: 14.42 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.325e-06/1.194, allocations: 0 / 1.164 GB, free: 14.42 MB / 0.698 GB Notification: Performance of Transformations before backend: time 3.862e-05/1.194, allocations: 12 kB / 1.164 GB, free: 14.41 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.002112/1.196, allocations: 0.8692 MB / 1.165 GB, free: 13.52 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.158e-05/1.196, allocations: 8.031 kB / 1.165 GB, free: 13.51 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009157/1.197, allocations: 160 kB / 1.165 GB, free: 13.36 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006563/1.197, allocations: 451.2 kB / 1.166 GB, free: 12.94 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.325e-05/1.197, allocations: 35.62 kB / 1.166 GB, free: 12.92 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001014/1.198, allocations: 62.36 kB / 1.166 GB, free: 12.88 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001175/1.199, allocations: 0.675 MB / 1.166 GB, free: 12.36 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.787e-05/1.199, allocations: 8.125 kB / 1.166 GB, free: 12.35 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.993e-05/1.199, allocations: 30.09 kB / 1.166 GB, free: 12.34 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.135e-05/1.199, allocations: 40.67 kB / 1.167 GB, free: 12.3 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009879/1.2, allocations: 0.5737 MB / 1.167 GB, free: 11.91 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003439/1.203, allocations: 2.826 MB / 1.17 GB, free: 9.301 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001078/1.204, allocations: 0.5927 MB / 1.17 GB, free: 8.871 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000468/1.205, allocations: 269.3 kB / 1.171 GB, free: 8.691 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004806/1.205, allocations: 0.5652 MB / 1.171 GB, free: 8 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006735/1.206, allocations: 411.5 kB / 1.172 GB, free: 7.676 MB / 0.698 GB Notification: Performance of pre-optimization done (n=49): time 2.996e-06/1.206, allocations: 0 / 1.172 GB, free: 7.676 MB / 0.698 GB Notification: Performance of matching and sorting (n=49): time 0.001458/1.208, allocations: 0.7774 MB / 1.172 GB, free: 7.117 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.603e-05/1.208, allocations: 81.55 kB / 1.172 GB, free: 7.02 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003536/1.208, allocations: 347 kB / 1.173 GB, free: 6.742 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 5.263e-05/1.208, allocations: 40.33 kB / 1.173 GB, free: 6.707 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001946/1.208, allocations: 281.3 kB / 1.173 GB, free: 6.488 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001287/1.208, allocations: 154.7 kB / 1.173 GB, free: 6.355 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.96e-05/1.208, allocations: 22.56 kB / 1.173 GB, free: 6.344 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001438/1.209, allocations: 360.4 kB / 1.174 GB, free: 6 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004405/1.209, allocations: 244.1 kB / 1.174 GB, free: 5.848 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005195/1.21, allocations: 369.7 kB / 1.174 GB, free: 5.539 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008958/1.21, allocations: 0.5929 MB / 1.175 GB, free: 5.094 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/1.21, allocations: 0 / 1.175 GB, free: 5.094 MB / 0.698 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001145/1.212, allocations: 0.7186 MB / 1.175 GB, free: 4.566 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001301/1.212, allocations: 187.3 kB / 1.176 GB, free: 4.348 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/1.212, allocations: 7.984 kB / 1.176 GB, free: 4.34 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.174e-05/1.212, allocations: 4 kB / 1.176 GB, free: 4.336 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005284/1.212, allocations: 122.6 kB / 1.176 GB, free: 4.223 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.279e-05/1.212, allocations: 4 kB / 1.176 GB, free: 4.219 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004776/1.213, allocations: 74.66 kB / 1.176 GB, free: 4.152 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.504e-05/1.213, allocations: 21.81 kB / 1.176 GB, free: 4.137 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 7.995e-06/1.213, allocations: 4 kB / 1.176 GB, free: 4.133 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001028/1.214, allocations: 0.5911 MB / 1.176 GB, free: 3.723 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/1.214, allocations: 4 kB / 1.176 GB, free: 3.719 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.073e-06/1.214, allocations: 7.938 kB / 1.176 GB, free: 3.711 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004449/1.214, allocations: 107.5 kB / 1.177 GB, free: 3.609 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.024e-05/1.214, allocations: 16.22 kB / 1.177 GB, free: 3.594 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003768/1.215, allocations: 61.45 kB / 1.177 GB, free: 3.543 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.564e-05/1.215, allocations: 19.5 kB / 1.177 GB, free: 3.527 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.0003805/1.215, allocations: 301 kB / 1.177 GB, free: 3.273 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.684e-05/1.215, allocations: 47.47 kB / 1.177 GB, free: 3.227 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00109/1.216, allocations: 0.6095 MB / 1.178 GB, free: 2.812 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.334e-06/1.217, allocations: 4 kB / 1.178 GB, free: 2.809 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/1.217, allocations: 4 kB / 1.178 GB, free: 2.805 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.024e-05/1.217, allocations: 4.297 kB / 1.178 GB, free: 2.801 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007018/1.217, allocations: 0.6219 MB / 1.178 GB, free: 2.285 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/1.217, allocations: 8 kB / 1.178 GB, free: 2.277 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004872/1.218, allocations: 95.23 kB / 1.178 GB, free: 2.188 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.498e-06/1.218, allocations: 11.88 kB / 1.178 GB, free: 2.176 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.717e-05/1.218, allocations: 10.69 kB / 1.178 GB, free: 2.172 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/1.218, allocations: 0 / 1.178 GB, free: 2.172 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/1.218, allocations: 0 / 1.178 GB, free: 2.172 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001602/1.219, allocations: 0.9204 MB / 1.179 GB, free: 1.523 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002676/1.22, allocations: 187.1 kB / 1.179 GB, free: 1.348 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.549e-05/1.22, allocations: 14.56 kB / 1.179 GB, free: 1.34 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003169/1.22, allocations: 42.02 kB / 1.179 GB, free: 1.305 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001697/1.22, allocations: 50.42 kB / 1.18 GB, free: 1.266 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.644e-05/1.22, allocations: 15.81 kB / 1.18 GB, free: 1.254 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0003398/1.221, allocations: 242.7 kB / 1.18 GB, free: 1.062 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.2e-07/1.221, allocations: 3.938 kB / 1.18 GB, free: 1.059 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0009999/1.222, allocations: 282 kB / 1.18 GB, free: 0.8086 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.0003065/1.222, allocations: 149.6 kB / 1.18 GB, free: 0.6641 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001849/1.224, allocations: 0.998 MB / 1.181 GB, free: 15.91 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/1.224, allocations: 0 / 1.181 GB, free: 15.91 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.00049/1.224, allocations: 289 kB / 1.181 GB, free: 15.71 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008802/1.225, allocations: 168 kB / 1.182 GB, free: 15.59 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002398/1.228, allocations: 1.29 MB / 1.183 GB, free: 14.4 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000497/1.228, allocations: 0.8892 MB / 1.184 GB, free: 13.5 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.0006026/1.229, allocations: 148.3 kB / 1.184 GB, free: 13.35 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001478/1.229, allocations: 39.42 kB / 1.184 GB, free: 13.31 MB / 0.7136 GB Notification: Performance of SimCode: time 1.302e-06/1.229, allocations: 4 kB / 1.184 GB, free: 13.31 MB / 0.7136 GB Notification: Performance of Templates: time 0.01358/1.243, allocations: 7.768 MB / 1.191 GB, free: 5.648 MB / 0.7136 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.makefile (rm -f Buildings_maint.8.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.sim & ./Buildings_maint.8.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe 2>&1)