Running command: translateModel(ElectricalEnergyStorage.Examples.SimpleStackCycling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=150000,variableFilter="",fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.SimpleStackCycling") Notification: Performance of loadModel(ElectricalEnergyStorage): time 1.911/1.911, allocations: 201.9 MB / 214.1 MB, free: 13.16 MB / 186.9 MB Notification: Performance of FrontEnd - loaded program: time 5.569e-05/5.597e-05, allocations: 4 kB / 263 MB, free: 10.97 MB / 218.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08435/0.08445, allocations: 45.99 MB / 309 MB, free: 12.9 MB / 266.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3557/0.4402, allocations: 92.32 MB / 401.3 MB, free: 10.93 MB / 314.9 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002375/0.4405, allocations: 89.8 kB / 401.4 MB, free: 10.92 MB / 314.9 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ElectricalEnergyStorage 3.2.2.mo:571:11-571:143:writable] Warning: connect(internalHeatPort, internalHeatPort) connects the same connector instance! The connect equation will be ignored. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2346:7-2347:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$load$fTP72_Power$FTP72_Table.getDerTableValue. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2312:7-2313:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$load$fTP72_Power$FTP72_Table.getTableValue. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2358:7-2359:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$load$fTP72_Power$FTP72_Table.getTableTimeTmin. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2369:7-2370:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$load$fTP72_Power$FTP72_Table.getTableTimeTmax. Notification: Performance of FrontEnd - DAE generated: time 2.283/2.723, allocations: 337.5 MB / 0.7216 GB, free: 84.25 MB / 426.9 MB Notification: Performance of FrontEnd: time 2.416e-06/2.723, allocations: 0 / 0.7216 GB, free: 84.25 MB / 426.9 MB Notification: Performance of Transformations before backend: time 0.00325/2.727, allocations: 292.4 kB / 0.7219 GB, free: 84.25 MB / 426.9 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 336 * Number of variables: 336 Notification: Performance of Generate backend data structure: time 0.02922/2.756, allocations: 14.59 MB / 0.7361 GB, free: 76.61 MB / 426.9 MB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/2.756, allocations: 9.25 kB / 0.7361 GB, free: 76.61 MB / 426.9 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005383/2.761, allocations: 2.484 MB / 0.7385 GB, free: 75.23 MB / 426.9 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05368/2.815, allocations: 18.39 MB / 0.7565 GB, free: 69.98 MB / 426.9 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001191/2.815, allocations: 108.3 kB / 0.7566 GB, free: 69.93 MB / 426.9 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00035/2.816, allocations: 137.6 kB / 0.7567 GB, free: 69.89 MB / 426.9 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005026/2.821, allocations: 1.229 MB / 0.7579 GB, free: 69.3 MB / 426.9 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.808e-05/2.821, allocations: 5.172 kB / 0.7579 GB, free: 69.3 MB / 426.9 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002614/2.821, allocations: 59.06 kB / 0.758 GB, free: 69.26 MB / 426.9 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.251e-05/2.821, allocations: 32.59 kB / 0.758 GB, free: 69.26 MB / 426.9 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003918/2.825, allocations: 0.8512 MB / 0.7589 GB, free: 68.9 MB / 426.9 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07445/2.9, allocations: 22.95 MB / 0.7813 GB, free: 53.43 MB / 426.9 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00131/2.901, allocations: 0.6151 MB / 0.7819 GB, free: 52.81 MB / 426.9 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001033/2.902, allocations: 304.5 kB / 0.7822 GB, free: 52.51 MB / 426.9 MB Notification: Performance of preOpt evalFunc (simulation): time 9.809e-05/2.902, allocations: 4.562 kB / 0.7822 GB, free: 52.5 MB / 426.9 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001605/2.904, allocations: 376.7 kB / 0.7825 GB, free: 52.12 MB / 426.9 MB Notification: Performance of pre-optimization done (n=70): time 7.923e-06/2.904, allocations: 4 kB / 0.7825 GB, free: 52.12 MB / 426.9 MB Notification: Performance of matching and sorting (n=70): time 0.01437/2.918, allocations: 2.98 MB / 0.7854 GB, free: 49.1 MB / 426.9 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001005/2.918, allocations: 141 kB / 0.7856 GB, free: 48.93 MB / 426.9 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Math.mo:595:5-596:48:writable] Warning: Parameter cycler.iOut[1].gain.k has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Math.mo:595:5-596:48:writable] Warning: Parameter cycler.vOut[1].gain.k has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.27/4.188, allocations: 47.5 MB / 0.832 GB, free: 69.98 MB / 426.9 MB Notification: Performance of collectPreVariables (initialization): time 0.0001998/4.189, allocations: 49.36 kB / 0.832 GB, free: 69.95 MB / 426.9 MB Notification: Performance of collectInitialEqns (initialization): time 0.02705/4.216, allocations: 12.56 MB / 0.8443 GB, free: 63.68 MB / 426.9 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004385/4.216, allocations: 208.8 kB / 0.8445 GB, free: 63.55 MB / 426.9 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001079/4.216, allocations: 16.12 kB / 0.8445 GB, free: 63.54 MB / 426.9 MB Notification: Performance of setup shared object (initialization): time 0.0001279/4.217, allocations: 336.7 kB / 0.8448 GB, free: 63.22 MB / 426.9 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001282/4.218, allocations: 282.8 kB / 0.8451 GB, free: 63.1 MB / 426.9 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001378/4.219, allocations: 424.4 kB / 0.8455 GB, free: 62.82 MB / 426.9 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009907/4.22, allocations: 363.7 kB / 0.8458 GB, free: 62.62 MB / 426.9 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.18e-06/4.22, allocations: 2.438 kB / 0.8458 GB, free: 62.62 MB / 426.9 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.009533/4.23, allocations: 3.284 MB / 0.849 GB, free: 60.89 MB / 426.9 MB Notification: Performance of prepare postOptimizeDAE: time 6.039e-05/4.23, allocations: 69.27 kB / 0.8491 GB, free: 60.82 MB / 426.9 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.256e-05/4.23, allocations: 3.531 kB / 0.8491 GB, free: 60.82 MB / 426.9 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005204/4.231, allocations: 115.5 kB / 0.8492 GB, free: 60.79 MB / 426.9 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007562/4.231, allocations: 122.9 kB / 0.8493 GB, free: 60.79 MB / 426.9 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0029/4.234, allocations: 2.118 MB / 0.8514 GB, free: 59.07 MB / 426.9 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006503/4.241, allocations: 154.7 kB / 0.8516 GB, free: 59.04 MB / 426.9 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002015/4.241, allocations: 32.16 kB / 0.8516 GB, free: 59.03 MB / 426.9 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 35 ($whenCondition1,$PRE.load.fTP72_Power.FTP72_Table.nextTimeEvent,$whenCondition3,$whenCondition2,charger.on,cycler.Discharging,$PRE.cycler.cycling.rSFlipFlop.pre.u,cycler.cycling.rSFlipFlop.pre.u,cycler.cycling.lessVinMin.y,cycler.cycling.AfterChargingDelay.u,cycler.cycling.AfterChargingDelay.rSFlipFlop.QI,$PRE.cycler.cycling.AfterChargingDelay.rSFlipFlop.pre.u,cycler.cycling.AfterChargingDelay.rSFlipFlop.pre.u,$PRE.cycler.cycling.AfterChargingDelay.timer.entryTime,cycler.cycling.AfterChargingDelay.timer.entryTime,cycler.cycling.AfterChargingDelay.greaterThreshold.y,cycler.cycling.BeforeChargingDelay.u,cycler.cycling.BeforeChargingDelay.rSFlipFlop.QI,$PRE.cycler.cycling.BeforeChargingDelay.rSFlipFlop.pre.u,cycler.cycling.BeforeChargingDelay.rSFlipFlop.pre.u,$PRE.cycler.cycling.BeforeChargingDelay.timer.entryTime,cycler.cycling.BeforeChargingDelay.timer.entryTime,cycler.cycling.BeforeChargingDelay.greaterThreshold.y,$PRE.cycler.cycling.edge1.u,cycler.cycling.edge1.u,cycler.cycling.edge1.y,cycler.cycling.greaterThreshold.y,cycler.cycling.or1.y,cycler.chargingFinished.GraterEqualVmax.y,$PRE.cycler.chargingFinished.fallingEdge.not_u,cycler.chargingFinished.fallingEdge.not_u,cycler.chargingFinished.and1.u1,load.fTP72_Power.FTP72_Table.nextTimeEvent,$PRE.load.fTP72_Power.FTP72_Table.nextTimeEventScaled,load.fTP72_Power.FTP72_Table.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of prepare postOptimizeDAE: time 0.000253/4.241, allocations: 182.2 kB / 0.8518 GB, free: 58.89 MB / 426.9 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00654/4.248, allocations: 2.448 MB / 0.8542 GB, free: 57.55 MB / 426.9 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01157/4.259, allocations: 3.611 MB / 0.8577 GB, free: 56.46 MB / 426.9 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.636e-06/4.259, allocations: 7.438 kB / 0.8577 GB, free: 56.46 MB / 426.9 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/4.259, allocations: 0.7969 kB / 0.8577 GB, free: 56.46 MB / 426.9 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.465e-05/4.26, allocations: 7.141 kB / 0.8577 GB, free: 56.46 MB / 426.9 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0513/4.311, allocations: 19.99 MB / 0.8772 GB, free: 49.71 MB / 426.9 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-06/4.311, allocations: 3.953 kB / 0.8772 GB, free: 49.71 MB / 426.9 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005718/4.311, allocations: 80.77 kB / 0.8773 GB, free: 49.7 MB / 426.9 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004748/4.312, allocations: 110.3 kB / 0.8774 GB, free: 49.67 MB / 426.9 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.166e-05/4.312, allocations: 17.91 kB / 0.8774 GB, free: 49.66 MB / 426.9 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002759/4.315, allocations: 2.089 MB / 0.8795 GB, free: 47.98 MB / 426.9 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.938e-06/4.315, allocations: 4.031 kB / 0.8795 GB, free: 47.98 MB / 426.9 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009441/4.324, allocations: 3.803 MB / 0.8832 GB, free: 45.77 MB / 426.9 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01481/4.339, allocations: 5.579 MB / 0.8886 GB, free: 43.25 MB / 426.9 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005333/4.345, allocations: 59.03 kB / 0.8887 GB, free: 43.23 MB / 426.9 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006422/4.351, allocations: 95.39 kB / 0.8888 GB, free: 43.23 MB / 426.9 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003362/4.351, allocations: 78.06 kB / 0.8888 GB, free: 43.21 MB / 426.9 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.207e-05/4.351, allocations: 19.56 kB / 0.8889 GB, free: 43.2 MB / 426.9 MB Notification: Performance of sorting global known variables: time 0.08962/4.441, allocations: 37.24 MB / 0.9252 GB, free: 30.72 MB / 426.9 MB Notification: Performance of sort global known variables: time 1.478e-06/4.441, allocations: 0 / 0.9252 GB, free: 30.72 MB / 426.9 MB Notification: Performance of remove unused functions: time 0.009761/4.451, allocations: 2.239 MB / 0.9274 GB, free: 30.67 MB / 426.9 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (charger.controlledCurrent.limitedController.limIntegrator.y,batteryStack.staticResistance.cellCalculator.sOC.integrator.y,batteryStack.staticResistance.cellCalculator.q.absInt.y,batteryStack.staticResistance.cellCalculator.EquivalentCycles.integrator.y) * Number of discrete variables: 26 (cycler.cycling.AfterChargingDelay.u,cycler.cycling.BeforeChargingDelay.u,$whenCondition3,$whenCondition2,$whenCondition1,charger.on,cycler.Discharging,cycler.cycling.rSFlipFlop.pre.u,cycler.cycling.lessVinMin.y,cycler.cycling.AfterChargingDelay.rSFlipFlop.QI,cycler.cycling.AfterChargingDelay.rSFlipFlop.pre.u,cycler.cycling.AfterChargingDelay.timer.entryTime,cycler.cycling.AfterChargingDelay.greaterThreshold.y,cycler.cycling.BeforeChargingDelay.rSFlipFlop.QI,cycler.cycling.BeforeChargingDelay.rSFlipFlop.pre.u,cycler.cycling.BeforeChargingDelay.timer.entryTime,cycler.cycling.BeforeChargingDelay.greaterThreshold.y,cycler.cycling.edge1.u,cycler.cycling.edge1.y,cycler.cycling.greaterThreshold.y,cycler.cycling.or1.y,cycler.chargingFinished.GraterEqualVmax.y,cycler.chargingFinished.fallingEdge.not_u,cycler.chargingFinished.and1.u1,load.fTP72_Power.FTP72_Table.nextTimeEvent,load.fTP72_Power.FTP72_Table.nextTimeEventScaled) * Number of discrete states: 7 (load.fTP72_Power.FTP72_Table.nextTimeEvent,load.fTP72_Power.FTP72_Table.nextTimeEventScaled,cycler.cycling.BeforeChargingDelay.rSFlipFlop.pre.u,cycler.cycling.AfterChargingDelay.rSFlipFlop.pre.u,cycler.cycling.rSFlipFlop.pre.u,cycler.chargingFinished.fallingEdge.not_u,cycler.cycling.edge1.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 53 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.002015/4.453, allocations: 0.6439 MB / 0.9281 GB, free: 30.41 MB / 426.9 MB Notification: Performance of simCode: created initialization part: time 0.001916/4.455, allocations: 0.9497 MB / 0.929 GB, free: 29.88 MB / 426.9 MB Notification: Performance of simCode: created event and clocks part: time 5.464e-06/4.455, allocations: 0 / 0.929 GB, free: 29.88 MB / 426.9 MB Notification: Performance of simCode: created simulation system equations: time 0.0009034/4.456, allocations: 486 kB / 0.9294 GB, free: 29.64 MB / 426.9 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01321/4.469, allocations: 1.511 MB / 0.9309 GB, free: 28.64 MB / 426.9 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09617/4.565, allocations: 44.26 MB / 0.9741 GB, free: 14.86 MB / 442.9 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0336/4.599, allocations: 11.84 MB / 0.9857 GB, free: 2.969 MB / 442.9 MB Notification: Performance of simCode: alias equations: time 0.01732/4.616, allocations: 4.437 MB / 0.99 GB, free: 14.53 MB / 458.9 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00801/4.624, allocations: 1.031 MB / 0.991 GB, free: 13.5 MB / 458.9 MB Notification: Performance of SimCode: time 1.768e-06/4.624, allocations: 0 / 0.991 GB, free: 13.5 MB / 458.9 MB Notification: Performance of Templates: time 1.85/6.475, allocations: 133.9 MB / 1.122 GB, free: 38.38 MB / 459.1 MB