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_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging") Notification: Performance of loadModel(Modelica): time 2.102/2.102, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.354e-05/2.375e-05, allocations: 0.9844 kB / 292.1 MB, free: 8.324 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08985/0.0899, allocations: 50.42 MB / 342.6 MB, free: 5.887 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.375/0.465, allocations: 87.9 MB / 430.5 MB, free: 6.324 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002366/0.4652, allocations: 78.27 kB / 430.5 MB, free: 6.285 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1068/0.5721, allocations: 29.48 MB / 460 MB, free: 12.41 MB / 378.7 MB Notification: Performance of FrontEnd: time 7.152e-06/0.5722, allocations: 0 / 460 MB, free: 12.41 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001088/0.5723, allocations: 27.94 kB / 460.1 MB, free: 12.39 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.002699/0.575, allocations: 1.294 MB / 461.3 MB, free: 11.12 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/0.5751, allocations: 12.03 kB / 461.4 MB, free: 11.11 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004155/0.5755, allocations: 158 kB / 461.5 MB, free: 10.95 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00272/0.5782, allocations: 1.154 MB / 462.7 MB, free: 9.945 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001097/0.5784, allocations: 72.72 kB / 462.7 MB, free: 9.883 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001141/0.5785, allocations: 54.7 kB / 462.8 MB, free: 9.844 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001345/0.5798, allocations: 0.6026 MB / 463.4 MB, free: 9.379 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.323e-05/0.5799, allocations: 3.938 kB / 463.4 MB, free: 9.375 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.652e-05/0.58, allocations: 21.06 kB / 463.4 MB, free: 9.371 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.098e-05/0.58, allocations: 12 kB / 463.4 MB, free: 9.359 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009068/0.5809, allocations: 378.6 kB / 463.8 MB, free: 9.125 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006311/0.5873, allocations: 2.92 MB / 466.7 MB, free: 6.152 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00107/0.5884, allocations: 376 kB / 467.1 MB, free: 5.777 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007137/0.5891, allocations: 292.8 kB / 467.4 MB, free: 5.488 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.201e-05/0.5892, allocations: 4 kB / 467.4 MB, free: 5.484 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.812e-05/0.5892, allocations: 54.41 kB / 467.4 MB, free: 5.422 MB / 378.7 MB Notification: Performance of pre-optimization done (n=30): time 7.048e-06/0.5892, allocations: 0 / 467.4 MB, free: 5.422 MB / 378.7 MB Notification: Performance of matching and sorting (n=30): time 0.001444/0.5907, allocations: 477.1 kB / 467.9 MB, free: 4.945 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001771/0.5909, allocations: 273 kB / 468.2 MB, free: 4.617 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004287/0.5952, allocations: 1.999 MB / 470.2 MB, free: 2.609 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001002/0.5953, allocations: 33.7 kB / 470.2 MB, free: 2.57 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007933/0.5961, allocations: 0.6467 MB / 470.8 MB, free: 1.918 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001369/0.5963, allocations: 98.55 kB / 470.9 MB, free: 1.82 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.228e-05/0.5963, allocations: 8 kB / 470.9 MB, free: 1.812 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001698/0.5965, allocations: 322 kB / 471.3 MB, free: 1.492 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003353/0.5969, allocations: 132.7 kB / 471.4 MB, free: 1.359 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004739/0.5974, allocations: 280.2 kB / 471.7 MB, free: 1.031 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003926/0.5978, allocations: 162 kB / 471.8 MB, free: 0.875 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.431e-06/0.5978, allocations: 4 kB / 471.8 MB, free: 0.8711 MB / 378.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001457/0.5993, allocations: 0.5389 MB / 472.4 MB, free: 328 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.822e-05/0.5993, allocations: 8 kB / 472.4 MB, free: 320 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.16e-05/0.5993, allocations: 4 kB / 472.4 MB, free: 316 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003165/0.5997, allocations: 57.11 kB / 472.4 MB, free: 256 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005233/0.6002, allocations: 91.89 kB / 472.5 MB, free: 164 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002185/0.6024, allocations: 1.568 MB / 474.1 MB, free: 14.46 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008104/0.6032, allocations: 67.69 kB / 474.2 MB, free: 14.39 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.648e-05/0.6033, allocations: 19.95 kB / 474.2 MB, free: 14.37 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.0001913/0.6035, allocations: 128.9 kB / 474.3 MB, free: 14.24 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003176/0.6039, allocations: 134.3 kB / 474.4 MB, free: 14.11 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001474/0.6053, allocations: 0.5162 MB / 475 MB, free: 13.57 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.014e-05/0.6054, allocations: 4 kB / 475 MB, free: 13.57 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.364e-06/0.6054, allocations: 0 / 475 MB, free: 13.57 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.953e-06/0.6054, allocations: 0 / 475 MB, free: 13.57 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00384/0.6093, allocations: 1.681 MB / 476.6 MB, free: 11.82 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.265e-06/0.6093, allocations: 0 / 476.6 MB, free: 11.82 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004645/0.6098, allocations: 68.08 kB / 476.7 MB, free: 11.75 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002492/0.61, allocations: 60.83 kB / 476.8 MB, free: 11.69 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.489e-05/0.6101, allocations: 4 kB / 476.8 MB, free: 11.69 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001984/0.6121, allocations: 1.541 MB / 478.3 MB, free: 10.01 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.745e-06/0.6121, allocations: 0 / 478.3 MB, free: 10.01 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001752/0.6139, allocations: 0.7684 MB / 479.1 MB, free: 9.199 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009509/0.6149, allocations: 448.3 kB / 479.5 MB, free: 8.723 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001916/0.6151, allocations: 12 kB / 479.5 MB, free: 8.711 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006449/0.6157, allocations: 63.84 kB / 479.6 MB, free: 8.648 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001111/0.6159, allocations: 35.89 kB / 479.6 MB, free: 8.613 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.309e-05/0.6159, allocations: 4 kB / 479.6 MB, free: 8.609 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003366/0.6193, allocations: 1.559 MB / 481.2 MB, free: 7.051 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.22e-06/0.6193, allocations: 0 / 481.2 MB, free: 7.051 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00138/0.6207, allocations: 247.6 kB / 481.4 MB, free: 6.809 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.001455/0.6222, allocations: 432.4 kB / 481.8 MB, free: 6.484 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001191/0.6234, allocations: 445.8 kB / 482.3 MB, free: 6.039 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.974e-06/0.6234, allocations: 4 kB / 482.3 MB, free: 6.035 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005681/0.624, allocations: 270.3 kB / 482.6 MB, free: 5.762 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001347/0.6254, allocations: 195 kB / 482.7 MB, free: 5.57 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004914/0.6303, allocations: 2.163 MB / 484.9 MB, free: 3.375 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00139/0.6317, allocations: 1.28 MB / 486.2 MB, free: 2.07 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.000856/0.6326, allocations: 231.8 kB / 486.4 MB, free: 1.84 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003187/0.633, allocations: 75.44 kB / 486.5 MB, free: 1.766 MB / 394.7 MB Notification: Performance of SimCode: time 1.731e-06/0.633, allocations: 0 / 486.5 MB, free: 1.766 MB / 394.7 MB Notification: Performance of Templates: time 0.04324/0.6762, allocations: 15.32 MB / 0.49 GB, free: 2.52 MB / 410.7 MB