Running command: translateModel(Buildings.Electrical.DC.Storage.Examples.Battery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_5.0.1_Buildings.Electrical.DC.Storage.Examples.Battery") Notification: Performance of loadModel(Buildings): time 3.462/3.462, allocations: 402 MB / 415.9 MB, free: 10.11 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 3.379e-05/3.403e-05, allocations: 7.984 kB / 0.5003 GB, free: 8.238 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1728/0.1729, allocations: 92.68 MB / 0.5908 GB, free: 11.38 MB / 0.4948 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6832/0.8561, allocations: 146.3 MB / 0.7338 GB, free: 12.08 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003071/0.8564, allocations: 91.94 kB / 0.7338 GB, free: 11.99 MB / 0.6042 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 5.0.1/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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 5.0.1/Electrical/DC/Sensors/GeneralizedSensor.mo:38:3-38: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.0934/0.9498, allocations: 21.03 MB / 0.7544 GB, free: 6.77 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.777e-06/0.9499, allocations: 4 kB / 0.7544 GB, free: 6.766 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.032e-05/0.95, allocations: 23.94 kB / 0.7544 GB, free: 6.742 MB / 0.6198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 187 * Number of variables: 187 Notification: Performance of Generate backend data structure: time 0.001592/0.9516, allocations: 0.7698 MB / 0.7552 GB, free: 5.918 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.923e-05/0.9516, allocations: 8.031 kB / 0.7552 GB, free: 5.91 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008722/0.9525, allocations: 123.1 kB / 0.7553 GB, free: 5.789 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007978/0.9533, allocations: 417.8 kB / 0.7557 GB, free: 5.344 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.162e-05/0.9534, allocations: 62 kB / 0.7557 GB, free: 5.281 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001745/0.9536, allocations: 72 kB / 0.7558 GB, free: 5.211 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001837/0.9555, allocations: 0.8538 MB / 0.7566 GB, free: 4.293 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.887e-05/0.9555, allocations: 7.938 kB / 0.7567 GB, free: 4.285 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001038/0.9556, allocations: 31.98 kB / 0.7567 GB, free: 4.254 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.185e-05/0.9557, allocations: 53.28 kB / 0.7567 GB, free: 4.203 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001421/0.9571, allocations: 0.5709 MB / 0.7573 GB, free: 3.633 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005455/0.9626, allocations: 3.315 MB / 0.7605 GB, free: 188 kB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000848/0.9635, allocations: 301 kB / 0.7608 GB, free: 15.88 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 4.335e-05/0.9636, allocations: 8.406 kB / 0.7608 GB, free: 15.87 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005139/0.9641, allocations: 225.3 kB / 0.761 GB, free: 15.64 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=46): time 4.544e-06/0.9641, allocations: 0 / 0.761 GB, free: 15.64 MB / 0.6355 GB Notification: Performance of matching and sorting (n=46): time 0.00119/0.9653, allocations: 445.4 kB / 0.7615 GB, free: 15.2 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.468e-05/0.9654, allocations: 55.41 kB / 0.7615 GB, free: 15.13 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006417/0.966, allocations: 384.3 kB / 0.7619 GB, free: 14.75 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 9.171e-05/0.9662, allocations: 49.69 kB / 0.7619 GB, free: 14.69 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.000347/0.9665, allocations: 343.5 kB / 0.7623 GB, free: 14.35 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001599/0.9667, allocations: 130.4 kB / 0.7624 GB, free: 14.22 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.391e-05/0.9667, allocations: 16 kB / 0.7624 GB, free: 14.21 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0002181/0.967, allocations: 354.8 kB / 0.7627 GB, free: 13.85 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004319/0.9674, allocations: 161.9 kB / 0.7629 GB, free: 13.69 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006316/0.9681, allocations: 391.6 kB / 0.7633 GB, free: 13.21 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004922/0.9686, allocations: 190.1 kB / 0.7634 GB, free: 13.02 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.335e-06/0.9686, allocations: 3.953 kB / 0.7634 GB, free: 13.02 MB / 0.6355 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001475/0.9701, allocations: 0.5955 MB / 0.764 GB, free: 12.42 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 0.001532/0.9716, allocations: 2.704 MB / 0.7667 GB, free: 9.504 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.128e-05/0.9717, allocations: 11.94 kB / 0.7667 GB, free: 9.492 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.131e-05/0.9717, allocations: 12 kB / 0.7667 GB, free: 9.48 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005695/0.9723, allocations: 107.8 kB / 0.7668 GB, free: 9.375 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.544e-05/0.9723, allocations: 15.94 kB / 0.7668 GB, free: 9.359 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000557/0.9729, allocations: 67.38 kB / 0.7669 GB, free: 9.293 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.258e-05/0.973, allocations: 31.94 kB / 0.7669 GB, free: 9.262 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 9.325e-06/0.973, allocations: 4 kB / 0.7669 GB, free: 9.258 MB / 0.6355 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001286/0.9743, allocations: 0.5364 MB / 0.7674 GB, free: 8.723 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.424e-05/0.9744, allocations: 8 kB / 0.7674 GB, free: 8.715 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.064e-05/0.9744, allocations: 15.98 kB / 0.7675 GB, free: 8.699 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004609/0.9749, allocations: 99.77 kB / 0.7676 GB, free: 8.602 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.209e-05/0.9749, allocations: 15.92 kB / 0.7676 GB, free: 8.586 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004799/0.9754, allocations: 47.69 kB / 0.7676 GB, free: 8.539 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.668e-05/0.9755, allocations: 35.98 kB / 0.7676 GB, free: 8.504 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 48 ($PRE.toOn.enableFire,$PRE.toHold.enableFire,$PRE.toDischarge.enableFire,$PRE.toOff.enableFire,stateGraphRoot.resume,stateGraphRoot.suspend,$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) * Number of discrete 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.0005175/0.976, allocations: 241.8 kB / 0.7679 GB, free: 8.262 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001065/0.9761, allocations: 51.39 kB / 0.7679 GB, free: 8.211 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009732/0.9771, allocations: 393.1 kB / 0.7683 GB, free: 7.824 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.299e-06/0.9771, allocations: 4 kB / 0.7683 GB, free: 7.82 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.091e-06/0.9772, allocations: 0 / 0.7683 GB, free: 7.82 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.077e-05/0.9772, allocations: 3.984 kB / 0.7683 GB, free: 7.816 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002131/0.9793, allocations: 1.026 MB / 0.7693 GB, free: 6.734 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.439e-06/0.9793, allocations: 0 / 0.7693 GB, free: 6.734 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003142/0.9797, allocations: 51.84 kB / 0.7694 GB, free: 6.684 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.041e-06/0.9797, allocations: 0 / 0.7694 GB, free: 6.684 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.765e-05/0.9797, allocations: 8 kB / 0.7694 GB, free: 6.676 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.897e-06/0.9798, allocations: 0 / 0.7694 GB, free: 6.676 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.2e-06/0.9798, allocations: 0 / 0.7694 GB, free: 6.676 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001253/0.981, allocations: 0.6192 MB / 0.77 GB, free: 6.039 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002508/0.9813, allocations: 156.5 kB / 0.7701 GB, free: 5.867 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.961e-05/0.9814, allocations: 12 kB / 0.7701 GB, free: 5.855 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002865/0.9817, allocations: 11.94 kB / 0.7701 GB, free: 5.844 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001406/0.9819, allocations: 48.36 kB / 0.7702 GB, free: 5.797 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.337e-05/0.9819, allocations: 12 kB / 0.7702 GB, free: 5.785 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 0.0004025/0.9823, allocations: 263.2 kB / 0.7705 GB, free: 5.527 MB / 0.6355 GB Notification: Performance of sort global known variables: time 8.43e-07/0.9823, allocations: 0 / 0.7705 GB, free: 5.527 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.001219/0.9836, allocations: 239.6 kB / 0.7707 GB, free: 5.293 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 46 * 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.000246/0.9838, allocations: 137.3 kB / 0.7708 GB, free: 5.152 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.001677/0.9855, allocations: 0.7362 MB / 0.7715 GB, free: 4.414 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 3.873e-06/0.9856, allocations: 0 / 0.7715 GB, free: 4.414 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0003909/0.986, allocations: 174.4 kB / 0.7717 GB, free: 4.246 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006616/0.9866, allocations: 103.3 kB / 0.7718 GB, free: 4.148 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002255/0.9889, allocations: 1.156 MB / 0.7729 GB, free: 2.965 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007551/0.9897, allocations: 0.9198 MB / 0.7738 GB, free: 2.02 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.000726/0.9904, allocations: 136.6 kB / 0.774 GB, free: 1.887 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001606/0.9906, allocations: 47.42 kB / 0.774 GB, free: 1.84 MB / 0.6355 GB Notification: Performance of SimCode: time 1.715e-06/0.9906, allocations: 0 / 0.774 GB, free: 1.84 MB / 0.6355 GB Notification: Performance of Templates: time 0.01754/1.008, allocations: 5.827 MB / 0.7797 GB, free: 12.05 MB / 0.6511 GB