Running command: "" <> buildModelFMU(ElectricalEnergyStorage.Examples.Impedance,fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_Impedance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ElectricalEnergyStorage): time 2.088/2.088, allocations: 202 MB / 214.1 MB, free: 13.16 MB / 186.9 MB Notification: Performance of FrontEnd - loaded program: time 4.147e-05/4.156e-05, allocations: 4 kB / 263.1 MB, free: 10.88 MB / 218.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1069, allocations: 45.99 MB / 309.1 MB, free: 12.8 MB / 266.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4441/0.5511, allocations: 79.08 MB / 388.1 MB, free: 12.85 MB / 314.9 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002613/0.5514, allocations: 80.47 kB / 388.2 MB, free: 12.85 MB / 314.9 MB Notification: Performance of FrontEnd - DAE generated: time 0.1093/0.6607, allocations: 32.2 MB / 420.4 MB, free: 2.52 MB / 314.9 MB Notification: Performance of FrontEnd: time 2.355e-06/0.6608, allocations: 0 / 420.4 MB, free: 2.52 MB / 314.9 MB Notification: Performance of Transformations before backend: time 0.000212/0.661, allocations: 34.86 kB / 420.5 MB, free: 2.512 MB / 314.9 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 298 * Number of variables: 298 Notification: Performance of Generate backend data structure: time 0.005431/0.6665, allocations: 1.593 MB / 422 MB, free: 1.465 MB / 314.9 MB Notification: Performance of prepare preOptimizeDAE: time 5.404e-05/0.6665, allocations: 11.47 kB / 422.1 MB, free: 1.465 MB / 314.9 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008451/0.6674, allocations: 204.5 kB / 422.3 MB, free: 1.387 MB / 314.9 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006401/0.6681, allocations: 179.3 kB / 422.4 MB, free: 1.293 MB / 314.9 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004034/0.6721, allocations: 1.465 MB / 423.9 MB, free: 0.7539 MB / 314.9 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001391/0.6723, allocations: 98.92 kB / 424 MB, free: 0.75 MB / 314.9 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004547/0.6728, allocations: 134.2 kB / 424.1 MB, free: 0.7383 MB / 314.9 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00433/0.6771, allocations: 1.4 MB / 425.5 MB, free: 0.5 MB / 314.9 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.614e-05/0.6772, allocations: 3.812 kB / 425.5 MB, free: 0.5 MB / 314.9 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002209/0.6775, allocations: 52.83 kB / 425.6 MB, free: 0.4961 MB / 314.9 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.134e-05/0.6775, allocations: 34.55 kB / 425.6 MB, free: 0.4922 MB / 314.9 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004008/0.6815, allocations: 1.295 MB / 426.9 MB, free: 404 kB / 314.9 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01814/0.6997, allocations: 5.976 MB / 432.9 MB, free: 12.82 MB / 330.9 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004827/0.7046, allocations: 2.922 MB / 435.8 MB, free: 10.02 MB / 330.9 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001508/0.7062, allocations: 0.5257 MB / 436.3 MB, free: 9.742 MB / 330.9 MB Notification: Performance of preOpt evalFunc (simulation): time 6.775e-05/0.7063, allocations: 8.406 kB / 436.3 MB, free: 9.742 MB / 330.9 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001409/0.7077, allocations: 0.5237 MB / 436.9 MB, free: 9.387 MB / 330.9 MB Notification: Performance of pre-optimization done (n=59): time 4.027e-06/0.7078, allocations: 0 / 436.9 MB, free: 9.387 MB / 330.9 MB Notification: Performance of matching and sorting (n=59): time 0.002526/0.7103, allocations: 0.8666 MB / 437.7 MB, free: 8.832 MB / 330.9 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001268/0.7105, allocations: 166.8 kB / 437.9 MB, free: 8.633 MB / 330.9 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005078/0.7156, allocations: 1.678 MB / 439.6 MB, free: 6.941 MB / 330.9 MB Notification: Performance of collectPreVariables (initialization): time 0.0002634/0.7159, allocations: 41.7 kB / 439.6 MB, free: 6.895 MB / 330.9 MB Notification: Performance of collectInitialEqns (initialization): time 0.001209/0.7171, allocations: 0.6575 MB / 440.3 MB, free: 6.23 MB / 330.9 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004494/0.7176, allocations: 205 kB / 440.5 MB, free: 6.027 MB / 330.9 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.774e-05/0.7177, allocations: 12 kB / 440.5 MB, free: 6.016 MB / 330.9 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.7179, allocations: 333.9 kB / 440.8 MB, free: 5.684 MB / 330.9 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001066/0.719, allocations: 385.4 kB / 441.2 MB, free: 5.309 MB / 330.9 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001271/0.7203, allocations: 0.519 MB / 441.7 MB, free: 4.742 MB / 330.9 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001279/0.7216, allocations: 497.7 kB / 442.2 MB, free: 4.25 MB / 330.9 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.476e-06/0.7216, allocations: 0 / 442.2 MB, free: 4.25 MB / 330.9 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.003414/0.725, allocations: 1.12 MB / 443.3 MB, free: 3.117 MB / 330.9 MB Notification: Performance of prepare postOptimizeDAE: time 7.528e-05/0.7252, allocations: 37.69 kB / 443.3 MB, free: 3.074 MB / 330.9 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.45e-05/0.7252, allocations: 4 kB / 443.3 MB, free: 3.07 MB / 330.9 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.806e-05/0.7252, allocations: 4 kB / 443.4 MB, free: 3.066 MB / 330.9 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001953/0.7272, allocations: 216 kB / 443.6 MB, free: 2.855 MB / 330.9 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.031e-05/0.7273, allocations: 7.938 kB / 443.6 MB, free: 2.848 MB / 330.9 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001567/0.7289, allocations: 134.8 kB / 443.7 MB, free: 2.715 MB / 330.9 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002053/0.7291, allocations: 20 kB / 443.7 MB, free: 2.695 MB / 330.9 MB Warning: Assuming fixed start value for the following 3 variables: rCseriesLinear.rcseriesLinear.rclinear[3].capacitor.variableCapacitor.Q:VARIABLE(unit = "C" ) type: Real [3] rCseriesLinear.rcseriesLinear.rclinear[2].capacitor.variableCapacitor.Q:VARIABLE(unit = "C" ) type: Real [3] rCseriesLinear.rcseriesLinear.rclinear[1].capacitor.variableCapacitor.Q:VARIABLE(unit = "C" ) type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (81): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 1 * 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.0003975/0.7295, allocations: 158.1 kB / 443.9 MB, free: 2.535 MB / 330.9 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000521/0.7301, allocations: 130.3 kB / 444 MB, free: 2.406 MB / 330.9 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002942/0.733, allocations: 0.9455 MB / 445 MB, free: 1.449 MB / 330.9 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.621e-05/0.7331, allocations: 8 kB / 445 MB, free: 1.441 MB / 330.9 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.688e-06/0.7331, allocations: 0 / 445 MB, free: 1.441 MB / 330.9 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.341e-05/0.7331, allocations: 3.984 kB / 445 MB, free: 1.438 MB / 330.9 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008666/0.7418, allocations: 3.018 MB / 448 MB, free: 14.34 MB / 346.9 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.957e-06/0.7419, allocations: 7.969 kB / 448 MB, free: 14.33 MB / 346.9 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001832/0.7437, allocations: 171.8 kB / 448.2 MB, free: 14.16 MB / 346.9 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.215e-05/0.7438, allocations: 7.953 kB / 448.2 MB, free: 14.16 MB / 346.9 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000182/0.744, allocations: 23.98 kB / 448.2 MB, free: 14.13 MB / 346.9 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.003e-06/0.744, allocations: 0 / 448.2 MB, free: 14.13 MB / 346.9 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.744, allocations: 8 kB / 448.2 MB, free: 14.12 MB / 346.9 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003769/0.7478, allocations: 1.513 MB / 449.7 MB, free: 12.59 MB / 346.9 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008353/0.7487, allocations: 303.3 kB / 450 MB, free: 12.27 MB / 346.9 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004906/0.7492, allocations: 23.98 kB / 450 MB, free: 12.25 MB / 346.9 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001266/0.7505, allocations: 55.95 kB / 450.1 MB, free: 12.19 MB / 346.9 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002456/0.7508, allocations: 44.5 kB / 450.1 MB, free: 12.15 MB / 346.9 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.989e-05/0.7509, allocations: 19.98 kB / 450.1 MB, free: 12.13 MB / 346.9 MB Notification: Performance of sorting global known variables: time 0.003856/0.7548, allocations: 1.312 MB / 451.5 MB, free: 10.81 MB / 346.9 MB Notification: Performance of sort global known variables: time 9.02e-07/0.7548, allocations: 0 / 451.5 MB, free: 10.81 MB / 346.9 MB Notification: Performance of remove unused functions: time 0.001831/0.7567, allocations: 299.1 kB / 451.7 MB, free: 10.52 MB / 346.9 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (rCseriesLinear.rcseriesLinear.rclinear[1].capacitor.impedanceValue.qabs.absInt.y,rCseriesLinear.rcseriesLinear.rclinear[1].capacitor.variableCapacitor.Q,rCseriesLinear.rcseriesLinear.rclinear[1].resistor.impedanceValue.qabs.absInt.y,rCseriesLinear.rcseriesLinear.rclinear[2].capacitor.impedanceValue.qabs.absInt.y,rCseriesLinear.rcseriesLinear.rclinear[2].capacitor.variableCapacitor.Q,rCseriesLinear.rcseriesLinear.rclinear[2].resistor.impedanceValue.qabs.absInt.y,rCseriesLinear.rcseriesLinear.rclinear[3].capacitor.impedanceValue.qabs.absInt.y,rCseriesLinear.rcseriesLinear.rclinear[3].capacitor.variableCapacitor.Q,rCseriesLinear.rcseriesLinear.rclinear[3].resistor.impedanceValue.qabs.absInt.y,rCseriesLinear.rs.impedanceValue.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 (62): * Single equations (assignments): 60 * 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.004954/0.7617, allocations: 2.258 MB / 454 MB, free: 8.23 MB / 346.9 MB Notification: Performance of simCode: created initialization part: time 0.00257/0.7643, allocations: 0.8872 MB / 454.9 MB, free: 7.332 MB / 346.9 MB Notification: Performance of simCode: created event and clocks part: time 1.088e-05/0.7644, allocations: 4.109 kB / 454.9 MB, free: 7.328 MB / 346.9 MB Notification: Performance of simCode: created simulation system equations: time 0.001088/0.7655, allocations: 409.8 kB / 455.3 MB, free: 6.926 MB / 346.9 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002574/0.7681, allocations: 295.9 kB / 455.6 MB, free: 6.637 MB / 346.9 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01086/0.779, allocations: 3.259 MB / 458.8 MB, free: 3.324 MB / 346.9 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002388/0.7815, allocations: 1.681 MB / 460.5 MB, free: 1.613 MB / 346.9 MB Notification: Performance of simCode: alias equations: time 0.001859/0.7834, allocations: 316.9 kB / 460.8 MB, free: 1.301 MB / 346.9 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001711/0.7851, allocations: 0.5188 MB / 461.4 MB, free: 0.7812 MB / 346.9 MB Notification: Performance of SimCode: time 2.044e-06/0.7852, allocations: 4 kB / 461.4 MB, free: 0.7773 MB / 346.9 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1212/0.9064, allocations: 31.72 MB / 493.1 MB, free: 1.066 MB / 378.9 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003615/0.9068, allocations: 147.6 kB / 493.2 MB, free: 0.8477 MB / 378.9 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.28/4.187, allocations: 0 / 493.2 MB, free: 0.8477 MB / 378.9 MB