Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.1-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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.x/package.mo): time 1.683/1.683, allocations: 293 MB / 309 MB, free: 4.855 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.001024/0.001024, allocations: 187.3 kB / 378.7 MB, free: 1.023 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.842/1.842, allocations: 205.4 MB / 0.6383 GB, free: 9.172 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.0007575/0.0007571, allocations: 93.81 kB / 0.7527 GB, free: 62.45 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003727/0.0003727, allocations: 23.98 kB / 0.8768 GB, free: 10.55 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2893/0.2897, allocations: 116.4 MB / 0.9905 GB, free: 6.008 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8015/1.091, allocations: 159.3 MB / 1.146 GB, free: 18.99 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003661/1.092, allocations: 96.41 kB / 1.146 GB, free: 18.91 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.07713/1.169, allocations: 29.6 MB / 1.175 GB, free: 8.602 MB / 0.7448 GB Notification: Performance of FrontEnd: time 2.494e-06/1.169, allocations: 0 / 1.175 GB, free: 8.602 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 5.559e-05/1.169, allocations: 12 kB / 1.175 GB, free: 8.59 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.002447/1.171, allocations: 0.8672 MB / 1.176 GB, free: 7.664 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.952e-05/1.171, allocations: 12.03 kB / 1.176 GB, free: 7.652 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001069/1.173, allocations: 148 kB / 1.176 GB, free: 7.508 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000903/1.173, allocations: 449.8 kB / 1.176 GB, free: 7.027 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.801e-05/1.174, allocations: 41.38 kB / 1.176 GB, free: 6.988 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001509/1.174, allocations: 56.36 kB / 1.177 GB, free: 6.934 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001371/1.175, allocations: 0.6814 MB / 1.177 GB, free: 6.223 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.302e-05/1.175, allocations: 192 / 1.177 GB, free: 6.223 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.811e-05/1.175, allocations: 27.92 kB / 1.177 GB, free: 6.195 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.658e-05/1.175, allocations: 44.97 kB / 1.177 GB, free: 6.152 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001181/1.176, allocations: 0.5699 MB / 1.178 GB, free: 5.582 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003908/1.18, allocations: 2.835 MB / 1.181 GB, free: 2.523 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001098/1.182, allocations: 0.5839 MB / 1.181 GB, free: 1.918 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004626/1.182, allocations: 270.5 kB / 1.181 GB, free: 1.648 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004791/1.182, allocations: 0.5584 MB / 1.182 GB, free: 0.9609 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007539/1.183, allocations: 421.8 kB / 1.182 GB, free: 0.5352 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=49): time 3.788e-06/1.183, allocations: 0 / 1.182 GB, free: 0.5352 MB / 0.7448 GB Notification: Performance of matching and sorting (n=49): time 0.001547/1.185, allocations: 0.7757 MB / 1.183 GB, free: 15.75 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.34e-05/1.185, allocations: 85.53 kB / 1.183 GB, free: 15.65 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004237/1.185, allocations: 345.6 kB / 1.184 GB, free: 15.3 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 8.59e-05/1.185, allocations: 45.64 kB / 1.184 GB, free: 15.25 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002518/1.186, allocations: 280.5 kB / 1.184 GB, free: 14.97 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001624/1.186, allocations: 158 kB / 1.184 GB, free: 14.81 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.622e-05/1.186, allocations: 16 kB / 1.184 GB, free: 14.8 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001945/1.186, allocations: 358.8 kB / 1.184 GB, free: 14.44 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004851/1.187, allocations: 241 kB / 1.185 GB, free: 14.2 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005982/1.187, allocations: 370.3 kB / 1.185 GB, free: 13.8 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009842/1.188, allocations: 0.591 MB / 1.185 GB, free: 13.16 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.601e-06/1.188, allocations: 0 / 1.185 GB, free: 13.16 MB / 0.7605 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001387/1.19, allocations: 0.7131 MB / 1.186 GB, free: 12.44 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001667/1.19, allocations: 198.9 kB / 1.186 GB, free: 12.2 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.227e-05/1.19, allocations: 4 kB / 1.186 GB, free: 12.2 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.598e-05/1.19, allocations: 5.688 kB / 1.186 GB, free: 12.19 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005546/1.19, allocations: 119.8 kB / 1.187 GB, free: 12.07 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.657e-05/1.19, allocations: 4 kB / 1.187 GB, free: 12.07 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005303/1.191, allocations: 75.53 kB / 1.187 GB, free: 12 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.623e-05/1.191, allocations: 23.98 kB / 1.187 GB, free: 11.97 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 1.044e-05/1.191, allocations: 4 kB / 1.187 GB, free: 11.97 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001086/1.192, allocations: 0.5848 MB / 1.187 GB, free: 11.38 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.827e-06/1.192, allocations: 4 kB / 1.187 GB, free: 11.38 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.306e-05/1.192, allocations: 7.938 kB / 1.187 GB, free: 11.37 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000426/1.193, allocations: 116 kB / 1.187 GB, free: 11.25 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.326e-05/1.193, allocations: 8.875 kB / 1.187 GB, free: 11.25 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004459/1.193, allocations: 63.64 kB / 1.187 GB, free: 11.18 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.151e-05/1.193, allocations: 20 kB / 1.187 GB, free: 11.16 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 () * 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.0004889/1.194, allocations: 303.2 kB / 1.188 GB, free: 10.86 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001243/1.194, allocations: 51.47 kB / 1.188 GB, free: 10.81 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001233/1.195, allocations: 0.6076 MB / 1.188 GB, free: 10.2 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.316e-06/1.195, allocations: 4 kB / 1.188 GB, free: 10.19 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.758e-06/1.195, allocations: 4 kB / 1.188 GB, free: 10.19 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.444e-06/1.195, allocations: 4 kB / 1.188 GB, free: 10.18 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008842/1.196, allocations: 0.6186 MB / 1.189 GB, free: 9.516 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.038e-05/1.196, allocations: 5.625 kB / 1.189 GB, free: 9.512 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000475/1.197, allocations: 95.86 kB / 1.189 GB, free: 9.418 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.234e-05/1.197, allocations: 7.938 kB / 1.189 GB, free: 9.41 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.645e-05/1.197, allocations: 11.98 kB / 1.189 GB, free: 9.398 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.088e-06/1.197, allocations: 3.938 kB / 1.189 GB, free: 9.395 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/1.197, allocations: 0 / 1.189 GB, free: 9.395 MB / 0.7605 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001576/1.198, allocations: 0.9187 MB / 1.19 GB, free: 8.453 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003053/1.199, allocations: 188.4 kB / 1.19 GB, free: 8.25 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001108/1.199, allocations: 15.94 kB / 1.19 GB, free: 8.234 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003625/1.199, allocations: 39.95 kB / 1.19 GB, free: 8.195 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001853/1.199, allocations: 48.3 kB / 1.19 GB, free: 8.148 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.44e-05/1.199, allocations: 19.98 kB / 1.19 GB, free: 8.129 MB / 0.7605 GB Notification: Performance of sorting global known variables: time 0.0003353/1.2, allocations: 243.2 kB / 1.19 GB, free: 7.895 MB / 0.7605 GB Notification: Performance of sort global known variables: time 1.51e-07/1.2, allocations: 0 / 1.19 GB, free: 7.895 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.001008/1.201, allocations: 279.1 kB / 1.191 GB, free: 7.621 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) * 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.0003479/1.201, allocations: 153.9 kB / 1.191 GB, free: 7.465 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.002001/1.203, allocations: 0.9994 MB / 1.192 GB, free: 6.441 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/1.203, allocations: 0 / 1.192 GB, free: 6.441 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0005611/1.204, allocations: 291 kB / 1.192 GB, free: 6.156 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009187/1.205, allocations: 158.2 kB / 1.192 GB, free: 6.004 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002765/1.207, allocations: 1.293 MB / 1.194 GB, free: 4.691 MB / 0.7605 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007006/1.208, allocations: 0.8913 MB / 1.194 GB, free: 3.77 MB / 0.7605 GB Notification: Performance of simCode: alias equations: time 0.0006775/1.209, allocations: 143.5 kB / 1.195 GB, free: 3.633 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001664/1.209, allocations: 43.42 kB / 1.195 GB, free: 3.59 MB / 0.7605 GB Notification: Performance of SimCode: time 9.22e-07/1.209, allocations: 7.938 kB / 1.195 GB, free: 3.582 MB / 0.7605 GB Notification: Performance of Templates: time 0.01588/1.225, allocations: 7.756 MB / 1.202 GB, free: 11.95 MB / 0.7761 GB make -j1 -f Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.makefile (rm -f Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe >> ../files/Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.sim & ./Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe 2>&1)