Running command: translateModel(Modelica.Electrical.Analog.Examples.Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Capacitor1.v|Capacitor2.v|Inductor2.i|Inductor3.i",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.Rectifier") Notification: Performance of loadModel(Modelica): time 1.654/1.654, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.643e-05/3.657e-05, allocations: 4 kB / 225 MB, free: 2.703 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2143/0.2143, allocations: 38.77 MB / 263.8 MB, free: 9.875 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1074/0.3218, allocations: 69.37 MB / 333.1 MB, free: 4.398 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002423/0.3221, allocations: 67.97 kB / 333.2 MB, free: 4.332 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03562/0.3577, allocations: 8.366 MB / 341.6 MB, free: 11.94 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.938e-06/0.3578, allocations: 0 / 341.6 MB, free: 11.94 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.665e-05/0.3578, allocations: 12 kB / 341.6 MB, free: 11.93 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001644/0.3595, allocations: 0.7557 MB / 342.3 MB, free: 11.12 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.91e-05/0.3595, allocations: 8.031 kB / 342.3 MB, free: 11.12 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002032/0.3598, allocations: 75.11 kB / 342.4 MB, free: 11.04 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007044/0.3605, allocations: 359.5 kB / 342.8 MB, free: 10.65 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.524e-05/0.3606, allocations: 45.25 kB / 342.8 MB, free: 10.61 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001263/0.3607, allocations: 55.91 kB / 342.9 MB, free: 10.55 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001197/0.3619, allocations: 0.496 MB / 343.4 MB, free: 10.03 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.52e-05/0.3619, allocations: 7.938 kB / 343.4 MB, free: 10.02 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.72e-05/0.362, allocations: 24 kB / 343.4 MB, free: 9.996 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.776e-05/0.3621, allocations: 12 kB / 343.4 MB, free: 9.984 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001056/0.3631, allocations: 405.8 kB / 343.8 MB, free: 9.59 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004287/0.3674, allocations: 2.069 MB / 345.9 MB, free: 7.43 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001194/0.3687, allocations: 0.6012 MB / 346.5 MB, free: 6.797 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000783/0.3695, allocations: 381.8 kB / 346.8 MB, free: 6.418 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.124e-05/0.3696, allocations: 8.562 kB / 346.8 MB, free: 6.41 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.402e-05/0.3696, allocations: 43.12 kB / 346.9 MB, free: 6.355 MB / 298.7 MB Notification: Performance of pre-optimization done (n=60): time 4.316e-06/0.3696, allocations: 0 / 346.9 MB, free: 6.355 MB / 298.7 MB Notification: Performance of matching and sorting (n=61): time 0.003229/0.3729, allocations: 1.245 MB / 348.1 MB, free: 5.047 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.417e-05/0.373, allocations: 59.97 kB / 348.2 MB, free: 4.977 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005564/0.3736, allocations: 318.9 kB / 348.5 MB, free: 4.664 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.042e-05/0.3736, allocations: 41.69 kB / 348.5 MB, free: 4.617 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000213/0.3739, allocations: 279.5 kB / 348.8 MB, free: 4.344 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002297/0.3741, allocations: 205 kB / 349 MB, free: 4.141 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.502e-05/0.3742, allocations: 8 kB / 349 MB, free: 4.133 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001848/0.3744, allocations: 330.8 kB / 349.3 MB, free: 3.801 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003964/0.3748, allocations: 149.1 kB / 349.5 MB, free: 3.656 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004424/0.3752, allocations: 190.8 kB / 349.7 MB, free: 3.465 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000429/0.3757, allocations: 159.2 kB / 349.8 MB, free: 3.309 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.233e-06/0.3757, allocations: 0 / 349.8 MB, free: 3.309 MB / 298.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001617/0.3773, allocations: 0.6113 MB / 350.4 MB, free: 2.68 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.485e-05/0.3774, allocations: 4 kB / 350.4 MB, free: 2.676 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.012e-06/0.3774, allocations: 0 / 350.4 MB, free: 2.676 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00105/0.3784, allocations: 247.2 kB / 350.7 MB, free: 2.422 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004452/0.3789, allocations: 71.92 kB / 350.8 MB, free: 2.352 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009466/0.3884, allocations: 6.758 MB / 357.5 MB, free: 11.05 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004831/0.3889, allocations: 32.17 kB / 357.5 MB, free: 11.02 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.724e-05/0.389, allocations: 19.94 kB / 357.6 MB, free: 11 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 (IdealDiode1.off,IdealDiode2.off,IdealDiode3.off,IdealDiode4.off,IdealDiode5.off,IdealDiode6.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 29 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001939/0.3892, allocations: 136.9 kB / 357.7 MB, free: 10.86 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001276/0.3894, allocations: 47.44 kB / 357.7 MB, free: 10.82 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001635/0.3895, allocations: 65.03 kB / 357.8 MB, free: 10.75 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.893e-06/0.3895, allocations: 4 kB / 357.8 MB, free: 10.75 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.064e-05/0.3896, allocations: 8 kB / 357.8 MB, free: 10.74 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.689e-06/0.3896, allocations: 3.984 kB / 357.8 MB, free: 10.73 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00297/0.3926, allocations: 1.298 MB / 359.1 MB, free: 9.363 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.206e-06/0.3926, allocations: 4 kB / 359.1 MB, free: 9.359 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004418/0.3931, allocations: 63.91 kB / 359.2 MB, free: 9.297 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00102/0.3941, allocations: 251.2 kB / 359.4 MB, free: 9.039 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.803e-05/0.3942, allocations: 12 kB / 359.4 MB, free: 9.027 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009281/0.4035, allocations: 6.757 MB / 366.2 MB, free: 1.738 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.699e-06/0.4035, allocations: 4.031 kB / 366.2 MB, free: 1.734 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002322/0.4059, allocations: 0.9665 MB / 367.2 MB, free: 0.7422 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003805/0.4063, allocations: 164.5 kB / 367.3 MB, free: 0.5625 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.1e-05/0.4064, allocations: 8 kB / 367.3 MB, free: 0.5547 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003761/0.4068, allocations: 28.69 kB / 367.4 MB, free: 0.5273 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001949/0.407, allocations: 56.41 kB / 367.4 MB, free: 480 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.913e-05/0.4071, allocations: 16 kB / 367.4 MB, free: 464 kB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004198/0.4075, allocations: 253.2 kB / 367.7 MB, free: 212 kB / 314.7 MB Notification: Performance of sort global known variables: time 3.011e-06/0.4075, allocations: 0 / 367.7 MB, free: 212 kB / 314.7 MB Notification: Performance of remove unused functions: time 0.001263/0.4088, allocations: 175.9 kB / 367.9 MB, free: 36 kB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Inductor2.i,Inductor3.i,Capacitor1.v,Capacitor2.v) * Number of discrete variables: 6 (IdealDiode1.off,IdealDiode2.off,IdealDiode3.off,IdealDiode4.off,IdealDiode5.off,IdealDiode6.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 24 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.1836/0.5924, allocations: 119.1 kB / 368 MB, free: 91.08 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001976/0.5944, allocations: 0.9578 MB / 368.9 MB, free: 90.66 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.5944, allocations: 0.5938 kB / 368.9 MB, free: 90.66 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001327/0.5957, allocations: 0.7744 MB / 369.7 MB, free: 90.23 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006027/0.5964, allocations: 76.03 kB / 369.8 MB, free: 90.22 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002578/0.599, allocations: 1.024 MB / 370.8 MB, free: 89.89 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003925/0.5994, allocations: 0.8932 MB / 371.7 MB, free: 89.18 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001323/0.5995, allocations: 30.56 kB / 371.7 MB, free: 89.17 MB / 314.7 MB Notification: Performance of SimCode: time 1.734e-06/0.5995, allocations: 0 / 371.7 MB, free: 89.17 MB / 314.7 MB Notification: Performance of Templates: time 0.01607/0.6156, allocations: 13.26 MB / 385 MB, free: 82.63 MB / 314.7 MB