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.2169/0.218, allocations: 82.22 MB / 0.5935 GB, free: 5.945 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery): time 0.005161/0.2232, allocations: 3.848 MB / 0.5972 GB, free: 2.074 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.003686/0.2269, allocations: 2.199 MB / 0.5994 GB, free: 15.87 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003295/0.2273, allocations: 11.94 kB / 0.5994 GB, free: 15.86 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002961/0.2276, allocations: 67.42 kB / 0.5995 GB, free: 15.79 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007802/0.2284, allocations: 278.5 kB / 0.5997 GB, free: 15.52 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008971/0.2293, allocations: 299.4 kB / 0.6 GB, free: 15.22 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008945/0.2302, allocations: 0.8331 MB / 0.6008 GB, free: 14.39 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001194/0.2314, allocations: 0.7139 MB / 0.6015 GB, free: 13.64 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003966/0.2318, allocations: 235 kB / 0.6017 GB, free: 13.41 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005882/0.2324, allocations: 326.7 kB / 0.6021 GB, free: 13.09 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 6.138e-05/0.2325, allocations: 24 kB / 0.6021 GB, free: 13.06 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004351/0.2329, allocations: 183.8 kB / 0.6023 GB, free: 12.88 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001734/0.2331, allocations: 147.5 kB / 0.6024 GB, free: 12.74 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001297/0.2332, allocations: 129.4 kB / 0.6025 GB, free: 12.61 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006698/0.2339, allocations: 0.721 MB / 0.6032 GB, free: 11.88 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.2339, allocations: 0 / 0.6032 GB, free: 11.88 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.2339, allocations: 3.938 kB / 0.6032 GB, free: 11.88 MB / 462.1 MB Notification: Performance of Transformations before backend: time 8.636e-06/0.234, allocations: 4 kB / 0.6032 GB, free: 11.88 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.001585/0.2355, allocations: 0.8325 MB / 0.604 GB, free: 10.98 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.49e-05/0.2356, allocations: 15.95 kB / 0.6041 GB, free: 10.97 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006317/0.2362, allocations: 123.2 kB / 0.6042 GB, free: 10.85 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005649/0.2368, allocations: 425.8 kB / 0.6046 GB, free: 10.39 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.273e-05/0.2369, allocations: 44.98 kB / 0.6046 GB, free: 10.35 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.969e-05/0.237, allocations: 48 kB / 0.6047 GB, free: 10.3 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001124/0.2381, allocations: 0.6887 MB / 0.6053 GB, free: 9.574 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.739e-05/0.2381, allocations: 3.938 kB / 0.6053 GB, free: 9.57 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.316e-05/0.2382, allocations: 24 kB / 0.6054 GB, free: 9.547 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.208e-05/0.2383, allocations: 52.97 kB / 0.6054 GB, free: 9.496 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000974/0.2393, allocations: 0.566 MB / 0.606 GB, free: 8.93 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003058/0.2423, allocations: 2.358 MB / 0.6083 GB, free: 6.457 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00105/0.2434, allocations: 0.5692 MB / 0.6088 GB, free: 5.871 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004374/0.2438, allocations: 253.6 kB / 0.6091 GB, free: 5.617 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005399/0.2444, allocations: 0.5662 MB / 0.6096 GB, free: 4.922 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007208/0.2451, allocations: 405.2 kB / 0.61 GB, free: 4.508 MB / 462.1 MB Notification: Performance of pre-optimization done (n=46): time 4.529e-06/0.2451, allocations: 0 / 0.61 GB, free: 4.508 MB / 462.1 MB Notification: Performance of matching and sorting (n=46): time 0.001436/0.2466, allocations: 0.7498 MB / 0.6107 GB, free: 3.75 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.327e-05/0.2467, allocations: 85.05 kB / 0.6108 GB, free: 3.648 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003809/0.2471, allocations: 345.6 kB / 0.6112 GB, free: 3.305 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 6.099e-05/0.2471, allocations: 41.7 kB / 0.6112 GB, free: 3.258 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002203/0.2473, allocations: 284.5 kB / 0.6115 GB, free: 2.973 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001359/0.2475, allocations: 149.9 kB / 0.6116 GB, free: 2.824 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.251e-05/0.2475, allocations: 12 kB / 0.6116 GB, free: 2.812 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000169/0.2477, allocations: 350.8 kB / 0.612 GB, free: 2.461 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000444/0.2482, allocations: 241 kB / 0.6122 GB, free: 2.227 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005088/0.2487, allocations: 358.7 kB / 0.6125 GB, free: 1.836 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004963/0.2492, allocations: 298.3 kB / 0.6128 GB, free: 1.539 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.2492, allocations: 0 / 0.6128 GB, free: 1.539 MB / 462.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001139/0.2503, allocations: 0.6871 MB / 0.6135 GB, free: 0.8398 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001488/0.2505, allocations: 197 kB / 0.6137 GB, free: 0.6016 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.2505, allocations: 0 / 0.6137 GB, free: 0.6016 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.134e-05/0.2506, allocations: 8 kB / 0.6137 GB, free: 0.5938 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005102/0.2511, allocations: 115.8 kB / 0.6138 GB, free: 492 kB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.647e-05/0.2511, allocations: 11.92 kB / 0.6138 GB, free: 480 kB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004399/0.2515, allocations: 79.48 kB / 0.6139 GB, free: 400 kB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.297e-05/0.2516, allocations: 19.98 kB / 0.6139 GB, free: 380 kB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.681e-06/0.2516, allocations: 7.938 kB / 0.6139 GB, free: 372 kB / 462.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009901/0.2526, allocations: 0.5798 MB / 0.6145 GB, free: 15.78 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.577e-06/0.2526, allocations: 0 / 0.6145 GB, free: 15.78 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.031e-05/0.2526, allocations: 11.95 kB / 0.6145 GB, free: 15.77 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004068/0.2531, allocations: 107.8 kB / 0.6146 GB, free: 15.66 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.426e-06/0.2531, allocations: 4 kB / 0.6146 GB, free: 15.66 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000342/0.2534, allocations: 75.67 kB / 0.6147 GB, free: 15.58 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.531e-05/0.2535, allocations: 20 kB / 0.6147 GB, free: 15.56 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.0003284/0.2538, allocations: 296 kB / 0.615 GB, free: 15.26 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.427e-05/0.2539, allocations: 47.52 kB / 0.615 GB, free: 15.21 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001109/0.255, allocations: 0.6022 MB / 0.6156 GB, free: 14.61 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.728e-06/0.255, allocations: 8 kB / 0.6156 GB, free: 14.6 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.255, allocations: 0 / 0.6156 GB, free: 14.6 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.696e-06/0.2551, allocations: 3.984 kB / 0.6156 GB, free: 14.6 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002138/0.2572, allocations: 1.373 MB / 0.6169 GB, free: 13.17 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.2572, allocations: 0 / 0.6169 GB, free: 13.17 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000421/0.2576, allocations: 95.8 kB / 0.617 GB, free: 13.07 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.107e-06/0.2577, allocations: 0 / 0.617 GB, free: 13.07 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.569e-05/0.2577, allocations: 16 kB / 0.6171 GB, free: 13.06 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.789e-06/0.2577, allocations: 4 kB / 0.6171 GB, free: 13.05 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.2577, allocations: 0 / 0.6171 GB, free: 13.05 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001448/0.2592, allocations: 0.9675 MB / 0.618 GB, free: 12.07 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001887/0.2594, allocations: 176.4 kB / 0.6182 GB, free: 11.88 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.906e-05/0.2594, allocations: 16 kB / 0.6182 GB, free: 11.86 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003149/0.2598, allocations: 39.94 kB / 0.6182 GB, free: 11.82 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001327/0.2599, allocations: 52.3 kB / 0.6183 GB, free: 11.77 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.472e-05/0.26, allocations: 24 kB / 0.6183 GB, free: 11.75 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0002401/0.2602, allocations: 239.2 kB / 0.6185 GB, free: 11.51 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2602, allocations: 0 / 0.6185 GB, free: 11.51 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.000764/0.261, allocations: 263.1 kB / 0.6188 GB, free: 11.25 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.00022/0.2612, allocations: 143.8 kB / 0.6189 GB, free: 11.1 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001702/0.2629, allocations: 0.9763 MB / 0.6199 GB, free: 10.11 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.09e-06/0.2629, allocations: 4.125 kB / 0.6199 GB, free: 10.1 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004829/0.2634, allocations: 286.3 kB / 0.6201 GB, free: 9.82 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008228/0.2643, allocations: 166.2 kB / 0.6203 GB, free: 9.66 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002244/0.2665, allocations: 1.317 MB / 0.6216 GB, free: 8.32 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000513/0.267, allocations: 0.8955 MB / 0.6225 GB, free: 7.398 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0005275/0.2676, allocations: 148.3 kB / 0.6226 GB, free: 7.25 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001613/0.2677, allocations: 43.42 kB / 0.6226 GB, free: 7.207 MB / 478.1 MB Notification: Performance of SimCode: time 6.41e-07/0.2678, allocations: 4 kB / 0.6226 GB, free: 7.203 MB / 478.1 MB Notification: Performance of Templates: time 0.01428/0.282, allocations: 7.784 MB / 0.6302 GB, free: 15.52 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: