Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 9.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 4.56/4.56, allocations: 0.5623 GB / 0.5775 GB, free: 66.93 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00392/0.00392, allocations: 360.7 kB / 0.6446 GB, free: 21.6 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.356/4.356, allocations: 410.7 MB / 1.113 GB, free: 15.75 MB / 0.6198 GB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001803/0.001803, allocations: 187.3 kB / 1.226 GB, free: 11.7 MB / 0.7292 GB Notification: Performance of FrontEnd - loaded program: time 0.0006694/0.0006698, allocations: 17.38 kB / 1.349 GB, free: 321.7 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2184/0.2191, allocations: 115.3 MB / 1.461 GB, free: 220.8 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2198/0.439, allocations: 156.7 MB / 1.614 GB, free: 63.86 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000342/0.4394, allocations: 99.94 kB / 1.614 GB, free: 63.76 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 0.1041/0.5434, allocations: 27.31 MB / 1.641 GB, free: 36.34 MB / 0.8073 GB Notification: Performance of FrontEnd: time 1.773e-06/0.5435, allocations: 0 / 1.641 GB, free: 36.34 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 3.862e-05/0.5435, allocations: 12 kB / 1.641 GB, free: 36.33 MB / 0.8073 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.002311/0.5459, allocations: 0.8767 MB / 1.642 GB, free: 35.4 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 4.531e-05/0.5459, allocations: 12.73 kB / 1.642 GB, free: 35.39 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001549/0.5475, allocations: 147.1 kB / 1.642 GB, free: 35.24 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009138/0.5484, allocations: 443.8 kB / 1.643 GB, free: 34.78 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.454e-05/0.5485, allocations: 41 kB / 1.643 GB, free: 34.73 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001279/0.5487, allocations: 51.92 kB / 1.643 GB, free: 34.68 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001683/0.5504, allocations: 0.6857 MB / 1.643 GB, free: 33.98 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.607e-05/0.5504, allocations: 0 / 1.643 GB, free: 33.98 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.24e-05/0.5505, allocations: 27.98 kB / 1.643 GB, free: 33.95 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.917e-05/0.5506, allocations: 36.98 kB / 1.643 GB, free: 33.91 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001658/0.5523, allocations: 0.575 MB / 1.644 GB, free: 33.34 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004473/0.5568, allocations: 2.84 MB / 1.647 GB, free: 30.29 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001658/0.5585, allocations: 0.6001 MB / 1.647 GB, free: 29.68 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006749/0.5592, allocations: 266.7 kB / 1.648 GB, free: 29.41 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004571/0.5596, allocations: 0.5544 MB / 1.648 GB, free: 28.73 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009687/0.5606, allocations: 419.8 kB / 1.648 GB, free: 28.31 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=49): time 3.115e-06/0.5607, allocations: 4 kB / 1.649 GB, free: 28.3 MB / 0.8073 GB Notification: Performance of matching and sorting (n=49): time 0.002289/0.563, allocations: 0.7762 MB / 1.649 GB, free: 27.53 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.417e-05/0.563, allocations: 81.55 kB / 1.649 GB, free: 27.43 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005517/0.5636, allocations: 341.7 kB / 1.65 GB, free: 27.09 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 0.0001134/0.5637, allocations: 41.7 kB / 1.65 GB, free: 27.04 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002871/0.564, allocations: 281.2 kB / 1.65 GB, free: 26.76 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002103/0.5642, allocations: 159.4 kB / 1.65 GB, free: 26.61 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.999e-05/0.5643, allocations: 15.94 kB / 1.65 GB, free: 26.59 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 0.0001243/0.5645, allocations: 354.8 kB / 1.65 GB, free: 26.23 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009636/0.5654, allocations: 244.2 kB / 1.651 GB, free: 26 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001099/0.5666, allocations: 377.1 kB / 1.651 GB, free: 25.59 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00105/0.5676, allocations: 296.8 kB / 1.651 GB, free: 25.3 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.775e-06/0.5677, allocations: 7.891 kB / 1.651 GB, free: 25.29 MB / 0.8073 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002556/0.5702, allocations: 0.6985 MB / 1.652 GB, free: 24.58 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001303/0.5704, allocations: 196.9 kB / 1.652 GB, free: 24.34 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.287e-05/0.5704, allocations: 4 kB / 1.652 GB, free: 24.34 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.696e-05/0.5705, allocations: 4 kB / 1.652 GB, free: 24.34 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001213/0.5717, allocations: 115.8 kB / 1.652 GB, free: 24.22 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.948e-05/0.5717, allocations: 7.984 kB / 1.652 GB, free: 24.21 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001113/0.5728, allocations: 67.55 kB / 1.652 GB, free: 24.15 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.354e-05/0.573, allocations: 35.98 kB / 1.652 GB, free: 24.11 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 9.268e-06/0.573, allocations: 0 / 1.652 GB, free: 24.11 MB / 0.8073 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002176/0.5752, allocations: 0.5952 MB / 1.653 GB, free: 23.51 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/0.5752, allocations: 7.953 kB / 1.653 GB, free: 23.5 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.291e-05/0.5752, allocations: 4 kB / 1.653 GB, free: 23.5 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001048/0.5763, allocations: 111.8 kB / 1.653 GB, free: 23.39 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.416e-05/0.5763, allocations: 7.938 kB / 1.653 GB, free: 23.38 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001029/0.5774, allocations: 59.64 kB / 1.653 GB, free: 23.32 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.288e-05/0.5775, allocations: 20 kB / 1.653 GB, free: 23.3 MB / 0.8073 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.0006396/0.5781, allocations: 307.2 kB / 1.654 GB, free: 23 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000159/0.5783, allocations: 47.53 kB / 1.654 GB, free: 22.95 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002589/0.5809, allocations: 0.6104 MB / 1.654 GB, free: 22.34 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.22e-05/0.5809, allocations: 4 kB / 1.654 GB, free: 22.33 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.488e-06/0.581, allocations: 4 kB / 1.654 GB, free: 22.33 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.228e-05/0.581, allocations: 0 / 1.654 GB, free: 22.33 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001456/0.5825, allocations: 0.6186 MB / 1.655 GB, free: 21.66 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.102e-06/0.5825, allocations: 0 / 1.655 GB, free: 21.66 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001322/0.5838, allocations: 99.8 kB / 1.655 GB, free: 21.56 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.198e-05/0.5839, allocations: 4 kB / 1.655 GB, free: 21.56 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.849e-05/0.584, allocations: 15.98 kB / 1.655 GB, free: 21.54 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.057e-06/0.584, allocations: 11.94 kB / 1.655 GB, free: 21.53 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.584, allocations: 0 / 1.655 GB, free: 21.53 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003362/0.5874, allocations: 0.9187 MB / 1.656 GB, free: 20.59 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004102/0.5878, allocations: 180.4 kB / 1.656 GB, free: 20.39 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001639/0.588, allocations: 12 kB / 1.656 GB, free: 20.38 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008135/0.5888, allocations: 39.95 kB / 1.656 GB, free: 20.34 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002448/0.5891, allocations: 60.25 kB / 1.656 GB, free: 20.29 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.592e-05/0.5892, allocations: 15.98 kB / 1.656 GB, free: 20.27 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 0.0004682/0.5897, allocations: 243.2 kB / 1.656 GB, free: 20.03 MB / 0.8073 GB Notification: Performance of sort global known variables: time 4.81e-07/0.5897, allocations: 3.938 kB / 1.656 GB, free: 20.03 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.001555/0.5912, allocations: 279.1 kB / 1.657 GB, free: 19.75 MB / 0.8073 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.000325/0.5916, allocations: 147 kB / 1.657 GB, free: 19.6 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.003511/0.5951, allocations: 1.003 MB / 1.658 GB, free: 18.57 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/0.5951, allocations: 0 / 1.658 GB, free: 18.57 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.001136/0.5963, allocations: 294.3 kB / 1.658 GB, free: 18.28 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001965/0.5983, allocations: 165.1 kB / 1.658 GB, free: 18.13 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004053/0.6023, allocations: 1.288 MB / 1.659 GB, free: 16.82 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005597/0.603, allocations: 0.907 MB / 1.66 GB, free: 15.88 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 0.001257/0.6042, allocations: 140.5 kB / 1.66 GB, free: 15.74 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003568/0.6046, allocations: 47.42 kB / 1.66 GB, free: 15.69 MB / 0.8073 GB Notification: Performance of SimCode: time 1.312e-06/0.6046, allocations: 4 kB / 1.66 GB, free: 15.69 MB / 0.8073 GB Notification: Performance of Templates: time 0.02604/0.6307, allocations: 7.668 MB / 1.668 GB, free: 8.141 MB / 0.8073 GB