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.771/1.771, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.004e-05/3.022e-05, allocations: 3.156 kB / 255.4 MB, free: 3.184 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07921/0.07926, allocations: 44.51 MB / 299.9 MB, free: 6.617 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.322/0.4013, allocations: 74.65 MB / 374.5 MB, free: 22.49 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002048/0.4016, allocations: 67.88 kB / 374.6 MB, free: 22.49 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03218/0.4338, allocations: 8.782 MB / 383.4 MB, free: 21.38 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.89e-06/0.4338, allocations: 0 / 383.4 MB, free: 21.38 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.32e-05/0.4338, allocations: 15 kB / 383.4 MB, free: 21.38 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.001271/0.4351, allocations: 0.7526 MB / 384.1 MB, free: 20.88 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.96e-05/0.4352, allocations: 9.531 kB / 384.1 MB, free: 20.88 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001418/0.4353, allocations: 69.03 kB / 384.2 MB, free: 20.85 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005197/0.4359, allocations: 365.1 kB / 384.6 MB, free: 20.59 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.372e-05/0.4359, allocations: 41.06 kB / 384.6 MB, free: 20.58 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001043/0.436, allocations: 51.06 kB / 384.6 MB, free: 20.58 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001012/0.4371, allocations: 0.5054 MB / 385.2 MB, free: 20.48 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.101e-05/0.4371, allocations: 3.938 kB / 385.2 MB, free: 20.47 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.94e-05/0.4372, allocations: 20.44 kB / 385.2 MB, free: 20.47 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.756e-05/0.4372, allocations: 16.33 kB / 385.2 MB, free: 20.47 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009425/0.4382, allocations: 399 kB / 385.6 MB, free: 20.46 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003216/0.4414, allocations: 2.07 MB / 387.7 MB, free: 19.52 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009779/0.4424, allocations: 0.5964 MB / 388.3 MB, free: 19.38 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006971/0.4431, allocations: 388.1 kB / 388.6 MB, free: 19.36 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.66e-05/0.4432, allocations: 6.375 kB / 388.6 MB, free: 19.36 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.014e-05/0.4432, allocations: 41.33 kB / 388.7 MB, free: 19.31 MB / 314.7 MB Notification: Performance of pre-optimization done (n=60): time 3.669e-06/0.4432, allocations: 0 / 388.7 MB, free: 19.31 MB / 314.7 MB Notification: Performance of matching and sorting (n=61): time 0.00252/0.4458, allocations: 1.263 MB / 389.9 MB, free: 18.88 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.383e-05/0.4458, allocations: 55.78 kB / 390 MB, free: 18.82 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003783/0.4462, allocations: 310 kB / 390.3 MB, free: 18.71 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.995e-05/0.4462, allocations: 40.48 kB / 390.3 MB, free: 18.67 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001013/0.4464, allocations: 271.2 kB / 390.6 MB, free: 18.48 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001363/0.4465, allocations: 203.6 kB / 390.8 MB, free: 18.35 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.176e-05/0.4466, allocations: 7.312 kB / 390.8 MB, free: 18.35 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.323e-05/0.4466, allocations: 335.1 kB / 391.1 MB, free: 18.04 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003244/0.447, allocations: 146.9 kB / 391.3 MB, free: 18.03 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000353/0.4473, allocations: 191.1 kB / 391.5 MB, free: 18.02 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003553/0.4477, allocations: 156.3 kB / 391.6 MB, free: 18.01 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.589e-06/0.4477, allocations: 0 / 391.6 MB, free: 18.01 MB / 314.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001373/0.4491, allocations: 0.6054 MB / 392.2 MB, free: 17.9 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/0.4491, allocations: 7.781 kB / 392.2 MB, free: 17.9 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.12e-06/0.4492, allocations: 0 / 392.2 MB, free: 17.9 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009008/0.4501, allocations: 250.1 kB / 392.5 MB, free: 17.86 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004124/0.4505, allocations: 64.61 kB / 392.5 MB, free: 17.86 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00735/0.4579, allocations: 6.768 MB / 399.3 MB, free: 28.39 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003956/0.4583, allocations: 22.94 kB / 399.3 MB, free: 28.39 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.735e-05/0.4584, allocations: 19.56 kB / 399.3 MB, free: 28.38 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.0001725/0.4586, allocations: 135.5 kB / 399.5 MB, free: 28.27 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001078/0.4587, allocations: 50.88 kB / 399.5 MB, free: 28.24 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001226/0.4588, allocations: 65.36 kB / 399.6 MB, free: 28.23 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.462e-06/0.4588, allocations: 11.75 kB / 399.6 MB, free: 28.23 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.841e-06/0.4588, allocations: 0 / 399.6 MB, free: 28.23 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.382e-06/0.4589, allocations: 3.469 kB / 399.6 MB, free: 28.23 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002366/0.4612, allocations: 1.31 MB / 400.9 MB, free: 27.85 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.95e-06/0.4613, allocations: 0 / 400.9 MB, free: 27.85 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003705/0.4616, allocations: 52.11 kB / 401 MB, free: 27.85 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008198/0.4625, allocations: 255.3 kB / 401.2 MB, free: 27.8 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.41e-05/0.4626, allocations: 11.78 kB / 401.2 MB, free: 27.8 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00762/0.4702, allocations: 6.764 MB / 408 MB, free: 22.35 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.971e-06/0.4702, allocations: 3.281 kB / 408 MB, free: 22.35 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001931/0.4722, allocations: 0.9597 MB / 409 MB, free: 22.12 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002701/0.4725, allocations: 169 kB / 409.1 MB, free: 22 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.261e-05/0.4726, allocations: 11.16 kB / 409.1 MB, free: 22 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003433/0.4729, allocations: 17.94 kB / 409.1 MB, free: 22 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001416/0.4731, allocations: 58.78 kB / 409.2 MB, free: 22 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.244e-05/0.4731, allocations: 14.91 kB / 409.2 MB, free: 22 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003398/0.4735, allocations: 250 kB / 409.5 MB, free: 21.91 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.59e-07/0.4735, allocations: 0.5625 kB / 409.5 MB, free: 21.91 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001106/0.4746, allocations: 177.2 kB / 409.6 MB, free: 21.91 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.0001849/0.4748, allocations: 117.5 kB / 409.8 MB, free: 21.82 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00156/0.4764, allocations: 0.9524 MB / 410.7 MB, free: 21.36 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.781e-06/0.4764, allocations: 0 / 410.7 MB, free: 21.36 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001179/0.4776, allocations: 0.7824 MB / 411.5 MB, free: 20.9 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004894/0.4781, allocations: 80.45 kB / 411.6 MB, free: 20.89 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002133/0.4803, allocations: 1.017 MB / 412.6 MB, free: 20.41 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005568/0.4808, allocations: 0.8893 MB / 413.5 MB, free: 19.71 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001149/0.481, allocations: 30.88 kB / 413.5 MB, free: 19.7 MB / 330.7 MB Notification: Performance of SimCode: time 1.507e-06/0.481, allocations: 0 / 413.5 MB, free: 19.7 MB / 330.7 MB Notification: Performance of Templates: time 0.01555/0.4965, allocations: 13.26 MB / 426.8 MB, free: 16.2 MB / 330.7 MB