Running command: translateModel(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|cell.cell.capacitor.1..v|cell.cell.capacitor.2..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") Notification: Performance of loadModel(Modelica): time 2.007/2.007, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.946e-05/2.95e-05, allocations: 4 kB / 292.7 MB, free: 8.344 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09784/0.09789, allocations: 50.42 MB / 343.1 MB, free: 5.906 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3959/0.4938, allocations: 90.02 MB / 433.1 MB, free: 4.285 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002322/0.4941, allocations: 78.28 kB / 433.2 MB, free: 4.25 MB / 346.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Electrical/Batteries/ParameterRecords/TransientData/CellData.mo:8:3-11:59:writable] Notification: Moving binding to initial equation section and setting fixed attribute of rcData[2].R to false. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Electrical/Batteries/ParameterRecords/TransientData/CellData.mo:8:3-11:59:writable] Notification: Moving binding to initial equation section and setting fixed attribute of rcData[2].C to false. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Electrical/Batteries/ParameterRecords/TransientData/CellData.mo:8:3-11:59:writable] Notification: Moving binding to initial equation section and setting fixed attribute of rcData[1].R to false. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Electrical/Batteries/ParameterRecords/TransientData/CellData.mo:8:3-11:59:writable] Notification: Moving binding to initial equation section and setting fixed attribute of rcData[1].C to false. Notification: Performance of FrontEnd - DAE generated: time 0.1244/0.6185, allocations: 34.81 MB / 468 MB, free: 5.676 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.097e-06/0.6185, allocations: 0 / 468 MB, free: 5.676 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001601/0.6187, allocations: 35.98 kB / 468 MB, free: 5.641 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.003318/0.622, allocations: 1.643 MB / 469.7 MB, free: 3.941 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.319e-05/0.6221, allocations: 8.031 kB / 469.7 MB, free: 3.934 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005036/0.6226, allocations: 213.4 kB / 469.9 MB, free: 3.723 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003985/0.6266, allocations: 1.638 MB / 471.5 MB, free: 2.016 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001379/0.6268, allocations: 82.95 kB / 471.6 MB, free: 1.93 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000135/0.6269, allocations: 60 kB / 471.7 MB, free: 1.871 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001761/0.6287, allocations: 0.757 MB / 472.4 MB, free: 1.059 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.067e-05/0.6288, allocations: 0 / 472.4 MB, free: 1.059 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001007/0.6289, allocations: 32 kB / 472.4 MB, free: 1.027 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.09e-05/0.6289, allocations: 16 kB / 472.5 MB, free: 1.012 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001241/0.6302, allocations: 482.5 kB / 472.9 MB, free: 0.5391 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008723/0.6389, allocations: 4.055 MB / 477 MB, free: 12.36 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001325/0.6403, allocations: 444.6 kB / 477.4 MB, free: 11.92 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007833/0.6411, allocations: 325.8 kB / 477.7 MB, free: 11.6 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.312e-05/0.6411, allocations: 12.2 kB / 477.8 MB, free: 11.59 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.697e-05/0.6412, allocations: 42.78 kB / 477.8 MB, free: 11.54 MB / 394.7 MB Notification: Performance of pre-optimization done (n=33): time 3.808e-06/0.6412, allocations: 0 / 477.8 MB, free: 11.54 MB / 394.7 MB Notification: Performance of matching and sorting (n=33): time 0.0014/0.6426, allocations: 0.4987 MB / 478.3 MB, free: 11.03 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001895/0.6428, allocations: 269 kB / 478.6 MB, free: 10.71 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006208/0.6491, allocations: 2.853 MB / 481.4 MB, free: 7.816 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001074/0.6492, allocations: 33.7 kB / 481.4 MB, free: 7.777 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001119/0.6503, allocations: 0.8645 MB / 482.3 MB, free: 6.906 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000157/0.6505, allocations: 114.4 kB / 482.4 MB, free: 6.793 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.492e-05/0.6506, allocations: 8 kB / 482.4 MB, free: 6.785 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001795/0.6507, allocations: 326 kB / 482.7 MB, free: 6.461 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004166/0.6512, allocations: 173.1 kB / 482.9 MB, free: 6.293 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005868/0.6518, allocations: 337 kB / 483.2 MB, free: 5.891 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005007/0.6523, allocations: 217.6 kB / 483.5 MB, free: 5.68 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.72e-06/0.6523, allocations: 0 / 483.5 MB, free: 5.68 MB / 394.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001876/0.6542, allocations: 0.6751 MB / 484.1 MB, free: 4.992 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.4e-05/0.6543, allocations: 8 kB / 484.1 MB, free: 4.984 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.164e-05/0.6543, allocations: 4.469 kB / 484.1 MB, free: 4.98 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002999/0.6546, allocations: 64.78 kB / 484.2 MB, free: 4.914 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006486/0.6553, allocations: 115.9 kB / 484.3 MB, free: 4.801 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002207/0.6575, allocations: 1.611 MB / 485.9 MB, free: 3.059 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009496/0.6584, allocations: 75.5 kB / 486 MB, free: 2.984 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.378e-05/0.6585, allocations: 20 kB / 486 MB, free: 2.965 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (51): * Single equations (assignments): 50 * 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.0001996/0.6587, allocations: 144.4 kB / 486.2 MB, free: 2.82 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003686/0.6591, allocations: 181.7 kB / 486.3 MB, free: 2.641 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001421/0.6606, allocations: 0.5632 MB / 486.9 MB, free: 2.062 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.726e-06/0.6606, allocations: 4 kB / 486.9 MB, free: 2.059 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.753e-06/0.6606, allocations: 0 / 486.9 MB, free: 2.059 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.078e-06/0.6606, allocations: 0 / 486.9 MB, free: 2.059 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00448/0.6651, allocations: 2.134 MB / 489 MB, free: 15.85 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.291e-06/0.6651, allocations: 0 / 489 MB, free: 15.85 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006061/0.6658, allocations: 87.94 kB / 489.1 MB, free: 15.77 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002225/0.666, allocations: 52.78 kB / 489.2 MB, free: 15.71 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.396e-05/0.6661, allocations: 11.98 kB / 489.2 MB, free: 15.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002032/0.6681, allocations: 1.553 MB / 490.7 MB, free: 14.01 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.602e-06/0.6681, allocations: 4.031 kB / 490.7 MB, free: 14 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001743/0.6699, allocations: 0.834 MB / 491.6 MB, free: 13.12 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001292/0.6712, allocations: 0.7594 MB / 492.3 MB, free: 12.29 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002431/0.6715, allocations: 12 kB / 492.4 MB, free: 12.28 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008221/0.6723, allocations: 71.92 kB / 492.4 MB, free: 12.21 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001346/0.6724, allocations: 39.94 kB / 492.5 MB, free: 12.17 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.998e-05/0.6725, allocations: 12 kB / 492.5 MB, free: 12.16 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004627/0.6771, allocations: 2.202 MB / 494.7 MB, free: 9.93 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.18e-07/0.6772, allocations: 0 / 494.7 MB, free: 9.93 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001527/0.6787, allocations: 307.4 kB / 495 MB, free: 9.629 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (cell.cell.limIntegrator.y,cell.cell.capacitor[1].v,cell.cell.capacitor[2].v,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 (29): * Single equations (assignments): 28 * 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.001439/0.6802, allocations: 417.8 kB / 495.4 MB, free: 9.309 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001275/0.6815, allocations: 0.5062 MB / 495.9 MB, free: 8.793 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.002e-06/0.6815, allocations: 4 kB / 495.9 MB, free: 8.789 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006799/0.6822, allocations: 313.5 kB / 496.2 MB, free: 8.473 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001893/0.6841, allocations: 275 kB / 496.5 MB, free: 8.203 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007813/0.6919, allocations: 3.054 MB / 499.5 MB, free: 5.105 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00188/0.6939, allocations: 1.528 MB / 0.4893 GB, free: 3.551 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.00121/0.6951, allocations: 311.1 kB / 0.4896 GB, free: 3.242 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004233/0.6955, allocations: 103.4 kB / 0.4897 GB, free: 3.141 MB / 410.7 MB Notification: Performance of SimCode: time 1.742e-06/0.6955, allocations: 0 / 0.4897 GB, free: 3.141 MB / 410.7 MB Notification: Performance of Templates: time 0.05588/0.7514, allocations: 20.21 MB / 0.5094 GB, free: 15.02 MB / 442.7 MB