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 2.064/2.064, allocations: 292.6 MB / 307.5 MB, free: 5.16 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.001099/0.001098, allocations: 195.9 kB / 377.1 MB, free: 1.496 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.91/1.91, allocations: 205.4 MB / 0.6367 GB, free: 8.625 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.00101/0.001009, allocations: 98.56 kB / 0.751 GB, free: 62.8 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003773/0.0003774, allocations: 8 kB / 0.8748 GB, free: 11.18 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3166/0.3169, allocations: 116.3 MB / 0.9884 GB, free: 6.727 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.913/1.23, allocations: 159.2 MB / 1.144 GB, free: 19.77 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002858/1.23, allocations: 92.73 kB / 1.144 GB, free: 19.69 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.07731/1.308, allocations: 29.54 MB / 1.173 GB, free: 9.672 MB / 0.7448 GB Notification: Performance of FrontEnd: time 2.615e-06/1.308, allocations: 4 kB / 1.173 GB, free: 9.668 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 5.838e-05/1.308, allocations: 8 kB / 1.173 GB, free: 9.66 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.002372/1.31, allocations: 0.8775 MB / 1.174 GB, free: 8.727 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 5.074e-05/1.31, allocations: 12.03 kB / 1.174 GB, free: 8.715 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001052/1.311, allocations: 157.1 kB / 1.174 GB, free: 8.562 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009488/1.312, allocations: 436.8 kB / 1.174 GB, free: 8.094 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.505e-05/1.312, allocations: 37 kB / 1.174 GB, free: 8.059 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001469/1.312, allocations: 51.44 kB / 1.174 GB, free: 8.012 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001399/1.314, allocations: 0.6848 MB / 1.175 GB, free: 7.293 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.928e-05/1.314, allocations: 0 / 1.175 GB, free: 7.293 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.538e-05/1.314, allocations: 26 kB / 1.175 GB, free: 7.27 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.224e-05/1.314, allocations: 40.97 kB / 1.175 GB, free: 7.23 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001209/1.315, allocations: 0.5777 MB / 1.176 GB, free: 6.652 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004033/1.319, allocations: 2.825 MB / 1.178 GB, free: 3.605 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001149/1.321, allocations: 0.5915 MB / 1.179 GB, free: 2.992 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005246/1.321, allocations: 0.5662 MB / 1.179 GB, free: 2.297 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007134/1.322, allocations: 415.7 kB / 1.18 GB, free: 1.875 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=49): time 2.745e-06/1.322, allocations: 0 / 1.18 GB, free: 1.875 MB / 0.7448 GB Notification: Performance of matching and sorting (n=49): time 0.001566/1.323, allocations: 0.7678 MB / 1.181 GB, free: 1.098 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.108e-05/1.323, allocations: 89.53 kB / 1.181 GB, free: 0.9922 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004267/1.324, allocations: 296.9 kB / 1.181 GB, free: 0.6953 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 8.346e-05/1.324, allocations: 49.69 kB / 1.181 GB, free: 0.6406 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002332/1.324, allocations: 280.5 kB / 1.181 GB, free: 372 kB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001673/1.324, allocations: 161.7 kB / 1.181 GB, free: 208 kB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.117e-05/1.324, allocations: 12.12 kB / 1.181 GB, free: 196 kB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001753/1.325, allocations: 355.3 kB / 1.182 GB, free: 15.84 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004898/1.325, allocations: 241 kB / 1.182 GB, free: 15.6 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005816/1.326, allocations: 374.3 kB / 1.182 GB, free: 15.2 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005698/1.326, allocations: 303.6 kB / 1.183 GB, free: 14.89 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/1.326, allocations: 0 / 1.183 GB, free: 14.89 MB / 0.7605 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001356/1.328, allocations: 0.7101 MB / 1.183 GB, free: 14.18 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005966/1.328, allocations: 1.072 MB / 1.184 GB, free: 13.02 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.804e-05/1.328, allocations: 4.859 kB / 1.184 GB, free: 13.01 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.632e-05/1.328, allocations: 8 kB / 1.184 GB, free: 13 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005903/1.329, allocations: 115.8 kB / 1.185 GB, free: 12.89 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.74e-05/1.329, allocations: 7.984 kB / 1.185 GB, free: 12.88 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005928/1.33, allocations: 67.64 kB / 1.185 GB, free: 12.82 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.922e-05/1.33, allocations: 29.67 kB / 1.185 GB, free: 12.79 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 1.284e-05/1.33, allocations: 4 kB / 1.185 GB, free: 12.79 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001106/1.331, allocations: 0.5911 MB / 1.185 GB, free: 12.19 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.718e-06/1.331, allocations: 4 kB / 1.185 GB, free: 12.18 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.777e-06/1.331, allocations: 4 kB / 1.185 GB, free: 12.18 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004367/1.331, allocations: 113.7 kB / 1.185 GB, free: 12.07 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.925e-06/1.331, allocations: 4 kB / 1.185 GB, free: 12.07 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005703/1.332, allocations: 67.59 kB / 1.185 GB, free: 12 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.119e-05/1.332, allocations: 20 kB / 1.185 GB, free: 11.98 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.0004912/1.332, allocations: 303.2 kB / 1.186 GB, free: 11.67 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001103/1.333, allocations: 47.44 kB / 1.186 GB, free: 11.62 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001186/1.334, allocations: 0.6046 MB / 1.186 GB, free: 11.02 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.033e-05/1.334, allocations: 11.98 kB / 1.186 GB, free: 11.01 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/1.334, allocations: 0 / 1.186 GB, free: 11.01 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.606e-06/1.334, allocations: 3.953 kB / 1.186 GB, free: 11 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008694/1.335, allocations: 0.6263 MB / 1.187 GB, free: 10.33 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.165e-06/1.335, allocations: 4 kB / 1.187 GB, free: 10.32 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005096/1.335, allocations: 95.8 kB / 1.187 GB, free: 10.23 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.506e-06/1.335, allocations: 4 kB / 1.187 GB, free: 10.23 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.443e-05/1.335, allocations: 11.98 kB / 1.187 GB, free: 10.21 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.2e-06/1.335, allocations: 5.5 kB / 1.187 GB, free: 10.21 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/1.335, allocations: 0 / 1.187 GB, free: 10.21 MB / 0.7605 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001581/1.337, allocations: 0.9321 MB / 1.188 GB, free: 9.25 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003034/1.337, allocations: 184.4 kB / 1.188 GB, free: 9.051 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.307e-05/1.337, allocations: 12 kB / 1.188 GB, free: 9.039 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003617/1.338, allocations: 39.95 kB / 1.188 GB, free: 9 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001478/1.338, allocations: 56.25 kB / 1.188 GB, free: 8.945 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.853e-05/1.338, allocations: 19.98 kB / 1.188 GB, free: 8.926 MB / 0.7605 GB Notification: Performance of sorting global known variables: time 0.000298/1.338, allocations: 243.2 kB / 1.189 GB, free: 8.688 MB / 0.7605 GB Notification: Performance of sort global known variables: time 2.6e-07/1.338, allocations: 0 / 1.189 GB, free: 8.688 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.0009643/1.339, allocations: 279.1 kB / 1.189 GB, free: 8.414 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.0003273/1.34, allocations: 147.2 kB / 1.189 GB, free: 8.262 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.001878/1.341, allocations: 1 MB / 1.19 GB, free: 7.234 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 3.908e-06/1.341, allocations: 3.938 kB / 1.19 GB, free: 7.23 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0005003/1.342, allocations: 294.4 kB / 1.19 GB, free: 6.945 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007619/1.343, allocations: 146.5 kB / 1.19 GB, free: 6.805 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002512/1.345, allocations: 1.284 MB / 1.192 GB, free: 5.496 MB / 0.7605 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000536/1.346, allocations: 0.9069 MB / 1.192 GB, free: 4.559 MB / 0.7605 GB Notification: Performance of simCode: alias equations: time 0.0006533/1.346, allocations: 149.1 kB / 1.193 GB, free: 4.418 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001699/1.347, allocations: 51.42 kB / 1.193 GB, free: 4.367 MB / 0.7605 GB Notification: Performance of SimCode: time 1.183e-06/1.347, allocations: 0 / 1.193 GB, free: 4.367 MB / 0.7605 GB Notification: Performance of Templates: time 0.01616/1.363, allocations: 7.652 MB / 1.2 GB, free: 12.84 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)