Running command: translateModel(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=144000,variableFilter="time|energy.y|superCap.capacitor.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") Notification: Performance of loadModel(Modelica): time 1.973/1.973, allocations: 225.8 MB / 239.4 MB, free: 1.258 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.512e-05/3.519e-05, allocations: 4 kB / 292.7 MB, free: 11.47 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09149/0.09154, allocations: 50.41 MB / 343.1 MB, free: 9.062 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4163/0.5079, allocations: 81.37 MB / 424.4 MB, free: 8.215 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000305/0.5083, allocations: 65.77 kB / 424.5 MB, free: 8.215 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03701/0.5453, allocations: 6.314 MB / 430.8 MB, free: 6.398 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.215e-06/0.5454, allocations: 0 / 430.8 MB, free: 6.398 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.692e-05/0.5454, allocations: 7.156 kB / 430.8 MB, free: 6.398 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.002079/0.5475, allocations: 0.686 MB / 431.5 MB, free: 5.883 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.28e-05/0.5476, allocations: 11.53 kB / 431.5 MB, free: 5.883 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001626/0.5478, allocations: 42.66 kB / 431.6 MB, free: 5.859 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009935/0.5488, allocations: 356.2 kB / 431.9 MB, free: 5.598 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.292e-05/0.5489, allocations: 27.03 kB / 431.9 MB, free: 5.598 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001014/0.549, allocations: 33.53 kB / 432 MB, free: 5.594 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001083/0.5501, allocations: 326.4 kB / 432.3 MB, free: 5.488 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.307e-05/0.5502, allocations: 0 / 432.3 MB, free: 5.488 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.138e-05/0.5503, allocations: 18.17 kB / 432.3 MB, free: 5.484 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.61e-05/0.5503, allocations: 11.67 kB / 432.3 MB, free: 5.48 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009072/0.5512, allocations: 227.5 kB / 432.5 MB, free: 5.465 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003513/0.5548, allocations: 1.333 MB / 433.9 MB, free: 4.594 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007353/0.5555, allocations: 248.3 kB / 434.1 MB, free: 4.465 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003876/0.556, allocations: 106.3 kB / 434.2 MB, free: 4.445 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.981e-05/0.556, allocations: 3.906 kB / 434.2 MB, free: 4.445 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.658e-05/0.5561, allocations: 42.39 kB / 434.3 MB, free: 4.398 MB / 330.7 MB Notification: Performance of pre-optimization done (n=16): time 5.347e-06/0.5561, allocations: 0 / 434.3 MB, free: 4.398 MB / 330.7 MB Notification: Performance of matching and sorting (n=16): time 0.0006995/0.5568, allocations: 162.7 kB / 434.4 MB, free: 4.34 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.927e-05/0.5569, allocations: 51.41 kB / 434.5 MB, free: 4.277 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006401/0.5575, allocations: 293.5 kB / 434.8 MB, free: 4.16 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.091e-05/0.5576, allocations: 29.52 kB / 434.8 MB, free: 4.129 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000175/0.5578, allocations: 207.3 kB / 435 MB, free: 3.98 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.418e-05/0.5579, allocations: 58.83 kB / 435 MB, free: 3.938 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.375e-05/0.558, allocations: 7.031 kB / 435.1 MB, free: 3.938 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001071/0.5581, allocations: 339.9 kB / 435.4 MB, free: 3.613 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000298/0.5584, allocations: 67.67 kB / 435.5 MB, free: 3.609 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003296/0.5588, allocations: 130.9 kB / 435.6 MB, free: 3.527 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000248/0.5591, allocations: 61.88 kB / 435.6 MB, free: 3.516 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.204e-06/0.5591, allocations: 0 / 435.6 MB, free: 3.516 MB / 330.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0008466/0.56, allocations: 232.5 kB / 435.9 MB, free: 3.438 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.762e-05/0.56, allocations: 13.94 kB / 435.9 MB, free: 3.434 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.215e-05/0.56, allocations: 3.406 kB / 435.9 MB, free: 3.434 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.426e-05/0.5601, allocations: 3.594 kB / 435.9 MB, free: 3.434 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004241/0.5605, allocations: 46.12 kB / 435.9 MB, free: 3.422 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.57e-05/0.5606, allocations: 3.281 kB / 435.9 MB, free: 3.422 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008428/0.5614, allocations: 81.34 kB / 436 MB, free: 3.395 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.695e-05/0.5615, allocations: 19.12 kB / 436 MB, free: 3.387 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 3 (pulseSeries.on1,pulseSeries.on2,energy.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * 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.0001327/0.5617, allocations: 119.5 kB / 436.2 MB, free: 3.273 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001302/0.5618, allocations: 27.16 kB / 436.2 MB, free: 3.258 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007847/0.5626, allocations: 191.4 kB / 436.4 MB, free: 3.195 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.747e-06/0.5627, allocations: 7.797 kB / 436.4 MB, free: 3.191 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.523e-06/0.5627, allocations: 0 / 436.4 MB, free: 3.191 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.946e-06/0.5627, allocations: 0 / 436.4 MB, free: 3.191 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001552/0.5643, allocations: 0.63 MB / 437 MB, free: 2.773 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.709e-06/0.5643, allocations: 4.031 kB / 437 MB, free: 2.77 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003715/0.5647, allocations: 26.61 kB / 437 MB, free: 2.766 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.076e-05/0.5647, allocations: 3.938 kB / 437 MB, free: 2.766 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.997e-05/0.5648, allocations: 7.625 kB / 437 MB, free: 2.762 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.581e-06/0.5648, allocations: 7.719 kB / 437.1 MB, free: 2.758 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.637e-06/0.5649, allocations: 3.953 kB / 437.1 MB, free: 2.754 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009655/0.5658, allocations: 380.4 kB / 437.4 MB, free: 2.559 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001303/0.566, allocations: 107.9 kB / 437.5 MB, free: 2.441 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001052/0.5661, allocations: 11.2 kB / 437.5 MB, free: 2.438 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008819/0.567, allocations: 80.66 kB / 437.6 MB, free: 2.41 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003491/0.5674, allocations: 72.28 kB / 437.7 MB, free: 2.379 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.167e-05/0.5675, allocations: 7.562 kB / 437.7 MB, free: 2.379 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000469/0.568, allocations: 231 kB / 437.9 MB, free: 2.285 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.255e-06/0.568, allocations: 0 / 437.9 MB, free: 2.285 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009015/0.5689, allocations: 88.53 kB / 438 MB, free: 2.27 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (superCap.capacitor.v,energy.y) * Number of discrete variables: 2 (pulseSeries.on1,pulseSeries.on2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0002451/0.5692, allocations: 118.2 kB / 438.1 MB, free: 2.168 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007257/0.5699, allocations: 172.5 kB / 438.3 MB, free: 2.145 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.736e-06/0.57, allocations: 0 / 438.3 MB, free: 2.145 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004056/0.5704, allocations: 103.1 kB / 438.4 MB, free: 2.129 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007865/0.5712, allocations: 50.27 kB / 438.4 MB, free: 2.117 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002221/0.5735, allocations: 0.5487 MB / 439 MB, free: 1.797 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007025/0.5742, allocations: 0.7877 MB / 439.8 MB, free: 17.05 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0003996/0.5746, allocations: 29.3 kB / 439.8 MB, free: 17.04 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001763/0.5748, allocations: 23.02 kB / 439.8 MB, free: 17.03 MB / 346.7 MB Notification: Performance of SimCode: time 2.555e-06/0.5748, allocations: 4 kB / 439.8 MB, free: 17.03 MB / 346.7 MB Notification: Performance of Templates: time 0.01552/0.5904, allocations: 3.611 MB / 443.4 MB, free: 15.26 MB / 346.7 MB