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.108/2.108, allocations: 224.7 MB / 241.1 MB, free: 1.695 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.602e-05/2.595e-05, allocations: 4 kB / 294.6 MB, free: 11.42 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1098, allocations: 50.41 MB / 345 MB, free: 8.965 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.005472/0.1154, allocations: 2.366 MB / 347.3 MB, free: 6.582 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002326/0.1178, allocations: 0.6157 MB / 348 MB, free: 5.961 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004156/0.1183, allocations: 12 kB / 348 MB, free: 5.949 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000237/0.1185, allocations: 43.67 kB / 348 MB, free: 5.906 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005024/0.1191, allocations: 103.6 kB / 348.1 MB, free: 5.805 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004528/0.1195, allocations: 59.92 kB / 348.2 MB, free: 5.746 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007216/0.1203, allocations: 219.5 kB / 348.4 MB, free: 5.531 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004151/0.1207, allocations: 116.4 kB / 348.5 MB, free: 5.406 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002546/0.121, allocations: 99.69 kB / 348.6 MB, free: 5.309 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003447/0.1214, allocations: 119.6 kB / 348.7 MB, free: 5.191 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001827/0.1216, allocations: 27.97 kB / 348.7 MB, free: 5.164 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.954e-05/0.1217, allocations: 12 kB / 348.7 MB, free: 5.152 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002268/0.1219, allocations: 71.72 kB / 348.8 MB, free: 5.082 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001354/0.1221, allocations: 32 kB / 348.8 MB, free: 5.051 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008349/0.1229, allocations: 387.1 kB / 349.2 MB, free: 4.672 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.123, allocations: 4 kB / 349.2 MB, free: 4.668 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.116e-06/0.123, allocations: 0 / 349.2 MB, free: 4.668 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.071e-05/0.123, allocations: 0 / 349.2 MB, free: 4.668 MB / 282.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.003209/0.1262, allocations: 0.7137 MB / 349.9 MB, free: 3.906 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.124e-05/0.1263, allocations: 8.031 kB / 350 MB, free: 3.898 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002458/0.1266, allocations: 39.53 kB / 350 MB, free: 3.859 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000958/0.1276, allocations: 329.5 kB / 350.3 MB, free: 3.5 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.964e-05/0.1276, allocations: 20.66 kB / 350.3 MB, free: 3.48 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001359/0.1278, allocations: 35.94 kB / 350.4 MB, free: 3.445 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001306/0.1291, allocations: 337.9 kB / 350.7 MB, free: 3.105 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.44e-05/0.1292, allocations: 4 kB / 350.7 MB, free: 3.102 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.05e-05/0.1293, allocations: 8 kB / 350.7 MB, free: 3.094 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.929e-05/0.1293, allocations: 8 kB / 350.7 MB, free: 3.086 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001095/0.1304, allocations: 242.4 kB / 351 MB, free: 2.844 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004426/0.1349, allocations: 1.319 MB / 352.3 MB, free: 1.438 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008828/0.1358, allocations: 181.3 kB / 352.4 MB, free: 1.254 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.862e-05/0.136, allocations: 4 kB / 352.5 MB, free: 1.25 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.941e-05/0.136, allocations: 38.55 kB / 352.5 MB, free: 1.203 MB / 282.7 MB Notification: Performance of pre-optimization done (n=16): time 4.599e-06/0.136, allocations: 0 / 352.5 MB, free: 1.203 MB / 282.7 MB Notification: Performance of matching and sorting (n=16): time 0.001127/0.1372, allocations: 233.6 kB / 352.7 MB, free: 0.9688 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.774e-05/0.1373, allocations: 55.36 kB / 352.8 MB, free: 0.9023 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007804/0.1381, allocations: 290.2 kB / 353.1 MB, free: 0.6211 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.518e-05/0.1382, allocations: 25.7 kB / 353.1 MB, free: 0.5898 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002569/0.1385, allocations: 278.3 kB / 353.4 MB, free: 324 kB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001057/0.1386, allocations: 47.27 kB / 353.4 MB, free: 276 kB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.501e-05/0.1386, allocations: 8 kB / 353.4 MB, free: 268 kB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001848/0.1388, allocations: 318.8 kB / 353.7 MB, free: 15.94 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003575/0.1392, allocations: 75.91 kB / 353.8 MB, free: 15.87 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004105/0.1396, allocations: 135.9 kB / 353.9 MB, free: 15.71 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002944/0.14, allocations: 62.58 kB / 354 MB, free: 15.65 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.59e-06/0.14, allocations: 0 / 354 MB, free: 15.65 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0009163/0.1409, allocations: 225.3 kB / 354.2 MB, free: 15.43 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.882e-05/0.141, allocations: 4 kB / 354.2 MB, free: 15.42 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.363e-05/0.141, allocations: 4 kB / 354.2 MB, free: 15.42 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.461e-05/0.141, allocations: 4 kB / 354.2 MB, free: 15.41 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005406/0.1416, allocations: 47.91 kB / 354.3 MB, free: 15.37 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.446e-05/0.1416, allocations: 0 / 354.3 MB, free: 15.37 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00113/0.1428, allocations: 103.8 kB / 354.4 MB, free: 15.27 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.364e-05/0.1429, allocations: 8 kB / 354.4 MB, free: 15.26 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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.0003667/0.1433, allocations: 153.8 kB / 354.5 MB, free: 15.1 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000147/0.1434, allocations: 23.72 kB / 354.5 MB, free: 15.07 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009755/0.1444, allocations: 207.8 kB / 354.8 MB, free: 14.86 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.05e-05/0.1445, allocations: 4 kB / 354.8 MB, free: 14.86 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/0.1445, allocations: 0 / 354.8 MB, free: 14.86 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.323e-05/0.1445, allocations: 3.984 kB / 354.8 MB, free: 14.86 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009477/0.1455, allocations: 373.2 kB / 355.1 MB, free: 14.44 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/0.1455, allocations: 0 / 355.1 MB, free: 14.44 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005167/0.146, allocations: 27.98 kB / 355.1 MB, free: 14.41 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.17e-05/0.1461, allocations: 7.938 kB / 355.2 MB, free: 14.41 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.4e-05/0.1461, allocations: 4 kB / 355.2 MB, free: 14.4 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.131e-06/0.1462, allocations: 0 / 355.2 MB, free: 14.4 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.1462, allocations: 0 / 355.2 MB, free: 14.4 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001297/0.1475, allocations: 387.7 kB / 355.5 MB, free: 14.01 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002199/0.1477, allocations: 112.7 kB / 355.7 MB, free: 13.88 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001209/0.1479, allocations: 4 kB / 355.7 MB, free: 13.88 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001169/0.1491, allocations: 79.98 kB / 355.7 MB, free: 13.8 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000423/0.1495, allocations: 75.86 kB / 355.8 MB, free: 13.72 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.64e-05/0.1496, allocations: 4 kB / 355.8 MB, free: 13.72 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0006059/0.1502, allocations: 226 kB / 356 MB, free: 13.5 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.21e-07/0.1502, allocations: 7.938 kB / 356 MB, free: 13.49 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0008752/0.1511, allocations: 91.73 kB / 356.1 MB, free: 13.4 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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.0002884/0.1514, allocations: 118.2 kB / 356.2 MB, free: 13.28 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008712/0.1523, allocations: 192.1 kB / 356.4 MB, free: 13.09 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.641e-06/0.1524, allocations: 0 / 356.4 MB, free: 13.09 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004094/0.1528, allocations: 99.88 kB / 356.5 MB, free: 13 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007259/0.1535, allocations: 43.45 kB / 356.6 MB, free: 12.96 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003406/0.157, allocations: 0.9112 MB / 357.5 MB, free: 12.01 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005748/0.1576, allocations: 0.7833 MB / 358.3 MB, free: 11.2 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002617/0.1579, allocations: 27.44 kB / 358.3 MB, free: 11.17 MB / 298.7 MB Notification: Performance of SimCode: time 1.462e-06/0.1579, allocations: 0 / 358.3 MB, free: 11.17 MB / 298.7 MB Notification: Performance of Templates: time 0.0154/0.1733, allocations: 4.236 MB / 362.5 MB, free: 6.953 MB / 298.7 MB