Running command: translateModel(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|voltageQS.pin_p.reference.gamma|iAC.mean1.y|iAC.mean2.y|iDC2.mean.y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier") Notification: Performance of loadModel(Modelica): time 1.894/1.894, allocations: 205.8 MB / 218.9 MB, free: 9.266 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.494e-05/3.496e-05, allocations: 4 kB / 269.4 MB, free: 6.395 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08135/0.08141, allocations: 47.58 MB / 316.9 MB, free: 6.734 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3398/0.4212, allocations: 86.96 MB / 403.9 MB, free: 1.266 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002442/0.4215, allocations: 77.02 kB / 404 MB, free: 1.227 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08476/0.5063, allocations: 22.43 MB / 426.4 MB, free: 14.55 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.826e-06/0.5063, allocations: 0 / 426.4 MB, free: 14.55 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.069e-05/0.5064, allocations: 24 kB / 426.4 MB, free: 14.53 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 258 * Number of variables: 258 Notification: Performance of Generate backend data structure: time 0.002926/0.5094, allocations: 1.145 MB / 427.6 MB, free: 13.41 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/0.5094, allocations: 12.02 kB / 427.6 MB, free: 13.4 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002859/0.5123, allocations: 369.6 kB / 427.9 MB, free: 13.07 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001083/0.5134, allocations: 0.5434 MB / 428.5 MB, free: 12.58 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.738e-05/0.5135, allocations: 83.83 kB / 428.6 MB, free: 12.53 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002042/0.5137, allocations: 103.1 kB / 428.7 MB, free: 12.46 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002251/0.516, allocations: 0.9822 MB / 429.7 MB, free: 11.78 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.021e-05/0.516, allocations: 7.984 kB / 429.7 MB, free: 11.77 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001274/0.5162, allocations: 39.12 kB / 429.7 MB, free: 11.77 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.991e-05/0.5162, allocations: 28 kB / 429.7 MB, free: 11.74 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002085/0.5183, allocations: 0.8342 MB / 430.6 MB, free: 11.2 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007617/0.526, allocations: 3.788 MB / 434.3 MB, free: 8.082 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003251/0.5293, allocations: 2.44 MB / 436.8 MB, free: 5.598 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009924/0.5303, allocations: 429.6 kB / 437.2 MB, free: 5.309 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001469/0.5304, allocations: 93.38 kB / 437.3 MB, free: 5.203 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009687/0.5314, allocations: 460 kB / 437.7 MB, free: 4.848 MB / 346.7 MB Notification: Performance of pre-optimization done (n=86): time 4.419e-06/0.5314, allocations: 3.938 kB / 437.8 MB, free: 4.844 MB / 346.7 MB Notification: Performance of matching and sorting (n=86): time 0.002298/0.5338, allocations: 0.8428 MB / 438.6 MB, free: 4.215 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001413/0.5339, allocations: 188.7 kB / 438.8 MB, free: 3.984 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007056/0.5346, allocations: 415.9 kB / 439.2 MB, free: 3.656 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.416e-05/0.5347, allocations: 42.39 kB / 439.2 MB, free: 3.621 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000402/0.5351, allocations: 430.5 kB / 439.6 MB, free: 3.285 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002962/0.5355, allocations: 281.7 kB / 439.9 MB, free: 3.043 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.683e-05/0.5355, allocations: 20.94 kB / 439.9 MB, free: 3.039 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002313/0.5358, allocations: 376.5 kB / 440.3 MB, free: 2.688 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006032/0.5364, allocations: 241.6 kB / 440.5 MB, free: 2.547 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008436/0.5373, allocations: 491.4 kB / 441 MB, free: 2.074 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007294/0.538, allocations: 308.5 kB / 441.3 MB, free: 1.871 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.924e-06/0.538, allocations: 0 / 441.3 MB, free: 1.871 MB / 346.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002528/0.5406, allocations: 0.988 MB / 442.3 MB, free: 1.133 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.685e-05/0.5406, allocations: 8 kB / 442.3 MB, free: 1.125 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.721e-05/0.5406, allocations: 8 kB / 442.3 MB, free: 1.117 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001127/0.5418, allocations: 272.8 kB / 442.6 MB, free: 0.8477 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008563/0.5427, allocations: 163.7 kB / 442.8 MB, free: 0.6875 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007217/0.5499, allocations: 4.384 MB / 447.1 MB, free: 12.04 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009664/0.5509, allocations: 115.1 kB / 447.3 MB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001037/0.551, allocations: 40 kB / 447.3 MB, free: 11.89 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.iDC2.mean.y,iDC2.mean.y,$PRE.iAC.mean1.y,iAC.mean1.y,$PRE.iAC.mean2.y,iAC.mean2.y,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 88 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {4 17,2 8} Notification: Performance of prepare postOptimizeDAE: time 0.0002795/0.5513, allocations: 160.8 kB / 447.5 MB, free: 11.72 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001628/0.5515, allocations: 71.14 kB / 447.5 MB, free: 11.65 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002518/0.554, allocations: 0.923 MB / 448.4 MB, free: 10.71 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.325e-05/0.554, allocations: 8 kB / 448.5 MB, free: 10.7 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.838e-06/0.5541, allocations: 0 / 448.5 MB, free: 10.7 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.753e-05/0.5541, allocations: 11.92 kB / 448.5 MB, free: 10.69 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004187/0.5583, allocations: 1.894 MB / 450.4 MB, free: 8.723 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.709e-06/0.5583, allocations: 4 kB / 450.4 MB, free: 8.719 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000648/0.559, allocations: 107.9 kB / 450.5 MB, free: 8.613 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001033/0.56, allocations: 249.9 kB / 450.7 MB, free: 8.363 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.242e-05/0.5601, allocations: 23.98 kB / 450.7 MB, free: 8.34 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006913/0.5671, allocations: 4.351 MB / 455.1 MB, free: 3.723 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.061e-06/0.5671, allocations: 0 / 455.1 MB, free: 3.723 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00318/0.5703, allocations: 1.31 MB / 456.4 MB, free: 2.375 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004287/0.5707, allocations: 216 kB / 456.6 MB, free: 2.145 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001481/0.5709, allocations: 19.98 kB / 456.6 MB, free: 2.125 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000607/0.5715, allocations: 51.97 kB / 456.7 MB, free: 2.074 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002043/0.5717, allocations: 64.69 kB / 456.7 MB, free: 2.012 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.005e-05/0.5718, allocations: 27.98 kB / 456.8 MB, free: 1.984 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005468/0.5724, allocations: 317.6 kB / 457.1 MB, free: 1.676 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.4e-07/0.5724, allocations: 0 / 457.1 MB, free: 1.676 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001411/0.5738, allocations: 323.2 kB / 457.4 MB, free: 1.359 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (currentSensorQS.pin_p.reference.gamma,iAC.mean1.x,iAC.mean2.x,iDC2.mean.x) * Number of discrete variables: 10 ($whenCondition3,$whenCondition2,$whenCondition1,iAC.mean1.y,iAC.mean2.y,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.off,iDC2.mean.y) * Number of discrete states: 3 (iAC.mean1.x,iAC.mean2.x,iDC2.mean.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 8,4 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003679/0.5742, allocations: 183 kB / 457.6 MB, free: 1.168 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002236/0.5765, allocations: 0.9947 MB / 458.6 MB, free: 156 kB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.824e-06/0.5765, allocations: 5.312 kB / 458.6 MB, free: 152 kB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001404/0.5779, allocations: 0.6835 MB / 459.3 MB, free: 15.45 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006947/0.5786, allocations: 106.2 kB / 459.4 MB, free: 15.35 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005733/0.5844, allocations: 1.672 MB / 461 MB, free: 13.64 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009106/0.5853, allocations: 1.018 MB / 462 MB, free: 12.6 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005634/0.5859, allocations: 85.56 kB / 462.1 MB, free: 12.51 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001929/0.5861, allocations: 47.42 kB / 462.2 MB, free: 12.46 MB / 378.7 MB Notification: Performance of SimCode: time 1.682e-06/0.5861, allocations: 0 / 462.2 MB, free: 12.46 MB / 378.7 MB Notification: Performance of Templates: time 0.03165/0.6178, allocations: 11.24 MB / 473.4 MB, free: 1.266 MB / 378.7 MB