Running command: translateModel(Modelica.Electrical.Batteries.Examples.CCCV_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell") Notification: Performance of loadModel(Modelica): time 2.145/2.145, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.151e-05/3.162e-05, allocations: 7.984 kB / 292.1 MB, free: 8.324 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09111/0.09116, allocations: 50.42 MB / 342.6 MB, free: 5.891 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3725/0.4637, allocations: 87.33 MB / 429.9 MB, free: 6.918 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002272/0.464, allocations: 73.97 kB / 430 MB, free: 6.883 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09385/0.5579, allocations: 26.85 MB / 456.8 MB, free: 15.54 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.323e-06/0.5579, allocations: 0 / 456.8 MB, free: 15.54 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001475/0.5581, allocations: 27.98 kB / 456.8 MB, free: 15.52 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.002971/0.5611, allocations: 1.471 MB / 458.3 MB, free: 14.09 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.066e-05/0.5611, allocations: 16.86 kB / 458.3 MB, free: 14.07 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004838/0.5616, allocations: 185.7 kB / 458.5 MB, free: 13.89 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003619/0.5653, allocations: 1.474 MB / 460 MB, free: 12.66 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001144/0.5654, allocations: 64.89 kB / 460 MB, free: 12.61 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001057/0.5655, allocations: 53.39 kB / 460.1 MB, free: 12.57 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001178/0.5667, allocations: 0.5313 MB / 460.6 MB, free: 12.16 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.906e-05/0.5668, allocations: 4 kB / 460.6 MB, free: 12.15 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.039e-05/0.5668, allocations: 19.69 kB / 460.6 MB, free: 12.15 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.855e-05/0.5669, allocations: 12 kB / 460.7 MB, free: 12.14 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007268/0.5676, allocations: 288.6 kB / 460.9 MB, free: 11.96 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007088/0.5747, allocations: 3.318 MB / 464.3 MB, free: 8.707 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009374/0.5757, allocations: 294.4 kB / 464.5 MB, free: 8.414 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004225/0.5762, allocations: 147.7 kB / 464.7 MB, free: 8.27 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.764e-05/0.5762, allocations: 4.188 kB / 464.7 MB, free: 8.266 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.23e-05/0.5763, allocations: 34.75 kB / 464.7 MB, free: 8.223 MB / 378.7 MB Notification: Performance of pre-optimization done (n=21): time 3.385e-06/0.5763, allocations: 3.938 kB / 464.7 MB, free: 8.219 MB / 378.7 MB Notification: Performance of matching and sorting (n=21): time 0.001066/0.5774, allocations: 363.2 kB / 465.1 MB, free: 7.855 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001359/0.5775, allocations: 209.6 kB / 465.3 MB, free: 7.602 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006042/0.5836, allocations: 2.61 MB / 467.9 MB, free: 4.945 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.677e-05/0.5837, allocations: 29.7 kB / 467.9 MB, free: 4.91 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001081/0.5848, allocations: 0.7854 MB / 468.7 MB, free: 4.117 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001116/0.5849, allocations: 70.91 kB / 468.8 MB, free: 4.047 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.256e-05/0.585, allocations: 12 kB / 468.8 MB, free: 4.035 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001671/0.5851, allocations: 321.9 kB / 469.1 MB, free: 3.715 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000243/0.5854, allocations: 92.64 kB / 469.2 MB, free: 3.621 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003812/0.5858, allocations: 240.7 kB / 469.4 MB, free: 3.316 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002791/0.5861, allocations: 112 kB / 469.5 MB, free: 3.211 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.702e-06/0.5861, allocations: 0 / 469.5 MB, free: 3.211 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001725/0.5879, allocations: 0.5158 MB / 470.1 MB, free: 2.684 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.595e-05/0.5879, allocations: 8 kB / 470.1 MB, free: 2.676 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.367e-05/0.5879, allocations: 7.984 kB / 470.1 MB, free: 2.668 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002683/0.5882, allocations: 45.03 kB / 470.1 MB, free: 2.621 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004734/0.5887, allocations: 87.78 kB / 470.2 MB, free: 2.535 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002038/0.5908, allocations: 1.533 MB / 471.7 MB, free: 0.8672 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008743/0.5917, allocations: 75.69 kB / 471.8 MB, free: 0.793 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.633e-05/0.5917, allocations: 16 kB / 471.8 MB, free: 0.7773 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 4 (cccvCharger.CV,energy.local_reset,cell.limIntegrator.local_reset,cell.cell.limIntegrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 35 * 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 prepare postOptimizeDAE: time 0.0001731/0.5919, allocations: 120.9 kB / 471.9 MB, free: 0.6523 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003746/0.5923, allocations: 169.8 kB / 472.1 MB, free: 496 kB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001088/0.5934, allocations: 406.4 kB / 472.5 MB, free: 72 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.876e-06/0.5934, allocations: 4 kB / 472.5 MB, free: 68 kB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.054e-06/0.5935, allocations: 0 / 472.5 MB, free: 68 kB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.739e-06/0.5935, allocations: 3.984 kB / 472.5 MB, free: 64 kB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00365/0.5971, allocations: 1.681 MB / 474.2 MB, free: 14.31 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.997e-06/0.5972, allocations: 0 / 474.2 MB, free: 14.31 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003442/0.5975, allocations: 52 kB / 474.2 MB, free: 14.26 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001793/0.5977, allocations: 36.84 kB / 474.3 MB, free: 14.22 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.818e-05/0.5978, allocations: 4 kB / 474.3 MB, free: 14.22 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001854/0.5996, allocations: 1.483 MB / 475.8 MB, free: 12.6 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.318e-06/0.5997, allocations: 3.953 kB / 475.8 MB, free: 12.6 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001766/0.6014, allocations: 0.5754 MB / 476.4 MB, free: 11.99 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001266/0.6027, allocations: 0.5038 MB / 476.9 MB, free: 11.45 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002097/0.603, allocations: 8 kB / 476.9 MB, free: 11.44 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006503/0.6036, allocations: 60.02 kB / 476.9 MB, free: 11.38 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001103/0.6038, allocations: 31.89 kB / 477 MB, free: 11.35 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.708e-05/0.6038, allocations: 8 kB / 477 MB, free: 11.34 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.004096/0.6079, allocations: 2.024 MB / 479 MB, free: 9.285 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.071e-06/0.608, allocations: 0 / 479 MB, free: 9.285 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001386/0.6094, allocations: 247.5 kB / 479.2 MB, free: 9.043 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (cell.cell.limIntegrator.y,cell.limIntegrator.y,energy.y) * Number of discrete variables: 1 (cccvCharger.CV) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 17 * 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 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.001357/0.6107, allocations: 403.5 kB / 479.6 MB, free: 8.742 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0009485/0.6117, allocations: 349.9 kB / 480 MB, free: 8.391 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.042e-06/0.6117, allocations: 7.938 kB / 480 MB, free: 8.383 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000495/0.6122, allocations: 230.2 kB / 480.2 MB, free: 8.148 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001409/0.6137, allocations: 204.7 kB / 480.4 MB, free: 7.949 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006396/0.6201, allocations: 2.527 MB / 482.9 MB, free: 5.379 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001622/0.6218, allocations: 1.382 MB / 484.3 MB, free: 3.969 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0009084/0.6227, allocations: 253.7 kB / 484.6 MB, free: 3.719 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003592/0.6231, allocations: 83.44 kB / 484.6 MB, free: 3.637 MB / 394.7 MB Notification: Performance of SimCode: time 1.862e-06/0.6231, allocations: 4 kB / 484.6 MB, free: 3.633 MB / 394.7 MB Notification: Performance of Templates: time 0.04653/0.6696, allocations: 16.55 MB / 0.4894 GB, free: 3.125 MB / 410.7 MB