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: "" <> buildModelFMU(ElectricalEnergyStorage.Examples.AdvancedStackCycling,fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_AdvancedStackCycling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ElectricalEnergyStorage.Examples.AdvancedStackCycling,fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_AdvancedStackCycling",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004962/0.004962, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.001215/0.001216, allocations: 193.5 kB / 16.67 MB, free: 5.93 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.404/1.404, allocations: 205.1 MB / 222.6 MB, free: 4.527 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.04658/0.04658, allocations: 7.038 MB / 276.9 MB, free: 14.13 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.001598/0.001598, allocations: 64.12 kB / 384.8 MB, free: 10.15 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2614/0.263, allocations: 48.09 MB / 432.9 MB, free: 7.789 MB / 318.1 MB [/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.gain.k has no value, and is fixed during initialization (fixed=true), using available start value (start=1) 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.gain.k has no value, and is fixed during initialization (fixed=true), using available start value (start=1) 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 has no value, and is fixed during initialization (fixed=true), using available start value (start=fill(0.5, ns, np)) as default value. Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedStackCycling): time 0.01194/0.275, allocations: 10.65 MB / 443.5 MB, free: 180 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01101/0.286, allocations: 5.798 MB / 449.3 MB, free: 11.99 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003637/0.2897, allocations: 56.59 kB / 449.4 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004455/0.2942, allocations: 1.481 MB / 450.9 MB, free: 11.39 MB / 334.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.002617/0.2968, allocations: 0.6355 MB / 451.5 MB, free: 10.9 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002403/0.2992, allocations: 1.215 MB / 452.7 MB, free: 9.941 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01253/0.3118, allocations: 10.65 MB / 463.4 MB, free: 3.191 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0109/0.3227, allocations: 7.487 MB / 470.9 MB, free: 12.4 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005752/0.3285, allocations: 3.732 MB / 474.6 MB, free: 8.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005374/0.3339, allocations: 3.666 MB / 478.3 MB, free: 4.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002792/0.3367, allocations: 1.285 MB / 479.6 MB, free: 3.695 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003674/0.3404, allocations: 1.316 MB / 480.9 MB, free: 2.379 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003911/0.3443, allocations: 2.522 MB / 483.4 MB, free: 15.85 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009506/0.3539, allocations: 4.685 MB / 488.1 MB, free: 11.15 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02196/0.3758, allocations: 17.56 MB / 0.4938 GB, free: 9.547 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.183e-06/0.3759, allocations: 4 kB / 0.4938 GB, free: 9.543 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3759, allocations: 0 / 0.4938 GB, free: 9.543 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004911/0.3764, allocations: 0 / 0.4938 GB, free: 9.543 MB / 382.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.02759/0.404, allocations: 9.426 MB / 0.503 GB, free: 20 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.345e-05/0.4041, allocations: 8.031 kB / 0.503 GB, free: 12 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00298/0.4071, allocations: 0.7796 MB / 0.5038 GB, free: 15.22 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003465/0.4105, allocations: 0.7733 MB / 0.5045 GB, free: 14.44 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02116/0.4317, allocations: 8.527 MB / 0.5128 GB, free: 5.844 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004083/0.4322, allocations: 368.8 kB / 0.5132 GB, free: 5.48 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001784/0.434, allocations: 439.8 kB / 0.5136 GB, free: 5.051 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01962/0.4536, allocations: 7.614 MB / 0.521 GB, free: 13.21 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002177/0.4539, allocations: 7.938 kB / 0.5211 GB, free: 13.21 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001372/0.4553, allocations: 176 kB / 0.5212 GB, free: 13.04 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001639/0.4555, allocations: 164 kB / 0.5214 GB, free: 12.87 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01445/0.4699, allocations: 6.528 MB / 0.5278 GB, free: 6.324 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05545/0.5254, allocations: 31.23 MB / 0.5583 GB, free: 6.75 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009012/0.5345, allocations: 8.352 MB / 0.5664 GB, free: 13.56 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004221/0.5387, allocations: 2.476 MB / 0.5688 GB, free: 11.08 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001453/0.5389, allocations: 37.88 kB / 0.5689 GB, free: 11.05 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003442/0.5424, allocations: 2.164 MB / 0.571 GB, free: 8.848 MB / 462.1 MB Notification: Performance of pre-optimization done (n=203): time 4.789e-06/0.5424, allocations: 3.938 kB / 0.571 GB, free: 8.844 MB / 462.1 MB Notification: Performance of matching and sorting (n=203): time 0.01429/0.5567, allocations: 6.535 MB / 0.5774 GB, free: 2.273 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002353/0.557, allocations: 389.8 kB / 0.5777 GB, free: 1.809 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02311/0.5801, allocations: 10.84 MB / 0.5883 GB, free: 6.949 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006054/0.5807, allocations: 77.7 kB / 0.5884 GB, free: 6.867 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00524/0.586, allocations: 3.111 MB / 0.5914 GB, free: 3.742 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001396/0.5874, allocations: 0.7361 MB / 0.5921 GB, free: 3 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001803/0.5893, allocations: 0.556 MB / 0.5927 GB, free: 2.438 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001083/0.5894, allocations: 301.1 kB / 0.593 GB, free: 2.141 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003391/0.5928, allocations: 1.981 MB / 0.5949 GB, free: 160 kB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1962/0.789, allocations: 2.77 MB / 0.5976 GB, free: 136.5 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02428/0.8133, allocations: 9.419 MB / 0.6068 GB, free: 133.9 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.974e-05/0.8134, allocations: 5.594 kB / 0.6068 GB, free: 133.9 MB / 478.1 MB Notification: Performance of matching and sorting (n=331) (initialization): time 0.01144/0.8249, allocations: 5.55 MB / 0.6122 GB, free: 132.1 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.023e-05/0.825, allocations: 17.22 kB / 0.6123 GB, free: 132.1 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.277e-05/0.825, allocations: 18.81 kB / 0.6123 GB, free: 132.1 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00131/0.8263, allocations: 466.4 kB / 0.6127 GB, free: 132 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002622/0.829, allocations: 0.6503 MB / 0.6134 GB, free: 132 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005358/0.8343, allocations: 4.894 MB / 0.6181 GB, free: 129.2 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003504/0.8379, allocations: 483.2 kB / 0.6186 GB, free: 129.1 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003817/0.8383, allocations: 102.5 kB / 0.6187 GB, free: 129.1 MB / 478.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.005404/0.8437, allocations: 3.947 MB / 0.6225 GB, free: 127.6 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001804/0.8455, allocations: 0.5355 MB / 0.6231 GB, free: 127.6 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00764/0.8531, allocations: 4.651 MB / 0.6276 GB, free: 124.3 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.326e-05/0.8532, allocations: 20 kB / 0.6276 GB, free: 124.3 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.8532, allocations: 4 kB / 0.6276 GB, free: 124.3 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.992e-05/0.8532, allocations: 7.969 kB / 0.6276 GB, free: 124.2 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02463/0.8778, allocations: 14.06 MB / 0.6414 GB, free: 110.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.568e-06/0.8779, allocations: 0 / 0.6414 GB, free: 110.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002067/0.88, allocations: 483.2 kB / 0.6418 GB, free: 109.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001016/0.881, allocations: 419 kB / 0.6422 GB, free: 109.3 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003339/0.8814, allocations: 79.95 kB / 0.6423 GB, free: 109.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005125/0.8865, allocations: 4.6 MB / 0.6468 GB, free: 104.6 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/0.8865, allocations: 4 kB / 0.6468 GB, free: 104.6 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009676/0.8962, allocations: 6.942 MB / 0.6536 GB, free: 97.59 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004903/0.9012, allocations: 1.808 MB / 0.6553 GB, free: 95.79 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001874/0.9031, allocations: 87.91 kB / 0.6554 GB, free: 95.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003026/0.9061, allocations: 247.6 kB / 0.6557 GB, free: 95.46 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004612/0.9066, allocations: 152.8 kB / 0.6558 GB, free: 95.32 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002049/0.9068, allocations: 51.98 kB / 0.6559 GB, free: 95.27 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0134/0.9202, allocations: 7.652 MB / 0.6633 GB, free: 87.61 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.7e-07/0.9202, allocations: 3.938 kB / 0.6633 GB, free: 87.61 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006381/0.9266, allocations: 1.306 MB / 0.6646 GB, free: 86.4 MB / 478.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.01262/0.9393, allocations: 7.896 MB / 0.6723 GB, free: 78.47 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006461/0.9458, allocations: 4.491 MB / 0.6767 GB, free: 73.98 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.212e-06/0.9458, allocations: 2.297 kB / 0.6767 GB, free: 73.98 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002835/0.9487, allocations: 2.156 MB / 0.6788 GB, free: 71.81 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007729/0.9564, allocations: 1.376 MB / 0.6802 GB, free: 70.43 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1371/1.094, allocations: 81.43 MB / 0.7597 GB, free: 4.039 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008824/1.102, allocations: 5.834 MB / 0.7654 GB, free: 14.17 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.005945/1.108, allocations: 2.459 MB / 0.7678 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005783/1.114, allocations: 2.522 MB / 0.7702 GB, free: 9.184 MB / 0.4981 GB Notification: Performance of SimCode: time 1.222e-06/1.114, allocations: 0 / 0.7702 GB, free: 9.184 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4264/1.541, allocations: 154.6 MB / 0.9212 GB, free: 65.68 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.11/25.65, allocations: 15.8 kB / 0.9212 GB, free: 65.67 MB / 0.5137 GB (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 & python3 -m fmpy simulate --output-file ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedStackCycling_res.csv --start-time 0 --stop-time 20000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1 ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_AdvancedStackCycling.fmu > ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedStackCycling.pipe 2>&1)