Running command: translateModel(Modelica.Electrical.Batteries.Examples.CCCVcharging,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|battery.capacitor.1..v|battery.capacitor.2..v|battery.limIntegrator.y|energy.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging") Notification: Performance of loadModel(Modelica): time 2.153/2.153, allocations: 225.8 MB / 239.4 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.792e-05/2.803e-05, allocations: 4 kB / 292.7 MB, free: 8.355 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08975/0.0898, allocations: 50.42 MB / 343.1 MB, free: 5.91 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4224/0.5123, allocations: 87.9 MB / 431 MB, free: 6.395 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003844/0.5127, allocations: 76.66 kB / 431.1 MB, free: 6.359 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1438/0.6565, allocations: 29.48 MB / 460.5 MB, free: 12.49 MB / 378.7 MB Notification: Performance of FrontEnd: time 8.506e-06/0.6566, allocations: 0 / 460.5 MB, free: 12.49 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002137/0.6568, allocations: 31.92 kB / 460.6 MB, free: 12.46 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.004367/0.6612, allocations: 1.294 MB / 461.9 MB, free: 11.19 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.567e-05/0.6613, allocations: 12.03 kB / 461.9 MB, free: 11.18 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007576/0.6621, allocations: 158 kB / 462 MB, free: 11.02 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004839/0.6669, allocations: 1.155 MB / 463.2 MB, free: 10.02 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001569/0.6672, allocations: 66.72 kB / 463.2 MB, free: 9.957 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001768/0.6674, allocations: 54.34 kB / 463.3 MB, free: 9.922 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002229/0.6696, allocations: 0.6056 MB / 463.9 MB, free: 9.453 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.343e-05/0.6697, allocations: 3.938 kB / 463.9 MB, free: 9.449 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000127/0.6698, allocations: 21.12 kB / 463.9 MB, free: 9.445 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.533e-05/0.6699, allocations: 12 kB / 463.9 MB, free: 9.434 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001589/0.6715, allocations: 379 kB / 464.3 MB, free: 9.199 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01044/0.6819, allocations: 2.913 MB / 467.2 MB, free: 6.195 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001792/0.6838, allocations: 382.7 kB / 467.6 MB, free: 5.812 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001189/0.685, allocations: 300.4 kB / 467.9 MB, free: 5.52 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.166e-05/0.6851, allocations: 4 kB / 467.9 MB, free: 5.516 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.986e-05/0.6852, allocations: 42.5 kB / 467.9 MB, free: 5.465 MB / 378.7 MB Notification: Performance of pre-optimization done (n=30): time 1.458e-05/0.6852, allocations: 0 / 467.9 MB, free: 5.465 MB / 378.7 MB Notification: Performance of matching and sorting (n=30): time 0.002473/0.6877, allocations: 481.1 kB / 468.4 MB, free: 4.984 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002451/0.688, allocations: 269 kB / 468.7 MB, free: 4.66 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007438/0.6954, allocations: 2.003 MB / 470.7 MB, free: 2.648 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001287/0.6956, allocations: 33.7 kB / 470.7 MB, free: 2.609 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001296/0.6969, allocations: 0.6428 MB / 471.4 MB, free: 1.961 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002156/0.6972, allocations: 102.5 kB / 471.5 MB, free: 1.859 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.01e-05/0.6972, allocations: 4 kB / 471.5 MB, free: 1.855 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002195/0.6975, allocations: 325.9 kB / 471.8 MB, free: 1.531 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005767/0.6981, allocations: 132.7 kB / 471.9 MB, free: 1.398 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007759/0.6989, allocations: 280.2 kB / 472.2 MB, free: 1.07 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006607/0.6996, allocations: 166 kB / 472.3 MB, free: 0.9102 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.072e-06/0.6996, allocations: 0 / 472.3 MB, free: 0.9102 MB / 378.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.002368/0.702, allocations: 0.5434 MB / 472.9 MB, free: 364 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.985e-05/0.702, allocations: 8 kB / 472.9 MB, free: 356 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.619e-05/0.7021, allocations: 4 kB / 472.9 MB, free: 352 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004362/0.7025, allocations: 61.09 kB / 473 MB, free: 288 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008728/0.7034, allocations: 83.89 kB / 473 MB, free: 204 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003261/0.7067, allocations: 1.572 MB / 474.6 MB, free: 14.49 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001341/0.7081, allocations: 67.69 kB / 474.7 MB, free: 14.43 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.089e-05/0.7082, allocations: 15.95 kB / 474.7 MB, free: 14.41 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 3 (cccvCharger.CV,energy.local_reset,battery.limIntegrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 40 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0002678/0.7085, allocations: 128.9 kB / 474.8 MB, free: 14.28 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005131/0.709, allocations: 134.3 kB / 474.9 MB, free: 14.14 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002372/0.7114, allocations: 0.5196 MB / 475.5 MB, free: 13.61 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.254e-05/0.7115, allocations: 4 kB / 475.5 MB, free: 13.61 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.024e-06/0.7115, allocations: 0 / 475.5 MB, free: 13.61 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.673e-06/0.7115, allocations: 0 / 475.5 MB, free: 13.61 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006613/0.7182, allocations: 1.677 MB / 477.1 MB, free: 11.86 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.195e-05/0.7182, allocations: 4 kB / 477.2 MB, free: 11.86 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007692/0.719, allocations: 71.95 kB / 477.2 MB, free: 11.79 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003365/0.7194, allocations: 56.83 kB / 477.3 MB, free: 11.73 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.331e-05/0.7195, allocations: 4 kB / 477.3 MB, free: 11.72 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002903/0.7224, allocations: 1.533 MB / 478.8 MB, free: 10.05 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.337e-06/0.7224, allocations: 0 / 478.8 MB, free: 10.05 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002947/0.7254, allocations: 0.7761 MB / 479.6 MB, free: 9.234 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001634/0.7271, allocations: 452.3 kB / 480 MB, free: 8.754 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003299/0.7275, allocations: 8 kB / 480 MB, free: 8.746 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001181/0.7287, allocations: 67.91 kB / 480.1 MB, free: 8.68 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001665/0.7289, allocations: 31.89 kB / 480.1 MB, free: 8.648 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.386e-05/0.7289, allocations: 4 kB / 480.1 MB, free: 8.645 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00522/0.7342, allocations: 1.555 MB / 481.7 MB, free: 7.09 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.59e-06/0.7342, allocations: 0 / 481.7 MB, free: 7.09 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002198/0.7364, allocations: 247.6 kB / 481.9 MB, free: 6.848 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (battery.limIntegrator.y,battery.capacitor[1].v,battery.capacitor[2].v,energy.y) * Number of discrete variables: 1 (cccvCharger.CV) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 25 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.003259/0.7397, allocations: 436.4 kB / 482.4 MB, free: 6.516 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0026/0.7424, allocations: 453.8 kB / 482.8 MB, free: 6.062 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-05/0.7425, allocations: 4 kB / 482.8 MB, free: 6.059 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00245/0.745, allocations: 274.4 kB / 483.1 MB, free: 5.781 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002703/0.7477, allocations: 181.2 kB / 483.3 MB, free: 5.602 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005626/0.7534, allocations: 2.163 MB / 485.4 MB, free: 3.406 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001367/0.7548, allocations: 1.284 MB / 486.7 MB, free: 2.098 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0008978/0.7557, allocations: 231.8 kB / 486.9 MB, free: 1.867 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003056/0.7561, allocations: 79.42 kB / 487 MB, free: 1.789 MB / 394.7 MB Notification: Performance of SimCode: time 1.724e-06/0.7561, allocations: 0 / 487 MB, free: 1.789 MB / 394.7 MB Notification: Performance of Templates: time 0.04238/0.7985, allocations: 15.31 MB / 0.4905 GB, free: 2.547 MB / 410.7 MB