Running command: translateModel(ElectricalEnergyStorage.Examples.AdvancedStackCycling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedStackCycling") Notification: Performance of loadModel(ElectricalEnergyStorage): time 1.894/1.894, allocations: 201.9 MB / 214.1 MB, free: 13.18 MB / 186.9 MB Notification: Performance of FrontEnd - loaded program: time 3.333e-05/3.346e-05, allocations: 4 kB / 263 MB, free: 10.97 MB / 218.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07691/0.07697, allocations: 45.99 MB / 309 MB, free: 12.9 MB / 266.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3502/0.4272, allocations: 93.33 MB / 402.3 MB, free: 10.37 MB / 314.9 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002409/0.4275, allocations: 93.89 kB / 402.4 MB, free: 10.36 MB / 314.9 MB Notification: Performance of FrontEnd - DAE generated: time 0.6905/1.118, allocations: 139.7 MB / 0.5294 GB, free: 48.96 MB / 410.9 MB Notification: Performance of FrontEnd: time 2.338e-06/1.118, allocations: 0 / 0.5294 GB, free: 48.96 MB / 410.9 MB Notification: Performance of Transformations before backend: time 0.001153/1.119, allocations: 126.6 kB / 0.5295 GB, free: 48.96 MB / 410.9 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1038 * Number of variables: 1038 Notification: Performance of Generate backend data structure: time 0.01834/1.138, allocations: 6.029 MB / 0.5354 GB, free: 46.72 MB / 410.9 MB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/1.138, allocations: 7.438 kB / 0.5354 GB, free: 46.72 MB / 410.9 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003136/1.141, allocations: 0.7016 MB / 0.5361 GB, free: 46.36 MB / 410.9 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01875/1.16, allocations: 7.521 MB / 0.5434 GB, free: 45.54 MB / 410.9 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004123/1.16, allocations: 346.6 kB / 0.5438 GB, free: 45.53 MB / 410.9 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0017/1.162, allocations: 425.5 kB / 0.5442 GB, free: 45.52 MB / 410.9 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0172/1.179, allocations: 6.241 MB / 0.5503 GB, free: 45.26 MB / 410.9 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001138/1.179, allocations: 0 / 0.5503 GB, free: 45.26 MB / 410.9 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008237/1.18, allocations: 167.7 kB / 0.5504 GB, free: 45.26 MB / 410.9 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001279/1.18, allocations: 145.2 kB / 0.5506 GB, free: 45.25 MB / 410.9 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01459/1.195, allocations: 5.44 MB / 0.5559 GB, free: 45.23 MB / 410.9 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05719/1.252, allocations: 27.29 MB / 0.5825 GB, free: 41.69 MB / 410.9 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00886/1.261, allocations: 8.267 MB / 0.5906 GB, free: 35.29 MB / 410.9 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004928/1.266, allocations: 2.414 MB / 0.5929 GB, free: 34.53 MB / 410.9 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001926/1.266, allocations: 25.5 kB / 0.593 GB, free: 34.52 MB / 410.9 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004274/1.27, allocations: 2.116 MB / 0.595 GB, free: 33.73 MB / 410.9 MB Notification: Performance of pre-optimization done (n=203): time 6.007e-06/1.27, allocations: 0 / 0.595 GB, free: 33.73 MB / 410.9 MB Notification: Performance of matching and sorting (n=203): time 0.01011/1.28, allocations: 4.063 MB / 0.599 GB, free: 32.23 MB / 410.9 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001119/1.281, allocations: 388.6 kB / 0.5994 GB, free: 31.79 MB / 410.9 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ElectricalEnergyStorage 3.2.2.mo:595:11-595:138:writable] Warning: Parameter batteryStack.SOCini[3,1] has no value, and is fixed during initialization (fixed=true), using available start value (start=0.5) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ElectricalEnergyStorage 3.2.2.mo:595:11-595:138:writable] Warning: Parameter batteryStack.SOCini[2,1] has no value, and is fixed during initialization (fixed=true), using available start value (start=0.5) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ElectricalEnergyStorage 3.2.2.mo:595:11-595:138:writable] Warning: Parameter batteryStack.SOCini[1,1] has no value, and is fixed during initialization (fixed=true), using available start value (start=0.5) 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.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[3].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[2].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 0.02138/1.302, allocations: 9.629 MB / 0.6088 GB, free: 28.95 MB / 410.9 MB Notification: Performance of collectPreVariables (initialization): time 0.000657/1.303, allocations: 77.77 kB / 0.6089 GB, free: 28.88 MB / 410.9 MB Notification: Performance of collectInitialEqns (initialization): time 0.004731/1.307, allocations: 2.834 MB / 0.6116 GB, free: 26.8 MB / 410.9 MB Notification: Performance of collectInitialBindings (initialization): time 0.001149/1.309, allocations: 0.6874 MB / 0.6123 GB, free: 26.28 MB / 410.9 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002715/1.309, allocations: 46.88 kB / 0.6123 GB, free: 26.24 MB / 410.9 MB Notification: Performance of setup shared object (initialization): time 0.0001883/1.309, allocations: 409.1 kB / 0.6127 GB, free: 25.9 MB / 410.9 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00347/1.313, allocations: 1.818 MB / 0.6145 GB, free: 25.25 MB / 410.9 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004323/1.317, allocations: 2.299 MB / 0.6167 GB, free: 24.11 MB / 410.9 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004126/1.321, allocations: 2.234 MB / 0.6189 GB, free: 22.16 MB / 410.9 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.609e-05/1.321, allocations: 4 kB / 0.6189 GB, free: 22.16 MB / 410.9 MB Notification: Performance of matching and sorting (n=286) (initialization): time 0.01174/1.333, allocations: 5.033 MB / 0.6238 GB, free: 17.67 MB / 410.9 MB Notification: Performance of prepare postOptimizeDAE: time 6.695e-05/1.333, allocations: 88.95 kB / 0.6239 GB, free: 17.57 MB / 410.9 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.899e-05/1.333, allocations: 8 kB / 0.6239 GB, free: 17.56 MB / 410.9 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001511/1.335, allocations: 474.3 kB / 0.6244 GB, free: 17.18 MB / 410.9 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003374/1.338, allocations: 0.5989 MB / 0.625 GB, free: 16.72 MB / 410.9 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005982/1.344, allocations: 4.126 MB / 0.629 GB, free: 12.9 MB / 410.9 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004346/1.348, allocations: 436.1 kB / 0.6294 GB, free: 12.57 MB / 410.9 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007213/1.349, allocations: 83.38 kB / 0.6295 GB, free: 12.5 MB / 410.9 MB Warning: Assuming fixed start value for the following 3 variables: batteryStack.cell[3,1].linearDynamicImpedance.cellImpedance.rcseriesLinear.rclinear[1].capacitor.variableCapacitor.Q:VARIABLE(unit = "C" ) type: Real [3,1,1] batteryStack.cell[2,1].linearDynamicImpedance.cellImpedance.rcseriesLinear.rclinear[1].capacitor.variableCapacitor.Q:VARIABLE(unit = "C" ) type: Real [3,1,1] batteryStack.cell[1,1].linearDynamicImpedance.cellImpedance.rcseriesLinear.rclinear[1].capacitor.variableCapacitor.Q:VARIABLE(unit = "C" ) type: Real [3,1,1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 30 ($whenCondition2,$whenCondition1,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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (258): * Single equations (assignments): 254 * Array equations: 0 * Algorithm blocks: 3 * 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 {3 26} Notification: Performance of prepare postOptimizeDAE: time 0.001052/1.35, allocations: 262.8 kB / 0.6298 GB, free: 12.25 MB / 410.9 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002045/1.352, allocations: 493.7 kB / 0.6302 GB, free: 11.76 MB / 410.9 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01065/1.363, allocations: 4.55 MB / 0.6347 GB, free: 7.852 MB / 410.9 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.188e-05/1.363, allocations: 20 kB / 0.6347 GB, free: 7.832 MB / 410.9 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.275e-06/1.363, allocations: 0 / 0.6347 GB, free: 7.832 MB / 410.9 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.637e-05/1.363, allocations: 21.12 kB / 0.6347 GB, free: 7.824 MB / 410.9 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03333/1.396, allocations: 14.22 MB / 0.6486 GB, free: 12.46 MB / 426.9 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-05/1.397, allocations: 0 / 0.6486 GB, free: 12.46 MB / 426.9 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003306/1.4, allocations: 485.5 kB / 0.6491 GB, free: 12.11 MB / 426.9 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001616/1.402, allocations: 450.4 kB / 0.6495 GB, free: 11.75 MB / 426.9 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005599/1.402, allocations: 86.34 kB / 0.6496 GB, free: 11.68 MB / 426.9 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007057/1.409, allocations: 4.026 MB / 0.6535 GB, free: 7.938 MB / 426.9 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.609e-06/1.409, allocations: 7.938 kB / 0.6535 GB, free: 7.934 MB / 426.9 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01527/1.425, allocations: 6.772 MB / 0.6601 GB, free: 1.875 MB / 426.9 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005704/1.43, allocations: 1.817 MB / 0.6619 GB, free: 132 kB / 426.9 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002059/1.432, allocations: 86.22 kB / 0.662 GB, free: 56 kB / 426.9 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004982/1.437, allocations: 313.4 kB / 0.6623 GB, free: 15.99 MB / 442.9 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008245/1.438, allocations: 156.6 kB / 0.6624 GB, free: 15.9 MB / 442.9 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002923/1.439, allocations: 59.23 kB / 0.6625 GB, free: 15.84 MB / 442.9 MB Notification: Performance of sorting global known variables: time 0.01818/1.457, allocations: 7.232 MB / 0.6695 GB, free: 9.516 MB / 442.9 MB Notification: Performance of sort global known variables: time 1.022e-06/1.457, allocations: 0 / 0.6695 GB, free: 9.516 MB / 442.9 MB Notification: Performance of remove unused functions: time 0.005876/1.463, allocations: 1.266 MB / 0.6708 GB, free: 8.246 MB / 442.9 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 25 (charger.controlledCurrent.limitedController.limIntegrator.y,batteryStack.cell[1,1].linearDynamicImpedance.calculator.sOC.integrator.y,batteryStack.cell[1,1].linearDynamicImpedance.calculator.q.absInt.y,batteryStack.cell[1,1].linearDynamicImpedance.calculator.EquivalentCycles.integrator.y,batteryStack.cell[1,1].linearDynamicImpedance.cellImpedance.rcseriesLinear.rclinear[1].capacitor.impedanceValue.qabs.absInt.y,batteryStack.cell[1,1].linearDynamicImpedance.cellImpedance.rcseriesLinear.rclinear[1].capacitor.variableCapacitor.Q,batteryStack.cell[1,1].linearDynamicImpedance.cellImpedance.rcseriesLinear.rclinear[1].resistor.impedanceValue.qabs.absInt.y,batteryStack.cell[1,1].linearDynamicImpedance.cellImpedance.rs.impedanceValue.qabs.absInt.y,batteryStack.cell[1,1].linearDynamicImpedance.selfDischarge.qabs.absInt.y,batteryStack.cell[2,1].linearDynamicImpedance.calculator.sOC.integrator.y,batteryStack.cell[2,1].linearDynamicImpedance.calculator.q.absInt.y,batteryStack.cell[2,1].linearDynamicImpedance.calculator.EquivalentCycles.integrator.y,batteryStack.cell[2,1].linearDynamicImpedance.cellImpedance.rcseriesLinear.rclinear[1].capacitor.impedanceValue.qabs.absInt.y,batteryStack.cell[2,1].linearDynamicImpedance.cellImpedance.rcseriesLinear.rclinear[1].capacitor.variableCapacitor.Q,batteryStack.cell[2,1].linearDynamicImpedance.cellImpedance.rcseriesLinear.rclinear[1].resistor.impedanceValue.qabs.absInt.y,batteryStack.cell[2,1].linearDynamicImpedance.cellImpedance.rs.impedanceValue.qabs.absInt.y,batteryStack.cell[2,1].linearDynamicImpedance.selfDischarge.qabs.absInt.y,batteryStack.cell[3,1].linearDynamicImpedance.calculator.sOC.integrator.y,batteryStack.cell[3,1].linearDynamicImpedance.calculator.q.absInt.y,batteryStack.cell[3,1].linearDynamicImpedance.calculator.EquivalentCycles.integrator.y,batteryStack.cell[3,1].linearDynamicImpedance.cellImpedance.rcseriesLinear.rclinear[1].capacitor.impedanceValue.qabs.absInt.y,batteryStack.cell[3,1].linearDynamicImpedance.cellImpedance.rcseriesLinear.rclinear[1].capacitor.variableCapacitor.Q,batteryStack.cell[3,1].linearDynamicImpedance.cellImpedance.rcseriesLinear.rclinear[1].resistor.impedanceValue.qabs.absInt.y,batteryStack.cell[3,1].linearDynamicImpedance.cellImpedance.rs.impedanceValue.qabs.absInt.y,batteryStack.cell[3,1].linearDynamicImpedance.selfDischarge.qabs.absInt.y) * Number of discrete variables: 23 (cycler.cycling.AfterChargingDelay.u,cycler.cycling.BeforeChargingDelay.u,$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) * Number of discrete states: 5 (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 (179): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {3 25} Notification: Performance of Backend phase and start with SimCode phase: time 0.001795/1.465, allocations: 0.6337 MB / 0.6714 GB, free: 7.773 MB / 442.9 MB Notification: Performance of simCode: created initialization part: time 0.00958/1.474, allocations: 4.283 MB / 0.6756 GB, free: 3.871 MB / 442.9 MB Notification: Performance of simCode: created event and clocks part: time 7.113e-06/1.474, allocations: 0 / 0.6756 GB, free: 3.871 MB / 442.9 MB Notification: Performance of simCode: created simulation system equations: time 0.004556/1.479, allocations: 2.078 MB / 0.6776 GB, free: 2 MB / 442.9 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007709/1.486, allocations: 1.231 MB / 0.6788 GB, free: 1.059 MB / 442.9 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2908/1.777, allocations: 14.47 MB / 0.693 GB, free: 78.52 MB / 442.9 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01188/1.789, allocations: 5.773 MB / 0.6986 GB, free: 77.7 MB / 442.9 MB Notification: Performance of simCode: alias equations: time 0.007746/1.797, allocations: 2.167 MB / 0.7007 GB, free: 77.66 MB / 442.9 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002268/1.799, allocations: 265.4 kB / 0.701 GB, free: 77.66 MB / 442.9 MB Notification: Performance of SimCode: time 3.993e-06/1.799, allocations: 0 / 0.701 GB, free: 77.66 MB / 442.9 MB Notification: Performance of Templates: time 0.1718/1.971, allocations: 78.56 MB / 0.7777 GB, free: 58.62 MB / 442.9 MB