Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_3.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 3.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo", uses=false) Using package Modelica_StateGraph2 with version 2.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Using package Buildings with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 3.0.0/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 3.0.0/package.mo): time 0.794/0.794, allocations: 132.4 MB / 139.9 MB, free: 2.809 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001085/0.001085, allocations: 174.3 kB / 171.8 MB, free: 4.945 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.445/1.445, allocations: 170.6 MB / 374.2 MB, free: 184 kB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001661/0.001661, allocations: 103.3 kB / 444.8 MB, free: 14.16 MB / 314.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:257:38-257:110:writable] Warning: The file was not encoded in UTF-8: "

An important practical aspect of state machines is the abilit...". Defaulting to 7-bit ASCII with unknown characters replaced by '?'. To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY"). To change it in a package: add a file package.encoding at the top-level. Note: The Modelica Language Specification only allows files encoded in UTF-8. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:761:36-761:108:writable] Warning: The file was not encoded in UTF-8: "

The Modelica_StateGraph2 library is described in detail in (O...". Defaulting to 7-bit ASCII with unknown characters replaced by '?'. To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY"). To change it in a package: add a file package.encoding at the top-level. Note: The Modelica Language Specification only allows files encoded in UTF-8. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:1435:36-1435:108:writable] Warning: The file was not encoded in UTF-8: "

Main Authors:
SCode: time 0.1639/0.164, allocations: 73.42 MB / 0.6666 GB, free: 15.63 MB / 410.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4935/0.6575, allocations: 121.1 MB / 0.7848 GB, free: 10.52 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002298/0.6578, allocations: 95.92 kB / 0.7849 GB, free: 10.42 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07691/0.7347, allocations: 29.5 MB / 0.8137 GB, free: 12.68 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.733e-06/0.7348, allocations: 0 / 0.8137 GB, free: 12.68 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 3.979e-05/0.7348, allocations: 12 kB / 0.8138 GB, free: 12.67 MB / 0.5105 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.00195/0.7368, allocations: 0.8276 MB / 0.8146 GB, free: 11.79 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.921e-05/0.7368, allocations: 8.031 kB / 0.8146 GB, free: 11.78 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009806/0.7378, allocations: 147 kB / 0.8147 GB, free: 11.64 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007648/0.7386, allocations: 439.2 kB / 0.8151 GB, free: 11.16 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.17e-05/0.7386, allocations: 20 kB / 0.8151 GB, free: 11.14 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.954e-05/0.7387, allocations: 32 kB / 0.8152 GB, free: 11.11 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008148/0.7396, allocations: 458.4 kB / 0.8156 GB, free: 10.66 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000966/0.7405, allocations: 0.5949 MB / 0.8162 GB, free: 10.04 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.657e-05/0.7406, allocations: 0 / 0.8162 GB, free: 10.04 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.288e-05/0.7406, allocations: 7.984 kB / 0.8162 GB, free: 10.03 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.93e-05/0.7407, allocations: 41.3 kB / 0.8162 GB, free: 9.988 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003114/0.7438, allocations: 2.264 MB / 0.8185 GB, free: 7.621 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008272/0.7447, allocations: 0.5212 MB / 0.819 GB, free: 7.078 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000331/0.745, allocations: 238 kB / 0.8192 GB, free: 6.84 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004618/0.7455, allocations: 0.5629 MB / 0.8197 GB, free: 6.148 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005526/0.746, allocations: 376.2 kB / 0.8201 GB, free: 5.766 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=49): time 3.597e-06/0.7461, allocations: 4 kB / 0.8201 GB, free: 5.762 MB / 0.5105 GB Notification: Performance of matching and sorting (n=49): time 0.0009201/0.747, allocations: 499.5 kB / 0.8206 GB, free: 5.266 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.3e-05/0.747, allocations: 85.5 kB / 0.8207 GB, free: 5.164 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003238/0.7474, allocations: 282.3 kB / 0.8209 GB, free: 4.887 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 6.728e-05/0.7475, allocations: 37.69 kB / 0.821 GB, free: 4.844 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002284/0.7477, allocations: 276.4 kB / 0.8212 GB, free: 4.566 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001402/0.7478, allocations: 149.8 kB / 0.8214 GB, free: 4.418 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.8e-05/0.7479, allocations: 4 kB / 0.8214 GB, free: 4.414 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001631/0.748, allocations: 354.8 kB / 0.8217 GB, free: 4.059 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003054/0.7484, allocations: 209.1 kB / 0.8219 GB, free: 3.855 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004037/0.7488, allocations: 329.3 kB / 0.8222 GB, free: 3.492 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004148/0.7492, allocations: 240.3 kB / 0.8225 GB, free: 3.258 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.54e-06/0.7492, allocations: 4 kB / 0.8225 GB, free: 3.254 MB / 0.5105 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0009812/0.7502, allocations: 0.5866 MB / 0.823 GB, free: 2.66 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004699/0.7507, allocations: 1.084 MB / 0.8241 GB, free: 1.488 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.238e-06/0.7507, allocations: 4 kB / 0.8241 GB, free: 1.484 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.954e-05/0.7507, allocations: 4 kB / 0.8241 GB, free: 1.48 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000554/0.7513, allocations: 115.8 kB / 0.8242 GB, free: 1.367 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.531e-05/0.7513, allocations: 11.95 kB / 0.8242 GB, free: 1.355 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005169/0.7518, allocations: 55.62 kB / 0.8243 GB, free: 1.301 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.358e-05/0.7519, allocations: 24 kB / 0.8243 GB, free: 1.277 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 9.578e-06/0.7519, allocations: 0 / 0.8243 GB, free: 1.277 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007804/0.7527, allocations: 476.2 kB / 0.8248 GB, free: 0.8125 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.7527, allocations: 4 kB / 0.8248 GB, free: 0.8086 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.184e-05/0.7527, allocations: 12.03 kB / 0.8248 GB, free: 0.7969 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004332/0.7532, allocations: 107.9 kB / 0.8249 GB, free: 0.6914 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.127e-05/0.7532, allocations: 11.94 kB / 0.8249 GB, free: 0.6797 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004156/0.7536, allocations: 55.83 kB / 0.8249 GB, free: 0.625 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.25e-05/0.7537, allocations: 23.98 kB / 0.825 GB, free: 0.6016 MB / 0.5105 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.0001625/0.7539, allocations: 131 kB / 0.8251 GB, free: 476 kB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.159e-05/0.7539, allocations: 47.44 kB / 0.8251 GB, free: 428 kB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000938/0.7549, allocations: 0.5321 MB / 0.8256 GB, free: 15.88 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.013e-06/0.7549, allocations: 4 kB / 0.8257 GB, free: 15.88 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.7549, allocations: 0 / 0.8257 GB, free: 15.88 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.506e-06/0.7549, allocations: 11.98 kB / 0.8257 GB, free: 15.86 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007083/0.7556, allocations: 0.5332 MB / 0.8262 GB, free: 15.29 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.7557, allocations: 3.938 kB / 0.8262 GB, free: 15.29 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005054/0.7562, allocations: 95.86 kB / 0.8263 GB, free: 15.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.426e-06/0.7562, allocations: 3.953 kB / 0.8263 GB, free: 15.19 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.696e-05/0.7562, allocations: 4 kB / 0.8263 GB, free: 15.19 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.129e-06/0.7562, allocations: 7.922 kB / 0.8263 GB, free: 15.18 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.049e-06/0.7563, allocations: 4 kB / 0.8263 GB, free: 15.18 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001178/0.7574, allocations: 0.8307 MB / 0.8271 GB, free: 14.32 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002413/0.7577, allocations: 184.3 kB / 0.8273 GB, free: 14.12 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.457e-05/0.7578, allocations: 4 kB / 0.8273 GB, free: 14.11 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003341/0.7581, allocations: 35.95 kB / 0.8273 GB, free: 14.08 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001323/0.7583, allocations: 48.36 kB / 0.8274 GB, free: 14.03 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.422e-05/0.7583, allocations: 16 kB / 0.8274 GB, free: 14.02 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0002554/0.7586, allocations: 224.6 kB / 0.8276 GB, free: 13.8 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7586, allocations: 0 / 0.8276 GB, free: 13.8 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0008059/0.7594, allocations: 247.1 kB / 0.8278 GB, free: 13.56 MB / 0.5261 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.0002696/0.7597, allocations: 135.6 kB / 0.828 GB, free: 13.42 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001218/0.7609, allocations: 0.9013 MB / 0.8288 GB, free: 12.49 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.7609, allocations: 0 / 0.8288 GB, free: 12.49 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0003514/0.7613, allocations: 253.6 kB / 0.8291 GB, free: 12.25 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007458/0.762, allocations: 137.3 kB / 0.8292 GB, free: 12.11 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001717/0.7637, allocations: 0.8394 MB / 0.83 GB, free: 11.24 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004538/0.7642, allocations: 0.9035 MB / 0.8309 GB, free: 10.31 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0006158/0.7648, allocations: 165 kB / 0.8311 GB, free: 10.15 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001427/0.765, allocations: 43.42 kB / 0.8311 GB, free: 10.11 MB / 0.5261 GB Notification: Performance of SimCode: time 2.564e-06/0.765, allocations: 4 kB / 0.8311 GB, free: 10.1 MB / 0.5261 GB Notification: Performance of Templates: time 0.01381/0.7788, allocations: 7.866 MB / 0.8388 GB, free: 2.277 MB / 0.5261 GB make -j1 -f Buildings_3.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.makefile (rm -f Buildings_3.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_3.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe >> ../files/Buildings_3.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.sim & ./Buildings_3.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe 2>&1)