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.001333/0.001333, allocations: 104 kB / 15.61 MB, free: 148 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.001266/0.001266, allocations: 195.5 kB / 16.53 MB, free: 6.684 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.518/1.518, allocations: 205.1 MB / 222.4 MB, free: 4.598 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.05062/0.05062, allocations: 7.027 MB / 276.8 MB, free: 14.26 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.001485/0.001485, allocations: 68.11 kB / 336 MB, free: 26.99 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09085/0.09234, allocations: 48.1 MB / 384.1 MB, free: 10.81 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedStackCycling): time 0.01366/0.106, allocations: 10.65 MB / 394.7 MB, free: 108 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009892/0.116, allocations: 5.807 MB / 400.6 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002678/0.1188, allocations: 55.88 kB / 400.6 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004351/0.1231, allocations: 1.477 MB / 402.1 MB, free: 8.734 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.003331/0.1265, allocations: 0.585 MB / 402.7 MB, free: 8.145 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00291/0.1294, allocations: 1.206 MB / 403.9 MB, free: 6.938 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01509/0.1445, allocations: 10.58 MB / 414.5 MB, free: 12.34 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01038/0.1549, allocations: 7.494 MB / 421.9 MB, free: 4.75 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006106/0.1611, allocations: 3.728 MB / 425.7 MB, free: 1.012 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2094/0.3706, allocations: 3.662 MB / 429.3 MB, free: 23.29 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003769/0.3744, allocations: 1.283 MB / 430.6 MB, free: 23.29 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004607/0.379, allocations: 1.319 MB / 431.9 MB, free: 23.29 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004309/0.3834, allocations: 2.528 MB / 434.5 MB, free: 23.29 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01097/0.3943, allocations: 4.683 MB / 439.2 MB, free: 21.82 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01768/0.4121, allocations: 17.3 MB / 456.5 MB, free: 12.37 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/0.4121, allocations: 0 / 456.5 MB, free: 12.37 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.4121, allocations: 0 / 456.5 MB, free: 12.37 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0004428/0.4126, allocations: 0 / 456.5 MB, free: 12.37 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.0291/0.4417, allocations: 9.206 MB / 465.7 MB, free: 6.488 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.367e-05/0.4417, allocations: 10.75 kB / 465.7 MB, free: 6.488 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00286/0.4446, allocations: 0.7846 MB / 466.5 MB, free: 6.035 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002511/0.4471, allocations: 0.7307 MB / 467.2 MB, free: 5.625 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0142/0.4613, allocations: 8.425 MB / 475.6 MB, free: 13.35 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003954/0.4618, allocations: 357.2 kB / 476 MB, free: 13 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001669/0.4635, allocations: 435.9 kB / 476.4 MB, free: 12.57 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0202/0.4837, allocations: 7.618 MB / 484 MB, free: 4.75 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002145/0.484, allocations: 11.36 kB / 484 MB, free: 4.742 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001874/0.4858, allocations: 183.5 kB / 484.2 MB, free: 4.566 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001638/0.486, allocations: 148.2 kB / 484.3 MB, free: 4.418 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0153/0.5013, allocations: 6.534 MB / 490.9 MB, free: 13.9 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06595/0.5673, allocations: 31.46 MB / 0.5101 GB, free: 14.52 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01082/0.5782, allocations: 8.36 MB / 0.5183 GB, free: 5.336 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004667/0.5829, allocations: 2.418 MB / 0.5206 GB, free: 2.922 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002195/0.5832, allocations: 29.52 kB / 0.5206 GB, free: 2.898 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004187/0.5874, allocations: 2.168 MB / 0.5228 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of pre-optimization done (n=203): time 5.049e-06/0.5874, allocations: 4 kB / 0.5228 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of matching and sorting (n=203): time 0.01504/0.6025, allocations: 6.512 MB / 0.5291 GB, free: 10.16 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000182/0.6027, allocations: 381.8 kB / 0.5295 GB, free: 9.699 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.02749/0.6302, allocations: 10.86 MB / 0.5401 GB, free: 14.82 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007615/0.631, allocations: 81.7 kB / 0.5402 GB, free: 14.73 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.006486/0.6375, allocations: 3.063 MB / 0.5432 GB, free: 11.67 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001514/0.639, allocations: 0.7031 MB / 0.5438 GB, free: 10.97 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002281/0.6413, allocations: 0.5558 MB / 0.5444 GB, free: 10.41 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001004/0.6415, allocations: 305.1 kB / 0.5447 GB, free: 10.11 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003445/0.6449, allocations: 1.981 MB / 0.5466 GB, free: 8.125 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004136/0.6491, allocations: 2.767 MB / 0.5493 GB, free: 5.074 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02261/0.6717, allocations: 9.442 MB / 0.5585 GB, free: 11.45 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.541e-05/0.6718, allocations: 4 kB / 0.5585 GB, free: 11.44 MB / 430.1 MB Notification: Performance of matching and sorting (n=331) (initialization): time 0.01402/0.6858, allocations: 5.533 MB / 0.5639 GB, free: 6.008 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.067e-05/0.686, allocations: 15.94 kB / 0.564 GB, free: 5.992 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.882e-05/0.6861, allocations: 23.98 kB / 0.564 GB, free: 5.969 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001488/0.6875, allocations: 464.7 kB / 0.5644 GB, free: 5.512 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00312/0.6907, allocations: 0.6529 MB / 0.5651 GB, free: 4.895 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006845/0.6976, allocations: 4.886 MB / 0.5698 GB, free: 15.89 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005135/0.7027, allocations: 472.7 kB / 0.5703 GB, free: 15.43 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008682/0.7036, allocations: 100 kB / 0.5704 GB, free: 15.33 MB / 446.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.00928/0.7129, allocations: 3.95 MB / 0.5742 GB, free: 11.4 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003217/0.7162, allocations: 0.5014 MB / 0.5747 GB, free: 10.89 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01398/0.7302, allocations: 4.65 MB / 0.5793 GB, free: 6.23 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.672e-05/0.7303, allocations: 20 kB / 0.5793 GB, free: 6.211 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.548e-06/0.7303, allocations: 0 / 0.5793 GB, free: 6.211 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.682e-05/0.7303, allocations: 7.969 kB / 0.5793 GB, free: 6.203 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2952/1.026, allocations: 14.09 MB / 0.5931 GB, free: 148.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.209e-05/1.026, allocations: 10.72 kB / 0.5931 GB, free: 148.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002632/1.028, allocations: 489.8 kB / 0.5935 GB, free: 148.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001315/1.03, allocations: 418.9 kB / 0.5939 GB, free: 148.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006573/1.03, allocations: 84.27 kB / 0.594 GB, free: 148.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007132/1.037, allocations: 4.601 MB / 0.5985 GB, free: 146.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.441e-06/1.037, allocations: 1.828 kB / 0.5985 GB, free: 146.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01272/1.05, allocations: 6.893 MB / 0.6052 GB, free: 143.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004627/1.055, allocations: 1.78 MB / 0.607 GB, free: 143.1 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002582/1.057, allocations: 92.62 kB / 0.6071 GB, free: 143 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003407/1.061, allocations: 250 kB / 0.6073 GB, free: 143 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005138/1.061, allocations: 150.4 kB / 0.6075 GB, free: 143 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001657/1.062, allocations: 54.58 kB / 0.6075 GB, free: 142.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.01544/1.077, allocations: 7.652 MB / 0.615 GB, free: 138.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.002e-06/1.077, allocations: 0 / 0.615 GB, free: 138.8 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006561/1.084, allocations: 1.284 MB / 0.6162 GB, free: 137.6 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.01047/1.094, allocations: 7.894 MB / 0.6239 GB, free: 130 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01386/1.108, allocations: 8.529 MB / 0.6323 GB, free: 121.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.942e-06/1.108, allocations: 0 / 0.6323 GB, free: 121.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002573/1.111, allocations: 2.152 MB / 0.6344 GB, free: 119.3 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008652/1.119, allocations: 1.365 MB / 0.6357 GB, free: 118 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1672/1.287, allocations: 105.9 MB / 0.7391 GB, free: 4.195 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007491/1.294, allocations: 5.842 MB / 0.7448 GB, free: 14.32 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006777/1.301, allocations: 2.455 MB / 0.7472 GB, free: 11.86 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006609/1.308, allocations: 2.518 MB / 0.7497 GB, free: 9.344 MB / 462.1 MB Notification: Performance of SimCode: time 6.91e-07/1.308, allocations: 0 / 0.7497 GB, free: 9.344 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3817/1.689, allocations: 156.4 MB / 0.9024 GB, free: 37.19 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.68/15.37, allocations: 11.91 kB / 0.9024 GB, free: 37.18 MB / 462.1 MB (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)