Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.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.OnePhase.Storage.Examples.AcBattery,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") translateModel(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.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.1835/0.1842, allocations: 82.22 MB / 0.5934 GB, free: 5.992 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery): time 0.004678/0.1889, allocations: 3.767 MB / 0.5971 GB, free: 2.203 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.003423/0.1924, allocations: 2.18 MB / 0.5992 GB, free: 16 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002331/0.1927, allocations: 11.94 kB / 0.5992 GB, free: 4 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002133/0.1929, allocations: 55.67 kB / 0.5992 GB, free: 15.95 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006646/0.1936, allocations: 271 kB / 0.5995 GB, free: 15.68 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008153/0.1944, allocations: 299.3 kB / 0.5998 GB, free: 15.39 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005775/0.195, allocations: 478.8 kB / 0.6002 GB, free: 14.92 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001066/0.196, allocations: 0.7105 MB / 0.6009 GB, free: 14.17 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002681/0.1963, allocations: 219.2 kB / 0.6011 GB, free: 13.96 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003687/0.1967, allocations: 254.9 kB / 0.6014 GB, free: 13.71 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 4.882e-05/0.1968, allocations: 20 kB / 0.6014 GB, free: 13.69 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003327/0.1971, allocations: 183.7 kB / 0.6016 GB, free: 13.51 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001376/0.1972, allocations: 131.6 kB / 0.6017 GB, free: 13.38 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001078/0.1974, allocations: 129.4 kB / 0.6018 GB, free: 13.25 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007076/0.1981, allocations: 0.7327 MB / 0.6026 GB, free: 12.51 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.1981, allocations: 7.938 kB / 0.6026 GB, free: 12.5 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1981, allocations: 0 / 0.6026 GB, free: 12.5 MB / 462.1 MB Notification: Performance of Transformations before backend: time 8.716e-06/0.1981, allocations: 0 / 0.6026 GB, free: 12.5 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.001555/0.1997, allocations: 0.8238 MB / 0.6034 GB, free: 11.62 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.99e-05/0.1997, allocations: 8.031 kB / 0.6034 GB, free: 11.62 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006725/0.2004, allocations: 135.1 kB / 0.6035 GB, free: 11.48 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006185/0.201, allocations: 425.8 kB / 0.6039 GB, free: 11.03 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.908e-05/0.2011, allocations: 37 kB / 0.6039 GB, free: 10.99 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.001e-05/0.2012, allocations: 55.97 kB / 0.604 GB, free: 10.94 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001118/0.2023, allocations: 0.6848 MB / 0.6047 GB, free: 10.21 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.68e-05/0.2023, allocations: 3.938 kB / 0.6047 GB, free: 10.21 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.912e-05/0.2024, allocations: 27.98 kB / 0.6047 GB, free: 10.18 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.233e-05/0.2025, allocations: 48.97 kB / 0.6047 GB, free: 10.14 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001021/0.2035, allocations: 0.5699 MB / 0.6053 GB, free: 9.566 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003156/0.2067, allocations: 2.366 MB / 0.6076 GB, free: 7.086 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001047/0.2078, allocations: 0.5652 MB / 0.6082 GB, free: 6.504 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000512/0.2083, allocations: 0.5622 MB / 0.6087 GB, free: 5.812 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006651/0.209, allocations: 412.9 kB / 0.6091 GB, free: 5.391 MB / 462.1 MB Notification: Performance of pre-optimization done (n=46): time 2.014e-06/0.209, allocations: 0 / 0.6091 GB, free: 5.391 MB / 462.1 MB Notification: Performance of matching and sorting (n=46): time 0.001405/0.2104, allocations: 0.7384 MB / 0.6098 GB, free: 4.645 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.219e-05/0.2104, allocations: 89.05 kB / 0.6099 GB, free: 4.539 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003574/0.2108, allocations: 341.6 kB / 0.6102 GB, free: 4.199 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 6.301e-05/0.2109, allocations: 45.7 kB / 0.6103 GB, free: 4.148 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002078/0.2111, allocations: 284.5 kB / 0.6105 GB, free: 3.863 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001222/0.2112, allocations: 149.9 kB / 0.6107 GB, free: 3.715 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.767e-05/0.2113, allocations: 8.125 kB / 0.6107 GB, free: 3.707 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.2114, allocations: 358.8 kB / 0.611 GB, free: 3.348 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004178/0.2118, allocations: 237 kB / 0.6113 GB, free: 3.117 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005153/0.2124, allocations: 358.7 kB / 0.6116 GB, free: 2.727 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004909/0.2129, allocations: 286.6 kB / 0.6119 GB, free: 2.441 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.689e-06/0.2129, allocations: 0 / 0.6119 GB, free: 2.441 MB / 462.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001141/0.214, allocations: 0.6916 MB / 0.6126 GB, free: 1.738 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004836/0.2145, allocations: 1.081 MB / 0.6136 GB, free: 0.5703 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.628e-06/0.2145, allocations: 4 kB / 0.6136 GB, free: 0.5664 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.967e-05/0.2146, allocations: 4 kB / 0.6136 GB, free: 0.5625 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000493/0.2151, allocations: 111.8 kB / 0.6137 GB, free: 464 kB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.23e-05/0.2151, allocations: 7.938 kB / 0.6137 GB, free: 456 kB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004265/0.2155, allocations: 79.47 kB / 0.6138 GB, free: 376 kB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.201e-05/0.2156, allocations: 24 kB / 0.6138 GB, free: 352 kB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.347e-06/0.2156, allocations: 4 kB / 0.6138 GB, free: 348 kB / 462.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000972/0.2166, allocations: 0.576 MB / 0.6144 GB, free: 15.75 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.2166, allocations: 8.031 kB / 0.6144 GB, free: 15.75 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.651e-06/0.2166, allocations: 4 kB / 0.6144 GB, free: 15.74 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003909/0.217, allocations: 103.8 kB / 0.6145 GB, free: 15.64 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.616e-06/0.217, allocations: 11.95 kB / 0.6145 GB, free: 15.63 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003567/0.2174, allocations: 63.55 kB / 0.6146 GB, free: 15.57 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.747e-05/0.2174, allocations: 27.98 kB / 0.6146 GB, free: 15.54 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.00035/0.2178, allocations: 307.2 kB / 0.6149 GB, free: 15.23 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.388e-05/0.2179, allocations: 39.53 kB / 0.6149 GB, free: 15.19 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001097/0.219, allocations: 0.6062 MB / 0.6155 GB, free: 14.58 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.703e-06/0.219, allocations: 4 kB / 0.6155 GB, free: 14.57 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.296e-06/0.219, allocations: 3.953 kB / 0.6155 GB, free: 14.57 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.717e-06/0.219, allocations: 3.984 kB / 0.6155 GB, free: 14.57 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002231/0.2213, allocations: 1.372 MB / 0.6169 GB, free: 13.14 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.065e-06/0.2213, allocations: 3.938 kB / 0.6169 GB, free: 13.14 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004285/0.2217, allocations: 87.88 kB / 0.617 GB, free: 13.05 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.574e-06/0.2217, allocations: 7.953 kB / 0.617 GB, free: 13.04 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.583e-05/0.2218, allocations: 11.98 kB / 0.617 GB, free: 13.03 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.408e-06/0.2218, allocations: 4 kB / 0.617 GB, free: 13.03 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.2218, allocations: 4 kB / 0.617 GB, free: 13.02 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001464/0.2233, allocations: 0.9809 MB / 0.618 GB, free: 12.02 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002148/0.2235, allocations: 176.4 kB / 0.6181 GB, free: 11.82 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.781e-05/0.2236, allocations: 15.94 kB / 0.6181 GB, free: 11.81 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003265/0.2239, allocations: 39.95 kB / 0.6182 GB, free: 11.77 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001296/0.224, allocations: 52.36 kB / 0.6182 GB, free: 11.72 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.424e-05/0.2241, allocations: 15.98 kB / 0.6182 GB, free: 11.7 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0002403/0.2243, allocations: 247.2 kB / 0.6185 GB, free: 11.46 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2243, allocations: 3.938 kB / 0.6185 GB, free: 11.46 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0007197/0.225, allocations: 267.1 kB / 0.6187 GB, free: 11.2 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.0002042/0.2253, allocations: 131.2 kB / 0.6189 GB, free: 11.05 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001581/0.2268, allocations: 0.976 MB / 0.6198 GB, free: 10.06 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.97e-06/0.2269, allocations: 4 kB / 0.6198 GB, free: 10.05 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004654/0.2273, allocations: 290.4 kB / 0.6201 GB, free: 9.77 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007326/0.2281, allocations: 153.1 kB / 0.6202 GB, free: 9.625 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002028/0.2301, allocations: 1.313 MB / 0.6215 GB, free: 8.289 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004719/0.2306, allocations: 0.9149 MB / 0.6224 GB, free: 7.348 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0004675/0.2311, allocations: 140.3 kB / 0.6226 GB, free: 7.207 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001403/0.2312, allocations: 43.44 kB / 0.6226 GB, free: 7.164 MB / 478.1 MB Notification: Performance of SimCode: time 2.51e-07/0.2312, allocations: 0 / 0.6226 GB, free: 7.164 MB / 478.1 MB Notification: Performance of Templates: time 0.01395/0.2452, allocations: 7.788 MB / 0.6302 GB, free: 15.48 MB / 494.1 MB make -j1 -f Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.makefile Environment - environmentSimulation: (rm -f Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe >> ../files/Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.sim & ./Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1) Environment - environmentSimulation: