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.808/0.808, allocations: 133.7 MB / 148.6 MB, free: 13.64 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.001201/0.001201, allocations: 168.1 kB / 180.8 MB, free: 15.07 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.633/1.633, allocations: 170.7 MB / 383.7 MB, free: 16.14 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.001643/0.001643, allocations: 115.1 kB / 454.6 MB, free: 9.703 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.1729/0.1734, allocations: 73.41 MB / 0.6812 GB, free: 5.535 MB / 474.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5304/0.7039, allocations: 120.3 MB / 0.7987 GB, free: 10.03 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002947/0.7043, allocations: 96.81 kB / 0.7988 GB, free: 9.973 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06773/0.772, allocations: 27.88 MB / 0.826 GB, free: 15.3 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.104e-06/0.7721, allocations: 0 / 0.826 GB, free: 15.3 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 3.863e-05/0.7721, allocations: 15.98 kB / 0.8261 GB, free: 15.28 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.001798/0.774, allocations: 0.8761 MB / 0.8269 GB, free: 14.35 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.774, allocations: 11.97 kB / 0.8269 GB, free: 14.34 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008501/0.7749, allocations: 154.5 kB / 0.8271 GB, free: 14.19 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007114/0.7756, allocations: 432.9 kB / 0.8275 GB, free: 13.73 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.032e-05/0.7756, allocations: 44.97 kB / 0.8275 GB, free: 13.68 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.813e-05/0.7757, allocations: 55.91 kB / 0.8276 GB, free: 13.63 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0012/0.7769, allocations: 0.6808 MB / 0.8282 GB, free: 12.91 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.741e-05/0.777, allocations: 7.938 kB / 0.8283 GB, free: 12.91 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.159e-05/0.7771, allocations: 24 kB / 0.8283 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.171e-05/0.7771, allocations: 40.97 kB / 0.8283 GB, free: 12.84 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00103/0.7782, allocations: 0.5728 MB / 0.8289 GB, free: 12.27 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003264/0.7814, allocations: 2.385 MB / 0.8312 GB, free: 9.773 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001084/0.7825, allocations: 0.5887 MB / 0.8318 GB, free: 9.164 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005015/0.7831, allocations: 0.5742 MB / 0.8323 GB, free: 8.461 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006767/0.7837, allocations: 407.7 kB / 0.8327 GB, free: 8.047 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=49): time 3.216e-06/0.7838, allocations: 4 kB / 0.8327 GB, free: 8.043 MB / 0.5105 GB Notification: Performance of matching and sorting (n=49): time 0.001512/0.7853, allocations: 0.7679 MB / 0.8335 GB, free: 7.27 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.564e-05/0.7854, allocations: 93.62 kB / 0.8336 GB, free: 7.16 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003427/0.7857, allocations: 304.8 kB / 0.8339 GB, free: 6.852 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 5.825e-05/0.7858, allocations: 41.7 kB / 0.8339 GB, free: 6.805 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001999/0.786, allocations: 276.5 kB / 0.8342 GB, free: 6.531 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001439/0.7861, allocations: 157.8 kB / 0.8343 GB, free: 6.375 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.154e-05/0.7862, allocations: 12 kB / 0.8343 GB, free: 6.363 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001565/0.7863, allocations: 355.3 kB / 0.8347 GB, free: 6.008 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000449/0.7868, allocations: 252.9 kB / 0.8349 GB, free: 5.762 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005352/0.7873, allocations: 366.3 kB / 0.8353 GB, free: 5.355 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005136/0.7879, allocations: 304.4 kB / 0.8355 GB, free: 5.055 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.7879, allocations: 0 / 0.8355 GB, free: 5.055 MB / 0.5105 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.00126/0.7891, allocations: 0.706 MB / 0.8362 GB, free: 4.336 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004886/0.7896, allocations: 1.072 MB / 0.8373 GB, free: 3.176 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.7897, allocations: 0 / 0.8373 GB, free: 3.176 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.285e-05/0.7897, allocations: 8 kB / 0.8373 GB, free: 3.168 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005567/0.7902, allocations: 119.8 kB / 0.8374 GB, free: 3.051 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.461e-05/0.7903, allocations: 11.95 kB / 0.8374 GB, free: 3.039 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005092/0.7908, allocations: 67.62 kB / 0.8375 GB, free: 2.973 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.738e-05/0.7908, allocations: 20.19 kB / 0.8375 GB, free: 2.953 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 8.616e-06/0.7909, allocations: 5.094 kB / 0.8375 GB, free: 2.949 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001029/0.7919, allocations: 0.5913 MB / 0.8381 GB, free: 2.352 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.397e-06/0.7919, allocations: 4 kB / 0.8381 GB, free: 2.348 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.286e-06/0.7919, allocations: 8 kB / 0.8381 GB, free: 2.34 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004363/0.7924, allocations: 112 kB / 0.8382 GB, free: 2.23 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.007e-05/0.7924, allocations: 12 kB / 0.8382 GB, free: 2.219 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004562/0.7929, allocations: 63.62 kB / 0.8383 GB, free: 2.156 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.004e-05/0.7929, allocations: 20 kB / 0.8383 GB, free: 2.137 MB / 0.5105 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 () * Number of clocked 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.0003951/0.7933, allocations: 295.2 kB / 0.8386 GB, free: 1.84 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.761e-05/0.7934, allocations: 47.44 kB / 0.8386 GB, free: 1.793 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001156/0.7946, allocations: 0.6105 MB / 0.8392 GB, free: 1.176 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.784e-06/0.7946, allocations: 8.031 kB / 0.8392 GB, free: 1.168 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.7946, allocations: 0 / 0.8392 GB, free: 1.168 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.664e-06/0.7946, allocations: 3.984 kB / 0.8392 GB, free: 1.164 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007766/0.7954, allocations: 0.6379 MB / 0.8398 GB, free: 488 kB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.7954, allocations: 3.984 kB / 0.8399 GB, free: 484 kB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000499/0.7959, allocations: 95.86 kB / 0.8399 GB, free: 388 kB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.644e-06/0.7959, allocations: 0 / 0.8399 GB, free: 388 kB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.141e-05/0.796, allocations: 15.94 kB / 0.84 GB, free: 372 kB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.29e-06/0.796, allocations: 4 kB / 0.84 GB, free: 368 kB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.796, allocations: 0 / 0.84 GB, free: 368 kB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001558/0.7976, allocations: 0.9359 MB / 0.8409 GB, free: 15.39 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002533/0.7978, allocations: 180.5 kB / 0.841 GB, free: 15.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.254e-05/0.7979, allocations: 15.98 kB / 0.8411 GB, free: 15.18 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003283/0.7982, allocations: 40.14 kB / 0.8411 GB, free: 15.14 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001446/0.7984, allocations: 48.36 kB / 0.8411 GB, free: 15.1 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.877e-05/0.7984, allocations: 20 kB / 0.8412 GB, free: 15.08 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0002691/0.7987, allocations: 243.2 kB / 0.8414 GB, free: 14.84 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.1e-07/0.7987, allocations: 0 / 0.8414 GB, free: 14.84 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0008565/0.7996, allocations: 279.1 kB / 0.8417 GB, free: 14.57 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) * 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.000252/0.7998, allocations: 150.7 kB / 0.8418 GB, free: 14.42 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001701/0.8015, allocations: 1.001 MB / 0.8428 GB, free: 13.39 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.8016, allocations: 4 kB / 0.8428 GB, free: 13.38 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0004846/0.8021, allocations: 287 kB / 0.8431 GB, free: 13.11 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007109/0.8028, allocations: 157.3 kB / 0.8432 GB, free: 12.95 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002265/0.8051, allocations: 1.305 MB / 0.8445 GB, free: 11.62 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005039/0.8056, allocations: 0.903 MB / 0.8454 GB, free: 10.69 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0005335/0.8061, allocations: 148.5 kB / 0.8455 GB, free: 10.55 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001584/0.8063, allocations: 47.42 kB / 0.8456 GB, free: 10.5 MB / 0.5261 GB Notification: Performance of SimCode: time 7.21e-07/0.8063, allocations: 0 / 0.8456 GB, free: 10.5 MB / 0.5261 GB Notification: Performance of Templates: time 0.01404/0.8203, allocations: 7.654 MB / 0.853 GB, free: 2.91 MB / 0.5261 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)