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.549/1.549, allocations: 285.4 MB / 298 MB, free: 6.004 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.001453/0.001453, allocations: 180.8 kB / 366.4 MB, free: 2.094 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.569/1.569, allocations: 205.1 MB / 0.6248 GB, free: 7.73 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.000872/0.0008719, allocations: 88.91 kB / 0.738 GB, free: 40.27 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.309e-05/3.314e-05, allocations: 7.984 kB / 0.8583 GB, free: 13.09 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7568/0.7568, allocations: 115.3 MB / 0.9709 GB, free: 77.94 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2229/0.9798, allocations: 158.1 MB / 1.125 GB, free: 9.656 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003102/0.9802, allocations: 91.94 kB / 1.125 GB, free: 9.566 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.07628/1.057, allocations: 29.38 MB / 1.154 GB, free: 12.13 MB / 0.7605 GB Notification: Performance of FrontEnd: time 4.729e-06/1.057, allocations: 4 kB / 1.154 GB, free: 12.13 MB / 0.7605 GB Notification: Performance of Transformations before backend: time 5.739e-05/1.057, allocations: 12 kB / 1.154 GB, free: 12.12 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.00219/1.059, allocations: 0.8178 MB / 1.155 GB, free: 11.24 MB / 0.7605 GB Notification: Performance of prepare preOptimizeDAE: time 5.551e-05/1.059, allocations: 12.03 kB / 1.155 GB, free: 11.23 MB / 0.7605 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001039/1.06, allocations: 143.1 kB / 1.155 GB, free: 11.09 MB / 0.7605 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008014/1.061, allocations: 443.1 kB / 1.155 GB, free: 10.61 MB / 0.7605 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.932e-05/1.061, allocations: 37 kB / 1.156 GB, free: 10.58 MB / 0.7605 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001292/1.061, allocations: 55.98 kB / 1.156 GB, free: 10.52 MB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001169/1.062, allocations: 0.6458 MB / 1.156 GB, free: 9.848 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.618e-05/1.062, allocations: 0.5625 kB / 1.156 GB, free: 9.848 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.848e-05/1.062, allocations: 31.97 kB / 1.156 GB, free: 9.816 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.346e-05/1.062, allocations: 36.98 kB / 1.156 GB, free: 9.777 MB / 0.7605 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009097/1.063, allocations: 0.527 MB / 1.157 GB, free: 9.254 MB / 0.7605 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003756/1.067, allocations: 2.829 MB / 1.16 GB, free: 6.195 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009279/1.068, allocations: 0.5542 MB / 1.16 GB, free: 5.621 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003553/1.068, allocations: 245.6 kB / 1.16 GB, free: 5.375 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004942/1.069, allocations: 0.5583 MB / 1.161 GB, free: 4.688 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006542/1.069, allocations: 392.5 kB / 1.161 GB, free: 4.289 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=49): time 3.516e-06/1.069, allocations: 0 / 1.161 GB, free: 4.289 MB / 0.7605 GB Notification: Performance of matching and sorting (n=49): time 0.0009227/1.07, allocations: 0.5111 MB / 1.162 GB, free: 3.77 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.411e-05/1.07, allocations: 81.55 kB / 1.162 GB, free: 3.672 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003556/1.071, allocations: 299.5 kB / 1.162 GB, free: 3.375 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 6.871e-05/1.071, allocations: 45.69 kB / 1.162 GB, free: 3.324 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002087/1.071, allocations: 280.6 kB / 1.162 GB, free: 3.047 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001601/1.071, allocations: 157.8 kB / 1.163 GB, free: 2.891 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.281e-05/1.071, allocations: 12 kB / 1.163 GB, free: 2.879 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001699/1.072, allocations: 354.8 kB / 1.163 GB, free: 2.523 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003727/1.072, allocations: 221.1 kB / 1.163 GB, free: 2.309 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004694/1.072, allocations: 338.6 kB / 1.163 GB, free: 1.93 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004583/1.073, allocations: 284.8 kB / 1.164 GB, free: 1.648 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.815e-06/1.073, allocations: 3.984 kB / 1.164 GB, free: 1.645 MB / 0.7605 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001076/1.074, allocations: 0.6552 MB / 1.164 GB, free: 0.9766 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004755/1.074, allocations: 1.076 MB / 1.165 GB, free: 15.81 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.204e-05/1.074, allocations: 1.875 kB / 1.165 GB, free: 15.81 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.71e-05/1.075, allocations: 11.94 kB / 1.165 GB, free: 15.8 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005324/1.075, allocations: 107.9 kB / 1.166 GB, free: 15.7 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.15e-05/1.075, allocations: 19.86 kB / 1.166 GB, free: 15.68 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000498/1.076, allocations: 71.55 kB / 1.166 GB, free: 15.61 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.755e-05/1.076, allocations: 23.98 kB / 1.166 GB, free: 15.58 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.262e-05/1.076, allocations: 5.406 kB / 1.166 GB, free: 15.58 MB / 0.7761 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008573/1.077, allocations: 0.5432 MB / 1.166 GB, free: 15.03 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/1.077, allocations: 0 / 1.166 GB, free: 15.03 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.068e-05/1.077, allocations: 8 kB / 1.166 GB, free: 15.02 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004323/1.077, allocations: 112 kB / 1.166 GB, free: 14.91 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.371e-05/1.077, allocations: 11.95 kB / 1.166 GB, free: 14.9 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004745/1.078, allocations: 59.64 kB / 1.166 GB, free: 14.84 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.965e-05/1.078, allocations: 22.11 kB / 1.166 GB, free: 14.82 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.0001822/1.078, allocations: 143.1 kB / 1.167 GB, free: 14.68 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.651e-05/1.078, allocations: 55.42 kB / 1.167 GB, free: 14.62 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009476/1.079, allocations: 0.5556 MB / 1.167 GB, free: 14.06 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.115e-06/1.079, allocations: 5.5 kB / 1.167 GB, free: 14.05 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.805e-06/1.079, allocations: 4 kB / 1.167 GB, free: 14.05 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.588e-06/1.079, allocations: 7.938 kB / 1.167 GB, free: 14.04 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007637/1.08, allocations: 0.6262 MB / 1.168 GB, free: 13.37 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.013e-06/1.08, allocations: 4 kB / 1.168 GB, free: 13.36 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004811/1.08, allocations: 91.86 kB / 1.168 GB, free: 13.27 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.197e-06/1.08, allocations: 8 kB / 1.168 GB, free: 13.27 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.332e-05/1.08, allocations: 12 kB / 1.168 GB, free: 13.25 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.356e-06/1.08, allocations: 0 / 1.168 GB, free: 13.25 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/1.08, allocations: 0 / 1.168 GB, free: 13.25 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001236/1.081, allocations: 0.8657 MB / 1.169 GB, free: 12.36 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002448/1.082, allocations: 180.6 kB / 1.169 GB, free: 12.16 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.391e-05/1.082, allocations: 17.69 kB / 1.169 GB, free: 12.15 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003283/1.082, allocations: 43.94 kB / 1.169 GB, free: 12.11 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001436/1.082, allocations: 52.31 kB / 1.169 GB, free: 12.05 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.676e-05/1.082, allocations: 12 kB / 1.169 GB, free: 12.04 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0002502/1.083, allocations: 244.5 kB / 1.169 GB, free: 11.81 MB / 0.7761 GB Notification: Performance of sort global known variables: time 1.3e-07/1.083, allocations: 0 / 1.169 GB, free: 11.81 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0007871/1.083, allocations: 279 kB / 1.169 GB, free: 11.54 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.0002644/1.084, allocations: 159.8 kB / 1.17 GB, free: 11.38 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.001374/1.085, allocations: 0.9382 MB / 1.171 GB, free: 10.41 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/1.085, allocations: 0 / 1.171 GB, free: 10.41 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0003991/1.085, allocations: 271.4 kB / 1.171 GB, free: 10.14 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007385/1.086, allocations: 151.1 kB / 1.171 GB, free: 10 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001489/1.088, allocations: 0.7884 MB / 1.172 GB, free: 9.191 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004716/1.088, allocations: 0.9074 MB / 1.173 GB, free: 8.258 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.0006227/1.089, allocations: 163.5 kB / 1.173 GB, free: 8.102 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001557/1.089, allocations: 43.42 kB / 1.173 GB, free: 8.059 MB / 0.7761 GB Notification: Performance of SimCode: time 2.71e-07/1.089, allocations: 0 / 1.173 GB, free: 8.059 MB / 0.7761 GB Notification: Performance of Templates: time 0.01534/1.104, allocations: 8.252 MB / 1.181 GB, free: 15.97 MB / 0.7917 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)