Running command: translateModel(ElectricalEnergyStorage.Examples.Impedance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance") Notification: Performance of loadModel(ElectricalEnergyStorage): time 1.906/1.906, allocations: 201.9 MB / 214.1 MB, free: 13.08 MB / 186.9 MB Notification: Performance of FrontEnd - loaded program: time 3.102e-05/3.104e-05, allocations: 4 kB / 263 MB, free: 10.96 MB / 218.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07985/0.0799, allocations: 45.99 MB / 309 MB, free: 12.89 MB / 266.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3717/0.4517, allocations: 79.09 MB / 388 MB, free: 12.82 MB / 314.9 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002063/0.4519, allocations: 74.47 kB / 388.1 MB, free: 12.82 MB / 314.9 MB Notification: Performance of FrontEnd - DAE generated: time 0.09246/0.5444, allocations: 32.2 MB / 420.3 MB, free: 2.484 MB / 314.9 MB Notification: Performance of FrontEnd: time 1.816e-06/0.5445, allocations: 0 / 420.3 MB, free: 2.484 MB / 314.9 MB Notification: Performance of Transformations before backend: time 0.0001272/0.5446, allocations: 27.22 kB / 420.4 MB, free: 2.484 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.003038/0.5477, allocations: 1.592 MB / 421.9 MB, free: 1.438 MB / 314.9 MB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/0.5477, allocations: 7.844 kB / 422 MB, free: 1.438 MB / 314.9 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003992/0.5481, allocations: 182.4 kB / 422.1 MB, free: 1.344 MB / 314.9 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002655/0.5508, allocations: 1.472 MB / 423.6 MB, free: 0.7969 MB / 314.9 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001007/0.5509, allocations: 100.8 kB / 423.7 MB, free: 0.793 MB / 314.9 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000262/0.5512, allocations: 114.4 kB / 423.8 MB, free: 0.793 MB / 314.9 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003076/0.5543, allocations: 1.403 MB / 425.2 MB, free: 0.5547 MB / 314.9 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.072e-05/0.5543, allocations: 7.938 kB / 425.2 MB, free: 0.5469 MB / 314.9 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001705/0.5545, allocations: 48.44 kB / 425.3 MB, free: 0.5469 MB / 314.9 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.38e-05/0.5546, allocations: 27.38 kB / 425.3 MB, free: 0.5469 MB / 314.9 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002967/0.5575, allocations: 1.298 MB / 426.6 MB, free: 456 kB / 314.9 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01413/0.5717, allocations: 5.983 MB / 432.6 MB, free: 12.99 MB / 330.9 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003852/0.5756, allocations: 2.922 MB / 435.5 MB, free: 10.18 MB / 330.9 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001127/0.5768, allocations: 0.5256 MB / 436 MB, free: 9.914 MB / 330.9 MB Notification: Performance of preOpt evalFunc (simulation): time 4.575e-05/0.5768, allocations: 4.438 kB / 436 MB, free: 9.914 MB / 330.9 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001114/0.578, allocations: 0.5287 MB / 436.6 MB, free: 9.555 MB / 330.9 MB Notification: Performance of pre-optimization done (n=59): time 3.783e-06/0.578, allocations: 0 / 436.6 MB, free: 9.555 MB / 330.9 MB Notification: Performance of matching and sorting (n=59): time 0.00199/0.58, allocations: 0.8608 MB / 437.4 MB, free: 9.086 MB / 330.9 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001212/0.5801, allocations: 166.6 kB / 437.6 MB, free: 8.895 MB / 330.9 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003717/0.5839, allocations: 1.676 MB / 439.3 MB, free: 7.289 MB / 330.9 MB Notification: Performance of collectPreVariables (initialization): time 0.0001515/0.584, allocations: 41.7 kB / 439.3 MB, free: 7.242 MB / 330.9 MB Notification: Performance of collectInitialEqns (initialization): time 0.001028/0.5851, allocations: 0.6537 MB / 440 MB, free: 6.582 MB / 330.9 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003353/0.5854, allocations: 212.9 kB / 440.2 MB, free: 6.371 MB / 330.9 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.517e-05/0.5855, allocations: 12 kB / 440.2 MB, free: 6.359 MB / 330.9 MB Notification: Performance of setup shared object (initialization): time 0.0001926/0.5857, allocations: 334 kB / 440.5 MB, free: 6.027 MB / 330.9 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009193/0.5867, allocations: 385.4 kB / 440.9 MB, free: 5.652 MB / 330.9 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00106/0.5878, allocations: 0.5151 MB / 441.4 MB, free: 5.09 MB / 330.9 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001761/0.5895, allocations: 0.4977 MB / 441.9 MB, free: 4.586 MB / 330.9 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.747e-06/0.5896, allocations: 3.938 kB / 441.9 MB, free: 4.582 MB / 330.9 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.004715/0.5943, allocations: 1.112 MB / 443 MB, free: 3.457 MB / 330.9 MB Notification: Performance of prepare postOptimizeDAE: time 7.607e-05/0.5944, allocations: 33.7 kB / 443 MB, free: 3.418 MB / 330.9 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.47e-05/0.5945, allocations: 3.938 kB / 443 MB, free: 3.414 MB / 330.9 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.484e-05/0.5945, allocations: 8 kB / 443 MB, free: 3.406 MB / 330.9 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002145/0.5967, allocations: 215.8 kB / 443.3 MB, free: 3.195 MB / 330.9 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.768e-05/0.5967, allocations: 4 kB / 443.3 MB, free: 3.191 MB / 330.9 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001765/0.5985, allocations: 126.8 kB / 443.4 MB, free: 3.066 MB / 330.9 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001672/0.5987, allocations: 24 kB / 443.4 MB, free: 3.043 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.0004976/0.5992, allocations: 162 kB / 443.6 MB, free: 2.879 MB / 330.9 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005734/0.5998, allocations: 134.3 kB / 443.7 MB, free: 2.746 MB / 330.9 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004001/0.6038, allocations: 0.9493 MB / 444.6 MB, free: 1.785 MB / 330.9 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-05/0.6039, allocations: 4 kB / 444.7 MB, free: 1.781 MB / 330.9 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.689e-05/0.6039, allocations: 4 kB / 444.7 MB, free: 1.777 MB / 330.9 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.011e-05/0.604, allocations: 3.984 kB / 444.7 MB, free: 1.773 MB / 330.9 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01206/0.6161, allocations: 3.006 MB / 447.7 MB, free: 14.69 MB / 346.9 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.09e-05/0.6161, allocations: 8 kB / 447.7 MB, free: 14.68 MB / 346.9 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00229/0.6184, allocations: 175.8 kB / 447.8 MB, free: 14.51 MB / 346.9 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.136e-05/0.6185, allocations: 0 / 447.8 MB, free: 14.51 MB / 346.9 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001731/0.6187, allocations: 35.88 kB / 447.9 MB, free: 14.47 MB / 346.9 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.519e-05/0.6187, allocations: 4 kB / 447.9 MB, free: 14.47 MB / 346.9 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.303e-06/0.6188, allocations: 0 / 447.9 MB, free: 14.47 MB / 346.9 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005566/0.6243, allocations: 1.521 MB / 449.4 MB, free: 12.92 MB / 346.9 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001182/0.6256, allocations: 287.3 kB / 449.7 MB, free: 12.62 MB / 346.9 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004721/0.6261, allocations: 27.95 kB / 449.7 MB, free: 12.59 MB / 346.9 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00144/0.6275, allocations: 59.94 kB / 449.8 MB, free: 12.54 MB / 346.9 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002454/0.6278, allocations: 40.5 kB / 449.8 MB, free: 12.5 MB / 346.9 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001235/0.628, allocations: 16 kB / 449.8 MB, free: 12.48 MB / 346.9 MB Notification: Performance of sorting global known variables: time 0.00501/0.633, allocations: 1.312 MB / 451.1 MB, free: 11.16 MB / 346.9 MB Notification: Performance of sort global known variables: time 7.506e-06/0.6331, allocations: 96 / 451.1 MB, free: 11.16 MB / 346.9 MB Notification: Performance of remove unused functions: time 0.002348/0.6354, allocations: 303.2 kB / 451.4 MB, free: 10.87 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.0006701/0.6361, allocations: 226.2 kB / 451.7 MB, free: 10.64 MB / 346.9 MB Notification: Performance of simCode: created initialization part: time 0.003424/0.6396, allocations: 0.8872 MB / 452.5 MB, free: 9.742 MB / 346.9 MB Notification: Performance of simCode: created event and clocks part: time 1.178e-05/0.6396, allocations: 4 kB / 452.5 MB, free: 9.738 MB / 346.9 MB Notification: Performance of simCode: created simulation system equations: time 0.001512/0.6412, allocations: 397.9 kB / 452.9 MB, free: 9.352 MB / 346.9 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003127/0.6443, allocations: 295.9 kB / 453.2 MB, free: 9.062 MB / 346.9 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.011/0.6554, allocations: 2.731 MB / 456 MB, free: 6.293 MB / 346.9 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00308/0.6585, allocations: 1.681 MB / 457.6 MB, free: 4.582 MB / 346.9 MB Notification: Performance of simCode: alias equations: time 0.002465/0.661, allocations: 316.9 kB / 457.9 MB, free: 4.27 MB / 346.9 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006852/0.6618, allocations: 79.42 kB / 458 MB, free: 4.191 MB / 346.9 MB Notification: Performance of SimCode: time 2.441e-06/0.6618, allocations: 0 / 458 MB, free: 4.191 MB / 346.9 MB Notification: Performance of Templates: time 0.07255/0.7344, allocations: 17.29 MB / 475.3 MB, free: 2.914 MB / 362.9 MB