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/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.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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 3.0.0/package.mo): time 0.8126/0.8126, allocations: 132.4 MB / 139.9 MB, free: 15.42 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.000971/0.000971, allocations: 167.1 kB / 171.8 MB, free: 2.059 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.532/1.532, allocations: 170.6 MB / 374.2 MB, free: 15.64 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.001793/0.001793, allocations: 128.7 kB / 444.8 MB, free: 9.18 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.6961/0.6962, allocations: 73.4 MB / 0.6666 GB, free: 46.93 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.164/0.8603, allocations: 119.6 MB / 0.7834 GB, free: 1.176 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003303/0.8607, allocations: 97.77 kB / 0.7835 GB, free: 1.082 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07524/0.936, allocations: 27.62 MB / 0.8105 GB, free: 5.441 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.713e-06/0.936, allocations: 0 / 0.8105 GB, free: 5.441 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 5.612e-05/0.9361, allocations: 16 kB / 0.8105 GB, free: 5.426 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.002259/0.9383, allocations: 0.8237 MB / 0.8113 GB, free: 4.551 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.899e-05/0.9384, allocations: 8.031 kB / 0.8113 GB, free: 4.543 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001083/0.9395, allocations: 157.7 kB / 0.8115 GB, free: 4.391 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009193/0.9404, allocations: 435.2 kB / 0.8119 GB, free: 3.922 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.903e-05/0.9405, allocations: 16 kB / 0.8119 GB, free: 3.906 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001353/0.9406, allocations: 31.94 kB / 0.8119 GB, free: 3.875 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009292/0.9416, allocations: 455.3 kB / 0.8124 GB, free: 3.43 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001095/0.9427, allocations: 0.5946 MB / 0.8129 GB, free: 2.805 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.757e-05/0.9427, allocations: 0 / 0.8129 GB, free: 2.805 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.197e-05/0.9428, allocations: 7.984 kB / 0.8129 GB, free: 2.797 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.818e-05/0.9429, allocations: 37.3 kB / 0.813 GB, free: 2.762 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003543/0.9464, allocations: 2.272 MB / 0.8152 GB, free: 396 kB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008501/0.9473, allocations: 0.5293 MB / 0.8157 GB, free: 15.84 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003332/0.9476, allocations: 229.6 kB / 0.8159 GB, free: 15.61 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005151/0.9482, allocations: 0.5583 MB / 0.8165 GB, free: 14.92 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005999/0.9488, allocations: 382.8 kB / 0.8168 GB, free: 14.53 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=49): time 2.054e-06/0.9488, allocations: 0 / 0.8168 GB, free: 14.53 MB / 0.5261 GB Notification: Performance of matching and sorting (n=49): time 0.001064/0.9499, allocations: 491.5 kB / 0.8173 GB, free: 14.04 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.101e-05/0.9499, allocations: 85.53 kB / 0.8174 GB, free: 13.94 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003936/0.9503, allocations: 286.3 kB / 0.8177 GB, free: 13.66 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 8.014e-05/0.9504, allocations: 37.7 kB / 0.8177 GB, free: 13.62 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002445/0.9507, allocations: 276.5 kB / 0.818 GB, free: 13.34 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001632/0.9509, allocations: 153.8 kB / 0.8181 GB, free: 13.19 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.31e-05/0.9509, allocations: 0 / 0.8181 GB, free: 13.19 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002016/0.9511, allocations: 354.7 kB / 0.8184 GB, free: 12.83 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003609/0.9515, allocations: 213 kB / 0.8187 GB, free: 12.62 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004574/0.9519, allocations: 329.3 kB / 0.819 GB, free: 12.26 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004864/0.9524, allocations: 243.1 kB / 0.8192 GB, free: 12.03 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.649e-06/0.9525, allocations: 0 / 0.8192 GB, free: 12.03 MB / 0.5261 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001046/0.9535, allocations: 0.5873 MB / 0.8198 GB, free: 11.43 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005804/0.9541, allocations: 1.08 MB / 0.8208 GB, free: 10.27 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.279e-05/0.9541, allocations: 4 kB / 0.8208 GB, free: 10.26 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.7e-05/0.9542, allocations: 4 kB / 0.8208 GB, free: 10.26 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005754/0.9547, allocations: 115.8 kB / 0.8209 GB, free: 10.14 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.572e-05/0.9548, allocations: 13.48 kB / 0.821 GB, free: 10.13 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005565/0.9553, allocations: 67.53 kB / 0.821 GB, free: 10.07 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.056e-05/0.9554, allocations: 23.98 kB / 0.821 GB, free: 10.04 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.382e-05/0.9554, allocations: 4 kB / 0.821 GB, free: 10.04 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008654/0.9563, allocations: 470.6 kB / 0.8215 GB, free: 9.582 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/0.9563, allocations: 0 / 0.8215 GB, free: 9.582 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.055e-05/0.9563, allocations: 11.94 kB / 0.8215 GB, free: 9.57 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004309/0.9568, allocations: 112 kB / 0.8216 GB, free: 9.461 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.55e-05/0.9568, allocations: 11.94 kB / 0.8216 GB, free: 9.449 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004335/0.9572, allocations: 47.7 kB / 0.8217 GB, free: 9.402 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.782e-05/0.9573, allocations: 20 kB / 0.8217 GB, free: 9.383 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 () * 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.0001862/0.9575, allocations: 127 kB / 0.8218 GB, free: 9.25 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001109/0.9576, allocations: 55.38 kB / 0.8219 GB, free: 9.195 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000985/0.9586, allocations: 0.5298 MB / 0.8224 GB, free: 8.66 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-05/0.9586, allocations: 8 kB / 0.8224 GB, free: 8.652 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.9586, allocations: 0 / 0.8224 GB, free: 8.652 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.049e-05/0.9587, allocations: 3.984 kB / 0.8224 GB, free: 8.648 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000758/0.9594, allocations: 0.5293 MB / 0.8229 GB, free: 8.082 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.9594, allocations: 48 / 0.8229 GB, free: 8.082 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005181/0.96, allocations: 99.84 kB / 0.823 GB, free: 7.984 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.271e-05/0.96, allocations: 8 kB / 0.823 GB, free: 7.977 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.514e-05/0.96, allocations: 11.06 kB / 0.823 GB, free: 7.969 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.17e-06/0.9601, allocations: 4 kB / 0.823 GB, free: 7.965 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.427e-06/0.9601, allocations: 0 / 0.823 GB, free: 7.965 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001277/0.9613, allocations: 0.8306 MB / 0.8238 GB, free: 7.105 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002735/0.9616, allocations: 188.4 kB / 0.824 GB, free: 6.902 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.83e-05/0.9617, allocations: 4 kB / 0.824 GB, free: 6.898 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003533/0.9621, allocations: 39.94 kB / 0.8241 GB, free: 6.859 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001357/0.9622, allocations: 44.38 kB / 0.8241 GB, free: 6.816 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.064e-05/0.9623, allocations: 19.98 kB / 0.8241 GB, free: 6.797 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0002646/0.9625, allocations: 216.6 kB / 0.8243 GB, free: 6.59 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.5e-07/0.9626, allocations: 0 / 0.8243 GB, free: 6.59 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0008628/0.9634, allocations: 255 kB / 0.8246 GB, free: 6.34 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.0002784/0.9637, allocations: 134.4 kB / 0.8247 GB, free: 6.199 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.00141/0.9651, allocations: 0.8964 MB / 0.8256 GB, free: 5.277 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.159e-06/0.9651, allocations: 0 / 0.8256 GB, free: 5.277 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0004121/0.9656, allocations: 266.4 kB / 0.8258 GB, free: 5.02 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009384/0.9665, allocations: 140.6 kB / 0.826 GB, free: 4.883 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002291/0.9688, allocations: 0.8195 MB / 0.8268 GB, free: 4.031 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008791/0.9697, allocations: 0.9113 MB / 0.8277 GB, free: 3.094 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0008111/0.9706, allocations: 162.3 kB / 0.8278 GB, free: 2.941 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001633/0.9708, allocations: 39.44 kB / 0.8278 GB, free: 2.902 MB / 0.5261 GB Notification: Performance of SimCode: time 1.963e-06/0.9708, allocations: 0 / 0.8278 GB, free: 2.902 MB / 0.5261 GB Notification: Performance of Templates: time 0.01621/0.987, allocations: 7.881 MB / 0.8355 GB, free: 11.08 MB / 0.5417 GB make -j1 -f Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.makefile (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)