Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Electrical.DC.Storage.Examples.Battery.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.DC.Storage.Examples.Battery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Electrical.DC.Storage.Examples.Battery") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 4.962/4.962, allocations: 0.5623 GB / 0.5775 GB, free: 3.355 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002484/0.002484, allocations: 354.5 kB / 0.6446 GB, free: 185.7 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.27/4.27, allocations: 410.7 MB / 1.113 GB, free: 5.984 MB / 0.6042 GB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001862/0.001862, allocations: 179.1 kB / 1.226 GB, free: 6.191 MB / 0.7136 GB Notification: Performance of FrontEnd - loaded program: time 0.0005061/0.0005064, allocations: 19.98 kB / 1.349 GB, free: 8.324 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7485/0.749, allocations: 115.3 MB / 1.461 GB, free: 284.4 MB / 0.8542 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2325/0.9815, allocations: 164.1 MB / 1.622 GB, free: 120.1 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003216/0.9819, allocations: 95.94 kB / 1.622 GB, free: 120 MB / 0.8542 GB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/Electrical/Interfaces/Source.mo:30:9-30:50:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/Electrical/DC/Sensors/GeneralizedSensor.mo:39:3-39:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. Notification: Performance of FrontEnd - DAE generated: time 0.07226/1.054, allocations: 21.18 MB / 1.642 GB, free: 98.87 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.884e-06/1.054, allocations: 0 / 1.642 GB, free: 98.87 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 3.875e-05/1.054, allocations: 20.69 kB / 1.642 GB, free: 98.85 MB / 0.8542 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 191 * Number of variables: 191 Notification: Performance of Generate backend data structure: time 0.00169/1.056, allocations: 0.8203 MB / 1.643 GB, free: 97.97 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/1.056, allocations: 16.91 kB / 1.643 GB, free: 97.96 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008736/1.057, allocations: 127 kB / 1.643 GB, free: 97.84 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006854/1.058, allocations: 411.2 kB / 1.644 GB, free: 97.4 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.004e-05/1.058, allocations: 69.98 kB / 1.644 GB, free: 97.33 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001424/1.058, allocations: 79.95 kB / 1.644 GB, free: 97.25 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001747/1.06, allocations: 0.8641 MB / 1.645 GB, free: 96.33 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.04e-05/1.06, allocations: 0 / 1.645 GB, free: 96.33 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.363e-05/1.06, allocations: 32.52 kB / 1.645 GB, free: 96.3 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.519e-05/1.06, allocations: 41.98 kB / 1.645 GB, free: 96.26 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001342/1.061, allocations: 0.567 MB / 1.645 GB, free: 95.69 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00463/1.066, allocations: 3.705 MB / 1.649 GB, free: 91.8 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008157/1.067, allocations: 315.2 kB / 1.649 GB, free: 91.49 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005805/1.067, allocations: 220.4 kB / 1.649 GB, free: 91.27 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 4.637e-05/1.067, allocations: 4.438 kB / 1.649 GB, free: 91.27 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005335/1.068, allocations: 258.5 kB / 1.65 GB, free: 91 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=48): time 3.427e-06/1.068, allocations: 0 / 1.65 GB, free: 91 MB / 0.8542 GB Notification: Performance of matching and sorting (n=48): time 0.001185/1.069, allocations: 458.6 kB / 1.65 GB, free: 90.55 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.429e-05/1.069, allocations: 95.56 kB / 1.65 GB, free: 90.44 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004963/1.07, allocations: 413.1 kB / 1.651 GB, free: 90.04 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 7.036e-05/1.07, allocations: 53.69 kB / 1.651 GB, free: 89.98 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002197/1.07, allocations: 335.5 kB / 1.651 GB, free: 89.64 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001247/1.07, allocations: 139.1 kB / 1.651 GB, free: 89.51 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.796e-05/1.07, allocations: 12 kB / 1.651 GB, free: 89.5 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 9.643e-05/1.07, allocations: 363.3 kB / 1.651 GB, free: 89.13 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003941/1.071, allocations: 155.5 kB / 1.652 GB, free: 88.98 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005391/1.071, allocations: 398.9 kB / 1.652 GB, free: 88.5 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004561/1.072, allocations: 183.3 kB / 1.652 GB, free: 88.33 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.184e-06/1.072, allocations: 4 kB / 1.652 GB, free: 88.32 MB / 0.8542 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001231/1.073, allocations: 0.5922 MB / 1.653 GB, free: 87.73 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001315/1.073, allocations: 304.3 kB / 1.653 GB, free: 87.35 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.409e-05/1.073, allocations: 7.953 kB / 1.653 GB, free: 87.34 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.945e-05/1.073, allocations: 15.98 kB / 1.653 GB, free: 87.33 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006084/1.074, allocations: 99.77 kB / 1.653 GB, free: 87.23 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.151e-05/1.074, allocations: 19.92 kB / 1.653 GB, free: 87.21 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005052/1.074, allocations: 68.44 kB / 1.653 GB, free: 87.14 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.062e-05/1.074, allocations: 31.98 kB / 1.653 GB, free: 87.11 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 7.514e-06/1.074, allocations: 7.938 kB / 1.653 GB, free: 87.11 MB / 0.8542 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001103/1.076, allocations: 0.526 MB / 1.654 GB, free: 86.59 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.448e-05/1.076, allocations: 9.125 kB / 1.654 GB, free: 86.58 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.923e-05/1.076, allocations: 12 kB / 1.654 GB, free: 86.57 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005618/1.076, allocations: 115 kB / 1.654 GB, free: 86.46 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.484e-05/1.076, allocations: 12 kB / 1.654 GB, free: 86.45 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004343/1.077, allocations: 55.61 kB / 1.654 GB, free: 86.39 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.047e-05/1.077, allocations: 28 kB / 1.654 GB, free: 86.36 MB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 48 ($PRE.toOn.enableFire,$PRE.toHold.enableFire,$PRE.toDischarge.enableFire,$PRE.toOff.enableFire,$whenCondition1,$PRE.bat.cha.underCharged,bat.cha.underCharged,$PRE.bat.cha.overCharged,bat.cha.overCharged,startCharge.y,greaterEqualThreshold.y,startDischarge.y,lessEqualThreshold.y,$PRE.off.localActive,off.localActive,$PRE.off.newActive,off.newActive,$PRE.off.oldActive,off.oldActive,off.active,toOn.enableFire,$PRE.charge.localActive,charge.localActive,$PRE.charge.newActive,charge.newActive,$PRE.charge.oldActive,charge.oldActive,charge.active,toHold.enableFire,$PRE.hold.localActive,hold.localActive,$PRE.hold.newActive,hold.newActive,$PRE.hold.oldActive,hold.oldActive,hold.active,toDischarge.enableFire,$PRE.discharge.localActive,discharge.localActive,$PRE.discharge.newActive,discharge.newActive,$PRE.discharge.oldActive,discharge.oldActive,discharge.active,toOff.enableFire,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (93): * Single equations (assignments): 93 * Array equations: 0 * Algorithm blocks: 0 * 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.0004102/1.077, allocations: 327.2 kB / 1.654 GB, free: 86.04 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.268e-05/1.077, allocations: 47.44 kB / 1.654 GB, free: 85.99 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009284/1.078, allocations: 401.3 kB / 1.655 GB, free: 85.59 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.774e-06/1.078, allocations: 4 kB / 1.655 GB, free: 85.59 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.69e-06/1.078, allocations: 0 / 1.655 GB, free: 85.59 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.167e-06/1.078, allocations: 2.062 kB / 1.655 GB, free: 85.59 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002039/1.08, allocations: 1.21 MB / 1.656 GB, free: 84.3 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.548e-06/1.08, allocations: 4 kB / 1.656 GB, free: 84.29 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003815/1.081, allocations: 51.89 kB / 1.656 GB, free: 84.24 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.665e-06/1.081, allocations: 4.656 kB / 1.656 GB, free: 84.24 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.929e-05/1.081, allocations: 15.94 kB / 1.656 GB, free: 84.22 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.67e-06/1.081, allocations: 4.781 kB / 1.656 GB, free: 84.22 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/1.081, allocations: 0 / 1.656 GB, free: 84.22 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001199/1.082, allocations: 0.6547 MB / 1.657 GB, free: 83.54 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000178/1.082, allocations: 157.3 kB / 1.657 GB, free: 83.36 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.875e-05/1.082, allocations: 16 kB / 1.657 GB, free: 83.35 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003001/1.083, allocations: 17.02 kB / 1.657 GB, free: 83.33 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001572/1.083, allocations: 49.52 kB / 1.657 GB, free: 83.29 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.749e-05/1.083, allocations: 19.98 kB / 1.657 GB, free: 83.27 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0003083/1.083, allocations: 247.2 kB / 1.657 GB, free: 83.02 MB / 0.8542 GB Notification: Performance of sort global known variables: time 3.51e-07/1.083, allocations: 4.656 kB / 1.657 GB, free: 83.02 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.001038/1.084, allocations: 236.1 kB / 1.657 GB, free: 82.79 MB / 0.8542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (bat.cha.SOC) * Number of discrete variables: 32 (off.localActive,charge.localActive,hold.localActive,discharge.localActive,$cse1,$cse2,$cse3,$cse4,$whenCondition1,bat.cha.underCharged,bat.cha.overCharged,startCharge.y,greaterEqualThreshold.y,startDischarge.y,lessEqualThreshold.y,off.newActive,off.oldActive,off.active,toOn.enableFire,charge.newActive,charge.oldActive,charge.active,toHold.enableFire,hold.newActive,hold.oldActive,hold.active,toDischarge.enableFire,discharge.newActive,discharge.oldActive,discharge.active,toOff.enableFire,stateGraphRoot.activeSteps) * Number of discrete states: 6 (discharge.newActive,hold.newActive,charge.newActive,off.newActive,bat.cha.underCharged,bat.cha.overCharged) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0002078/1.084, allocations: 145.6 kB / 1.658 GB, free: 82.64 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.001506/1.086, allocations: 0.7192 MB / 1.658 GB, free: 81.94 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/1.086, allocations: 1.156 kB / 1.658 GB, free: 81.94 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0004213/1.086, allocations: 191.8 kB / 1.658 GB, free: 81.75 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008854/1.087, allocations: 109.9 kB / 1.659 GB, free: 81.65 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00217/1.09, allocations: 1.21 MB / 1.66 GB, free: 80.42 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004165/1.09, allocations: 0.9225 MB / 1.661 GB, free: 79.47 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.0006408/1.091, allocations: 108.3 kB / 1.661 GB, free: 79.38 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001905/1.091, allocations: 51.42 kB / 1.661 GB, free: 79.33 MB / 0.8542 GB Notification: Performance of SimCode: time 1.062e-06/1.091, allocations: 2.219 kB / 1.661 GB, free: 79.33 MB / 0.8542 GB Notification: Performance of Templates: time 0.01543/1.106, allocations: 5.409 MB / 1.666 GB, free: 74.02 MB / 0.8542 GB