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.823/1.823, allocations: 171.1 MB / 186.3 MB, free: 1.332 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.28e-05/3.28e-05, allocations: 2.188 kB / 228.1 MB, free: 7.984 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08563/0.08569, allocations: 38.78 MB / 266.9 MB, free: 1.121 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Rectifier): time 0.005599/0.09133, allocations: 3.374 MB / 270.3 MB, free: 13.72 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002513/0.09389, allocations: 0.8342 MB / 271.1 MB, free: 12.88 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005454/0.09447, allocations: 19.94 kB / 271.1 MB, free: 12.86 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002329/0.09472, allocations: 75.42 kB / 271.2 MB, free: 12.79 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008006/0.09553, allocations: 195.4 kB / 271.4 MB, free: 12.6 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004202/0.09597, allocations: 115.8 kB / 271.5 MB, free: 12.48 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008057/0.09679, allocations: 380.1 kB / 271.9 MB, free: 12.11 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003252/0.09713, allocations: 116.8 kB / 272 MB, free: 12 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000419/0.09756, allocations: 219.4 kB / 272.2 MB, free: 11.78 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004727/0.09805, allocations: 255.1 kB / 272.4 MB, free: 11.53 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001329/0.0982, allocations: 28 kB / 272.5 MB, free: 11.5 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 9.046e-05/0.0983, allocations: 28 kB / 272.5 MB, free: 11.48 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001719/0.09848, allocations: 107.6 kB / 272.6 MB, free: 11.37 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001737/0.09867, allocations: 59.94 kB / 272.7 MB, free: 11.31 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007896/0.09947, allocations: 0.4986 MB / 273.2 MB, free: 10.81 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.09949, allocations: 0 / 273.2 MB, free: 10.81 MB / 234.7 MB Notification: Performance of FrontEnd: time 3.577e-06/0.09951, allocations: 0 / 273.2 MB, free: 10.81 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.623e-05/0.09953, allocations: 0 / 273.2 MB, free: 10.81 MB / 234.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.001933/0.1015, allocations: 0.7761 MB / 273.9 MB, free: 9.988 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.407e-05/0.1015, allocations: 12.03 kB / 274 MB, free: 9.977 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002166/0.1018, allocations: 71.14 kB / 274 MB, free: 9.906 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006926/0.1025, allocations: 361 kB / 274.4 MB, free: 9.512 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.304e-05/0.1025, allocations: 45.27 kB / 274.4 MB, free: 9.469 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000125/0.1027, allocations: 51.91 kB / 274.5 MB, free: 9.418 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001466/0.1042, allocations: 0.5414 MB / 275 MB, free: 8.844 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.185e-05/0.1042, allocations: 0 / 275 MB, free: 8.844 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.126e-05/0.1043, allocations: 24 kB / 275 MB, free: 8.82 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.933e-05/0.1043, allocations: 12 kB / 275 MB, free: 8.809 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001464/0.1058, allocations: 463.6 kB / 275.5 MB, free: 8.359 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004594/0.1104, allocations: 2.061 MB / 277.6 MB, free: 6.211 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001578/0.112, allocations: 0.6416 MB / 278.2 MB, free: 5.539 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.822e-05/0.1121, allocations: 12.56 kB / 278.2 MB, free: 5.527 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.525e-05/0.1122, allocations: 35.12 kB / 278.2 MB, free: 5.484 MB / 234.7 MB Notification: Performance of pre-optimization done (n=60): time 6.362e-06/0.1122, allocations: 0 / 278.2 MB, free: 5.484 MB / 234.7 MB Notification: Performance of matching and sorting (n=61): time 0.007999/0.1202, allocations: 2.057 MB / 280.3 MB, free: 3.309 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.255e-05/0.1203, allocations: 55.97 kB / 280.4 MB, free: 3.242 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005752/0.1209, allocations: 324.8 kB / 280.7 MB, free: 2.922 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 8.484e-05/0.121, allocations: 37.7 kB / 280.7 MB, free: 2.879 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002044/0.1212, allocations: 279.5 kB / 281 MB, free: 2.605 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002307/0.1215, allocations: 193.1 kB / 281.2 MB, free: 2.414 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.03e-05/0.1215, allocations: 16 kB / 281.2 MB, free: 2.398 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.1217, allocations: 338.8 kB / 281.5 MB, free: 2.059 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006163/0.1223, allocations: 169 kB / 281.7 MB, free: 1.895 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00065/0.123, allocations: 219.8 kB / 281.9 MB, free: 1.672 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006356/0.1237, allocations: 182.1 kB / 282.1 MB, free: 1.496 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.1237, allocations: 0 / 282.1 MB, free: 1.496 MB / 234.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002071/0.1258, allocations: 0.6425 MB / 282.7 MB, free: 0.8359 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.799e-05/0.1258, allocations: 11.98 kB / 282.7 MB, free: 0.8242 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.116e-05/0.1258, allocations: 0 / 282.7 MB, free: 0.8242 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001249/0.1271, allocations: 255.1 kB / 283 MB, free: 0.5625 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005713/0.1277, allocations: 67.91 kB / 283 MB, free: 0.4961 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009759/0.1375, allocations: 6.84 MB / 289.9 MB, free: 9.121 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005496/0.1381, allocations: 20.19 kB / 289.9 MB, free: 9.102 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.663e-05/0.1382, allocations: 23.92 kB / 289.9 MB, free: 9.078 MB / 250.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.0003329/0.1385, allocations: 169.9 kB / 290.1 MB, free: 8.902 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001255/0.1386, allocations: 55.42 kB / 290.2 MB, free: 8.848 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001581/0.1388, allocations: 65.03 kB / 290.2 MB, free: 8.781 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.484e-06/0.1388, allocations: 4 kB / 290.2 MB, free: 8.777 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.195e-05/0.1388, allocations: 7.953 kB / 290.2 MB, free: 8.77 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.498e-06/0.1389, allocations: 7.984 kB / 290.2 MB, free: 8.762 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003499/0.1424, allocations: 1.345 MB / 291.6 MB, free: 7.344 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.081e-06/0.1424, allocations: 3.938 kB / 291.6 MB, free: 7.34 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005466/0.143, allocations: 59.89 kB / 291.6 MB, free: 7.281 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001187/0.1442, allocations: 255.2 kB / 291.9 MB, free: 7.02 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.502e-05/0.1443, allocations: 12 kB / 291.9 MB, free: 7.008 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2261/0.3703, allocations: 6.827 MB / 298.7 MB, free: 28.12 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.3704, allocations: 0.5938 kB / 298.7 MB, free: 28.12 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003241/0.3737, allocations: 1.047 MB / 299.8 MB, free: 27.96 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003498/0.3741, allocations: 165.5 kB / 299.9 MB, free: 27.86 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000123/0.3742, allocations: 11 kB / 300 MB, free: 27.86 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004745/0.3747, allocations: 22.88 kB / 300 MB, free: 27.86 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002189/0.3749, allocations: 57.83 kB / 300 MB, free: 27.86 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.957e-05/0.375, allocations: 16.25 kB / 300 MB, free: 27.86 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0004535/0.3754, allocations: 258.8 kB / 300.3 MB, free: 27.78 MB / 250.7 MB Notification: Performance of sort global known variables: time 6.62e-07/0.3754, allocations: 0 / 300.3 MB, free: 27.78 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.001208/0.3767, allocations: 172.9 kB / 300.5 MB, free: 27.78 MB / 250.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.0001995/0.3769, allocations: 115.2 kB / 300.6 MB, free: 27.7 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.002532/0.3794, allocations: 1.046 MB / 301.6 MB, free: 27.23 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.979e-06/0.3795, allocations: 0 / 301.6 MB, free: 27.23 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001863/0.3814, allocations: 0.8487 MB / 302.5 MB, free: 26.76 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007286/0.3821, allocations: 74.89 kB / 302.5 MB, free: 26.76 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003836/0.386, allocations: 1.55 MB / 304.1 MB, free: 25.98 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005388/0.3866, allocations: 0.8898 MB / 305 MB, free: 25.27 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001893/0.3868, allocations: 30.48 kB / 305 MB, free: 25.26 MB / 250.7 MB Notification: Performance of SimCode: time 1.392e-06/0.3868, allocations: 0 / 305 MB, free: 25.26 MB / 250.7 MB Notification: Performance of Templates: time 0.02859/0.4154, allocations: 13.26 MB / 318.3 MB, free: 19.03 MB / 250.7 MB