Running command: translateModel(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=144000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") Notification: Performance of loadModel(Modelica): time 2.006/2.006, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.768e-05/2.786e-05, allocations: 4 kB / 292.1 MB, free: 8.824 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08865/0.0887, allocations: 50.42 MB / 342.6 MB, free: 6.387 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3586/0.4473, allocations: 81.67 MB / 424.2 MB, free: 12.49 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002115/0.4476, allocations: 74.41 kB / 424.3 MB, free: 12.45 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02466/0.4723, allocations: 6.301 MB / 430.6 MB, free: 7.035 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.307e-06/0.4723, allocations: 0 / 430.6 MB, free: 7.035 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.332e-05/0.4724, allocations: 11.94 kB / 430.6 MB, free: 7.023 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.001472/0.4739, allocations: 0.6784 MB / 431.3 MB, free: 6.324 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.196e-05/0.4739, allocations: 11.97 kB / 431.3 MB, free: 6.312 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001262/0.4741, allocations: 43.53 kB / 431.3 MB, free: 6.27 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007407/0.4748, allocations: 353 kB / 431.7 MB, free: 5.938 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.176e-05/0.4749, allocations: 22.84 kB / 431.7 MB, free: 5.926 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.111e-05/0.4749, allocations: 29.88 kB / 431.7 MB, free: 5.906 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007366/0.4757, allocations: 332.9 kB / 432.1 MB, free: 5.664 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.42e-05/0.4757, allocations: 4 kB / 432.1 MB, free: 5.66 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.976e-05/0.4758, allocations: 22.14 kB / 432.1 MB, free: 5.648 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.101e-05/0.4758, allocations: 4 kB / 432.1 MB, free: 5.645 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000576/0.4764, allocations: 231.4 kB / 432.3 MB, free: 5.496 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002617/0.479, allocations: 1.332 MB / 433.6 MB, free: 4.328 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005369/0.4796, allocations: 253.8 kB / 433.9 MB, free: 4.109 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000275/0.4799, allocations: 100.6 kB / 434 MB, free: 4.039 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.122e-05/0.48, allocations: 7.938 kB / 434 MB, free: 4.031 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.282e-05/0.48, allocations: 37.88 kB / 434 MB, free: 3.988 MB / 346.7 MB Notification: Performance of pre-optimization done (n=16): time 3.415e-06/0.48, allocations: 0 / 434 MB, free: 3.988 MB / 346.7 MB Notification: Performance of matching and sorting (n=16): time 0.0004644/0.4805, allocations: 161.5 kB / 434.2 MB, free: 3.855 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.29e-05/0.4806, allocations: 59.41 kB / 434.3 MB, free: 3.785 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004511/0.481, allocations: 292.8 kB / 434.5 MB, free: 3.562 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.92e-05/0.4811, allocations: 29.7 kB / 434.6 MB, free: 3.527 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001819/0.4813, allocations: 264.1 kB / 434.8 MB, free: 3.305 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.108e-05/0.4814, allocations: 53.33 kB / 434.9 MB, free: 3.258 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.732e-05/0.4814, allocations: 3.562 kB / 434.9 MB, free: 3.258 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001622/0.4816, allocations: 322.2 kB / 435.2 MB, free: 2.938 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001838/0.4818, allocations: 67.98 kB / 435.3 MB, free: 2.895 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002342/0.482, allocations: 131.6 kB / 435.4 MB, free: 2.766 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001558/0.4822, allocations: 64.84 kB / 435.5 MB, free: 2.723 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.378e-06/0.4822, allocations: 0 / 435.5 MB, free: 2.723 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005222/0.4827, allocations: 216 kB / 435.7 MB, free: 2.551 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.4828, allocations: 10.81 kB / 435.7 MB, free: 2.543 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/0.4828, allocations: 4.25 kB / 435.7 MB, free: 2.539 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.473e-05/0.4828, allocations: 4 kB / 435.7 MB, free: 2.535 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002473/0.4831, allocations: 47.34 kB / 435.7 MB, free: 2.492 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.412e-05/0.4831, allocations: 7.938 kB / 435.7 MB, free: 2.484 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004907/0.4836, allocations: 82.58 kB / 435.8 MB, free: 2.406 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.408e-05/0.4837, allocations: 19.33 kB / 435.8 MB, free: 2.391 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.0001235/0.4838, allocations: 115.7 kB / 435.9 MB, free: 2.277 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.734e-05/0.4839, allocations: 23.72 kB / 436 MB, free: 2.254 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005064/0.4844, allocations: 193.2 kB / 436.2 MB, free: 2.109 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.053e-05/0.4845, allocations: 4 kB / 436.2 MB, free: 2.105 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.27e-06/0.4845, allocations: 4 kB / 436.2 MB, free: 2.102 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.4845, allocations: 0 / 436.2 MB, free: 2.102 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001116/0.4856, allocations: 0.6244 MB / 436.8 MB, free: 1.539 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.669e-06/0.4856, allocations: 0 / 436.8 MB, free: 1.539 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002639/0.4859, allocations: 31.48 kB / 436.8 MB, free: 1.512 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.588e-06/0.4859, allocations: 0 / 436.8 MB, free: 1.512 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.809e-05/0.486, allocations: 8.078 kB / 436.8 MB, free: 1.504 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.231e-06/0.486, allocations: 3.938 kB / 436.8 MB, free: 1.5 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.776e-06/0.486, allocations: 11.92 kB / 436.8 MB, free: 1.488 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00069/0.4867, allocations: 385.5 kB / 437.2 MB, free: 1.16 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001234/0.4868, allocations: 107.4 kB / 437.3 MB, free: 1.043 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.334e-05/0.4869, allocations: 7.625 kB / 437.3 MB, free: 1.039 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005132/0.4874, allocations: 79.94 kB / 437.4 MB, free: 0.9609 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000245/0.4877, allocations: 78.73 kB / 437.5 MB, free: 0.8906 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.908e-05/0.4878, allocations: 6.938 kB / 437.5 MB, free: 0.8867 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003352/0.4881, allocations: 226.9 kB / 437.7 MB, free: 0.7148 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.83e-07/0.4881, allocations: 0 / 437.7 MB, free: 0.7148 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005124/0.4886, allocations: 90.81 kB / 437.8 MB, free: 0.6328 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.0002094/0.4889, allocations: 122.3 kB / 437.9 MB, free: 0.5039 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004426/0.4893, allocations: 172 kB / 438.1 MB, free: 388 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.4893, allocations: 0 / 438.1 MB, free: 388 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002461/0.4896, allocations: 106.6 kB / 438.2 MB, free: 308 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000428/0.49, allocations: 53.98 kB / 438.3 MB, free: 272 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001575/0.4916, allocations: 0.58 MB / 438.8 MB, free: 15.7 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005225/0.4922, allocations: 0.7833 MB / 439.6 MB, free: 14.89 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00015/0.4923, allocations: 23.44 kB / 439.6 MB, free: 14.87 MB / 362.7 MB Notification: Performance of SimCode: time 1.707e-06/0.4924, allocations: 0 / 439.6 MB, free: 14.87 MB / 362.7 MB Notification: Performance of Templates: time 0.00878/0.5011, allocations: 4.201 MB / 443.8 MB, free: 10.73 MB / 362.7 MB