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.001605/0.001605, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002189/0.002189, allocations: 189 kB / 16.25 MB, free: 6.625 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.785/1.785, allocations: 205.1 MB / 222.1 MB, free: 4.727 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.07052/0.07052, allocations: 7.023 MB / 276.5 MB, free: 14.4 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.001533/0.001533, allocations: 71.89 kB / 335.5 MB, free: 27.33 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.1188, allocations: 48.09 MB / 383.6 MB, free: 11.16 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedStackCycling): time 0.01318/0.132, allocations: 10.56 MB / 394.1 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008908/0.141, allocations: 5.55 MB / 399.7 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009769/0.142, allocations: 55.88 kB / 399.7 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002561/0.1446, allocations: 1.155 MB / 400.9 MB, free: 9.762 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001286/0.1459, allocations: 476.9 kB / 401.4 MB, free: 9.293 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001651/0.1475, allocations: 1.132 MB / 402.5 MB, free: 8.16 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009426/0.157, allocations: 10.67 MB / 413.2 MB, free: 13.46 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008045/0.165, allocations: 7.478 MB / 420.6 MB, free: 5.891 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004714/0.1698, allocations: 3.759 MB / 424.4 MB, free: 2.121 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2433/0.4131, allocations: 3.681 MB / 428.1 MB, free: 22.8 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003263/0.4164, allocations: 1.283 MB / 429.4 MB, free: 22.8 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003094/0.4195, allocations: 1.324 MB / 430.7 MB, free: 22.8 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002895/0.4224, allocations: 2.531 MB / 433.2 MB, free: 22.8 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00886/0.4313, allocations: 4.684 MB / 437.9 MB, free: 22.37 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01938/0.4506, allocations: 17.31 MB / 455.2 MB, free: 12.91 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.017e-06/0.4507, allocations: 0 / 455.2 MB, free: 12.91 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.076e-06/0.4507, allocations: 0 / 455.2 MB, free: 12.91 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003397/0.4511, allocations: 0 / 455.2 MB, free: 12.91 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.02083/0.4719, allocations: 9.197 MB / 464.4 MB, free: 7.043 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.348e-05/0.472, allocations: 9.188 kB / 464.4 MB, free: 7.043 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001354/0.4733, allocations: 0.7849 MB / 465.2 MB, free: 6.586 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001455/0.4748, allocations: 0.7359 MB / 465.9 MB, free: 6.199 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01096/0.4858, allocations: 8.426 MB / 474.4 MB, free: 14.27 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003097/0.4861, allocations: 357.2 kB / 474.7 MB, free: 13.91 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007523/0.4868, allocations: 439.9 kB / 475.1 MB, free: 13.48 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01317/0.5, allocations: 7.614 MB / 482.8 MB, free: 5.664 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.147e-05/0.5001, allocations: 10.38 kB / 482.8 MB, free: 5.66 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005381/0.5007, allocations: 178.4 kB / 482.9 MB, free: 5.488 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001581/0.5008, allocations: 152.2 kB / 483.1 MB, free: 5.336 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01202/0.5129, allocations: 6.533 MB / 489.6 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05168/0.5646, allocations: 31.46 MB / 0.5089 GB, free: 15.45 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009223/0.5739, allocations: 8.368 MB / 0.5171 GB, free: 6.27 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003985/0.5779, allocations: 2.418 MB / 0.5194 GB, free: 3.852 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001397/0.578, allocations: 28.95 kB / 0.5194 GB, free: 3.828 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00357/0.5816, allocations: 2.168 MB / 0.5216 GB, free: 1.629 MB / 382.1 MB Notification: Performance of pre-optimization done (n=203): time 7.634e-06/0.5817, allocations: 0 / 0.5216 GB, free: 1.629 MB / 382.1 MB Notification: Performance of matching and sorting (n=203): time 0.01381/0.5955, allocations: 6.503 MB / 0.5279 GB, free: 11.1 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002616/0.5958, allocations: 399.7 kB / 0.5283 GB, free: 10.62 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.02197/0.6178, allocations: 10.86 MB / 0.5389 GB, free: 15.74 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005841/0.6184, allocations: 77.64 kB / 0.539 GB, free: 15.66 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004406/0.6228, allocations: 3.062 MB / 0.542 GB, free: 12.59 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001181/0.624, allocations: 0.7031 MB / 0.5426 GB, free: 11.9 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001154/0.6251, allocations: 0.5558 MB / 0.5432 GB, free: 11.34 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001368/0.6253, allocations: 305.1 kB / 0.5435 GB, free: 11.04 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003105/0.6284, allocations: 1.984 MB / 0.5454 GB, free: 9.047 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00381/0.6322, allocations: 2.77 MB / 0.5481 GB, free: 5.996 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0195/0.6517, allocations: 9.438 MB / 0.5573 GB, free: 12.38 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.118e-05/0.6518, allocations: 8 kB / 0.5573 GB, free: 12.37 MB / 430.1 MB Notification: Performance of matching and sorting (n=331) (initialization): time 0.01055/0.6623, allocations: 5.523 MB / 0.5627 GB, free: 6.938 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.664e-05/0.6624, allocations: 16 kB / 0.5628 GB, free: 6.922 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.818e-05/0.6624, allocations: 16 kB / 0.5628 GB, free: 6.906 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00118/0.6636, allocations: 476.5 kB / 0.5632 GB, free: 6.441 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002322/0.6659, allocations: 0.6611 MB / 0.5639 GB, free: 5.816 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006665/0.6726, allocations: 4.885 MB / 0.5686 GB, free: 0.7969 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004437/0.677, allocations: 476.7 kB / 0.5691 GB, free: 336 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002696/0.6773, allocations: 104 kB / 0.5692 GB, free: 232 kB / 430.1 MB Warning: Assuming fixed start value for the following 3 variables: batteryStack.cell[3,1].linearDynamicImpedance.cellImpedance.rcseriesLinear.rclinear[1].capacitor.variableCapacitor.Q:VARIABLE(unit = "C" fixed = true ) type: Real [3,1,1] batteryStack.cell[2,1].linearDynamicImpedance.cellImpedance.rcseriesLinear.rclinear[1].capacitor.variableCapacitor.Q:VARIABLE(unit = "C" fixed = true ) type: Real [3,1,1] batteryStack.cell[1,1].linearDynamicImpedance.cellImpedance.rcseriesLinear.rclinear[1].capacitor.variableCapacitor.Q:VARIABLE(unit = "C" fixed = true ) type: Real [3,1,1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * Number of states: 0 () * Number of discrete variables: 52 ($PRE.cycler.chargingFinished.fallingEdge.not_u,$PRE.cycler.cycling.edge1.u,$PRE.cycler.cycling.BeforeChargingDelay.timer.entryTime,$PRE.cycler.cycling.BeforeChargingDelay.rSFlipFlop.pre.u,$PRE.cycler.cycling.AfterChargingDelay.timer.entryTime,$PRE.cycler.cycling.AfterChargingDelay.rSFlipFlop.pre.u,$PRE.cycler.cycling.rSFlipFlop.pre.u,cycler.chargingFinished.fallingEdge.not_u,cycler.chargingFinished.fallingEdge.y,cycler.chargingFinished.GraterEqualVmax.y,cycler.cycling.or1.y,cycler.cycling.greaterThreshold.y,cycler.cycling.edge1.y,cycler.cycling.edge1.u,cycler.cycling.BeforeChargingDelay.greaterThreshold.y,cycler.cycling.BeforeChargingDelay.timer.entryTime,cycler.cycling.BeforeChargingDelay.rSFlipFlop.pre.u,cycler.cycling.BeforeChargingDelay.rSFlipFlop.QI,cycler.cycling.BeforeChargingDelay.u,cycler.cycling.AfterChargingDelay.greaterThreshold.y,cycler.cycling.AfterChargingDelay.timer.entryTime,cycler.cycling.AfterChargingDelay.rSFlipFlop.pre.u,cycler.cycling.AfterChargingDelay.rSFlipFlop.QI,cycler.cycling.AfterChargingDelay.u,cycler.cycling.lessVinMin.y,cycler.cycling.rSFlipFlop.pre.u,cycler.Charging,cycler.Discharging,$whenCondition1,$whenCondition2,batteryStack.cell[3,1].linearDynamicImpedance.selfDischarge.qabs.absInt.local_reset,batteryStack.cell[3,1].linearDynamicImpedance.cellImpedance.rs.impedanceValue.qabs.absInt.local_reset,batteryStack.cell[3,1].linearDynamicImpedance.cellImpedance.rcseriesLinear.rclinear[1].resistor.impedanceValue.qabs.absInt.local_reset,batteryStack.cell[3,1].linearDynamicImpedance.cellImpedance.rcseriesLinear.rclinear[1].capacitor.impedanceValue.qabs.absInt.local_reset,batteryStack.cell[3,1].linearDynamicImpedance.calculator.EquivalentCycles.integrator.local_reset,batteryStack.cell[3,1].linearDynamicImpedance.calculator.q.absInt.local_reset,batteryStack.cell[3,1].linearDynamicImpedance.calculator.sOC.integrator.local_reset,batteryStack.cell[2,1].linearDynamicImpedance.selfDischarge.qabs.absInt.local_reset,batteryStack.cell[2,1].linearDynamicImpedance.cellImpedance.rs.impedanceValue.qabs.absInt.local_reset,batteryStack.cell[2,1].linearDynamicImpedance.cellImpedance.rcseriesLinear.rclinear[1].resistor.impedanceValue.qabs.absInt.local_reset,batteryStack.cell[2,1].linearDynamicImpedance.cellImpedance.rcseriesLinear.rclinear[1].capacitor.impedanceValue.qabs.absInt.local_reset,batteryStack.cell[2,1].linearDynamicImpedance.calculator.EquivalentCycles.integrator.local_reset,batteryStack.cell[2,1].linearDynamicImpedance.calculator.q.absInt.local_reset,batteryStack.cell[2,1].linearDynamicImpedance.calculator.sOC.integrator.local_reset,batteryStack.cell[1,1].linearDynamicImpedance.selfDischarge.qabs.absInt.local_reset,batteryStack.cell[1,1].linearDynamicImpedance.cellImpedance.rs.impedanceValue.qabs.absInt.local_reset,batteryStack.cell[1,1].linearDynamicImpedance.cellImpedance.rcseriesLinear.rclinear[1].resistor.impedanceValue.qabs.absInt.local_reset,batteryStack.cell[1,1].linearDynamicImpedance.cellImpedance.rcseriesLinear.rclinear[1].capacitor.impedanceValue.qabs.absInt.local_reset,batteryStack.cell[1,1].linearDynamicImpedance.calculator.EquivalentCycles.integrator.local_reset,batteryStack.cell[1,1].linearDynamicImpedance.calculator.q.absInt.local_reset,batteryStack.cell[1,1].linearDynamicImpedance.calculator.sOC.integrator.local_reset,charger.controlledCurrent.limitedController.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (302): * Single equations (assignments): 301 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,27)} Notification: Performance of prepare postOptimizeDAE: time 0.008907/0.6862, allocations: 3.943 MB / 0.573 GB, free: 12.31 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001697/0.6879, allocations: 0.5014 MB / 0.5735 GB, free: 11.8 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009726/0.6977, allocations: 4.655 MB / 0.5781 GB, free: 7.137 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.85e-05/0.6977, allocations: 23.98 kB / 0.5781 GB, free: 7.113 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.6977, allocations: 0 / 0.5781 GB, free: 7.113 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.025e-05/0.6978, allocations: 7.969 kB / 0.5781 GB, free: 7.105 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3498/1.048, allocations: 14.09 MB / 0.5919 GB, free: 149.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.161e-05/1.048, allocations: 3.594 kB / 0.5919 GB, free: 149.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002473/1.05, allocations: 487.6 kB / 0.5923 GB, free: 149.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001435/1.052, allocations: 421.2 kB / 0.5927 GB, free: 149.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002627/1.052, allocations: 86.14 kB / 0.5928 GB, free: 149.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007156/1.059, allocations: 4.642 MB / 0.5974 GB, free: 147 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/1.059, allocations: 2.344 kB / 0.5974 GB, free: 147 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01213/1.071, allocations: 6.896 MB / 0.6041 GB, free: 144.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004977/1.076, allocations: 1.784 MB / 0.6058 GB, free: 144 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001119/1.077, allocations: 82.84 kB / 0.6059 GB, free: 144 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001897/1.079, allocations: 253 kB / 0.6062 GB, free: 143.9 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004356/1.08, allocations: 146.6 kB / 0.6063 GB, free: 143.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001497/1.08, allocations: 57.55 kB / 0.6064 GB, free: 143.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.01574/1.096, allocations: 7.661 MB / 0.6138 GB, free: 139.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.11e-07/1.096, allocations: 0 / 0.6138 GB, free: 139.8 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006132/1.102, allocations: 1.291 MB / 0.6151 GB, free: 138.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.01217/1.114, allocations: 7.873 MB / 0.6228 GB, free: 130.9 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01575/1.13, allocations: 8.517 MB / 0.6311 GB, free: 122.4 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.083e-05/1.13, allocations: 4 kB / 0.6311 GB, free: 122.4 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002714/1.132, allocations: 2.152 MB / 0.6332 GB, free: 120.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01155/1.144, allocations: 1.362 MB / 0.6345 GB, free: 118.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4063/1.55, allocations: 107.5 MB / 0.7395 GB, free: 3.496 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0069/1.557, allocations: 5.846 MB / 0.7452 GB, free: 13.62 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006124/1.563, allocations: 2.455 MB / 0.7476 GB, free: 11.16 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00427/1.568, allocations: 2.514 MB / 0.7501 GB, free: 8.641 MB / 462.1 MB Notification: Performance of SimCode: time 1.623e-06/1.568, allocations: 0 / 0.7501 GB, free: 8.641 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.263/4.831, allocations: 155.6 MB / 0.9021 GB, free: 37.5 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002699/4.831, allocations: 282.4 kB / 0.9023 GB, free: 37.13 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.348/12.18, allocations: 64 / 0.9023 GB, free: 37.13 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_AdvancedStackCycling_fmu --startTime=0 --stopTime=20000 --timeout=50 --tolerance=1e-06 ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_AdvancedStackCycling.fmu > ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedStackCycling.pipe 2>&1)