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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001417/0.001417, allocations: 99.64 kB / 18.94 MB, free: 2.551 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001693/0.001693, allocations: 212.9 kB / 22.24 MB, free: 4.855 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.453/1.453, allocations: 207.7 MB / 233.1 MB, free: 9.793 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage master/package.mo): time 0.05813/0.05813, allocations: 7.133 MB / 292.5 MB, free: 14.5 MB / 238.1 MB " [Timeout remaining time 180] Using package ElectricalEnergyStorage with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.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.002329/0.002329, allocations: 69.16 kB / 409 MB, free: 47.56 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07197/0.0743, allocations: 50.76 MB / 459.8 MB, free: 14.15 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.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 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.01408/0.08838, allocations: 9.315 MB / 469.1 MB, free: 4.789 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009484/0.09786, allocations: 5.492 MB / 474.6 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002071/0.09993, allocations: 71.69 kB / 474.7 MB, free: 15.2 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003853/0.1038, allocations: 1.532 MB / 476.2 MB, free: 13.66 MB / 350.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.002846/0.1066, allocations: 0.6357 MB / 476.8 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002715/0.1093, allocations: 1.218 MB / 478.1 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01405/0.1234, allocations: 10.62 MB / 488.7 MB, free: 1.156 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007875/0.1313, allocations: 3.567 MB / 492.3 MB, free: 13.5 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006113/0.1374, allocations: 4.15 MB / 496.4 MB, free: 9.336 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008182/0.1456, allocations: 4.553 MB / 0.4892 GB, free: 4.77 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003236/0.1488, allocations: 1.281 MB / 0.4905 GB, free: 3.488 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004357/0.1532, allocations: 1.328 MB / 0.4918 GB, free: 2.16 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003904/0.1571, allocations: 2.526 MB / 0.4942 GB, free: 15.63 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007014/0.1641, allocations: 3.494 MB / 0.4976 GB, free: 12.12 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02032/0.1844, allocations: 17.62 MB / 0.5148 GB, free: 10.45 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.197e-05/0.1844, allocations: 0 / 0.5148 GB, free: 10.45 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.247e-06/0.1844, allocations: 0 / 0.5148 GB, free: 10.45 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.00054/0.185, allocations: 0 / 0.5148 GB, free: 10.45 MB / 398.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.02684/0.2118, allocations: 9.413 MB / 0.524 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.419e-05/0.2119, allocations: 15.98 kB / 0.5241 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002553/0.2144, allocations: 0.7834 MB / 0.5248 GB, free: 152 kB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1971/0.4115, allocations: 0.771 MB / 0.5256 GB, free: 58.28 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01879/0.4303, allocations: 8.686 MB / 0.5341 GB, free: 55.19 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005627/0.4309, allocations: 363.4 kB / 0.5344 GB, free: 55.02 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001833/0.4327, allocations: 432.9 kB / 0.5348 GB, free: 54.88 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01617/0.4489, allocations: 7.999 MB / 0.5426 GB, free: 51.24 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.118e-05/0.449, allocations: 12.28 kB / 0.5426 GB, free: 51.23 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000475/0.4495, allocations: 177.7 kB / 0.5428 GB, free: 51.1 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.61e-05/0.4496, allocations: 156.5 kB / 0.543 GB, free: 51.08 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009754/0.4593, allocations: 6.523 MB / 0.5493 GB, free: 45.61 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04894/0.5083, allocations: 28.68 MB / 0.5773 GB, free: 16.95 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0063/0.5146, allocations: 4.313 MB / 0.5815 GB, free: 12.76 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003356/0.5179, allocations: 2.388 MB / 0.5839 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001364/0.5181, allocations: 22 kB / 0.5839 GB, free: 10.36 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002728/0.5208, allocations: 2.398 MB / 0.5862 GB, free: 7.867 MB / 398.1 MB Notification: Performance of pre-optimization done (n=203): time 4.588e-06/0.5208, allocations: 0 / 0.5862 GB, free: 7.867 MB / 398.1 MB Notification: Performance of matching and sorting (n=203): time 0.01117/0.532, allocations: 6.449 MB / 0.5925 GB, free: 1.406 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001133/0.5321, allocations: 385.8 kB / 0.5929 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02279/0.5549, allocations: 10.86 MB / 0.6035 GB, free: 6.086 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007078/0.5556, allocations: 73.7 kB / 0.6036 GB, free: 6.008 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.005295/0.5609, allocations: 3.102 MB / 0.6066 GB, free: 3.121 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001426/0.5623, allocations: 0.743 MB / 0.6073 GB, free: 2.465 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001633/0.5639, allocations: 0.5599 MB / 0.6079 GB, free: 1.898 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001341/0.5641, allocations: 305.1 kB / 0.6082 GB, free: 1.598 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003287/0.5673, allocations: 1.981 MB / 0.6101 GB, free: 15.61 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004158/0.5715, allocations: 3.074 MB / 0.6131 GB, free: 12.17 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02163/0.5931, allocations: 9.426 MB / 0.6223 GB, free: 2.5 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.4e-05/0.5931, allocations: 8 kB / 0.6223 GB, free: 2.492 MB / 430.1 MB Notification: Performance of matching and sorting (n=331) (initialization): time 0.01106/0.6042, allocations: 5.536 MB / 0.6277 GB, free: 12.94 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.568e-05/0.6042, allocations: 12 kB / 0.6277 GB, free: 12.93 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.64e-05/0.6043, allocations: 20 kB / 0.6278 GB, free: 12.91 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001191/0.6055, allocations: 468.5 kB / 0.6282 GB, free: 12.45 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002469/0.6079, allocations: 0.6512 MB / 0.6288 GB, free: 11.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006843/0.6148, allocations: 4.711 MB / 0.6334 GB, free: 6.965 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004425/0.6192, allocations: 485.3 kB / 0.6339 GB, free: 6.492 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004782/0.6197, allocations: 107.9 kB / 0.634 GB, free: 6.387 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.006873/0.6265, allocations: 3.94 MB / 0.6379 GB, free: 2.438 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002304/0.6288, allocations: 0.5278 MB / 0.6384 GB, free: 1.906 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008995/0.6378, allocations: 4.649 MB / 0.6429 GB, free: 13.24 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.02e-05/0.6379, allocations: 19.61 kB / 0.6429 GB, free: 13.23 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.6379, allocations: 4 kB / 0.6429 GB, free: 13.22 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.355e-05/0.6379, allocations: 11.95 kB / 0.6429 GB, free: 13.21 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02772/0.6656, allocations: 12.96 MB / 0.6556 GB, free: 160 kB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.106e-05/0.6656, allocations: 0 / 0.6556 GB, free: 160 kB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002089/0.6677, allocations: 483.2 kB / 0.6561 GB, free: 15.68 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001098/0.6688, allocations: 427.8 kB / 0.6565 GB, free: 15.27 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002595/0.6691, allocations: 75.97 kB / 0.6565 GB, free: 15.19 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006256/0.6753, allocations: 4.437 MB / 0.6609 GB, free: 10.63 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.6753, allocations: 0 / 0.6609 GB, free: 10.63 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.012/0.6873, allocations: 6.93 MB / 0.6676 GB, free: 3.676 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005591/0.6929, allocations: 1.843 MB / 0.6694 GB, free: 1.828 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001291/0.6942, allocations: 83.98 kB / 0.6695 GB, free: 1.746 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001912/0.6961, allocations: 247.6 kB / 0.6698 GB, free: 1.504 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004148/0.6965, allocations: 157.7 kB / 0.6699 GB, free: 1.352 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001636/0.6967, allocations: 51.98 kB / 0.67 GB, free: 1.301 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.01358/0.7103, allocations: 7.645 MB / 0.6774 GB, free: 9.652 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.7103, allocations: 0 / 0.6774 GB, free: 9.652 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004878/0.7152, allocations: 1.306 MB / 0.6787 GB, free: 8.344 MB / 494.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.01323/0.7284, allocations: 7.926 MB / 0.6864 GB, free: 400 kB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007721/0.7361, allocations: 4.385 MB / 0.6907 GB, free: 11.99 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 7.063e-06/0.7361, allocations: 4 kB / 0.6907 GB, free: 11.99 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.00344/0.7396, allocations: 2.09 MB / 0.6928 GB, free: 9.887 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006714/0.7463, allocations: 1.363 MB / 0.6941 GB, free: 8.523 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3263/1.073, allocations: 81.45 MB / 0.7736 GB, free: 165.7 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005025/1.078, allocations: 5.354 MB / 0.7789 GB, free: 160.4 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004696/1.082, allocations: 2.453 MB / 0.7813 GB, free: 158 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004265/1.087, allocations: 2.526 MB / 0.7837 GB, free: 155.5 MB / 0.5294 GB Notification: Performance of SimCode: time 1.182e-06/1.087, allocations: 0 / 0.7837 GB, free: 155.5 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3924/1.479, allocations: 158.7 MB / 0.9387 GB, free: 154.4 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.64/22.12, allocations: 3.328 kB / 0.9387 GB, free: 154.4 MB / 0.5294 GB " [Timeout remaining time 638] (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) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 25.1572979898192] Failed to read output from testmodel.py, exit status != 0: 22.379140953999013 22.391063248 22.204079188 Calling exit ...