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.0009304/0.0009304, allocations: 90.75 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.007405/0.007406, allocations: 173.2 kB / 16.26 MB, free: 6.613 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.753/1.753, allocations: 205.4 MB / 222.4 MB, free: 5.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.1014/0.1014, allocations: 7.035 MB / 277.8 MB, free: 14.18 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.0005207/0.000521, allocations: 12 kB / 337.6 MB, free: 27.23 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09784/0.09837, allocations: 49.07 MB / 386.6 MB, free: 10.08 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedStackCycling): time 0.01434/0.1128, allocations: 9.904 MB / 396.5 MB, free: 132 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01026/0.1231, allocations: 5.106 MB / 401.6 MB, free: 11 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002641/0.1258, allocations: 55.88 kB / 401.7 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004067/0.1299, allocations: 1.147 MB / 402.9 MB, free: 9.793 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004459/0.1344, allocations: 484.7 kB / 403.3 MB, free: 9.316 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004264/0.1387, allocations: 1.128 MB / 404.5 MB, free: 8.188 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01592/0.1546, allocations: 9.623 MB / 414.1 MB, free: 14.55 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01121/0.1659, allocations: 6.935 MB / 421 MB, free: 7.516 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003778/0.1697, allocations: 2.045 MB / 423.1 MB, free: 5.461 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004723/0.1745, allocations: 2.389 MB / 425.4 MB, free: 3.059 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001497/0.176, allocations: 331.9 kB / 425.8 MB, free: 2.734 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002073/0.1781, allocations: 359.9 kB / 426.1 MB, free: 2.383 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001677/0.1798, allocations: 1.311 MB / 427.4 MB, free: 1.066 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2236/0.4034, allocations: 3.37 MB / 430.8 MB, free: 20.54 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0189/0.4223, allocations: 16.14 MB / 446.9 MB, free: 15.51 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.4224, allocations: 0 / 446.9 MB, free: 15.51 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.4224, allocations: 1.5 kB / 446.9 MB, free: 15.51 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0005399/0.4229, allocations: 0 / 446.9 MB, free: 15.51 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.02343/0.4464, allocations: 7.454 MB / 454.4 MB, free: 11.54 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.659e-05/0.4464, allocations: 7.531 kB / 454.4 MB, free: 11.54 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004934/0.4514, allocations: 0.7335 MB / 455.1 MB, free: 11.15 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01801/0.4694, allocations: 8.413 MB / 463.5 MB, free: 8.961 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002979/0.4698, allocations: 370.7 kB / 463.9 MB, free: 8.789 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002029/0.4718, allocations: 428.2 kB / 464.3 MB, free: 8.648 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01665/0.4884, allocations: 7.57 MB / 471.9 MB, free: 1.512 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.569e-05/0.4886, allocations: 15.08 kB / 471.9 MB, free: 1.5 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006321/0.4892, allocations: 172 kB / 472.1 MB, free: 1.332 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001164/0.4894, allocations: 156.1 kB / 472.2 MB, free: 1.176 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01451/0.5039, allocations: 6.51 MB / 478.7 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06679/0.5707, allocations: 31.52 MB / 0.4983 GB, free: 11.24 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009176/0.5799, allocations: 8.384 MB / 0.5065 GB, free: 2.031 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003884/0.5839, allocations: 2.443 MB / 0.5089 GB, free: 15.59 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001085/0.584, allocations: 29.75 kB / 0.5089 GB, free: 15.57 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003305/0.5873, allocations: 2.179 MB / 0.511 GB, free: 13.36 MB / 382.1 MB Notification: Performance of pre-optimization done (n=203): time 3.707e-06/0.5873, allocations: 0 / 0.511 GB, free: 13.36 MB / 382.1 MB Notification: Performance of matching and sorting (n=203): time 0.01414/0.6015, allocations: 6.608 MB / 0.5175 GB, free: 6.723 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002126/0.6017, allocations: 397.8 kB / 0.5179 GB, free: 6.246 MB / 382.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.02803/0.6297, allocations: 10.85 MB / 0.5285 GB, free: 11.37 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001098/0.6309, allocations: 73.7 kB / 0.5285 GB, free: 11.29 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.006396/0.6373, allocations: 3.052 MB / 0.5315 GB, free: 8.234 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001802/0.6391, allocations: 0.6993 MB / 0.5322 GB, free: 7.543 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001398/0.6406, allocations: 278.9 kB / 0.5325 GB, free: 7.266 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001431/0.6407, allocations: 305.1 kB / 0.5328 GB, free: 6.965 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00463/0.6454, allocations: 1.996 MB / 0.5347 GB, free: 4.969 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004048/0.6494, allocations: 2.772 MB / 0.5374 GB, free: 1.91 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02249/0.6719, allocations: 9.577 MB / 0.5468 GB, free: 8.148 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.652e-05/0.672, allocations: 7.938 kB / 0.5468 GB, free: 8.141 MB / 414.1 MB Notification: Performance of matching and sorting (n=331) (initialization): time 0.01384/0.6859, allocations: 5.572 MB / 0.5522 GB, free: 2.66 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.168e-05/0.686, allocations: 12 kB / 0.5522 GB, free: 2.648 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.962e-05/0.686, allocations: 20 kB / 0.5522 GB, free: 2.629 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001525/0.6876, allocations: 0.4954 MB / 0.5527 GB, free: 2.137 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003762/0.6914, allocations: 0.6614 MB / 0.5534 GB, free: 1.508 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007071/0.6985, allocations: 4.655 MB / 0.5579 GB, free: 12.73 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007294/0.7058, allocations: 484.6 kB / 0.5584 GB, free: 12.25 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009732/0.7068, allocations: 104 kB / 0.5585 GB, free: 12.15 MB / 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.01163/0.7185, allocations: 3.944 MB / 0.5623 GB, free: 8.227 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003405/0.7219, allocations: 0.5014 MB / 0.5628 GB, free: 7.719 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01301/0.7349, allocations: 4.693 MB / 0.5674 GB, free: 3.016 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.731e-05/0.735, allocations: 20 kB / 0.5674 GB, free: 2.996 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.735, allocations: 3.938 kB / 0.5674 GB, free: 2.992 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.967e-05/0.735, allocations: 11.95 kB / 0.5674 GB, free: 2.98 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03895/0.774, allocations: 14.15 MB / 0.5813 GB, free: 4.797 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.396e-05/0.7741, allocations: 0 / 0.5813 GB, free: 4.797 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002428/0.7765, allocations: 493.4 kB / 0.5817 GB, free: 4.332 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001426/0.778, allocations: 454.1 kB / 0.5822 GB, free: 3.887 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007574/0.7788, allocations: 79.97 kB / 0.5822 GB, free: 3.809 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2525/1.031, allocations: 4.406 MB / 0.5865 GB, free: 152.5 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/1.031, allocations: 6.062 kB / 0.5865 GB, free: 152.5 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01232/1.044, allocations: 6.949 MB / 0.5933 GB, free: 152.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004482/1.048, allocations: 1.8 MB / 0.5951 GB, free: 151.6 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002359/1.051, allocations: 82.86 kB / 0.5952 GB, free: 151.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002988/1.054, allocations: 265.9 kB / 0.5954 GB, free: 151.6 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00045/1.054, allocations: 145.2 kB / 0.5956 GB, free: 151.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001613/1.054, allocations: 55.78 kB / 0.5956 GB, free: 151.5 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.01947/1.074, allocations: 7.655 MB / 0.6031 GB, free: 149.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 6.11e-07/1.074, allocations: 0 / 0.6031 GB, free: 149.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.008355/1.082, allocations: 1.28 MB / 0.6043 GB, free: 148.1 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.001341/1.083, allocations: 0.4924 MB / 0.6048 GB, free: 147.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006611/1.09, allocations: 4.473 MB / 0.6092 GB, free: 143.8 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.202e-06/1.09, allocations: 4 kB / 0.6092 GB, free: 143.8 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002773/1.093, allocations: 2.158 MB / 0.6113 GB, free: 141.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007824/1.101, allocations: 1.297 MB / 0.6126 GB, free: 140.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02911/1.13, allocations: 18.87 MB / 0.631 GB, free: 122.4 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006623/1.137, allocations: 5.829 MB / 0.6367 GB, free: 116.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.006065/1.143, allocations: 2.424 MB / 0.6391 GB, free: 114.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002263/1.145, allocations: 279.4 kB / 0.6393 GB, free: 113.8 MB / 446.1 MB Notification: Performance of SimCode: time 1.953e-06/1.145, allocations: 0 / 0.6393 GB, free: 113.8 MB / 446.1 MB Notification: Performance of Templates: time 0.1311/1.276, allocations: 80.59 MB / 0.718 GB, free: 33.11 MB / 446.1 MB make -j1 -f ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedStackCycling.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: