Running command: translateModel(Buildings.Electrical.DC.Storage.Examples.Battery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Storage.Examples.Battery") Notification: Performance of loadModel(Buildings): time 4.215/4.215, allocations: 464.6 MB / 476.8 MB, free: 2.211 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 3.329e-05/3.329e-05, allocations: 5.094 kB / 0.5731 GB, free: 5.746 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1978/0.1979, allocations: 107.2 MB / 0.6777 GB, free: 10.39 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7305/0.9284, allocations: 158 MB / 0.8321 GB, free: 10.92 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002516/0.9287, allocations: 85.47 kB / 0.8322 GB, free: 10.9 MB / 0.6355 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings latest/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 latest/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.06941/0.9982, allocations: 21.03 MB / 0.8527 GB, free: 12.23 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.228e-06/0.9982, allocations: 4 kB / 0.8527 GB, free: 12.23 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 5.772e-05/0.9983, allocations: 16.88 kB / 0.8527 GB, free: 12.21 MB / 0.6511 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.001673/1, allocations: 0.7794 MB / 0.8535 GB, free: 11.43 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.629e-05/1, allocations: 12.03 kB / 0.8535 GB, free: 11.42 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009701/1.001, allocations: 123 kB / 0.8536 GB, free: 11.3 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008377/1.002, allocations: 417.7 kB / 0.854 GB, free: 10.91 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.053e-05/1.002, allocations: 58.12 kB / 0.8541 GB, free: 10.88 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001535/1.002, allocations: 81.23 kB / 0.8541 GB, free: 10.82 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001806/1.004, allocations: 0.8432 MB / 0.855 GB, free: 10.15 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.858e-05/1.004, allocations: 4 kB / 0.855 GB, free: 10.15 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.063e-05/1.004, allocations: 30.38 kB / 0.855 GB, free: 10.14 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.022e-05/1.004, allocations: 45.05 kB / 0.855 GB, free: 10.1 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001304/1.006, allocations: 0.5351 MB / 0.8556 GB, free: 9.742 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005744/1.011, allocations: 3.693 MB / 0.8592 GB, free: 6.332 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007511/1.012, allocations: 287.6 kB / 0.8594 GB, free: 6.121 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004749/1.013, allocations: 194.4 kB / 0.8596 GB, free: 5.992 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 4.293e-05/1.013, allocations: 12.36 kB / 0.8596 GB, free: 5.98 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004619/1.013, allocations: 214 kB / 0.8598 GB, free: 5.812 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=46): time 3.859e-06/1.013, allocations: 0 / 0.8598 GB, free: 5.812 MB / 0.6511 GB Notification: Performance of matching and sorting (n=46): time 0.0008644/1.014, allocations: 317.9 kB / 0.8602 GB, free: 5.562 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.034e-05/1.014, allocations: 67.11 kB / 0.8602 GB, free: 5.484 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006325/1.015, allocations: 387.5 kB / 0.8606 GB, free: 5.18 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 9.088e-05/1.015, allocations: 52.27 kB / 0.8606 GB, free: 5.137 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003313/1.015, allocations: 345.2 kB / 0.861 GB, free: 4.859 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001692/1.015, allocations: 120.7 kB / 0.8611 GB, free: 4.762 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.253e-05/1.015, allocations: 14.38 kB / 0.8611 GB, free: 4.758 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0002165/1.016, allocations: 361.7 kB / 0.8614 GB, free: 4.418 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003745/1.016, allocations: 149.8 kB / 0.8616 GB, free: 4.324 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005885/1.017, allocations: 378 kB / 0.8619 GB, free: 3.922 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004662/1.017, allocations: 190 kB / 0.8621 GB, free: 3.781 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.998e-06/1.017, allocations: 0 / 0.8621 GB, free: 3.781 MB / 0.6511 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001323/1.018, allocations: 0.5648 MB / 0.8627 GB, free: 3.324 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.001516/1.02, allocations: 2.705 MB / 0.8653 GB, free: 468 kB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.953e-05/1.02, allocations: 12 kB / 0.8653 GB, free: 456 kB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.411e-05/1.02, allocations: 12 kB / 0.8653 GB, free: 444 kB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005369/1.021, allocations: 98.77 kB / 0.8654 GB, free: 352 kB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.046e-05/1.021, allocations: 15.98 kB / 0.8654 GB, free: 336 kB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005286/1.021, allocations: 57.91 kB / 0.8655 GB, free: 288 kB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.091e-05/1.021, allocations: 39.05 kB / 0.8655 GB, free: 256 kB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.18e-05/1.021, allocations: 6.5 kB / 0.8655 GB, free: 252 kB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001171/1.023, allocations: 0.4928 MB / 0.866 GB, free: 15.88 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.548e-05/1.023, allocations: 8 kB / 0.866 GB, free: 15.87 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.043e-05/1.023, allocations: 12 kB / 0.866 GB, free: 15.86 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004487/1.023, allocations: 103 kB / 0.8661 GB, free: 15.76 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.255e-05/1.023, allocations: 15.94 kB / 0.8662 GB, free: 15.75 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004798/1.024, allocations: 57.45 kB / 0.8662 GB, free: 15.7 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.843e-05/1.024, allocations: 38.36 kB / 0.8663 GB, free: 15.67 MB / 0.6667 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.00025/1.024, allocations: 173.1 kB / 0.8664 GB, free: 15.52 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000107/1.024, allocations: 43.44 kB / 0.8665 GB, free: 15.48 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009061/1.025, allocations: 376.6 kB / 0.8668 GB, free: 15.21 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.137e-05/1.025, allocations: 8 kB / 0.8668 GB, free: 15.2 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.072e-06/1.025, allocations: 0 / 0.8668 GB, free: 15.2 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.756e-06/1.025, allocations: 0 / 0.8668 GB, free: 15.2 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0022/1.027, allocations: 1.099 MB / 0.8679 GB, free: 14.27 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.677e-06/1.027, allocations: 0 / 0.8679 GB, free: 14.27 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003119/1.028, allocations: 50.97 kB / 0.8679 GB, free: 14.22 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.251e-05/1.028, allocations: 4 kB / 0.868 GB, free: 14.21 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.332e-05/1.028, allocations: 14.95 kB / 0.868 GB, free: 14.21 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.81e-06/1.028, allocations: 0 / 0.868 GB, free: 14.21 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.05e-06/1.028, allocations: 7.984 kB / 0.868 GB, free: 14.2 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001191/1.029, allocations: 0.6277 MB / 0.8686 GB, free: 13.68 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002562/1.029, allocations: 142.8 kB / 0.8687 GB, free: 13.54 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.772e-05/1.029, allocations: 18.73 kB / 0.8687 GB, free: 13.53 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002892/1.03, allocations: 23.03 kB / 0.8688 GB, free: 13.51 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001472/1.03, allocations: 51.42 kB / 0.8688 GB, free: 13.46 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.869e-05/1.03, allocations: 14.94 kB / 0.8688 GB, free: 13.45 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.0004009/1.03, allocations: 256.8 kB / 0.8691 GB, free: 13.25 MB / 0.6667 GB Notification: Performance of sort global known variables: time 7.57e-07/1.03, allocations: 0 / 0.8691 GB, free: 13.25 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.001162/1.031, allocations: 237.7 kB / 0.8693 GB, free: 13.05 MB / 0.6667 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.0002461/1.032, allocations: 136.4 kB / 0.8694 GB, free: 12.92 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.001538/1.033, allocations: 0.6834 MB / 0.8701 GB, free: 12.41 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 4.032e-06/1.033, allocations: 0 / 0.8701 GB, free: 12.41 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0003812/1.034, allocations: 174.7 kB / 0.8703 GB, free: 12.29 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000684/1.034, allocations: 101 kB / 0.8704 GB, free: 12.21 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002029/1.036, allocations: 0.7224 MB / 0.8711 GB, free: 11.55 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007549/1.037, allocations: 0.9217 MB / 0.872 GB, free: 10.62 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.0007527/1.038, allocations: 136.7 kB / 0.8721 GB, free: 10.48 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001635/1.038, allocations: 47.36 kB / 0.8721 GB, free: 10.44 MB / 0.6667 GB Notification: Performance of SimCode: time 1.942e-06/1.038, allocations: 0 / 0.8721 GB, free: 10.44 MB / 0.6667 GB Notification: Performance of Templates: time 0.01827/1.056, allocations: 5.848 MB / 0.8778 GB, free: 4.637 MB / 0.6667 GB