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.702/0.702, allocations: 132.3 MB / 144.9 MB, free: 10.7 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.001012/0.001012, allocations: 177.5 kB / 176.9 MB, free: 2.203 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.202/1.202, allocations: 170.5 MB / 379.3 MB, free: 11.93 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.001602/0.001602, allocations: 107.9 kB / 450 MB, free: 5.848 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.369/0.369, allocations: 73.39 MB / 0.6736 GB, free: 47.92 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1322/0.5012, allocations: 120.3 MB / 0.7911 GB, free: 12.41 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002418/0.5015, allocations: 93.89 kB / 0.7911 GB, free: 12.32 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.06679/0.5683, allocations: 27.74 MB / 0.8182 GB, free: 0.5 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.683e-06/0.5684, allocations: 3.938 kB / 0.8182 GB, free: 0.4961 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 3.127e-05/0.5684, allocations: 19.94 kB / 0.8183 GB, free: 488 kB / 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.001456/0.5699, allocations: 0.8222 MB / 0.8191 GB, free: 15.6 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.03e-05/0.5699, allocations: 12.03 kB / 0.8191 GB, free: 15.59 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007861/0.5707, allocations: 146.7 kB / 0.8192 GB, free: 15.45 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006647/0.5714, allocations: 435.2 kB / 0.8196 GB, free: 14.98 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.405e-05/0.5714, allocations: 44.98 kB / 0.8197 GB, free: 14.94 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.126e-05/0.5715, allocations: 51.98 kB / 0.8197 GB, free: 14.89 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001045/0.5726, allocations: 0.6497 MB / 0.8204 GB, free: 14.21 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.589e-05/0.5726, allocations: 3.938 kB / 0.8204 GB, free: 14.2 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.913e-05/0.5727, allocations: 23.98 kB / 0.8204 GB, free: 14.18 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.824e-05/0.5728, allocations: 48.97 kB / 0.8204 GB, free: 14.13 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008334/0.5736, allocations: 0.5218 MB / 0.8209 GB, free: 13.61 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00315/0.5768, allocations: 2.381 MB / 0.8233 GB, free: 11.11 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008428/0.5776, allocations: 0.5409 MB / 0.8238 GB, free: 10.55 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003408/0.578, allocations: 245.6 kB / 0.824 GB, free: 10.3 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004556/0.5784, allocations: 0.57 MB / 0.8246 GB, free: 9.605 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005725/0.579, allocations: 375.9 kB / 0.8249 GB, free: 9.223 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=49): time 2.414e-06/0.579, allocations: 0 / 0.8249 GB, free: 9.223 MB / 0.5261 GB Notification: Performance of matching and sorting (n=49): time 0.0008527/0.5799, allocations: 0.5189 MB / 0.8254 GB, free: 8.695 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.38e-05/0.58, allocations: 89.81 kB / 0.8255 GB, free: 8.59 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003344/0.5803, allocations: 295.6 kB / 0.8258 GB, free: 8.289 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 6.132e-05/0.5804, allocations: 45.7 kB / 0.8259 GB, free: 8.238 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001948/0.5806, allocations: 276.4 kB / 0.8261 GB, free: 7.965 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001404/0.5807, allocations: 161.8 kB / 0.8263 GB, free: 7.805 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.88e-05/0.5808, allocations: 8 kB / 0.8263 GB, free: 7.797 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.000151/0.5809, allocations: 358.8 kB / 0.8266 GB, free: 7.438 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000349/0.5813, allocations: 217.1 kB / 0.8268 GB, free: 7.227 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004283/0.5817, allocations: 353.2 kB / 0.8272 GB, free: 6.84 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000391/0.5821, allocations: 269.5 kB / 0.8274 GB, free: 6.57 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.5821, allocations: 0 / 0.8274 GB, free: 6.57 MB / 0.5261 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0009823/0.5831, allocations: 0.6631 MB / 0.8281 GB, free: 5.895 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004408/0.5836, allocations: 1.072 MB / 0.8291 GB, free: 4.734 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.5836, allocations: 4 kB / 0.8291 GB, free: 4.73 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.891e-05/0.5836, allocations: 7.953 kB / 0.8291 GB, free: 4.723 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005286/0.5841, allocations: 119.8 kB / 0.8292 GB, free: 4.605 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.134e-05/0.5842, allocations: 4 kB / 0.8292 GB, free: 4.602 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004417/0.5846, allocations: 71.56 kB / 0.8293 GB, free: 4.531 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.316e-05/0.5847, allocations: 23.98 kB / 0.8293 GB, free: 4.508 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 5.65e-06/0.5847, allocations: 4 kB / 0.8293 GB, free: 4.504 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00081/0.5855, allocations: 0.5525 MB / 0.8299 GB, free: 3.945 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.5855, allocations: 8.062 kB / 0.8299 GB, free: 3.938 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.963e-06/0.5855, allocations: 4 kB / 0.8299 GB, free: 3.934 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004118/0.5859, allocations: 107.8 kB / 0.83 GB, free: 3.828 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.095e-06/0.586, allocations: 7.984 kB / 0.83 GB, free: 3.82 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003642/0.5863, allocations: 63.83 kB / 0.8301 GB, free: 3.758 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.369e-05/0.5864, allocations: 24 kB / 0.8301 GB, free: 3.734 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.000151/0.5865, allocations: 151 kB / 0.8302 GB, free: 3.578 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.787e-05/0.5866, allocations: 39.53 kB / 0.8303 GB, free: 3.539 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009185/0.5875, allocations: 0.5694 MB / 0.8308 GB, free: 2.969 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.5876, allocations: 7.938 kB / 0.8308 GB, free: 2.961 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.5876, allocations: 0 / 0.8308 GB, free: 2.961 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.314e-06/0.5876, allocations: 3.984 kB / 0.8308 GB, free: 2.957 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006726/0.5883, allocations: 0.6263 MB / 0.8315 GB, free: 2.281 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.5883, allocations: 0 / 0.8315 GB, free: 2.281 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004765/0.5887, allocations: 99.84 kB / 0.8315 GB, free: 2.184 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.977e-06/0.5888, allocations: 3.938 kB / 0.8315 GB, free: 2.18 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.427e-05/0.5888, allocations: 12 kB / 0.8316 GB, free: 2.168 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.759e-06/0.5888, allocations: 4 kB / 0.8316 GB, free: 2.164 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.5888, allocations: 3.938 kB / 0.8316 GB, free: 2.16 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001175/0.59, allocations: 0.8735 MB / 0.8324 GB, free: 1.258 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002092/0.5902, allocations: 176.4 kB / 0.8326 GB, free: 1.066 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.585e-05/0.5903, allocations: 12 kB / 0.8326 GB, free: 1.055 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003232/0.5906, allocations: 39.95 kB / 0.8326 GB, free: 1.016 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001335/0.5908, allocations: 52.36 kB / 0.8327 GB, free: 0.9648 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.714e-05/0.5908, allocations: 19.98 kB / 0.8327 GB, free: 0.9453 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0002251/0.591, allocations: 234.2 kB / 0.8329 GB, free: 0.7227 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.5e-07/0.591, allocations: 0 / 0.8329 GB, free: 0.7227 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0006563/0.5917, allocations: 291 kB / 0.8332 GB, free: 448 kB / 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.0001963/0.5919, allocations: 138.3 kB / 0.8333 GB, free: 304 kB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001229/0.5931, allocations: 0.9452 MB / 0.8343 GB, free: 15.32 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.5932, allocations: 0 / 0.8343 GB, free: 15.32 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.000353/0.5935, allocations: 262.4 kB / 0.8345 GB, free: 15.07 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006709/0.5942, allocations: 149.3 kB / 0.8347 GB, free: 14.92 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001517/0.5957, allocations: 0.8548 MB / 0.8355 GB, free: 14.05 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004768/0.5962, allocations: 0.9074 MB / 0.8364 GB, free: 13.11 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.000616/0.5968, allocations: 168.8 kB / 0.8365 GB, free: 12.95 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001427/0.597, allocations: 35.44 kB / 0.8366 GB, free: 12.91 MB / 0.5417 GB Notification: Performance of SimCode: time 6.11e-07/0.597, allocations: 0 / 0.8366 GB, free: 12.91 MB / 0.5417 GB Notification: Performance of Templates: time 0.01289/0.6099, allocations: 8.25 MB / 0.8446 GB, free: 4.707 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)