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.2178/0.2185, allocations: 82.22 MB / 0.5935 GB, free: 5.953 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery): time 0.006871/0.2255, allocations: 5.304 MB / 0.5987 GB, free: 0.6211 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.004456/0.23, allocations: 2.215 MB / 0.6008 GB, free: 14.4 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005692/0.2306, allocations: 11.94 kB / 0.6008 GB, free: 14.39 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000339/0.2309, allocations: 67.42 kB / 0.6009 GB, free: 14.32 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001037/0.232, allocations: 282.5 kB / 0.6012 GB, free: 14.04 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001062/0.2331, allocations: 291.5 kB / 0.6014 GB, free: 13.76 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.00118/0.2343, allocations: 0.8332 MB / 0.6023 GB, free: 12.92 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001466/0.2357, allocations: 0.7144 MB / 0.603 GB, free: 12.17 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004903/0.2362, allocations: 239 kB / 0.6032 GB, free: 11.93 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006395/0.2369, allocations: 314.7 kB / 0.6035 GB, free: 11.62 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 9.822e-05/0.237, allocations: 20 kB / 0.6035 GB, free: 11.61 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004468/0.2375, allocations: 187.7 kB / 0.6037 GB, free: 11.42 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001773/0.2376, allocations: 143.5 kB / 0.6038 GB, free: 11.28 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001674/0.2378, allocations: 129.4 kB / 0.6039 GB, free: 11.15 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008007/0.2386, allocations: 0.7443 MB / 0.6047 GB, free: 10.4 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.793e-06/0.2386, allocations: 0 / 0.6047 GB, free: 10.4 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.2387, allocations: 0 / 0.6047 GB, free: 10.4 MB / 462.1 MB Notification: Performance of Transformations before backend: time 2.692e-05/0.2387, allocations: 0 / 0.6047 GB, free: 10.4 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.001846/0.2405, allocations: 0.817 MB / 0.6055 GB, free: 9.527 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/0.2406, allocations: 12.03 kB / 0.6055 GB, free: 9.516 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006553/0.2412, allocations: 135 kB / 0.6056 GB, free: 9.383 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005539/0.2418, allocations: 421.9 kB / 0.606 GB, free: 8.93 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.402e-05/0.2419, allocations: 40.98 kB / 0.606 GB, free: 8.891 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.792e-05/0.2419, allocations: 48 kB / 0.6061 GB, free: 8.844 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001109/0.2431, allocations: 0.6926 MB / 0.6068 GB, free: 8.113 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.711e-05/0.2431, allocations: 0 / 0.6068 GB, free: 8.113 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.349e-05/0.2432, allocations: 31.98 kB / 0.6068 GB, free: 8.082 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.399e-05/0.2432, allocations: 44.97 kB / 0.6068 GB, free: 8.039 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009884/0.2442, allocations: 0.5699 MB / 0.6074 GB, free: 7.469 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002979/0.2472, allocations: 2.365 MB / 0.6097 GB, free: 4.988 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001016/0.2483, allocations: 0.5691 MB / 0.6103 GB, free: 4.402 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004121/0.2487, allocations: 261.6 kB / 0.6105 GB, free: 4.141 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000487/0.2492, allocations: 0.5622 MB / 0.6111 GB, free: 3.449 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006502/0.2498, allocations: 401 kB / 0.6114 GB, free: 3.039 MB / 462.1 MB Notification: Performance of pre-optimization done (n=46): time 2.224e-06/0.2499, allocations: 4 kB / 0.6115 GB, free: 3.035 MB / 462.1 MB Notification: Performance of matching and sorting (n=46): time 0.001387/0.2512, allocations: 0.7461 MB / 0.6122 GB, free: 2.281 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.579e-05/0.2513, allocations: 97.14 kB / 0.6123 GB, free: 2.168 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003554/0.2517, allocations: 341.7 kB / 0.6126 GB, free: 1.828 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 5.305e-05/0.2517, allocations: 41.7 kB / 0.6126 GB, free: 1.781 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002116/0.252, allocations: 284.3 kB / 0.6129 GB, free: 1.496 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001211/0.2521, allocations: 142 kB / 0.613 GB, free: 1.355 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.958e-05/0.2521, allocations: 8 kB / 0.6131 GB, free: 1.348 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001467/0.2523, allocations: 358.8 kB / 0.6134 GB, free: 0.9883 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004262/0.2527, allocations: 241 kB / 0.6136 GB, free: 0.7539 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005136/0.2532, allocations: 362.6 kB / 0.614 GB, free: 368 kB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004736/0.2537, allocations: 286.4 kB / 0.6142 GB, free: 76 kB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.579e-06/0.2537, allocations: 4 kB / 0.6142 GB, free: 72 kB / 462.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001133/0.2549, allocations: 0.691 MB / 0.6149 GB, free: 15.37 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001317/0.255, allocations: 196.9 kB / 0.6151 GB, free: 15.13 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.306e-06/0.255, allocations: 4 kB / 0.6151 GB, free: 15.12 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.078e-05/0.2551, allocations: 8 kB / 0.6151 GB, free: 15.12 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004891/0.2556, allocations: 115.8 kB / 0.6152 GB, free: 15 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.235e-05/0.2556, allocations: 4 kB / 0.6152 GB, free: 15 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004134/0.256, allocations: 75.47 kB / 0.6153 GB, free: 14.93 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.251e-05/0.256, allocations: 24 kB / 0.6153 GB, free: 14.9 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.564e-06/0.2561, allocations: 4 kB / 0.6153 GB, free: 14.9 MB / 478.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009712/0.257, allocations: 0.5756 MB / 0.6159 GB, free: 14.32 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.2571, allocations: 4 kB / 0.6159 GB, free: 14.31 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.155e-06/0.2571, allocations: 7.953 kB / 0.6159 GB, free: 14.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003925/0.2575, allocations: 112.1 kB / 0.616 GB, free: 14.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.754e-06/0.2575, allocations: 7.938 kB / 0.616 GB, free: 14.19 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003259/0.2578, allocations: 59.64 kB / 0.6161 GB, free: 14.13 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.787e-05/0.2579, allocations: 23.98 kB / 0.6161 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.0003182/0.2582, allocations: 304.4 kB / 0.6164 GB, free: 13.8 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.743e-05/0.2583, allocations: 55.47 kB / 0.6164 GB, free: 13.74 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001112/0.2594, allocations: 0.5946 MB / 0.617 GB, free: 13.14 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.704e-06/0.2594, allocations: 4 kB / 0.617 GB, free: 13.14 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.526e-06/0.2594, allocations: 4 kB / 0.617 GB, free: 13.14 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.628e-06/0.2594, allocations: 11.98 kB / 0.617 GB, free: 13.12 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002186/0.2616, allocations: 1.372 MB / 0.6184 GB, free: 11.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.2616, allocations: 4 kB / 0.6184 GB, free: 11.69 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004172/0.2621, allocations: 87.88 kB / 0.6185 GB, free: 11.61 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.246e-06/0.2621, allocations: 7.938 kB / 0.6185 GB, free: 11.6 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.83e-05/0.2621, allocations: 15.98 kB / 0.6185 GB, free: 11.58 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.2621, allocations: 0 / 0.6185 GB, free: 11.58 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.055e-06/0.2621, allocations: 4 kB / 0.6185 GB, free: 11.58 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001465/0.2636, allocations: 0.9714 MB / 0.6194 GB, free: 10.59 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002082/0.2638, allocations: 176.4 kB / 0.6196 GB, free: 10.39 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.149e-05/0.2639, allocations: 12 kB / 0.6196 GB, free: 10.38 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003133/0.2643, allocations: 43.95 kB / 0.6197 GB, free: 10.34 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001387/0.2644, allocations: 48.36 kB / 0.6197 GB, free: 10.29 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.543e-05/0.2644, allocations: 19.98 kB / 0.6197 GB, free: 10.27 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0002694/0.2647, allocations: 243.2 kB / 0.62 GB, free: 10.04 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.2647, allocations: 0 / 0.62 GB, free: 10.04 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0007403/0.2655, allocations: 267.1 kB / 0.6202 GB, free: 9.773 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.0002102/0.2657, allocations: 131.2 kB / 0.6203 GB, free: 9.633 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001544/0.2672, allocations: 0.9755 MB / 0.6213 GB, free: 8.637 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.2673, allocations: 0 / 0.6213 GB, free: 8.637 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004513/0.2677, allocations: 282.4 kB / 0.6216 GB, free: 8.359 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008174/0.2685, allocations: 165 kB / 0.6217 GB, free: 8.203 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002077/0.2706, allocations: 1.317 MB / 0.623 GB, free: 6.863 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000471/0.2711, allocations: 0.8955 MB / 0.6239 GB, free: 5.941 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0004927/0.2716, allocations: 144.3 kB / 0.624 GB, free: 5.797 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001435/0.2718, allocations: 43.44 kB / 0.6241 GB, free: 5.754 MB / 478.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2718, allocations: 0 / 0.6241 GB, free: 5.754 MB / 478.1 MB Notification: Performance of Templates: time 0.01262/0.2844, allocations: 7.801 MB / 0.6317 GB, free: 14.07 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: