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.7095/0.7095, allocations: 132.3 MB / 144.9 MB, free: 10.54 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.0009742/0.0009743, allocations: 173 kB / 176.9 MB, free: 2.312 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.207/1.207, allocations: 170.5 MB / 379.3 MB, free: 11.86 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001601/0.001601, allocations: 110.2 kB / 450 MB, free: 5.836 MB / 346.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.4483/0.4483, allocations: 73.39 MB / 0.6736 GB, free: 47.93 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.159/0.6074, allocations: 121.7 MB / 0.7925 GB, free: 10.94 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002955/0.6077, allocations: 91.94 kB / 0.7926 GB, free: 10.85 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.07071/0.6784, allocations: 29.63 MB / 0.8215 GB, free: 13.12 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.816e-06/0.6785, allocations: 0 / 0.8215 GB, free: 13.12 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 3.107e-05/0.6785, allocations: 19.88 kB / 0.8215 GB, free: 13.1 MB / 0.5261 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.001508/0.68, allocations: 0.826 MB / 0.8223 GB, free: 12.22 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.847e-05/0.6801, allocations: 12.03 kB / 0.8224 GB, free: 12.21 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008096/0.6809, allocations: 149.9 kB / 0.8225 GB, free: 12.06 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006355/0.6816, allocations: 439.2 kB / 0.8229 GB, free: 11.59 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.973e-05/0.6816, allocations: 33 kB / 0.8229 GB, free: 11.56 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.551e-05/0.6817, allocations: 55.97 kB / 0.823 GB, free: 11.51 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001031/0.6828, allocations: 0.6537 MB / 0.8236 GB, free: 10.82 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.536e-05/0.6828, allocations: 3.938 kB / 0.8236 GB, free: 10.82 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.87e-05/0.6829, allocations: 27.59 kB / 0.8237 GB, free: 10.79 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.552e-05/0.6829, allocations: 36.98 kB / 0.8237 GB, free: 10.75 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007959/0.6837, allocations: 0.5271 MB / 0.8242 GB, free: 10.23 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003032/0.6868, allocations: 2.373 MB / 0.8265 GB, free: 7.738 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008348/0.6876, allocations: 0.5488 MB / 0.8271 GB, free: 7.168 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000327/0.688, allocations: 253.6 kB / 0.8273 GB, free: 6.914 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004417/0.6884, allocations: 0.5544 MB / 0.8279 GB, free: 6.23 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005605/0.689, allocations: 383.8 kB / 0.8282 GB, free: 5.84 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=49): time 3.056e-06/0.689, allocations: 4 kB / 0.8282 GB, free: 5.836 MB / 0.5261 GB Notification: Performance of matching and sorting (n=49): time 0.0009449/0.6899, allocations: 0.5111 MB / 0.8287 GB, free: 5.316 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.172e-05/0.69, allocations: 89.5 kB / 0.8288 GB, free: 5.211 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003432/0.6904, allocations: 295.6 kB / 0.8291 GB, free: 4.91 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 6.152e-05/0.6905, allocations: 41.7 kB / 0.8291 GB, free: 4.863 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002128/0.6907, allocations: 284.6 kB / 0.8294 GB, free: 4.582 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001367/0.6908, allocations: 153.8 kB / 0.8295 GB, free: 4.43 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.356e-05/0.6909, allocations: 12 kB / 0.8296 GB, free: 4.418 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001704/0.691, allocations: 358.8 kB / 0.8299 GB, free: 4.059 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003571/0.6914, allocations: 221.1 kB / 0.8301 GB, free: 3.844 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004293/0.6918, allocations: 341.2 kB / 0.8304 GB, free: 3.469 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004061/0.6923, allocations: 285.6 kB / 0.8307 GB, free: 3.184 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.6923, allocations: 4 kB / 0.8307 GB, free: 3.18 MB / 0.5261 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0009894/0.6933, allocations: 0.6553 MB / 0.8314 GB, free: 2.512 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005067/0.6938, allocations: 1.072 MB / 0.8324 GB, free: 1.352 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.909e-06/0.6938, allocations: 4 kB / 0.8324 GB, free: 1.348 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.955e-05/0.6938, allocations: 8 kB / 0.8324 GB, free: 1.34 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005529/0.6944, allocations: 119.7 kB / 0.8325 GB, free: 1.223 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.639e-05/0.6944, allocations: 10.73 kB / 0.8325 GB, free: 1.215 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004817/0.6949, allocations: 71.62 kB / 0.8326 GB, free: 1.145 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.404e-05/0.695, allocations: 20 kB / 0.8326 GB, free: 1.125 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 7.724e-06/0.695, allocations: 4 kB / 0.8326 GB, free: 1.121 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008079/0.6958, allocations: 0.5483 MB / 0.8332 GB, free: 0.5664 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.336e-06/0.6958, allocations: 0 / 0.8332 GB, free: 0.5664 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.674e-05/0.6958, allocations: 8 kB / 0.8332 GB, free: 0.5586 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004011/0.6962, allocations: 107.8 kB / 0.8333 GB, free: 464 kB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.606e-06/0.6963, allocations: 8 kB / 0.8333 GB, free: 456 kB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000362/0.6966, allocations: 71.8 kB / 0.8334 GB, free: 384 kB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.613e-05/0.6967, allocations: 20 kB / 0.8334 GB, free: 364 kB / 0.5261 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.0001646/0.6968, allocations: 156.9 kB / 0.8335 GB, free: 200 kB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.028e-05/0.6969, allocations: 43.91 kB / 0.8336 GB, free: 156 kB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009389/0.6979, allocations: 0.5556 MB / 0.8341 GB, free: 15.59 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.576e-06/0.6979, allocations: 12 kB / 0.8341 GB, free: 15.58 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.782e-06/0.6979, allocations: 0 / 0.8341 GB, free: 15.58 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.285e-05/0.6979, allocations: 11.92 kB / 0.8341 GB, free: 15.57 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007001/0.6986, allocations: 0.6263 MB / 0.8347 GB, free: 14.89 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.6986, allocations: 7.938 kB / 0.8347 GB, free: 14.88 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004697/0.6991, allocations: 91.86 kB / 0.8348 GB, free: 14.79 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.021e-06/0.6991, allocations: 4 kB / 0.8348 GB, free: 14.79 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.635e-05/0.6992, allocations: 8 kB / 0.8348 GB, free: 14.78 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/0.6992, allocations: 0 / 0.8348 GB, free: 14.78 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.6992, allocations: 0 / 0.8348 GB, free: 14.78 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001115/0.7003, allocations: 0.8774 MB / 0.8357 GB, free: 13.88 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002072/0.7005, allocations: 180.4 kB / 0.8359 GB, free: 13.68 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.677e-05/0.7006, allocations: 19.92 kB / 0.8359 GB, free: 13.66 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003061/0.7009, allocations: 39.95 kB / 0.8359 GB, free: 13.62 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001316/0.7011, allocations: 52.36 kB / 0.836 GB, free: 13.57 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.251e-05/0.7011, allocations: 12 kB / 0.836 GB, free: 13.56 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.00024/0.7013, allocations: 242.2 kB / 0.8362 GB, free: 13.33 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7013, allocations: 0 / 0.8362 GB, free: 13.33 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0006842/0.702, allocations: 271.1 kB / 0.8365 GB, free: 13.06 MB / 0.5417 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.0002208/0.7023, allocations: 143.1 kB / 0.8366 GB, free: 12.91 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.001224/0.7035, allocations: 0.9363 MB / 0.8375 GB, free: 11.95 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.7035, allocations: 0 / 0.8375 GB, free: 11.95 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0003692/0.7039, allocations: 266.4 kB / 0.8378 GB, free: 11.69 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007068/0.7046, allocations: 159.5 kB / 0.8379 GB, free: 11.54 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001632/0.7062, allocations: 0.8547 MB / 0.8388 GB, free: 10.66 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004466/0.7067, allocations: 0.8996 MB / 0.8397 GB, free: 9.73 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0005691/0.7073, allocations: 162.7 kB / 0.8398 GB, free: 9.574 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001462/0.7074, allocations: 47.42 kB / 0.8399 GB, free: 9.527 MB / 0.5417 GB Notification: Performance of SimCode: time 4.11e-07/0.7074, allocations: 0 / 0.8399 GB, free: 9.527 MB / 0.5417 GB Notification: Performance of Templates: time 0.01345/0.7209, allocations: 8.232 MB / 0.8479 GB, free: 1.355 MB / 0.5417 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)