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.2_cpp_Modelica.Electrical.Analog.Examples.Rectifier") Notification: Performance of loadModel(Modelica): time 1.872/1.872, allocations: 194.9 MB / 208.4 MB, free: 3.16 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.769e-05/2.791e-05, allocations: 4 kB / 255.3 MB, free: 3.18 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07667/0.07672, allocations: 44.5 MB / 299.8 MB, free: 6.613 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3742/0.451, allocations: 74.65 MB / 374.5 MB, free: 22.46 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002136/0.4512, allocations: 71.81 kB / 374.6 MB, free: 22.46 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03375/0.485, allocations: 8.774 MB / 383.3 MB, free: 21.36 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.335e-06/0.485, allocations: 2.359 kB / 383.3 MB, free: 21.36 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.523e-05/0.4851, allocations: 19.09 kB / 383.3 MB, free: 21.35 MB / 314.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.001289/0.4864, allocations: 0.7485 MB / 384.1 MB, free: 20.86 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/0.4864, allocations: 9.438 kB / 384.1 MB, free: 20.86 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001513/0.4866, allocations: 69.56 kB / 384.2 MB, free: 20.82 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005492/0.4872, allocations: 365.9 kB / 384.5 MB, free: 20.57 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.308e-05/0.4872, allocations: 40.06 kB / 384.6 MB, free: 20.56 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001046/0.4873, allocations: 47.5 kB / 384.6 MB, free: 20.56 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001075/0.4884, allocations: 0.5187 MB / 385.1 MB, free: 20.45 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.054e-05/0.4885, allocations: 0 / 385.1 MB, free: 20.45 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.344e-05/0.4886, allocations: 19.88 kB / 385.2 MB, free: 20.45 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.743e-05/0.4886, allocations: 18.08 kB / 385.2 MB, free: 20.45 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000947/0.4895, allocations: 416.8 kB / 385.6 MB, free: 20.43 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003631/0.4932, allocations: 2.061 MB / 387.6 MB, free: 19.49 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001005/0.4942, allocations: 0.6073 MB / 388.2 MB, free: 19.35 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000672/0.4949, allocations: 385.9 kB / 388.6 MB, free: 19.33 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.683e-05/0.495, allocations: 9.75 kB / 388.6 MB, free: 19.33 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.104e-05/0.495, allocations: 42.02 kB / 388.7 MB, free: 19.29 MB / 314.7 MB Notification: Performance of pre-optimization done (n=60): time 4.839e-06/0.495, allocations: 4 kB / 388.7 MB, free: 19.28 MB / 314.7 MB Notification: Performance of matching and sorting (n=61): time 0.002682/0.4977, allocations: 1.255 MB / 389.9 MB, free: 18.85 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.924e-05/0.4978, allocations: 59.62 kB / 390 MB, free: 18.79 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004418/0.4983, allocations: 306.2 kB / 390.3 MB, free: 18.68 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.457e-05/0.4983, allocations: 44.42 kB / 390.3 MB, free: 18.64 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001081/0.4984, allocations: 278.2 kB / 390.6 MB, free: 18.45 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001313/0.4986, allocations: 193.3 kB / 390.8 MB, free: 18.32 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.226e-05/0.4986, allocations: 10.5 kB / 390.8 MB, free: 18.32 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.653e-05/0.4987, allocations: 331.9 kB / 391.1 MB, free: 18.01 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003337/0.4991, allocations: 151.5 kB / 391.3 MB, free: 18 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003562/0.4994, allocations: 190.5 kB / 391.5 MB, free: 17.98 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003673/0.4998, allocations: 164.1 kB / 391.6 MB, free: 17.98 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.543e-06/0.4998, allocations: 0 / 391.6 MB, free: 17.98 MB / 314.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001414/0.5012, allocations: 0.603 MB / 392.2 MB, free: 17.87 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.065e-05/0.5013, allocations: 11.16 kB / 392.2 MB, free: 17.87 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.5013, allocations: 0 / 392.2 MB, free: 17.87 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009485/0.5023, allocations: 248.1 kB / 392.5 MB, free: 17.83 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004125/0.5027, allocations: 72.42 kB / 392.5 MB, free: 17.82 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007515/0.5102, allocations: 6.758 MB / 399.3 MB, free: 28.36 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005067/0.5108, allocations: 22.67 kB / 399.3 MB, free: 28.36 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.559e-05/0.5108, allocations: 19.66 kB / 399.3 MB, free: 28.35 MB / 330.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.0001702/0.511, allocations: 135 kB / 399.5 MB, free: 28.23 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001059/0.5111, allocations: 54.69 kB / 399.5 MB, free: 28.21 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001299/0.5113, allocations: 62.34 kB / 399.6 MB, free: 28.2 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.524e-06/0.5113, allocations: 7.812 kB / 399.6 MB, free: 28.2 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.25e-06/0.5113, allocations: 3.047 kB / 399.6 MB, free: 28.2 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.988e-06/0.5113, allocations: 3.234 kB / 399.6 MB, free: 28.2 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00241/0.5138, allocations: 1.307 MB / 400.9 MB, free: 27.82 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.661e-06/0.5138, allocations: 0 / 400.9 MB, free: 27.82 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003715/0.5142, allocations: 68.33 kB / 401 MB, free: 27.81 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008947/0.5151, allocations: 246.8 kB / 401.2 MB, free: 27.77 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.406e-05/0.5152, allocations: 14.53 kB / 401.2 MB, free: 27.77 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007987/0.5232, allocations: 6.767 MB / 408 MB, free: 22.32 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.798e-06/0.5232, allocations: 0 / 408 MB, free: 22.32 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001978/0.5252, allocations: 0.9716 MB / 409 MB, free: 22.09 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002952/0.5255, allocations: 154.4 kB / 409.1 MB, free: 21.97 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.512e-05/0.5256, allocations: 14.75 kB / 409.1 MB, free: 21.97 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003619/0.526, allocations: 22.45 kB / 409.2 MB, free: 21.97 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001828/0.5262, allocations: 51.97 kB / 409.2 MB, free: 21.97 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.165e-05/0.5263, allocations: 15.41 kB / 409.2 MB, free: 21.97 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003558/0.5266, allocations: 250.9 kB / 409.5 MB, free: 21.89 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.29e-07/0.5266, allocations: 0 / 409.5 MB, free: 21.89 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001185/0.5278, allocations: 174.7 kB / 409.6 MB, free: 21.89 MB / 330.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.0001965/0.5281, allocations: 118.3 kB / 409.8 MB, free: 21.79 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001707/0.5298, allocations: 0.9881 MB / 410.7 MB, free: 21.3 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.238e-06/0.5298, allocations: 0 / 410.7 MB, free: 21.3 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001268/0.5311, allocations: 0.8144 MB / 411.6 MB, free: 20.8 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006086/0.5317, allocations: 76.91 kB / 411.6 MB, free: 20.8 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002401/0.5341, allocations: 1.022 MB / 412.7 MB, free: 20.32 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005822/0.5347, allocations: 0.8873 MB / 413.5 MB, free: 19.61 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001291/0.5349, allocations: 27.06 kB / 413.6 MB, free: 19.61 MB / 330.7 MB Notification: Performance of SimCode: time 1.831e-06/0.5349, allocations: 0 / 413.6 MB, free: 19.61 MB / 330.7 MB Notification: Performance of Templates: time 0.01688/0.5518, allocations: 13.28 MB / 426.9 MB, free: 16.09 MB / 330.7 MB