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.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.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.4-maint.8.1.x/package.mo): time 1.785/1.785, allocations: 289.7 MB / 302.2 MB, free: 2.199 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.001021/0.001021, allocations: 183.2 kB / 371.6 MB, free: 3.336 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.682/1.682, allocations: 205.1 MB / 0.6309 GB, free: 11.76 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.0009298/0.0009298, allocations: 93.75 kB / 0.745 GB, free: 54.52 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 3.363e-05/3.365e-05, allocations: 0 / 0.8662 GB, free: 15.06 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2974/0.2975, allocations: 116.3 MB / 0.9798 GB, free: 10.59 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8641/1.162, allocations: 159.1 MB / 1.135 GB, free: 30.35 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002305/1.162, allocations: 92.69 kB / 1.135 GB, free: 30.31 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 0.07469/1.237, allocations: 29.36 MB / 1.164 GB, free: 14.39 MB / 0.7448 GB Notification: Performance of FrontEnd: time 5.27e-06/1.237, allocations: 3.984 kB / 1.164 GB, free: 14.39 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 6.831e-05/1.237, allocations: 15.88 kB / 1.164 GB, free: 14.38 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.002305/1.239, allocations: 0.8147 MB / 1.165 GB, free: 13.54 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 5.318e-05/1.239, allocations: 8.031 kB / 1.165 GB, free: 13.54 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001132/1.24, allocations: 148.8 kB / 1.165 GB, free: 13.39 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008989/1.241, allocations: 436.9 kB / 1.165 GB, free: 12.99 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.435e-05/1.241, allocations: 43.88 kB / 1.165 GB, free: 12.96 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001438/1.241, allocations: 53.3 kB / 1.165 GB, free: 12.93 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001203/1.243, allocations: 0.6464 MB / 1.166 GB, free: 12.45 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.074e-05/1.243, allocations: 7.938 kB / 1.166 GB, free: 12.44 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.082e-05/1.243, allocations: 32.17 kB / 1.166 GB, free: 12.42 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.7e-05/1.243, allocations: 40.34 kB / 1.166 GB, free: 12.38 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008615/1.244, allocations: 0.5223 MB / 1.167 GB, free: 12.04 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003183/1.247, allocations: 2.834 MB / 1.169 GB, free: 9.422 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007728/1.248, allocations: 0.5432 MB / 1.17 GB, free: 9.039 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003057/1.248, allocations: 257 kB / 1.17 GB, free: 8.871 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003436/1.248, allocations: 0.5544 MB / 1.171 GB, free: 8.188 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005215/1.249, allocations: 387.7 kB / 1.171 GB, free: 7.895 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=49): time 1.984e-06/1.249, allocations: 0 / 1.171 GB, free: 7.895 MB / 0.7448 GB Notification: Performance of matching and sorting (n=49): time 0.000838/1.25, allocations: 0.5173 MB / 1.172 GB, free: 7.512 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.61e-05/1.25, allocations: 81.55 kB / 1.172 GB, free: 7.414 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003038/1.25, allocations: 300.2 kB / 1.172 GB, free: 7.164 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 6.249e-05/1.25, allocations: 42.95 kB / 1.172 GB, free: 7.129 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001826/1.25, allocations: 279.2 kB / 1.172 GB, free: 6.914 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 0.000117/1.251, allocations: 158.2 kB / 1.172 GB, free: 6.781 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.053e-05/1.251, allocations: 10.94 kB / 1.172 GB, free: 6.777 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 9.493e-05/1.251, allocations: 355.2 kB / 1.173 GB, free: 6.441 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003067/1.251, allocations: 222.1 kB / 1.173 GB, free: 6.312 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003544/1.251, allocations: 337.1 kB / 1.173 GB, free: 6.035 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003481/1.252, allocations: 283.8 kB / 1.174 GB, free: 5.836 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/1.252, allocations: 0 / 1.174 GB, free: 5.836 MB / 0.7448 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.000872/1.253, allocations: 0.6576 MB / 1.174 GB, free: 5.355 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002515/1.253, allocations: 1.082 MB / 1.175 GB, free: 4.207 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/1.253, allocations: 0 / 1.175 GB, free: 4.207 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.387e-05/1.253, allocations: 12 kB / 1.175 GB, free: 4.195 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004941/1.253, allocations: 114.5 kB / 1.175 GB, free: 4.09 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.575e-05/1.253, allocations: 11.94 kB / 1.175 GB, free: 4.078 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004795/1.254, allocations: 71.22 kB / 1.175 GB, free: 4.016 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.899e-05/1.254, allocations: 18.88 kB / 1.175 GB, free: 4 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.029e-05/1.254, allocations: 4 kB / 1.175 GB, free: 3.996 MB / 0.7448 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000752/1.255, allocations: 0.5506 MB / 1.176 GB, free: 3.609 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.68e-06/1.255, allocations: 0 / 1.176 GB, free: 3.609 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.747e-06/1.255, allocations: 8 kB / 1.176 GB, free: 3.602 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003903/1.255, allocations: 103.3 kB / 1.176 GB, free: 3.504 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.939e-06/1.255, allocations: 12.33 kB / 1.176 GB, free: 3.492 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004002/1.256, allocations: 66.58 kB / 1.176 GB, free: 3.438 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.947e-05/1.256, allocations: 23.23 kB / 1.176 GB, free: 3.418 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.0001296/1.256, allocations: 144.8 kB / 1.176 GB, free: 3.289 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.702e-05/1.256, allocations: 43.53 kB / 1.176 GB, free: 3.246 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008183/1.257, allocations: 0.5662 MB / 1.177 GB, free: 2.867 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.522e-06/1.257, allocations: 8 kB / 1.177 GB, free: 2.859 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.66e-06/1.257, allocations: 4 kB / 1.177 GB, free: 2.855 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/1.257, allocations: 3.953 kB / 1.177 GB, free: 2.852 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006162/1.257, allocations: 0.6279 MB / 1.178 GB, free: 2.332 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.06e-06/1.257, allocations: 7.938 kB / 1.178 GB, free: 2.324 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004555/1.258, allocations: 90.61 kB / 1.178 GB, free: 2.238 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.233e-06/1.258, allocations: 4 kB / 1.178 GB, free: 2.234 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.096e-05/1.258, allocations: 14.67 kB / 1.178 GB, free: 2.227 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/1.258, allocations: 0.7812 kB / 1.178 GB, free: 2.227 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/1.258, allocations: 0 / 1.178 GB, free: 2.227 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001057/1.259, allocations: 0.8677 MB / 1.179 GB, free: 1.609 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002133/1.259, allocations: 175.8 kB / 1.179 GB, free: 1.445 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.364e-05/1.259, allocations: 11.06 kB / 1.179 GB, free: 1.441 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003189/1.26, allocations: 39.02 kB / 1.179 GB, free: 1.41 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001294/1.26, allocations: 62.88 kB / 1.179 GB, free: 1.359 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.293e-05/1.26, allocations: 11.56 kB / 1.179 GB, free: 1.352 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.000226/1.26, allocations: 245.7 kB / 1.179 GB, free: 1.164 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.6e-07/1.26, allocations: 0 / 1.179 GB, free: 1.164 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0007223/1.261, allocations: 289 kB / 1.179 GB, free: 0.9062 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.0002583/1.261, allocations: 147.9 kB / 1.179 GB, free: 0.7578 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.001136/1.262, allocations: 0.9434 MB / 1.18 GB, free: 64 kB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/1.262, allocations: 0 / 1.18 GB, free: 64 kB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0003995/1.263, allocations: 262 kB / 1.181 GB, free: 15.89 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007547/1.263, allocations: 147.4 kB / 1.181 GB, free: 15.77 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00154/1.265, allocations: 0.7974 MB / 1.182 GB, free: 15.09 MB / 0.7605 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005072/1.265, allocations: 0.9161 MB / 1.182 GB, free: 14.16 MB / 0.7605 GB Notification: Performance of simCode: alias equations: time 0.0006649/1.266, allocations: 169 kB / 1.183 GB, free: 14 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001481/1.266, allocations: 38.94 kB / 1.183 GB, free: 13.96 MB / 0.7605 GB Notification: Performance of SimCode: time 5.61e-07/1.266, allocations: 0 / 1.183 GB, free: 13.96 MB / 0.7605 GB Notification: Performance of Templates: time 0.01641/1.283, allocations: 8.24 MB / 1.191 GB, free: 5.828 MB / 0.7605 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)