Running command: "" <> buildModelFMU(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent,fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_AdvancedCellPulseCurrent",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ElectricalEnergyStorage): time 2.055/2.055, allocations: 201.9 MB / 214.1 MB, free: 13.17 MB / 186.9 MB Notification: Performance of FrontEnd - loaded program: time 5.123e-05/5.157e-05, allocations: 7.984 kB / 263.1 MB, free: 10.88 MB / 218.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1021, allocations: 45.99 MB / 309.1 MB, free: 12.8 MB / 266.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4262/0.5284, allocations: 85.9 MB / 395 MB, free: 12.86 MB / 314.9 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002767/0.5287, allocations: 83.5 kB / 395 MB, free: 12.86 MB / 314.9 MB Notification: Performance of FrontEnd - DAE generated: time 0.1062/0.6349, allocations: 32.5 MB / 427.5 MB, free: 15.3 MB / 330.9 MB Notification: Performance of FrontEnd: time 2.314e-06/0.6349, allocations: 0 / 427.5 MB, free: 15.3 MB / 330.9 MB Notification: Performance of Transformations before backend: time 0.0001376/0.6351, allocations: 27.66 kB / 427.6 MB, free: 15.29 MB / 330.9 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.004496/0.6396, allocations: 1.412 MB / 429 MB, free: 14.3 MB / 330.9 MB Notification: Performance of prepare preOptimizeDAE: time 5.335e-05/0.6397, allocations: 7.75 kB / 429 MB, free: 14.3 MB / 330.9 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006616/0.6404, allocations: 169.1 kB / 429.1 MB, free: 14.23 MB / 330.9 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006604/0.641, allocations: 159.5 kB / 429.3 MB, free: 14.15 MB / 330.9 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003392/0.6445, allocations: 1.173 MB / 430.5 MB, free: 13.65 MB / 330.9 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.567e-05/0.6446, allocations: 87.53 kB / 430.6 MB, free: 13.64 MB / 330.9 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002399/0.6449, allocations: 103 kB / 430.7 MB, free: 13.64 MB / 330.9 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002964/0.6478, allocations: 1.121 MB / 431.8 MB, free: 13.3 MB / 330.9 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.043e-05/0.6479, allocations: 352 / 431.8 MB, free: 13.3 MB / 330.9 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001598/0.6481, allocations: 42.58 kB / 431.8 MB, free: 13.29 MB / 330.9 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.173e-05/0.6481, allocations: 24 kB / 431.9 MB, free: 13.27 MB / 330.9 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002512/0.6507, allocations: 0.8653 MB / 432.7 MB, free: 12.79 MB / 330.9 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01126/0.6619, allocations: 4.457 MB / 437.2 MB, free: 9.855 MB / 330.9 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002835/0.6648, allocations: 2.114 MB / 439.3 MB, free: 7.422 MB / 330.9 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001365/0.6662, allocations: 386.4 kB / 439.7 MB, free: 7.043 MB / 330.9 MB Notification: Performance of preOpt evalFunc (simulation): time 8.945e-05/0.6664, allocations: 8.562 kB / 439.7 MB, free: 7.031 MB / 330.9 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00132/0.6677, allocations: 409.7 kB / 440.1 MB, free: 6.613 MB / 330.9 MB Notification: Performance of pre-optimization done (n=56): time 4.238e-06/0.6677, allocations: 0 / 440.1 MB, free: 6.613 MB / 330.9 MB Notification: Performance of matching and sorting (n=56): time 0.002606/0.6703, allocations: 0.6699 MB / 440.7 MB, free: 5.938 MB / 330.9 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001277/0.6705, allocations: 162.7 kB / 440.9 MB, free: 5.738 MB / 330.9 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003931/0.6744, allocations: 1.228 MB / 442.1 MB, free: 4.488 MB / 330.9 MB Notification: Performance of collectPreVariables (initialization): time 0.0001981/0.6747, allocations: 37.7 kB / 442.2 MB, free: 4.445 MB / 330.9 MB Notification: Performance of collectInitialEqns (initialization): time 0.001062/0.6757, allocations: 0.5973 MB / 442.8 MB, free: 3.84 MB / 330.9 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003903/0.6762, allocations: 197.1 kB / 443 MB, free: 3.645 MB / 330.9 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.937e-05/0.6763, allocations: 20 kB / 443 MB, free: 3.625 MB / 330.9 MB Notification: Performance of setup shared object (initialization): time 0.0001874/0.6765, allocations: 333.9 kB / 443.3 MB, free: 3.293 MB / 330.9 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001152/0.6776, allocations: 285.5 kB / 443.6 MB, free: 3.016 MB / 330.9 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001272/0.6789, allocations: 379.5 kB / 444 MB, free: 2.613 MB / 330.9 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001345/0.6803, allocations: 393.4 kB / 444.3 MB, free: 2.223 MB / 330.9 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.804e-06/0.6803, allocations: 0 / 444.3 MB, free: 2.223 MB / 330.9 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.003607/0.6839, allocations: 0.8772 MB / 445.2 MB, free: 1.324 MB / 330.9 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001135/0.6841, allocations: 63.67 kB / 445.3 MB, free: 1.25 MB / 330.9 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.666e-05/0.6841, allocations: 3.938 kB / 445.3 MB, free: 1.246 MB / 330.9 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.285e-05/0.6842, allocations: 7.938 kB / 445.3 MB, free: 1.238 MB / 330.9 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001823/0.686, allocations: 143.8 kB / 445.4 MB, free: 1.098 MB / 330.9 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.593e-05/0.6861, allocations: 7.938 kB / 445.4 MB, free: 1.09 MB / 330.9 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001354/0.6874, allocations: 87.36 kB / 445.5 MB, free: 1.004 MB / 330.9 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001087/0.6876, allocations: 20 kB / 445.5 MB, free: 0.9844 MB / 330.9 MB Warning: Assuming fixed start value for the following 1 variables: batteryCell.cellImpedance.rcseriesLinear.rclinear[1].capacitor.variableCapacitor.Q:VARIABLE(unit = "C" ) type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (77): * Single equations (assignments): 75 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003849/0.688, allocations: 150.1 kB / 445.7 MB, free: 0.832 MB / 330.9 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003504/0.6883, allocations: 110.7 kB / 445.8 MB, free: 0.7227 MB / 330.9 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003/0.6913, allocations: 0.7128 MB / 446.5 MB, free: 8 kB / 330.9 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.709e-05/0.6914, allocations: 8 kB / 446.5 MB, free: 0 / 330.9 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/0.6914, allocations: 0 / 446.5 MB, free: 0 / 330.9 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.464e-05/0.6915, allocations: 4.047 kB / 446.5 MB, free: 15.99 MB / 346.9 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007683/0.6992, allocations: 2.406 MB / 448.9 MB, free: 13.53 MB / 346.9 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.08e-05/0.6992, allocations: 0 / 448.9 MB, free: 13.53 MB / 346.9 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001691/0.7009, allocations: 123.8 kB / 449 MB, free: 13.41 MB / 346.9 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.694e-05/0.701, allocations: 3.953 kB / 449.1 MB, free: 13.4 MB / 346.9 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001195/0.7011, allocations: 19.98 kB / 449.1 MB, free: 13.38 MB / 346.9 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.065e-06/0.7011, allocations: 0 / 449.1 MB, free: 13.38 MB / 346.9 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.7012, allocations: 0 / 449.1 MB, free: 13.38 MB / 346.9 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003728/0.7049, allocations: 1.139 MB / 450.2 MB, free: 12.23 MB / 346.9 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007605/0.7057, allocations: 247.6 kB / 450.5 MB, free: 11.96 MB / 346.9 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003407/0.7061, allocations: 27.94 kB / 450.5 MB, free: 11.94 MB / 346.9 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001172/0.7073, allocations: 43.91 kB / 450.5 MB, free: 11.89 MB / 346.9 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002092/0.7075, allocations: 44.44 kB / 450.6 MB, free: 11.85 MB / 346.9 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.288e-05/0.7076, allocations: 12 kB / 450.6 MB, free: 11.84 MB / 346.9 MB Notification: Performance of sorting global known variables: time 0.003206/0.7108, allocations: 0.9518 MB / 451.5 MB, free: 10.88 MB / 346.9 MB Notification: Performance of sort global known variables: time 8.41e-07/0.7109, allocations: 3.938 kB / 451.5 MB, free: 10.87 MB / 346.9 MB Notification: Performance of remove unused functions: time 0.001988/0.7129, allocations: 278.9 kB / 451.8 MB, free: 10.6 MB / 346.9 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (batteryCell.calculator.sOC.integrator.y,batteryCell.calculator.q.absInt.y,batteryCell.calculator.EquivalentCycles.integrator.y,batteryCell.cellImpedance.rcseriesLinear.rclinear[1].capacitor.impedanceValue.qabs.absInt.y,batteryCell.cellImpedance.rcseriesLinear.rclinear[1].capacitor.variableCapacitor.Q,batteryCell.cellImpedance.rcseriesLinear.rclinear[1].resistor.impedanceValue.qabs.absInt.y,batteryCell.cellImpedance.rs.impedanceValue.qabs.absInt.y,batteryCell.selfDischarge.qabs.absInt.y) * Number of discrete variables: 3 ($whenCondition1,pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count) * Number of discrete states: 1 (pulseCurrent.signalSource.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005909/0.7188, allocations: 2.105 MB / 453.9 MB, free: 8.512 MB / 346.9 MB Notification: Performance of simCode: created initialization part: time 0.002518/0.7214, allocations: 0.7354 MB / 454.6 MB, free: 7.746 MB / 346.9 MB Notification: Performance of simCode: created event and clocks part: time 6.713e-06/0.7214, allocations: 0 / 454.6 MB, free: 7.746 MB / 346.9 MB Notification: Performance of simCode: created simulation system equations: time 0.001079/0.7225, allocations: 310 kB / 454.9 MB, free: 7.441 MB / 346.9 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002546/0.7251, allocations: 247.3 kB / 455.2 MB, free: 7.199 MB / 346.9 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009846/0.7349, allocations: 2.395 MB / 457.6 MB, free: 4.762 MB / 346.9 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002072/0.7371, allocations: 1.374 MB / 459 MB, free: 3.359 MB / 346.9 MB Notification: Performance of simCode: alias equations: time 0.001529/0.7386, allocations: 175 kB / 459.1 MB, free: 3.184 MB / 346.9 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001605/0.7403, allocations: 479.3 kB / 459.6 MB, free: 2.715 MB / 346.9 MB Notification: Performance of SimCode: time 1.764e-06/0.7403, allocations: 3.938 kB / 459.6 MB, free: 2.711 MB / 346.9 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08078/0.8211, allocations: 26.14 MB / 485.7 MB, free: 8.547 MB / 378.9 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004372/0.8216, allocations: 208.1 kB / 485.9 MB, free: 8.324 MB / 378.9 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.151/3.973, allocations: 0 / 485.9 MB, free: 8.324 MB / 378.9 MB