Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedStackCycling.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo", uses=false) Using package ElectricalEnergyStorage with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ElectricalEnergyStorage.Examples.AdvancedStackCycling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedStackCycling") translateModel(ElectricalEnergyStorage.Examples.AdvancedStackCycling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedStackCycling") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001223/0.001223, allocations: 108 kB / 15.6 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001547/0.001547, allocations: 198.2 kB / 16.53 MB, free: 6.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.455/1.455, allocations: 205.1 MB / 222.4 MB, free: 4.617 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.0707/0.0707, allocations: 7.031 MB / 276.8 MB, free: 14.25 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ElectricalEnergyStorage requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001511/0.001511, allocations: 71.5 kB / 335.9 MB, free: 27.09 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1274/0.1289, allocations: 48.1 MB / 384 MB, free: 10.91 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedStackCycling): time 0.0141/0.1431, allocations: 10.65 MB / 394.6 MB, free: 208 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0115/0.1546, allocations: 5.784 MB / 400.4 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003248/0.158, allocations: 59.81 kB / 400.5 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005083/0.1631, allocations: 1.477 MB / 402 MB, free: 8.852 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.004489/0.1676, allocations: 0.5889 MB / 402.6 MB, free: 8.258 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003318/0.171, allocations: 1.218 MB / 403.8 MB, free: 7.039 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01699/0.188, allocations: 10.58 MB / 414.4 MB, free: 12.43 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01145/0.1995, allocations: 7.471 MB / 421.8 MB, free: 4.867 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006287/0.2058, allocations: 3.732 MB / 425.6 MB, free: 1.125 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2995/0.5054, allocations: 3.664 MB / 429.2 MB, free: 23.12 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004338/0.5098, allocations: 1.283 MB / 430.5 MB, free: 23.12 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004712/0.5145, allocations: 1.322 MB / 431.8 MB, free: 23.12 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003667/0.5182, allocations: 2.524 MB / 434.3 MB, free: 23.12 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01247/0.5307, allocations: 4.682 MB / 439 MB, free: 21.79 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02119/0.5519, allocations: 17.31 MB / 456.3 MB, free: 12.36 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.307e-05/0.552, allocations: 0 / 456.3 MB, free: 12.36 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.552, allocations: 0 / 456.3 MB, free: 12.36 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0006398/0.5527, allocations: 0 / 456.3 MB, free: 12.36 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1082 * Number of variables: 1082 Notification: Performance of Generate backend data structure: time 0.0341/0.5868, allocations: 9.205 MB / 465.5 MB, free: 6.48 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.641e-05/0.5868, allocations: 11.56 kB / 465.6 MB, free: 6.48 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003782/0.5906, allocations: 0.7325 MB / 466.3 MB, free: 6.09 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02049/0.6111, allocations: 8.411 MB / 474.7 MB, free: 14.17 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005401/0.6117, allocations: 356.8 kB / 475.1 MB, free: 13.82 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00288/0.6146, allocations: 436.5 kB / 475.5 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02503/0.6397, allocations: 7.589 MB / 483.1 MB, free: 5.602 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001873/0.6399, allocations: 7.375 kB / 483.1 MB, free: 5.598 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002067/0.642, allocations: 176 kB / 483.2 MB, free: 5.426 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001852/0.6422, allocations: 152.1 kB / 483.4 MB, free: 5.273 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01801/0.6602, allocations: 6.51 MB / 489.9 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07899/0.7393, allocations: 31.43 MB / 0.5091 GB, free: 15.44 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01109/0.7504, allocations: 8.36 MB / 0.5173 GB, free: 6.258 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004907/0.7554, allocations: 2.417 MB / 0.5196 GB, free: 3.844 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001912/0.7556, allocations: 33.89 kB / 0.5197 GB, free: 3.816 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004147/0.7598, allocations: 2.164 MB / 0.5218 GB, free: 1.621 MB / 382.1 MB Notification: Performance of pre-optimization done (n=203): time 7.434e-06/0.7598, allocations: 2.578 kB / 0.5218 GB, free: 1.621 MB / 382.1 MB Notification: Performance of matching and sorting (n=203): time 0.01615/0.776, allocations: 6.516 MB / 0.5281 GB, free: 11.08 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001717/0.7762, allocations: 389.8 kB / 0.5285 GB, free: 10.61 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Blocks/Math.mo:543:5-544: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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Blocks/Math.mo:543:5-544: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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Blocks/Math.mo:543:5-544: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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Blocks/Math.mo:543:5-544: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.03256/0.8087, allocations: 10.85 MB / 0.5391 GB, free: 15.74 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009341/0.8097, allocations: 81.62 kB / 0.5392 GB, free: 15.65 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00671/0.8164, allocations: 3.057 MB / 0.5422 GB, free: 12.59 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001927/0.8184, allocations: 0.6937 MB / 0.5429 GB, free: 11.91 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002797/0.8212, allocations: 0.5597 MB / 0.5434 GB, free: 11.34 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001188/0.8214, allocations: 301.1 kB / 0.5437 GB, free: 11.04 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004599/0.826, allocations: 1.988 MB / 0.5456 GB, free: 9.051 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005972/0.832, allocations: 2.771 MB / 0.5483 GB, free: 6 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02547/0.8575, allocations: 9.432 MB / 0.5575 GB, free: 12.38 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.998e-05/0.8575, allocations: 7.938 kB / 0.5576 GB, free: 12.37 MB / 430.1 MB Notification: Performance of matching and sorting (n=331) (initialization): time 0.01364/0.8712, allocations: 5.529 MB / 0.563 GB, free: 6.938 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.681e-05/0.8713, allocations: 15.98 kB / 0.563 GB, free: 6.922 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.96e-05/0.8713, allocations: 20 kB / 0.563 GB, free: 6.902 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001283/0.8726, allocations: 468.9 kB / 0.5634 GB, free: 6.441 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002564/0.8752, allocations: 0.6528 MB / 0.5641 GB, free: 5.824 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007033/0.8822, allocations: 4.885 MB / 0.5688 GB, free: 0.8203 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005283/0.8875, allocations: 476.7 kB / 0.5693 GB, free: 360 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005653/0.8881, allocations: 100 kB / 0.5694 GB, free: 260 kB / 430.1 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" fixed = true ) type: Real [3,1,1] batteryStack.cell[2,1].linearDynamicImpedance.cellImpedance.rcseriesLinear.rclinear[1].capacitor.variableCapacitor.Q:VARIABLE(unit = "C" fixed = true ) type: Real [3,1,1] batteryStack.cell[1,1].linearDynamicImpedance.cellImpedance.rcseriesLinear.rclinear[1].capacitor.variableCapacitor.Q:VARIABLE(unit = "C" fixed = true ) type: Real [3,1,1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * Number of states: 0 () * Number of discrete variables: 52 ($PRE.cycler.chargingFinished.fallingEdge.not_u,$PRE.cycler.cycling.edge1.u,$PRE.cycler.cycling.BeforeChargingDelay.timer.entryTime,$PRE.cycler.cycling.BeforeChargingDelay.rSFlipFlop.pre.u,$PRE.cycler.cycling.AfterChargingDelay.timer.entryTime,$PRE.cycler.cycling.AfterChargingDelay.rSFlipFlop.pre.u,$PRE.cycler.cycling.rSFlipFlop.pre.u,cycler.chargingFinished.fallingEdge.not_u,cycler.chargingFinished.fallingEdge.y,cycler.chargingFinished.GraterEqualVmax.y,cycler.cycling.or1.y,cycler.cycling.greaterThreshold.y,cycler.cycling.edge1.y,cycler.cycling.edge1.u,cycler.cycling.BeforeChargingDelay.greaterThreshold.y,cycler.cycling.BeforeChargingDelay.timer.entryTime,cycler.cycling.BeforeChargingDelay.rSFlipFlop.pre.u,cycler.cycling.BeforeChargingDelay.rSFlipFlop.QI,cycler.cycling.BeforeChargingDelay.u,cycler.cycling.AfterChargingDelay.greaterThreshold.y,cycler.cycling.AfterChargingDelay.timer.entryTime,cycler.cycling.AfterChargingDelay.rSFlipFlop.pre.u,cycler.cycling.AfterChargingDelay.rSFlipFlop.QI,cycler.cycling.AfterChargingDelay.u,cycler.cycling.lessVinMin.y,cycler.cycling.rSFlipFlop.pre.u,cycler.Charging,cycler.Discharging,$whenCondition1,$whenCondition2,batteryStack.cell[3,1].linearDynamicImpedance.selfDischarge.qabs.absInt.local_reset,batteryStack.cell[3,1].linearDynamicImpedance.cellImpedance.rs.impedanceValue.qabs.absInt.local_reset,batteryStack.cell[3,1].linearDynamicImpedance.cellImpedance.rcseriesLinear.rclinear[1].resistor.impedanceValue.qabs.absInt.local_reset,batteryStack.cell[3,1].linearDynamicImpedance.cellImpedance.rcseriesLinear.rclinear[1].capacitor.impedanceValue.qabs.absInt.local_reset,batteryStack.cell[3,1].linearDynamicImpedance.calculator.EquivalentCycles.integrator.local_reset,batteryStack.cell[3,1].linearDynamicImpedance.calculator.q.absInt.local_reset,batteryStack.cell[3,1].linearDynamicImpedance.calculator.sOC.integrator.local_reset,batteryStack.cell[2,1].linearDynamicImpedance.selfDischarge.qabs.absInt.local_reset,batteryStack.cell[2,1].linearDynamicImpedance.cellImpedance.rs.impedanceValue.qabs.absInt.local_reset,batteryStack.cell[2,1].linearDynamicImpedance.cellImpedance.rcseriesLinear.rclinear[1].resistor.impedanceValue.qabs.absInt.local_reset,batteryStack.cell[2,1].linearDynamicImpedance.cellImpedance.rcseriesLinear.rclinear[1].capacitor.impedanceValue.qabs.absInt.local_reset,batteryStack.cell[2,1].linearDynamicImpedance.calculator.EquivalentCycles.integrator.local_reset,batteryStack.cell[2,1].linearDynamicImpedance.calculator.q.absInt.local_reset,batteryStack.cell[2,1].linearDynamicImpedance.calculator.sOC.integrator.local_reset,batteryStack.cell[1,1].linearDynamicImpedance.selfDischarge.qabs.absInt.local_reset,batteryStack.cell[1,1].linearDynamicImpedance.cellImpedance.rs.impedanceValue.qabs.absInt.local_reset,batteryStack.cell[1,1].linearDynamicImpedance.cellImpedance.rcseriesLinear.rclinear[1].resistor.impedanceValue.qabs.absInt.local_reset,batteryStack.cell[1,1].linearDynamicImpedance.cellImpedance.rcseriesLinear.rclinear[1].capacitor.impedanceValue.qabs.absInt.local_reset,batteryStack.cell[1,1].linearDynamicImpedance.calculator.EquivalentCycles.integrator.local_reset,batteryStack.cell[1,1].linearDynamicImpedance.calculator.q.absInt.local_reset,batteryStack.cell[1,1].linearDynamicImpedance.calculator.sOC.integrator.local_reset,charger.controlledCurrent.limitedController.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (302): * Single equations (assignments): 301 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,27)} Notification: Performance of prepare postOptimizeDAE: time 0.01044/0.8986, allocations: 3.939 MB / 0.5732 GB, free: 12.34 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003182/0.9018, allocations: 0.5014 MB / 0.5737 GB, free: 11.83 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01106/0.9129, allocations: 4.64 MB / 0.5783 GB, free: 7.176 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.111e-05/0.9129, allocations: 23.98 kB / 0.5783 GB, free: 7.152 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.513e-05/0.913, allocations: 3 kB / 0.5783 GB, free: 7.152 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.615e-05/0.913, allocations: 15.84 kB / 0.5783 GB, free: 7.137 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3614/1.274, allocations: 14.09 MB / 0.5921 GB, free: 149.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-05/1.275, allocations: 1.281 kB / 0.5921 GB, free: 149.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002389/1.277, allocations: 484.8 kB / 0.5925 GB, free: 149.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001411/1.278, allocations: 422.2 kB / 0.5929 GB, free: 149.2 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003052/1.279, allocations: 81.73 kB / 0.593 GB, free: 149.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007104/1.286, allocations: 4.596 MB / 0.5975 GB, free: 146.5 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.684e-06/1.286, allocations: 0.5312 kB / 0.5975 GB, free: 146.5 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01246/1.298, allocations: 6.908 MB / 0.6042 GB, free: 144.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005474/1.304, allocations: 1.783 MB / 0.606 GB, free: 143.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001993/1.306, allocations: 86.5 kB / 0.6061 GB, free: 143.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002509/1.308, allocations: 250.3 kB / 0.6063 GB, free: 143.4 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005728/1.309, allocations: 146.3 kB / 0.6064 GB, free: 143.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001857/1.309, allocations: 54.52 kB / 0.6065 GB, free: 143.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.02323/1.332, allocations: 7.651 MB / 0.614 GB, free: 139.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.8e-07/1.332, allocations: 3.906 kB / 0.614 GB, free: 139.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.009995/1.342, allocations: 1.28 MB / 0.6152 GB, free: 138.5 MB / 446.1 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,cycler.Discharging,cycler.Charging,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.y,cycler.chargingFinished.fallingEdge.not_u) * 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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,25)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001824/1.344, allocations: 0.489 MB / 0.6157 GB, free: 138.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01844/1.363, allocations: 8.529 MB / 0.624 GB, free: 129.9 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.468e-05/1.363, allocations: 6.344 kB / 0.624 GB, free: 129.9 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004819/1.368, allocations: 2.152 MB / 0.6261 GB, free: 127.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01615/1.384, allocations: 1.359 MB / 0.6275 GB, free: 126.3 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04822/1.432, allocations: 16.64 MB / 0.6437 GB, free: 109.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01408/1.446, allocations: 5.837 MB / 0.6494 GB, free: 103.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.008673/1.455, allocations: 2.455 MB / 0.6518 GB, free: 101.4 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003695/1.459, allocations: 279.4 kB / 0.6521 GB, free: 101.1 MB / 446.1 MB Notification: Performance of SimCode: time 1.873e-06/1.459, allocations: 4 kB / 0.6521 GB, free: 101.1 MB / 446.1 MB Notification: Performance of Templates: time 0.155/1.614, allocations: 85.46 MB / 0.7355 GB, free: 15.5 MB / 446.1 MB make -j1 -f ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedStackCycling.makefile (rm -f ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedStackCycling.pipe ; mkfifo ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedStackCycling.pipe ; head -c 1048576 < ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedStackCycling.pipe >> ../files/ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedStackCycling.sim & ./ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedStackCycling -abortSlowSimulation -alarm=480 -lv LOG_STATS > ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedStackCycling.pipe 2>&1)