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/Modelica_StateGraph2 2.0.2/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/Buildings 3.0.0/package.mo", uses=false) Using package Buildings with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 3.0.0/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica_StateGraph2 with version 2.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/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") [/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.1588/0.1595, allocations: 82.23 MB / 0.5934 GB, free: 6 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery): time 0.006897/0.1665, allocations: 5.193 MB / 0.5985 GB, free: 0.7812 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.003676/0.1702, allocations: 2.191 MB / 0.6006 GB, free: 14.58 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003831/0.1706, allocations: 7.938 kB / 0.6006 GB, free: 14.57 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002078/0.1708, allocations: 63.48 kB / 0.6007 GB, free: 14.51 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006971/0.1715, allocations: 271.1 kB / 0.6009 GB, free: 14.25 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007549/0.1723, allocations: 290.6 kB / 0.6012 GB, free: 13.96 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005586/0.1728, allocations: 478.9 kB / 0.6017 GB, free: 13.5 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001067/0.1739, allocations: 0.7105 MB / 0.6023 GB, free: 12.75 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002532/0.1742, allocations: 211.2 kB / 0.6025 GB, free: 12.54 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000366/0.1746, allocations: 266.8 kB / 0.6028 GB, free: 12.28 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 4.883e-05/0.1746, allocations: 24 kB / 0.6028 GB, free: 12.25 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003127/0.1749, allocations: 179.7 kB / 0.603 GB, free: 12.08 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001354/0.1751, allocations: 135.5 kB / 0.6031 GB, free: 11.95 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001092/0.1752, allocations: 133.3 kB / 0.6033 GB, free: 11.81 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006214/0.1758, allocations: 0.7249 MB / 0.604 GB, free: 11.08 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1758, allocations: 4 kB / 0.604 GB, free: 11.08 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1758, allocations: 0 / 0.604 GB, free: 11.08 MB / 462.1 MB Notification: Performance of Transformations before backend: time 7.213e-06/0.1759, allocations: 0 / 0.604 GB, free: 11.08 MB / 462.1 MB 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.001414/0.1773, allocations: 0.8363 MB / 0.6048 GB, free: 10.18 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.037e-05/0.1773, allocations: 12.03 kB / 0.6048 GB, free: 10.17 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006075/0.1779, allocations: 135 kB / 0.6049 GB, free: 10.04 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005485/0.1785, allocations: 421.9 kB / 0.6053 GB, free: 9.586 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.821e-05/0.1785, allocations: 36.98 kB / 0.6054 GB, free: 9.551 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.71e-05/0.1786, allocations: 52 kB / 0.6054 GB, free: 9.5 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001058/0.1797, allocations: 0.6926 MB / 0.6061 GB, free: 8.77 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.472e-05/0.1797, allocations: 0 / 0.6061 GB, free: 8.77 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.571e-05/0.1798, allocations: 23.98 kB / 0.6061 GB, free: 8.746 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.594e-05/0.1798, allocations: 48.97 kB / 0.6062 GB, free: 8.699 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000985/0.1808, allocations: 0.5699 MB / 0.6067 GB, free: 8.129 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002901/0.1837, allocations: 2.354 MB / 0.609 GB, free: 5.66 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009948/0.1848, allocations: 0.573 MB / 0.6096 GB, free: 5.07 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000446/0.1852, allocations: 0.5661 MB / 0.6101 GB, free: 4.375 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006176/0.1858, allocations: 405 kB / 0.6105 GB, free: 3.961 MB / 462.1 MB Notification: Performance of pre-optimization done (n=46): time 1.773e-06/0.1859, allocations: 0 / 0.6105 GB, free: 3.961 MB / 462.1 MB Notification: Performance of matching and sorting (n=46): time 0.001355/0.1872, allocations: 0.75 MB / 0.6112 GB, free: 3.203 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.461e-05/0.1873, allocations: 85.11 kB / 0.6113 GB, free: 3.102 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003261/0.1876, allocations: 341.7 kB / 0.6117 GB, free: 2.762 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 5.212e-05/0.1877, allocations: 37.7 kB / 0.6117 GB, free: 2.719 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001765/0.1879, allocations: 288.3 kB / 0.612 GB, free: 2.43 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001138/0.188, allocations: 142 kB / 0.6121 GB, free: 2.289 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.979e-05/0.188, allocations: 12 kB / 0.6121 GB, free: 2.277 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001463/0.1882, allocations: 354.8 kB / 0.6124 GB, free: 1.922 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004152/0.1886, allocations: 241 kB / 0.6127 GB, free: 1.688 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004855/0.1891, allocations: 362.6 kB / 0.613 GB, free: 1.293 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004631/0.1896, allocations: 286.6 kB / 0.6133 GB, free: 1.008 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/0.1896, allocations: 4 kB / 0.6133 GB, free: 1.004 MB / 462.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001089/0.1907, allocations: 0.6917 MB / 0.614 GB, free: 308 kB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004841/0.1912, allocations: 1.073 MB / 0.615 GB, free: 15.14 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.1912, allocations: 0 / 0.615 GB, free: 15.14 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.806e-05/0.1912, allocations: 12.19 kB / 0.615 GB, free: 15.13 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004992/0.1917, allocations: 119.8 kB / 0.6151 GB, free: 15.01 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.098e-05/0.1917, allocations: 4 kB / 0.6152 GB, free: 15.01 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000419/0.1922, allocations: 83.41 kB / 0.6152 GB, free: 14.93 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.774e-05/0.1922, allocations: 20 kB / 0.6153 GB, free: 14.91 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.644e-06/0.1922, allocations: 4 kB / 0.6153 GB, free: 14.9 MB / 478.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009519/0.1932, allocations: 0.5756 MB / 0.6158 GB, free: 14.32 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.266e-06/0.1932, allocations: 3.938 kB / 0.6158 GB, free: 14.32 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.396e-06/0.1932, allocations: 8.25 kB / 0.6158 GB, free: 14.31 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003905/0.1936, allocations: 111.8 kB / 0.6159 GB, free: 14.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.055e-05/0.1936, allocations: 11.89 kB / 0.6159 GB, free: 14.19 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003452/0.194, allocations: 63.64 kB / 0.616 GB, free: 14.12 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.195e-05/0.194, allocations: 16 kB / 0.616 GB, free: 14.11 MB / 478.1 MB 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 (66): * Single equations (assignments): 65 * 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.0002936/0.1943, allocations: 311.1 kB / 0.6163 GB, free: 13.79 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.296e-05/0.1944, allocations: 47.44 kB / 0.6164 GB, free: 13.75 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001071/0.1955, allocations: 0.5946 MB / 0.6169 GB, free: 13.15 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.815e-06/0.1955, allocations: 12 kB / 0.617 GB, free: 13.14 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.095e-06/0.1955, allocations: 3.953 kB / 0.617 GB, free: 13.13 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.702e-06/0.1955, allocations: 0 / 0.617 GB, free: 13.13 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002069/0.1976, allocations: 1.372 MB / 0.6183 GB, free: 11.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.1976, allocations: 4 kB / 0.6183 GB, free: 11.7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004082/0.198, allocations: 87.88 kB / 0.6184 GB, free: 11.61 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.1981, allocations: 3.953 kB / 0.6184 GB, free: 11.61 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.3e-05/0.1981, allocations: 12 kB / 0.6184 GB, free: 11.59 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.649e-06/0.1981, allocations: 4 kB / 0.6184 GB, free: 11.59 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.1981, allocations: 192 / 0.6184 GB, free: 11.59 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001453/0.1996, allocations: 0.9887 MB / 0.6194 GB, free: 10.57 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00022/0.1998, allocations: 180.4 kB / 0.6195 GB, free: 10.38 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.108e-05/0.1999, allocations: 16 kB / 0.6196 GB, free: 10.36 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003312/0.2002, allocations: 35.95 kB / 0.6196 GB, free: 10.33 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001426/0.2004, allocations: 52.36 kB / 0.6196 GB, free: 10.28 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.33e-05/0.2004, allocations: 16 kB / 0.6197 GB, free: 10.26 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0002616/0.2007, allocations: 243.2 kB / 0.6199 GB, free: 10.02 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.2007, allocations: 0 / 0.6199 GB, free: 10.02 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0007025/0.2014, allocations: 267.1 kB / 0.6201 GB, free: 9.762 MB / 478.1 MB 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.0002226/0.2016, allocations: 139.2 kB / 0.6203 GB, free: 9.613 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001574/0.2032, allocations: 0.9711 MB / 0.6212 GB, free: 8.621 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.2032, allocations: 0 / 0.6212 GB, free: 8.621 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000453/0.2037, allocations: 291 kB / 0.6215 GB, free: 8.336 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007031/0.2044, allocations: 151.5 kB / 0.6216 GB, free: 8.191 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001969/0.2064, allocations: 1.317 MB / 0.6229 GB, free: 6.852 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005031/0.2069, allocations: 0.9149 MB / 0.6238 GB, free: 5.91 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0004573/0.2074, allocations: 144.3 kB / 0.624 GB, free: 5.766 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001414/0.2075, allocations: 47.42 kB / 0.624 GB, free: 5.719 MB / 478.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2075, allocations: 0 / 0.624 GB, free: 5.719 MB / 478.1 MB Notification: Performance of Templates: time 0.0131/0.2206, allocations: 7.776 MB / 0.6316 GB, free: 14.06 MB / 494.1 MB make -j1 -f Buildings_3.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: