Running command: translateModel(Buildings.Electrical.DC.Storage.Examples.Battery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Electrical.DC.Storage.Examples.Battery") Notification: Performance of loadModel(Buildings): time 4.231/4.231, allocations: 460.5 MB / 472.6 MB, free: 5.375 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 3.62e-05/3.639e-05, allocations: 8 kB / 0.5681 GB, free: 10.16 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2/0.2001, allocations: 106.2 MB / 0.6718 GB, free: 15.75 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7636/0.9637, allocations: 157.7 MB / 0.8258 GB, free: 12.46 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002752/0.964, allocations: 89.31 kB / 0.8259 GB, free: 12.44 MB / 0.6355 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/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 7.0.0/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.07125/1.035, allocations: 21.02 MB / 0.8464 GB, free: 4.055 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.97e-06/1.035, allocations: 3.844 kB / 0.8464 GB, free: 4.055 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 4.334e-05/1.035, allocations: 15.38 kB / 0.8464 GB, free: 4.055 MB / 0.6355 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.001524/1.037, allocations: 0.7827 MB / 0.8472 GB, free: 3.445 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/1.037, allocations: 7.688 kB / 0.8472 GB, free: 3.445 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009357/1.038, allocations: 127.9 kB / 0.8473 GB, free: 3.391 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007539/1.039, allocations: 412.8 kB / 0.8477 GB, free: 3.082 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.374e-05/1.039, allocations: 71.44 kB / 0.8478 GB, free: 3.074 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001319/1.039, allocations: 76.19 kB / 0.8478 GB, free: 3.074 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001621/1.041, allocations: 0.8355 MB / 0.8487 GB, free: 2.754 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.748e-05/1.041, allocations: 7.844 kB / 0.8487 GB, free: 2.75 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.287e-05/1.041, allocations: 29.53 kB / 0.8487 GB, free: 2.75 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.298e-05/1.041, allocations: 43.8 kB / 0.8487 GB, free: 2.746 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001224/1.042, allocations: 0.5345 MB / 0.8493 GB, free: 2.602 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004926/1.047, allocations: 3.698 MB / 0.8529 GB, free: 15.21 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007627/1.048, allocations: 292.6 kB / 0.8532 GB, free: 15 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004945/1.048, allocations: 195.4 kB / 0.8533 GB, free: 14.87 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 3.98e-05/1.048, allocations: 8.375 kB / 0.8533 GB, free: 14.86 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000485/1.049, allocations: 218.9 kB / 0.8536 GB, free: 14.69 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=46): time 3.76e-06/1.049, allocations: 0 / 0.8536 GB, free: 14.69 MB / 0.6511 GB Notification: Performance of matching and sorting (n=46): time 0.0008666/1.05, allocations: 322.3 kB / 0.8539 GB, free: 14.44 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.485e-05/1.05, allocations: 62.98 kB / 0.8539 GB, free: 14.37 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006327/1.051, allocations: 378.4 kB / 0.8543 GB, free: 14.07 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 9.805e-05/1.051, allocations: 52.06 kB / 0.8543 GB, free: 14.03 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003319/1.051, allocations: 347.1 kB / 0.8547 GB, free: 13.76 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001665/1.051, allocations: 126.8 kB / 0.8548 GB, free: 13.67 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.889e-05/1.051, allocations: 10.44 kB / 0.8548 GB, free: 13.67 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0002139/1.051, allocations: 359 kB / 0.8551 GB, free: 13.33 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003895/1.052, allocations: 149.7 kB / 0.8553 GB, free: 13.23 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006044/1.052, allocations: 384.5 kB / 0.8556 GB, free: 12.83 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004746/1.053, allocations: 182.8 kB / 0.8558 GB, free: 12.7 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.261e-06/1.053, allocations: 4 kB / 0.8558 GB, free: 12.69 MB / 0.6511 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001354/1.054, allocations: 0.5641 MB / 0.8564 GB, free: 12.24 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.001521/1.056, allocations: 2.697 MB / 0.859 GB, free: 9.379 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.8e-05/1.056, allocations: 8 kB / 0.859 GB, free: 9.371 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.239e-05/1.056, allocations: 12 kB / 0.859 GB, free: 9.359 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006312/1.057, allocations: 98.58 kB / 0.8591 GB, free: 9.27 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.624e-05/1.057, allocations: 23.92 kB / 0.8591 GB, free: 9.246 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005802/1.057, allocations: 61.12 kB / 0.8592 GB, free: 9.195 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.758e-05/1.057, allocations: 34.48 kB / 0.8592 GB, free: 9.168 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.467e-05/1.057, allocations: 4 kB / 0.8592 GB, free: 9.164 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001211/1.059, allocations: 0.495 MB / 0.8597 GB, free: 8.789 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.868e-05/1.059, allocations: 7.984 kB / 0.8597 GB, free: 8.781 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.182e-05/1.059, allocations: 12 kB / 0.8597 GB, free: 8.77 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005038/1.059, allocations: 110.4 kB / 0.8598 GB, free: 8.668 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.771e-05/1.059, allocations: 19.92 kB / 0.8599 GB, free: 8.648 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005082/1.06, allocations: 56.78 kB / 0.8599 GB, free: 8.605 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.956e-05/1.06, allocations: 38.36 kB / 0.86 GB, free: 8.574 MB / 0.6511 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.0002506/1.06, allocations: 162.6 kB / 0.8601 GB, free: 8.43 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000117/1.06, allocations: 43.44 kB / 0.8602 GB, free: 8.387 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009487/1.061, allocations: 382.4 kB / 0.8605 GB, free: 8.113 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.18e-05/1.061, allocations: 4 kB / 0.8605 GB, free: 8.109 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.176e-06/1.061, allocations: 3.953 kB / 0.8605 GB, free: 8.105 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.565e-06/1.061, allocations: 0 / 0.8605 GB, free: 8.105 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002301/1.064, allocations: 1.099 MB / 0.8616 GB, free: 7.18 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.005e-05/1.064, allocations: 4 kB / 0.8616 GB, free: 7.176 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003169/1.064, allocations: 42.97 kB / 0.8616 GB, free: 7.137 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.34e-05/1.064, allocations: 4 kB / 0.8616 GB, free: 7.133 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.003e-05/1.064, allocations: 10.44 kB / 0.8617 GB, free: 7.129 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.718e-06/1.064, allocations: 3.984 kB / 0.8617 GB, free: 7.125 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.789e-06/1.064, allocations: 11.88 kB / 0.8617 GB, free: 7.113 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001255/1.065, allocations: 0.6345 MB / 0.8623 GB, free: 6.59 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002676/1.066, allocations: 147.8 kB / 0.8624 GB, free: 6.441 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.735e-05/1.066, allocations: 15.73 kB / 0.8624 GB, free: 6.434 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002902/1.066, allocations: 11.69 kB / 0.8625 GB, free: 6.43 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001604/1.066, allocations: 52.23 kB / 0.8625 GB, free: 6.383 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.242e-05/1.066, allocations: 19.88 kB / 0.8625 GB, free: 6.367 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0004152/1.067, allocations: 255.2 kB / 0.8628 GB, free: 6.168 MB / 0.6511 GB Notification: Performance of sort global known variables: time 8.56e-07/1.067, allocations: 0 / 0.8628 GB, free: 6.168 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001244/1.068, allocations: 237.9 kB / 0.863 GB, free: 5.965 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (51): * Single equations (assignments): 47 * 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.000276/1.068, allocations: 141 kB / 0.8631 GB, free: 5.828 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.001666/1.07, allocations: 0.6835 MB / 0.8638 GB, free: 5.32 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 5.546e-06/1.07, allocations: 0 / 0.8638 GB, free: 5.32 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0004177/1.07, allocations: 175.8 kB / 0.864 GB, free: 5.195 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007432/1.071, allocations: 100.4 kB / 0.8641 GB, free: 5.129 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002037/1.073, allocations: 0.7127 MB / 0.8648 GB, free: 4.484 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007496/1.074, allocations: 0.9233 MB / 0.8657 GB, free: 3.543 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0007533/1.075, allocations: 128.7 kB / 0.8658 GB, free: 3.418 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001771/1.075, allocations: 47.11 kB / 0.8658 GB, free: 3.375 MB / 0.6511 GB Notification: Performance of SimCode: time 1.945e-06/1.075, allocations: 0 / 0.8658 GB, free: 3.375 MB / 0.6511 GB Notification: Performance of Templates: time 0.01861/1.094, allocations: 5.861 MB / 0.8716 GB, free: 13.56 MB / 0.6667 GB