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/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.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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 3.0.0/package.mo): time 0.7327/0.7327, allocations: 132.4 MB / 139.7 MB, free: 15.54 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.001008/0.001008, allocations: 171.9 kB / 171.6 MB, free: 2.004 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.385/1.385, allocations: 170.5 MB / 373.9 MB, free: 15.86 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.001673/0.001673, allocations: 111.1 kB / 444.4 MB, free: 9.395 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.4314/0.4315, allocations: 73.39 MB / 0.666 GB, free: 62.26 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.144/0.5756, allocations: 121 MB / 0.7842 GB, free: 15.23 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002705/0.5759, allocations: 94.27 kB / 0.7843 GB, free: 15.14 MB / 0.4948 GB Notification: Performance of FrontEnd: time 0.07587/0.6518, allocations: 29.07 MB / 0.8127 GB, free: 2 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 3.196e-05/0.6518, allocations: 19.94 kB / 0.8127 GB, free: 1.98 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.001577/0.6534, allocations: 0.8311 MB / 0.8135 GB, free: 1.098 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.6535, allocations: 8.031 kB / 0.8135 GB, free: 1.09 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000941/0.6544, allocations: 147 kB / 0.8136 GB, free: 0.9453 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000628/0.6551, allocations: 439.2 kB / 0.8141 GB, free: 484 kB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.685e-05/0.6551, allocations: 16 kB / 0.8141 GB, free: 468 kB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.889e-05/0.6552, allocations: 32 kB / 0.8141 GB, free: 436 kB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007567/0.6559, allocations: 462.2 kB / 0.8146 GB, free: 15.98 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008849/0.6568, allocations: 0.6008 MB / 0.8151 GB, free: 15.34 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.591e-05/0.6569, allocations: 3.938 kB / 0.8151 GB, free: 15.34 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.344e-05/0.6569, allocations: 11.98 kB / 0.8152 GB, free: 15.32 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.808e-05/0.657, allocations: 42.78 kB / 0.8152 GB, free: 15.29 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00288/0.6599, allocations: 2.255 MB / 0.8174 GB, free: 12.93 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007715/0.6607, allocations: 0.5263 MB / 0.8179 GB, free: 12.38 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003224/0.661, allocations: 235 kB / 0.8181 GB, free: 12.14 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004519/0.6614, allocations: 0.5622 MB / 0.8187 GB, free: 11.45 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004723/0.6619, allocations: 347 kB / 0.819 GB, free: 11.1 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=49): time 2.054e-06/0.6619, allocations: 0 / 0.819 GB, free: 11.1 MB / 0.5261 GB Notification: Performance of matching and sorting (n=49): time 0.0008911/0.6628, allocations: 0.5024 MB / 0.8195 GB, free: 10.59 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.051e-05/0.6629, allocations: 81.55 kB / 0.8196 GB, free: 10.49 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003012/0.6632, allocations: 278.1 kB / 0.8199 GB, free: 10.22 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 5.907e-05/0.6633, allocations: 37.69 kB / 0.8199 GB, free: 10.18 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001526/0.6634, allocations: 240.3 kB / 0.8201 GB, free: 9.934 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001254/0.6636, allocations: 150 kB / 0.8203 GB, free: 9.785 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.719e-05/0.6636, allocations: 0 / 0.8203 GB, free: 9.785 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001344/0.6638, allocations: 354.8 kB / 0.8206 GB, free: 9.43 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003278/0.6641, allocations: 213.3 kB / 0.8208 GB, free: 9.219 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004177/0.6645, allocations: 338 kB / 0.8211 GB, free: 8.844 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004134/0.6649, allocations: 248.6 kB / 0.8214 GB, free: 8.605 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.6649, allocations: 3.938 kB / 0.8214 GB, free: 8.602 MB / 0.5261 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008997/0.6658, allocations: 0.5911 MB / 0.8219 GB, free: 8.004 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003838/0.6662, allocations: 1.059 MB / 0.823 GB, free: 6.863 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/0.6663, allocations: 8 kB / 0.823 GB, free: 6.855 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.63e-05/0.6663, allocations: 4 kB / 0.823 GB, free: 6.852 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000557/0.6668, allocations: 115.7 kB / 0.8231 GB, free: 6.738 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.967e-06/0.6669, allocations: 8 kB / 0.8231 GB, free: 6.73 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00047/0.6673, allocations: 55.64 kB / 0.8232 GB, free: 6.676 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.926e-05/0.6674, allocations: 23.98 kB / 0.8232 GB, free: 6.652 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 5.781e-06/0.6674, allocations: 4 kB / 0.8232 GB, free: 6.648 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007513/0.6682, allocations: 467.8 kB / 0.8236 GB, free: 6.191 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.006e-06/0.6682, allocations: 4.25 kB / 0.8236 GB, free: 6.188 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.045e-06/0.6682, allocations: 15.91 kB / 0.8236 GB, free: 6.172 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000441/0.6686, allocations: 103.8 kB / 0.8237 GB, free: 6.07 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.919e-06/0.6687, allocations: 4 kB / 0.8238 GB, free: 6.066 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003872/0.669, allocations: 51.66 kB / 0.8238 GB, free: 6.016 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.13e-05/0.6691, allocations: 23.98 kB / 0.8238 GB, free: 5.992 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.0001465/0.6693, allocations: 126.8 kB / 0.8239 GB, free: 5.863 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.022e-05/0.6693, allocations: 47.44 kB / 0.824 GB, free: 5.816 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009202/0.6703, allocations: 0.5385 MB / 0.8245 GB, free: 5.277 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.047e-05/0.6703, allocations: 7.906 kB / 0.8245 GB, free: 5.27 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.6703, allocations: 4 kB / 0.8245 GB, free: 5.266 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.576e-06/0.6703, allocations: 3.984 kB / 0.8245 GB, free: 5.262 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006398/0.6709, allocations: 0.541 MB / 0.8251 GB, free: 4.684 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.671, allocations: 48 / 0.8251 GB, free: 4.684 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005366/0.6715, allocations: 95.8 kB / 0.8252 GB, free: 4.59 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.131e-06/0.6715, allocations: 4 kB / 0.8252 GB, free: 4.586 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.773e-05/0.6716, allocations: 4.188 kB / 0.8252 GB, free: 4.582 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.546e-06/0.6716, allocations: 4 kB / 0.8252 GB, free: 4.578 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.6716, allocations: 4 kB / 0.8252 GB, free: 4.574 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001269/0.6729, allocations: 0.8614 MB / 0.826 GB, free: 3.684 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002162/0.6731, allocations: 184.3 kB / 0.8262 GB, free: 3.484 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.534e-05/0.6732, allocations: 8 kB / 0.8262 GB, free: 3.477 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003489/0.6735, allocations: 27.97 kB / 0.8262 GB, free: 3.449 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001346/0.6737, allocations: 48.36 kB / 0.8263 GB, free: 3.402 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.954e-05/0.6737, allocations: 12 kB / 0.8263 GB, free: 3.391 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0002076/0.6739, allocations: 224.6 kB / 0.8265 GB, free: 3.172 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0007361/0.6747, allocations: 255 kB / 0.8267 GB, free: 2.922 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.0002357/0.6749, allocations: 143.9 kB / 0.8269 GB, free: 2.77 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001271/0.6762, allocations: 0.8501 MB / 0.8277 GB, free: 1.906 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.6762, allocations: 0 / 0.8277 GB, free: 1.906 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0003803/0.6766, allocations: 265.5 kB / 0.828 GB, free: 1.645 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007279/0.6773, allocations: 142.5 kB / 0.8281 GB, free: 1.512 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001845/0.6792, allocations: 0.8632 MB / 0.8289 GB, free: 0.625 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006947/0.6799, allocations: 0.9615 MB / 0.8299 GB, free: 15.63 MB / 0.5417 GB Notification: Performance of SimCode: time 2.81e-07/0.6799, allocations: 0 / 0.8299 GB, free: 15.63 MB / 0.5417 GB Notification: Performance of Templates: time 0.01696/0.6969, allocations: 10.4 MB / 0.84 GB, free: 5.312 MB / 0.5417 GB make -j1 -f Buildings_3.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.makefile (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)