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.001392/0.001392, allocations: 112.5 kB / 15.73 MB, free: 76 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.001395/0.001395, allocations: 191.3 kB / 16.67 MB, free: 6.539 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.494/1.494, allocations: 205.1 MB / 222.5 MB, free: 4.512 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.05499/0.05499, allocations: 7.034 MB / 276.9 MB, free: 14.14 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.002352/0.002352, allocations: 67.91 kB / 384.8 MB, free: 10.17 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2653/0.2677, allocations: 48.1 MB / 432.9 MB, free: 7.793 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedStackCycling): time 0.01042/0.2782, allocations: 10.65 MB / 443.5 MB, free: 184 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01046/0.2887, allocations: 5.788 MB / 449.3 MB, free: 12 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003325/0.292, allocations: 65.19 kB / 449.4 MB, free: 11.99 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004759/0.2969, allocations: 1.471 MB / 450.9 MB, free: 11.4 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.003317/0.3002, allocations: 0.5918 MB / 451.5 MB, free: 10.94 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00289/0.3031, allocations: 1.215 MB / 452.7 MB, free: 9.973 MB / 334.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[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[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[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.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/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, 3, 1)) as default value. Notification: Performance of NFFlatten.flatten: time 0.01464/0.3178, allocations: 10.65 MB / 463.3 MB, free: 3.223 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01001/0.3278, allocations: 7.483 MB / 470.8 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005287/0.3331, allocations: 3.728 MB / 474.5 MB, free: 8.719 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005785/0.3389, allocations: 3.674 MB / 478.2 MB, free: 5.031 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002806/0.3418, allocations: 1.281 MB / 479.5 MB, free: 3.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002905/0.3447, allocations: 1.316 MB / 480.8 MB, free: 2.434 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003072/0.3478, allocations: 2.529 MB / 483.3 MB, free: 15.9 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007972/0.3558, allocations: 4.677 MB / 488 MB, free: 11.2 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02145/0.3773, allocations: 17.55 MB / 0.4937 GB, free: 9.602 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.713e-06/0.3773, allocations: 0 / 0.4937 GB, free: 9.602 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3773, allocations: 0 / 0.4937 GB, free: 9.602 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004115/0.3777, allocations: 0 / 0.4937 GB, free: 9.602 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.02634/0.4041, allocations: 9.426 MB / 0.5029 GB, free: 80 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.441e-05/0.4042, allocations: 12.03 kB / 0.5029 GB, free: 68 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002812/0.407, allocations: 0.7796 MB / 0.5037 GB, free: 15.27 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003085/0.4101, allocations: 0.7694 MB / 0.5044 GB, free: 14.5 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01894/0.429, allocations: 8.531 MB / 0.5128 GB, free: 5.898 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005072/0.4296, allocations: 360.9 kB / 0.5131 GB, free: 5.543 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001873/0.4315, allocations: 443.8 kB / 0.5135 GB, free: 5.109 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01913/0.4506, allocations: 7.61 MB / 0.521 GB, free: 13.27 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001505/0.4508, allocations: 7.938 kB / 0.521 GB, free: 13.27 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001281/0.4521, allocations: 183.9 kB / 0.5212 GB, free: 13.09 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001836/0.4523, allocations: 160.2 kB / 0.5213 GB, free: 12.93 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01527/0.4676, allocations: 6.524 MB / 0.5277 GB, free: 6.383 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05837/0.526, allocations: 31.22 MB / 0.5582 GB, free: 6.828 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01069/0.5367, allocations: 8.36 MB / 0.5663 GB, free: 13.64 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004764/0.5415, allocations: 2.48 MB / 0.5687 GB, free: 11.15 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001971/0.5418, allocations: 33.97 kB / 0.5688 GB, free: 11.12 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003996/0.5458, allocations: 2.168 MB / 0.5709 GB, free: 8.914 MB / 462.1 MB Notification: Performance of pre-optimization done (n=203): time 3.937e-06/0.5458, allocations: 0 / 0.5709 GB, free: 8.914 MB / 462.1 MB Notification: Performance of matching and sorting (n=203): time 0.0149/0.5607, allocations: 6.539 MB / 0.5773 GB, free: 2.34 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002592/0.561, allocations: 389.9 kB / 0.5777 GB, free: 1.875 MB / 462.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.02228/0.5833, allocations: 10.86 MB / 0.5883 GB, free: 6.988 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005823/0.5839, allocations: 73.7 kB / 0.5883 GB, free: 6.91 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.005066/0.589, allocations: 3.115 MB / 0.5914 GB, free: 3.781 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001347/0.5903, allocations: 0.7284 MB / 0.5921 GB, free: 3.047 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001867/0.5922, allocations: 0.5599 MB / 0.5926 GB, free: 2.48 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.5924, allocations: 301.1 kB / 0.5929 GB, free: 2.184 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003778/0.5962, allocations: 1.981 MB / 0.5949 GB, free: 204 kB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1788/0.775, allocations: 2.776 MB / 0.5976 GB, free: 136.5 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02039/0.7954, allocations: 9.416 MB / 0.6068 GB, free: 133.8 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.029e-05/0.7955, allocations: 7.062 kB / 0.6068 GB, free: 133.8 MB / 478.1 MB Notification: Performance of matching and sorting (n=331) (initialization): time 0.009396/0.8049, allocations: 5.552 MB / 0.6122 GB, free: 132.1 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.975e-05/0.8049, allocations: 13.22 kB / 0.6122 GB, free: 132.1 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.963e-05/0.805, allocations: 17.91 kB / 0.6122 GB, free: 132.1 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001135/0.8061, allocations: 469.1 kB / 0.6127 GB, free: 132 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002297/0.8084, allocations: 0.6552 MB / 0.6133 GB, free: 131.9 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004962/0.8134, allocations: 4.891 MB / 0.6181 GB, free: 129.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003194/0.8166, allocations: 482.8 kB / 0.6185 GB, free: 129.1 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003383/0.817, allocations: 103.6 kB / 0.6186 GB, free: 129 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.005255/0.8222, allocations: 3.935 MB / 0.6225 GB, free: 127.6 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001891/0.8241, allocations: 0.5331 MB / 0.623 GB, free: 127.6 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007553/0.8317, allocations: 4.645 MB / 0.6275 GB, free: 124.3 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.277e-05/0.8317, allocations: 20 kB / 0.6276 GB, free: 124.3 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/0.8317, allocations: 0 / 0.6276 GB, free: 124.3 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.956e-05/0.8318, allocations: 11.95 kB / 0.6276 GB, free: 124.3 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01992/0.8517, allocations: 14.06 MB / 0.6413 GB, free: 110.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.506e-06/0.8517, allocations: 0 / 0.6413 GB, free: 110.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001855/0.8536, allocations: 489.4 kB / 0.6418 GB, free: 109.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000965/0.8546, allocations: 423 kB / 0.6422 GB, free: 109.3 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002215/0.8548, allocations: 83.95 kB / 0.6423 GB, free: 109.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004461/0.8593, allocations: 4.599 MB / 0.6467 GB, free: 104.6 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.8593, allocations: 7.938 kB / 0.6468 GB, free: 104.6 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008646/0.8679, allocations: 6.938 MB / 0.6535 GB, free: 97.61 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003106/0.8711, allocations: 1.809 MB / 0.6553 GB, free: 95.8 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00143/0.8725, allocations: 79.98 kB / 0.6554 GB, free: 95.73 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002328/0.8749, allocations: 247.6 kB / 0.6556 GB, free: 95.48 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003758/0.8752, allocations: 149.8 kB / 0.6557 GB, free: 95.34 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001537/0.8754, allocations: 59.98 kB / 0.6558 GB, free: 95.28 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.01096/0.8864, allocations: 7.648 MB / 0.6633 GB, free: 87.63 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.8864, allocations: 0 / 0.6633 GB, free: 87.63 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004264/0.8907, allocations: 1.302 MB / 0.6645 GB, free: 86.43 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.01057/0.9013, allocations: 7.905 MB / 0.6723 GB, free: 78.5 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005862/0.9071, allocations: 4.492 MB / 0.6767 GB, free: 74.01 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/0.9072, allocations: 0 / 0.6767 GB, free: 74.01 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002582/0.9098, allocations: 2.16 MB / 0.6788 GB, free: 71.83 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006262/0.916, allocations: 1.367 MB / 0.6801 GB, free: 70.47 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1336/1.05, allocations: 81.43 MB / 0.7596 GB, free: 4.07 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007869/1.058, allocations: 5.84 MB / 0.7653 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.006034/1.064, allocations: 2.451 MB / 0.7677 GB, free: 11.74 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005966/1.07, allocations: 2.518 MB / 0.7702 GB, free: 9.223 MB / 0.4981 GB Notification: Performance of SimCode: time 1.112e-06/1.07, allocations: 0 / 0.7702 GB, free: 9.223 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4059/1.476, allocations: 154.6 MB / 0.9211 GB, free: 65.69 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.28/26.76, allocations: 7.891 kB / 0.9211 GB, free: 65.68 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)