Running command: "" <> buildModelFMU(ElectricalEnergyStorage.Examples.SimpleStackCycling,fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_SimpleStackCycling",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ElectricalEnergyStorage): time 2.084/2.084, allocations: 201.9 MB / 214.1 MB, free: 13.07 MB / 186.9 MB Notification: Performance of FrontEnd - loaded program: time 4.007e-05/4.016e-05, allocations: 4 kB / 263.1 MB, free: 10.85 MB / 218.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1502/0.1502, allocations: 45.99 MB / 309.1 MB, free: 12.78 MB / 266.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4621/0.6124, allocations: 92.31 MB / 401.4 MB, free: 10.48 MB / 314.9 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002923/0.6127, allocations: 89.39 kB / 401.5 MB, free: 10.46 MB / 314.9 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ElectricalEnergyStorage 3.2.2.mo:571:11-571:143:writable] Warning: connect(internalHeatPort, internalHeatPort) connects the same connector instance! The connect equation will be ignored. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2346:7-2347:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$load$fTP72_Power$FTP72_Table.getDerTableValue. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2312:7-2313:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$load$fTP72_Power$FTP72_Table.getTableValue. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2358:7-2359:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$load$fTP72_Power$FTP72_Table.getTableTimeTmin. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2369:7-2370:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$load$fTP72_Power$FTP72_Table.getTableTimeTmax. Notification: Performance of FrontEnd - DAE generated: time 2.943/3.556, allocations: 337.4 MB / 0.7215 GB, free: 87.5 MB / 426.9 MB Notification: Performance of FrontEnd: time 2.344e-06/3.556, allocations: 0 / 0.7215 GB, free: 87.5 MB / 426.9 MB Notification: Performance of Transformations before backend: time 0.004283/3.56, allocations: 290.7 kB / 0.7218 GB, free: 87.5 MB / 426.9 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 336 * Number of variables: 336 Notification: Performance of Generate backend data structure: time 0.04322/3.603, allocations: 14.59 MB / 0.7361 GB, free: 79.85 MB / 426.9 MB Notification: Performance of prepare preOptimizeDAE: time 5.248e-05/3.603, allocations: 7.344 kB / 0.7361 GB, free: 79.85 MB / 426.9 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008155/3.604, allocations: 210.6 kB / 0.7363 GB, free: 79.8 MB / 426.9 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006885/3.611, allocations: 2.487 MB / 0.7387 GB, free: 78.41 MB / 426.9 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.08433/3.696, allocations: 18.39 MB / 0.7567 GB, free: 73.38 MB / 426.9 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001391/3.696, allocations: 117 kB / 0.7568 GB, free: 73.32 MB / 426.9 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003271/3.696, allocations: 134.4 kB / 0.7569 GB, free: 73.28 MB / 426.9 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003398/3.7, allocations: 1.242 MB / 0.7581 GB, free: 72.7 MB / 426.9 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.079e-05/3.7, allocations: 4 kB / 0.7581 GB, free: 72.69 MB / 426.9 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002425/3.7, allocations: 58.28 kB / 0.7582 GB, free: 72.65 MB / 426.9 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.094e-05/3.7, allocations: 30.64 kB / 0.7582 GB, free: 72.65 MB / 426.9 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003348/3.703, allocations: 0.864 MB / 0.759 GB, free: 72.11 MB / 426.9 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07679/3.78, allocations: 22.97 MB / 0.7815 GB, free: 52.6 MB / 426.9 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001552/3.782, allocations: 0.6158 MB / 0.7821 GB, free: 51.98 MB / 426.9 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006881/3.782, allocations: 296.5 kB / 0.7824 GB, free: 51.69 MB / 426.9 MB Notification: Performance of preOpt evalFunc (simulation): time 6.413e-05/3.782, allocations: 8.562 kB / 0.7824 GB, free: 51.68 MB / 426.9 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007898/3.783, allocations: 368.8 kB / 0.7827 GB, free: 51.3 MB / 426.9 MB Notification: Performance of pre-optimization done (n=70): time 3.226e-06/3.783, allocations: 4 kB / 0.7827 GB, free: 51.3 MB / 426.9 MB Notification: Performance of matching and sorting (n=70): time 0.009679/3.793, allocations: 2.984 MB / 0.7856 GB, free: 48.28 MB / 426.9 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.824e-05/3.793, allocations: 137.1 kB / 0.7858 GB, free: 48.11 MB / 426.9 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Math.mo:595:5-596: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. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Math.mo:595:5-596: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 1.404/5.198, allocations: 47.5 MB / 0.8322 GB, free: 71.29 MB / 426.9 MB Notification: Performance of collectPreVariables (initialization): time 0.0002532/5.198, allocations: 50.83 kB / 0.8322 GB, free: 71.25 MB / 426.9 MB Notification: Performance of collectInitialEqns (initialization): time 0.03242/5.23, allocations: 12.56 MB / 0.8445 GB, free: 65.05 MB / 426.9 MB Notification: Performance of collectInitialBindings (initialization): time 0.000367/5.231, allocations: 203.9 kB / 0.8447 GB, free: 64.92 MB / 426.9 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.471e-05/5.231, allocations: 17.16 kB / 0.8447 GB, free: 64.91 MB / 426.9 MB Notification: Performance of setup shared object (initialization): time 0.000103/5.231, allocations: 343.3 kB / 0.845 GB, free: 64.59 MB / 426.9 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000835/5.232, allocations: 277 kB / 0.8453 GB, free: 64.46 MB / 426.9 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008936/5.233, allocations: 429 kB / 0.8457 GB, free: 64.18 MB / 426.9 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009338/5.234, allocations: 361.9 kB / 0.846 GB, free: 63.99 MB / 426.9 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.052e-05/5.234, allocations: 0.5625 kB / 0.846 GB, free: 63.99 MB / 426.9 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.01275/5.246, allocations: 3.287 MB / 0.8492 GB, free: 62.25 MB / 426.9 MB Notification: Performance of prepare postOptimizeDAE: time 7.817e-05/5.247, allocations: 65.38 kB / 0.8493 GB, free: 62.19 MB / 426.9 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.576e-05/5.247, allocations: 3.875 kB / 0.8493 GB, free: 62.19 MB / 426.9 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006337/5.247, allocations: 118.7 kB / 0.8494 GB, free: 62.15 MB / 426.9 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009895/5.248, allocations: 122.7 kB / 0.8495 GB, free: 62.15 MB / 426.9 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00356/5.252, allocations: 2.104 MB / 0.8516 GB, free: 60.44 MB / 426.9 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009562/5.261, allocations: 157 kB / 0.8517 GB, free: 60.41 MB / 426.9 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002434/5.262, allocations: 26.95 kB / 0.8518 GB, free: 60.4 MB / 426.9 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 35 ($whenCondition1,$PRE.load.fTP72_Power.FTP72_Table.nextTimeEvent,$whenCondition3,$whenCondition2,charger.on,cycler.Discharging,$PRE.cycler.cycling.rSFlipFlop.pre.u,cycler.cycling.rSFlipFlop.pre.u,cycler.cycling.lessVinMin.y,cycler.cycling.AfterChargingDelay.u,cycler.cycling.AfterChargingDelay.rSFlipFlop.QI,$PRE.cycler.cycling.AfterChargingDelay.rSFlipFlop.pre.u,cycler.cycling.AfterChargingDelay.rSFlipFlop.pre.u,$PRE.cycler.cycling.AfterChargingDelay.timer.entryTime,cycler.cycling.AfterChargingDelay.timer.entryTime,cycler.cycling.AfterChargingDelay.greaterThreshold.y,cycler.cycling.BeforeChargingDelay.u,cycler.cycling.BeforeChargingDelay.rSFlipFlop.QI,$PRE.cycler.cycling.BeforeChargingDelay.rSFlipFlop.pre.u,cycler.cycling.BeforeChargingDelay.rSFlipFlop.pre.u,$PRE.cycler.cycling.BeforeChargingDelay.timer.entryTime,cycler.cycling.BeforeChargingDelay.timer.entryTime,cycler.cycling.BeforeChargingDelay.greaterThreshold.y,$PRE.cycler.cycling.edge1.u,cycler.cycling.edge1.u,cycler.cycling.edge1.y,cycler.cycling.greaterThreshold.y,cycler.cycling.or1.y,cycler.chargingFinished.GraterEqualVmax.y,$PRE.cycler.chargingFinished.fallingEdge.not_u,cycler.chargingFinished.fallingEdge.not_u,cycler.chargingFinished.and1.u1,load.fTP72_Power.FTP72_Table.nextTimeEvent,$PRE.load.fTP72_Power.FTP72_Table.nextTimeEventScaled,load.fTP72_Power.FTP72_Table.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of prepare postOptimizeDAE: time 0.0003221/5.262, allocations: 191.6 kB / 0.852 GB, free: 60.26 MB / 426.9 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00957/5.272, allocations: 2.452 MB / 0.8543 GB, free: 58.91 MB / 426.9 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01421/5.286, allocations: 3.612 MB / 0.8579 GB, free: 57.83 MB / 426.9 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.195e-05/5.286, allocations: 12.19 kB / 0.8579 GB, free: 57.83 MB / 426.9 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/5.286, allocations: 0 / 0.8579 GB, free: 57.83 MB / 426.9 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.131e-05/5.286, allocations: 3.375 kB / 0.8579 GB, free: 57.83 MB / 426.9 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07196/5.358, allocations: 19.99 MB / 0.8774 GB, free: 51.07 MB / 426.9 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.828e-06/5.358, allocations: 0 / 0.8774 GB, free: 51.07 MB / 426.9 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001015/5.359, allocations: 84.58 kB / 0.8775 GB, free: 51.07 MB / 426.9 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007417/5.36, allocations: 117.7 kB / 0.8776 GB, free: 51.03 MB / 426.9 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00012/5.36, allocations: 15.56 kB / 0.8776 GB, free: 51.02 MB / 426.9 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004491/5.364, allocations: 2.081 MB / 0.8797 GB, free: 49.34 MB / 426.9 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.773e-06/5.365, allocations: 8.906 kB / 0.8797 GB, free: 49.34 MB / 426.9 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02311/5.388, allocations: 3.805 MB / 0.8834 GB, free: 47.14 MB / 426.9 MB Notification: Performance of postOpt removeConstants (simulation): time 0.03203/5.42, allocations: 5.569 MB / 0.8888 GB, free: 44.61 MB / 426.9 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.01079/5.431, allocations: 62.66 kB / 0.8889 GB, free: 44.6 MB / 426.9 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008662/5.439, allocations: 94.16 kB / 0.889 GB, free: 44.59 MB / 426.9 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003911/5.44, allocations: 80.83 kB / 0.889 GB, free: 44.57 MB / 426.9 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.026e-05/5.44, allocations: 19.45 kB / 0.8891 GB, free: 44.57 MB / 426.9 MB Notification: Performance of sorting global known variables: time 0.108/5.548, allocations: 37.25 MB / 0.9254 GB, free: 32.09 MB / 426.9 MB Notification: Performance of sort global known variables: time 1.002e-06/5.548, allocations: 0.75 kB / 0.9254 GB, free: 32.09 MB / 426.9 MB Notification: Performance of remove unused functions: time 0.01422/5.562, allocations: 2.241 MB / 0.9276 GB, free: 32.04 MB / 426.9 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (charger.controlledCurrent.limitedController.limIntegrator.y,batteryStack.staticResistance.cellCalculator.sOC.integrator.y,batteryStack.staticResistance.cellCalculator.q.absInt.y,batteryStack.staticResistance.cellCalculator.EquivalentCycles.integrator.y) * Number of discrete variables: 26 (cycler.cycling.AfterChargingDelay.u,cycler.cycling.BeforeChargingDelay.u,$whenCondition3,$whenCondition2,$whenCondition1,charger.on,cycler.Discharging,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.not_u,cycler.chargingFinished.and1.u1,load.fTP72_Power.FTP72_Table.nextTimeEvent,load.fTP72_Power.FTP72_Table.nextTimeEventScaled) * Number of discrete states: 7 (load.fTP72_Power.FTP72_Table.nextTimeEvent,load.fTP72_Power.FTP72_Table.nextTimeEventScaled,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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.01639/5.579, allocations: 5.028 MB / 0.9325 GB, free: 29.27 MB / 426.9 MB Notification: Performance of simCode: created initialization part: time 0.002207/5.581, allocations: 0.9447 MB / 0.9335 GB, free: 28.75 MB / 426.9 MB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/5.581, allocations: 5.594 kB / 0.9335 GB, free: 28.75 MB / 426.9 MB Notification: Performance of simCode: created simulation system equations: time 0.001027/5.582, allocations: 484 kB / 0.9339 GB, free: 28.5 MB / 426.9 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01766/5.6, allocations: 1.515 MB / 0.9354 GB, free: 27.49 MB / 426.9 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1554/5.755, allocations: 49.66 MB / 0.9839 GB, free: 3.566 MB / 442.9 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.7695/6.525, allocations: 11.84 MB / 0.9955 GB, free: 113.1 MB / 459.1 MB Notification: Performance of simCode: alias equations: time 0.02077/6.546, allocations: 4.429 MB / 0.9998 GB, free: 112.9 MB / 459.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02658/6.572, allocations: 10.47 MB / 1.01 GB, free: 108.6 MB / 459.1 MB Notification: Performance of SimCode: time 2.415e-06/6.572, allocations: 2.969 kB / 1.01 GB, free: 108.6 MB / 459.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.025/9.598, allocations: 358 MB / 1.36 GB, free: 58.18 MB / 491.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002811/9.598, allocations: 245.7 kB / 1.36 GB, free: 57.86 MB / 491.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.17/27.77, allocations: 2.953 kB / 1.36 GB, free: 57.86 MB / 491.1 MB