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") [: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.6913/0.6913, allocations: 132.4 MB / 139.7 MB, free: 5.039 MB / 115 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001169/0.001169, allocations: 172.4 kB / 171.6 MB, free: 15.45 MB / 147 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.397/1.397, allocations: 170.5 MB / 373.9 MB, free: 15.44 MB / 291 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001746/0.001746, allocations: 101.3 kB / 444.4 MB, free: 26.68 MB / 339 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.5031/0.5031, allocations: 73.37 MB / 0.666 GB, free: 89.01 MB / 467 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1509/0.6541, allocations: 119.5 MB / 0.7828 GB, free: 1.289 MB / 499 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002763/0.6545, allocations: 87.94 kB / 0.7828 GB, free: 1.203 MB / 499 MB Notification: Performance of FrontEnd: time 0.4261/1.081, allocations: 27.19 MB / 0.8094 GB, free: 90.78 MB / 0.5029 GB Notification: Performance of Transformations before backend: time 4.355e-05/1.081, allocations: 11.19 kB / 0.8094 GB, free: 90.78 MB / 0.5029 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.002106/1.083, allocations: 0.8345 MB / 0.8102 GB, free: 90.2 MB / 0.5029 GB Notification: Performance of prepare preOptimizeDAE: time 5.954e-05/1.083, allocations: 8.938 kB / 0.8102 GB, free: 90.2 MB / 0.5029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001286/1.084, allocations: 149.1 kB / 0.8104 GB, free: 90.16 MB / 0.5029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009394/1.085, allocations: 435.9 kB / 0.8108 GB, free: 89.9 MB / 0.5029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.266e-05/1.085, allocations: 15.59 kB / 0.8108 GB, free: 89.9 MB / 0.5029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001333/1.085, allocations: 31.22 kB / 0.8108 GB, free: 89.9 MB / 0.5029 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009312/1.086, allocations: 471.3 kB / 0.8113 GB, free: 89.89 MB / 0.5029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001006/1.087, allocations: 0.5905 MB / 0.8119 GB, free: 89.78 MB / 0.5029 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.024e-05/1.087, allocations: 4 kB / 0.8119 GB, free: 89.77 MB / 0.5029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.317e-05/1.087, allocations: 7.719 kB / 0.8119 GB, free: 89.77 MB / 0.5029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.531e-05/1.087, allocations: 46.91 kB / 0.8119 GB, free: 89.77 MB / 0.5029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003393/1.091, allocations: 2.26 MB / 0.8141 GB, free: 88.65 MB / 0.5029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001142/1.092, allocations: 0.5253 MB / 0.8146 GB, free: 88.59 MB / 0.5029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004317/1.092, allocations: 237.3 kB / 0.8149 GB, free: 88.58 MB / 0.5029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005025/1.093, allocations: 0.56 MB / 0.8154 GB, free: 87.92 MB / 0.5029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005846/1.094, allocations: 346.2 kB / 0.8157 GB, free: 87.85 MB / 0.5029 GB Notification: Performance of pre-optimization done (n=49): time 3.897e-06/1.094, allocations: 0 / 0.8157 GB, free: 87.85 MB / 0.5029 GB Notification: Performance of matching and sorting (n=49): time 0.001165/1.095, allocations: 0.4978 MB / 0.8162 GB, free: 87.78 MB / 0.5029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.486e-05/1.095, allocations: 87.14 kB / 0.8163 GB, free: 87.68 MB / 0.5029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000579/1.095, allocations: 279.1 kB / 0.8166 GB, free: 87.59 MB / 0.5029 GB Notification: Performance of collectPreVariables (initialization): time 8.105e-05/1.096, allocations: 33.02 kB / 0.8166 GB, free: 87.55 MB / 0.5029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002178/1.096, allocations: 234.8 kB / 0.8168 GB, free: 87.39 MB / 0.5029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001832/1.096, allocations: 154.3 kB / 0.817 GB, free: 87.29 MB / 0.5029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.222e-05/1.096, allocations: 4.531 kB / 0.817 GB, free: 87.29 MB / 0.5029 GB Notification: Performance of setup shared object (initialization): time 0.0001505/1.096, allocations: 356.6 kB / 0.8173 GB, free: 86.98 MB / 0.5029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005322/1.097, allocations: 217.3 kB / 0.8175 GB, free: 86.97 MB / 0.5029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006218/1.097, allocations: 340.4 kB / 0.8178 GB, free: 86.84 MB / 0.5029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006206/1.098, allocations: 244.6 kB / 0.8181 GB, free: 86.83 MB / 0.5029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.855e-06/1.098, allocations: 5.219 kB / 0.8181 GB, free: 86.83 MB / 0.5029 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001257/1.099, allocations: 0.5919 MB / 0.8187 GB, free: 86.75 MB / 0.5029 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003168/1.1, allocations: 1.047 MB / 0.8197 GB, free: 85.66 MB / 0.5029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.256e-05/1.1, allocations: 7.938 kB / 0.8197 GB, free: 85.65 MB / 0.5029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.978e-05/1.1, allocations: 8.594 kB / 0.8197 GB, free: 85.65 MB / 0.5029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006246/1.1, allocations: 115 kB / 0.8198 GB, free: 85.64 MB / 0.5029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.692e-05/1.1, allocations: 6.031 kB / 0.8198 GB, free: 85.64 MB / 0.5029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005818/1.101, allocations: 57.34 kB / 0.8199 GB, free: 85.62 MB / 0.5029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.078e-05/1.101, allocations: 18.91 kB / 0.8199 GB, free: 85.62 MB / 0.5029 GB Notification: Performance of prepare postOptimizeDAE: time 1.156e-05/1.101, allocations: 3.75 kB / 0.8199 GB, free: 85.62 MB / 0.5029 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009217/1.102, allocations: 471 kB / 0.8203 GB, free: 85.6 MB / 0.5029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.755e-06/1.102, allocations: 2.375 kB / 0.8203 GB, free: 85.6 MB / 0.5029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.719e-05/1.102, allocations: 11.41 kB / 0.8204 GB, free: 85.59 MB / 0.5029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004894/1.102, allocations: 107.7 kB / 0.8205 GB, free: 85.58 MB / 0.5029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.296e-05/1.102, allocations: 6.125 kB / 0.8205 GB, free: 85.58 MB / 0.5029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005033/1.103, allocations: 51.84 kB / 0.8205 GB, free: 85.57 MB / 0.5029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.671e-05/1.103, allocations: 23.58 kB / 0.8205 GB, free: 85.56 MB / 0.5029 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.0002173/1.103, allocations: 123.4 kB / 0.8207 GB, free: 85.45 MB / 0.5029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001104/1.103, allocations: 46.75 kB / 0.8207 GB, free: 85.43 MB / 0.5029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001139/1.105, allocations: 0.5411 MB / 0.8212 GB, free: 85.37 MB / 0.5029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.499e-05/1.105, allocations: 9.031 kB / 0.8212 GB, free: 85.36 MB / 0.5029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.056e-05/1.105, allocations: 9.188 kB / 0.8212 GB, free: 85.36 MB / 0.5029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.084e-05/1.105, allocations: 2.766 kB / 0.8212 GB, free: 85.36 MB / 0.5029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008305/1.105, allocations: 0.5486 MB / 0.8218 GB, free: 85.18 MB / 0.5029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/1.105, allocations: 5.188 kB / 0.8218 GB, free: 85.18 MB / 0.5029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005518/1.106, allocations: 87.31 kB / 0.8219 GB, free: 85.17 MB / 0.5029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.072e-05/1.106, allocations: 3.734 kB / 0.8219 GB, free: 85.17 MB / 0.5029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.47e-05/1.106, allocations: 4.281 kB / 0.8219 GB, free: 85.17 MB / 0.5029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.528e-06/1.106, allocations: 2.5 kB / 0.8219 GB, free: 85.17 MB / 0.5029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/1.106, allocations: 1.281 kB / 0.8219 GB, free: 85.17 MB / 0.5029 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001479/1.108, allocations: 0.8633 MB / 0.8227 GB, free: 85.04 MB / 0.5029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003308/1.108, allocations: 181.6 kB / 0.8229 GB, free: 84.92 MB / 0.5029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001431/1.108, allocations: 7.281 kB / 0.8229 GB, free: 84.92 MB / 0.5029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004432/1.109, allocations: 31.27 kB / 0.8229 GB, free: 84.91 MB / 0.5029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002107/1.109, allocations: 48.3 kB / 0.823 GB, free: 84.91 MB / 0.5029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.464e-05/1.109, allocations: 19.7 kB / 0.823 GB, free: 84.91 MB / 0.5029 GB Notification: Performance of sort global known variables: time 0.000399/1.109, allocations: 220.8 kB / 0.8232 GB, free: 84.83 MB / 0.5029 GB Notification: Performance of remove unused functions: time 0.001324/1.111, allocations: 246.7 kB / 0.8234 GB, free: 84.78 MB / 0.5029 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.0003704/1.111, allocations: 139.9 kB / 0.8236 GB, free: 84.68 MB / 0.5029 GB Notification: Performance of simCode: created initialization part: time 0.002085/1.113, allocations: 0.8598 MB / 0.8244 GB, free: 84.58 MB / 0.5029 GB Notification: Performance of simCode: created event and clocks part: time 7.554e-06/1.113, allocations: 1.312 kB / 0.8244 GB, free: 84.58 MB / 0.5029 GB Notification: Performance of simCode: created simulation system equations: time 0.000595/1.114, allocations: 264.2 kB / 0.8247 GB, free: 84.57 MB / 0.5029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009618/1.115, allocations: 135.1 kB / 0.8248 GB, free: 84.56 MB / 0.5029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002768/1.117, allocations: 0.8643 MB / 0.8256 GB, free: 84.33 MB / 0.5029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008641/1.118, allocations: 0.9589 MB / 0.8266 GB, free: 83.61 MB / 0.5029 GB Notification: Performance of SimCode: time 2.084e-06/1.118, allocations: 7.938 kB / 0.8266 GB, free: 83.6 MB / 0.5029 GB Notification: Performance of Templates: time 0.02257/1.141, allocations: 10.42 MB / 0.8368 GB, free: 78.34 MB / 0.5029 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)