Running command: translateModel(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=144000,variableFilter="time|energy.y|superCap.capacitor.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") Notification: Performance of loadModel(Modelica): time 2.121/2.121, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.383e-05/2.388e-05, allocations: 3.984 kB / 292.1 MB, free: 8.324 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09456/0.09461, allocations: 50.41 MB / 342.6 MB, free: 5.891 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.488/0.5827, allocations: 81.62 MB / 424.2 MB, free: 12.56 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002263/0.583, allocations: 72.03 kB / 424.2 MB, free: 12.53 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0244/0.6074, allocations: 6.297 MB / 430.5 MB, free: 7.113 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.414e-06/0.6074, allocations: 0 / 430.5 MB, free: 7.113 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.023e-05/0.6075, allocations: 12 kB / 430.6 MB, free: 7.102 MB / 346.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.001425/0.6089, allocations: 0.6853 MB / 431.2 MB, free: 6.398 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.609, allocations: 8.031 kB / 431.2 MB, free: 6.391 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001081/0.6091, allocations: 43.47 kB / 431.3 MB, free: 6.348 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007008/0.6098, allocations: 357 kB / 431.6 MB, free: 6.012 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.111e-05/0.6098, allocations: 27.52 kB / 431.7 MB, free: 5.996 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.359e-05/0.6099, allocations: 30.56 kB / 431.7 MB, free: 5.977 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007206/0.6107, allocations: 321.4 kB / 432 MB, free: 5.746 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.481e-05/0.6107, allocations: 0 / 432 MB, free: 5.746 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.679e-05/0.6107, allocations: 24.02 kB / 432 MB, free: 5.734 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.536e-05/0.6108, allocations: 8 kB / 432 MB, free: 5.727 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005668/0.6114, allocations: 232.9 kB / 432.3 MB, free: 5.574 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00243/0.6138, allocations: 1.326 MB / 433.6 MB, free: 4.414 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000521/0.6143, allocations: 254.4 kB / 433.8 MB, free: 4.195 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003293/0.6147, allocations: 109 kB / 433.9 MB, free: 4.117 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.293e-05/0.6147, allocations: 0 / 433.9 MB, free: 4.117 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.13e-05/0.6148, allocations: 34.56 kB / 434 MB, free: 4.074 MB / 346.7 MB Notification: Performance of pre-optimization done (n=16): time 2.205e-06/0.6148, allocations: 0 / 434 MB, free: 4.074 MB / 346.7 MB Notification: Performance of matching and sorting (n=16): time 0.0004572/0.6153, allocations: 163.2 kB / 434.1 MB, free: 3.941 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.957e-05/0.6153, allocations: 55.41 kB / 434.2 MB, free: 3.875 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004479/0.6158, allocations: 296.3 kB / 434.5 MB, free: 3.648 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.899e-05/0.6159, allocations: 29.52 kB / 434.5 MB, free: 3.617 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001674/0.616, allocations: 212.2 kB / 434.7 MB, free: 3.445 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.906e-05/0.6161, allocations: 54.02 kB / 434.8 MB, free: 3.398 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.717e-05/0.6161, allocations: 3.312 kB / 434.8 MB, free: 3.398 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001787/0.6163, allocations: 337.4 kB / 435.1 MB, free: 3.07 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000188/0.6165, allocations: 73.22 kB / 435.2 MB, free: 3.023 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002394/0.6168, allocations: 131.3 kB / 435.3 MB, free: 2.895 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000157/0.617, allocations: 66.34 kB / 435.4 MB, free: 2.852 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.134e-06/0.617, allocations: 0 / 435.4 MB, free: 2.852 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000547/0.6175, allocations: 230.1 kB / 435.6 MB, free: 2.668 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/0.6176, allocations: 11.94 kB / 435.6 MB, free: 2.656 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.899e-06/0.6176, allocations: 0 / 435.6 MB, free: 2.656 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/0.6176, allocations: 4 kB / 435.6 MB, free: 2.652 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002657/0.6179, allocations: 47.91 kB / 435.7 MB, free: 2.605 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.414e-05/0.6179, allocations: 8.25 kB / 435.7 MB, free: 2.598 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004941/0.6184, allocations: 86.97 kB / 435.7 MB, free: 2.52 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.621e-05/0.6185, allocations: 19.94 kB / 435.8 MB, free: 2.5 MB / 346.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.0001246/0.6186, allocations: 116.8 kB / 435.9 MB, free: 2.387 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.572e-05/0.6187, allocations: 27.62 kB / 435.9 MB, free: 2.359 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005093/0.6192, allocations: 188.6 kB / 436.1 MB, free: 2.223 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.156e-06/0.6193, allocations: 4 kB / 436.1 MB, free: 2.219 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.762e-06/0.6193, allocations: 3.984 kB / 436.1 MB, free: 2.215 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.6193, allocations: 0 / 436.1 MB, free: 2.215 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001131/0.6204, allocations: 0.632 MB / 436.7 MB, free: 1.645 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.706e-06/0.6205, allocations: 0 / 436.7 MB, free: 1.645 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002244/0.6207, allocations: 27.98 kB / 436.8 MB, free: 1.617 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.085e-06/0.6207, allocations: 0 / 436.8 MB, free: 1.617 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.767e-05/0.6207, allocations: 7.781 kB / 436.8 MB, free: 1.613 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.799e-06/0.6208, allocations: 7.875 kB / 436.8 MB, free: 1.605 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.323e-06/0.6208, allocations: 3.953 kB / 436.8 MB, free: 1.602 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006757/0.6215, allocations: 383.1 kB / 437.2 MB, free: 1.273 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001224/0.6216, allocations: 107.8 kB / 437.3 MB, free: 1.156 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.99e-05/0.6217, allocations: 4 kB / 437.3 MB, free: 1.152 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005152/0.6222, allocations: 87.8 kB / 437.3 MB, free: 1.07 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002392/0.6225, allocations: 70.81 kB / 437.4 MB, free: 1.008 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.694e-05/0.6225, allocations: 4 kB / 437.4 MB, free: 1.004 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003339/0.6229, allocations: 240.2 kB / 437.7 MB, free: 0.8242 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.93e-07/0.6229, allocations: 0 / 437.7 MB, free: 0.8242 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005111/0.6234, allocations: 87.25 kB / 437.7 MB, free: 0.7422 MB / 346.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.0001985/0.6236, allocations: 114.4 kB / 437.9 MB, free: 0.6211 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004428/0.6241, allocations: 173.1 kB / 438 MB, free: 0.4961 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.947e-06/0.6241, allocations: 0 / 438 MB, free: 0.4961 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002441/0.6243, allocations: 104.5 kB / 438.1 MB, free: 432 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004184/0.6248, allocations: 52.78 kB / 438.2 MB, free: 392 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001509/0.6263, allocations: 0.5517 MB / 438.7 MB, free: 15.85 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005254/0.6268, allocations: 0.7833 MB / 439.5 MB, free: 15.04 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002155/0.6271, allocations: 34.08 kB / 439.5 MB, free: 15 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001132/0.6272, allocations: 23.42 kB / 439.6 MB, free: 14.98 MB / 362.7 MB Notification: Performance of SimCode: time 1.368e-06/0.6272, allocations: 0 / 439.6 MB, free: 14.98 MB / 362.7 MB Notification: Performance of Templates: time 0.01043/0.6377, allocations: 3.604 MB / 443.2 MB, free: 11.42 MB / 362.7 MB