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.8098/0.8098, allocations: 133.7 MB / 148.6 MB, free: 13.62 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.001409/0.001409, allocations: 190.9 kB / 180.9 MB, free: 15.05 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.405/1.405, allocations: 170.7 MB / 383.7 MB, free: 16.12 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.001658/0.001658, allocations: 117.1 kB / 454.6 MB, free: 9.719 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.2/0.2005, allocations: 73.41 MB / 0.6812 GB, free: 5.531 MB / 474.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6065/0.807, allocations: 121.8 MB / 0.8001 GB, free: 8.562 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003275/0.8074, allocations: 101.8 kB / 0.8002 GB, free: 8.5 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07247/0.8799, allocations: 29.79 MB / 0.8293 GB, free: 11.88 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.524e-06/0.88, allocations: 4 kB / 0.8293 GB, free: 11.88 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 3.04e-05/0.88, allocations: 12 kB / 0.8294 GB, free: 11.86 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.001738/0.8817, allocations: 0.8847 MB / 0.8302 GB, free: 10.92 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.654e-05/0.8818, allocations: 8.031 kB / 0.8302 GB, free: 10.91 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008479/0.8827, allocations: 154.5 kB / 0.8304 GB, free: 10.77 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006808/0.8833, allocations: 432.8 kB / 0.8308 GB, free: 10.3 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.683e-05/0.8834, allocations: 41 kB / 0.8308 GB, free: 10.26 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.848e-05/0.8835, allocations: 55.92 kB / 0.8309 GB, free: 10.21 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001197/0.8847, allocations: 0.6731 MB / 0.8315 GB, free: 9.5 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.685e-05/0.8847, allocations: 3.938 kB / 0.8315 GB, free: 9.496 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.096e-05/0.8848, allocations: 27.97 kB / 0.8316 GB, free: 9.469 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.72e-05/0.8849, allocations: 40.98 kB / 0.8316 GB, free: 9.43 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001049/0.8859, allocations: 0.5883 MB / 0.8322 GB, free: 8.844 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003299/0.8892, allocations: 2.374 MB / 0.8345 GB, free: 6.355 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001098/0.8904, allocations: 0.5925 MB / 0.8351 GB, free: 5.742 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005188/0.8909, allocations: 0.5583 MB / 0.8356 GB, free: 5.055 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007135/0.8916, allocations: 415.7 kB / 0.836 GB, free: 4.633 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=49): time 2.685e-06/0.8916, allocations: 0 / 0.836 GB, free: 4.633 MB / 0.5105 GB Notification: Performance of matching and sorting (n=49): time 0.001522/0.8932, allocations: 0.7718 MB / 0.8368 GB, free: 3.855 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.061e-05/0.8932, allocations: 85.5 kB / 0.8369 GB, free: 3.754 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003632/0.8936, allocations: 304.7 kB / 0.8371 GB, free: 3.445 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 6.594e-05/0.8937, allocations: 49.81 kB / 0.8372 GB, free: 3.391 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002082/0.8939, allocations: 284.6 kB / 0.8375 GB, free: 3.109 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001471/0.8941, allocations: 153.8 kB / 0.8376 GB, free: 2.957 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.123e-05/0.8941, allocations: 15.94 kB / 0.8376 GB, free: 2.941 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000174/0.8943, allocations: 359.3 kB / 0.838 GB, free: 2.582 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004619/0.8947, allocations: 241 kB / 0.8382 GB, free: 2.348 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005455/0.8953, allocations: 366.3 kB / 0.8385 GB, free: 1.941 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005086/0.8958, allocations: 296.4 kB / 0.8388 GB, free: 1.648 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.392e-05/0.8959, allocations: 8 kB / 0.8388 GB, free: 1.641 MB / 0.5105 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001237/0.8971, allocations: 0.7021 MB / 0.8395 GB, free: 0.9258 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005251/0.8977, allocations: 1.082 MB / 0.8406 GB, free: 15.76 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.154e-05/0.8977, allocations: 4 kB / 0.8406 GB, free: 15.75 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.321e-05/0.8977, allocations: 4 kB / 0.8406 GB, free: 15.75 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005656/0.8983, allocations: 119.8 kB / 0.8407 GB, free: 15.63 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.559e-05/0.8983, allocations: 7.953 kB / 0.8407 GB, free: 15.62 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005053/0.8988, allocations: 79.52 kB / 0.8408 GB, free: 15.55 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.017e-05/0.8989, allocations: 23.98 kB / 0.8408 GB, free: 15.52 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 7.324e-06/0.8989, allocations: 4 kB / 0.8408 GB, free: 15.52 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001102/0.9, allocations: 0.5836 MB / 0.8414 GB, free: 14.93 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.9, allocations: 4 kB / 0.8414 GB, free: 14.93 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.696e-06/0.9001, allocations: 7.984 kB / 0.8414 GB, free: 14.92 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000423/0.9005, allocations: 107.8 kB / 0.8415 GB, free: 14.81 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.905e-06/0.9005, allocations: 4 kB / 0.8415 GB, free: 14.81 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004134/0.9009, allocations: 59.89 kB / 0.8416 GB, free: 14.75 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.812e-05/0.901, allocations: 20 kB / 0.8416 GB, free: 14.73 MB / 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 () * 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.0004117/0.9014, allocations: 311.1 kB / 0.8419 GB, free: 14.42 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.959e-05/0.9015, allocations: 47.44 kB / 0.8419 GB, free: 14.37 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001165/0.9027, allocations: 0.6066 MB / 0.8425 GB, free: 13.76 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.504e-06/0.9027, allocations: 4 kB / 0.8425 GB, free: 13.76 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.9027, allocations: 4 kB / 0.8425 GB, free: 13.75 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.201e-06/0.9027, allocations: 0 / 0.8425 GB, free: 13.75 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007696/0.9035, allocations: 0.6301 MB / 0.8431 GB, free: 13.07 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.9035, allocations: 0 / 0.8431 GB, free: 13.07 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005396/0.904, allocations: 95.86 kB / 0.8432 GB, free: 12.98 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.374e-06/0.9041, allocations: 12.12 kB / 0.8432 GB, free: 12.97 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.212e-05/0.9041, allocations: 19.92 kB / 0.8433 GB, free: 12.95 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.9041, allocations: 0 / 0.8433 GB, free: 12.95 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.9041, allocations: 0 / 0.8433 GB, free: 12.95 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001793/0.9059, allocations: 0.9359 MB / 0.8442 GB, free: 11.98 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003001/0.9062, allocations: 184.4 kB / 0.8443 GB, free: 11.79 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.751e-05/0.9063, allocations: 12 kB / 0.8444 GB, free: 11.77 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004139/0.9068, allocations: 47.94 kB / 0.8444 GB, free: 11.73 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001582/0.9069, allocations: 48.36 kB / 0.8444 GB, free: 11.68 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.465e-05/0.907, allocations: 16 kB / 0.8445 GB, free: 11.66 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0003062/0.9073, allocations: 239.2 kB / 0.8447 GB, free: 11.43 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.9e-07/0.9073, allocations: 0 / 0.8447 GB, free: 11.43 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.001057/0.9084, allocations: 279.1 kB / 0.845 GB, free: 11.16 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) * 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.0003094/0.9087, allocations: 139.2 kB / 0.8451 GB, free: 11.01 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001804/0.9105, allocations: 1.006 MB / 0.8461 GB, free: 9.977 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.9105, allocations: 0 / 0.8461 GB, free: 9.977 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0005186/0.911, allocations: 286.4 kB / 0.8463 GB, free: 9.699 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007715/0.9118, allocations: 169 kB / 0.8465 GB, free: 9.539 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002295/0.9141, allocations: 1.309 MB / 0.8478 GB, free: 8.211 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006267/0.9148, allocations: 0.9108 MB / 0.8487 GB, free: 7.273 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.000566/0.9154, allocations: 140.3 kB / 0.8488 GB, free: 7.137 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000148/0.9155, allocations: 43.44 kB / 0.8489 GB, free: 7.098 MB / 0.5261 GB Notification: Performance of SimCode: time 1.303e-06/0.9155, allocations: 0 / 0.8489 GB, free: 7.098 MB / 0.5261 GB Notification: Performance of Templates: time 0.01411/0.9296, allocations: 7.64 MB / 0.8563 GB, free: 15.51 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)