Running command: translateModel(Modelica.Electrical.QuasiStatic.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_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier") Notification: Performance of loadModel(Modelica): time 1.896/1.896, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.505e-05/2.511e-05, allocations: 0 / 292.2 MB, free: 8.332 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1011, allocations: 50.41 MB / 342.6 MB, free: 5.898 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3568/0.4579, allocations: 89.47 MB / 432 MB, free: 4.824 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002158/0.4582, allocations: 76.45 kB / 432.1 MB, free: 4.785 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09087/0.5491, allocations: 22 MB / 454.1 MB, free: 2.48 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.03e-06/0.5491, allocations: 4 kB / 454.1 MB, free: 2.477 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.618e-05/0.5492, allocations: 20 kB / 454.1 MB, free: 2.457 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 251 * Number of variables: 251 Notification: Performance of Generate backend data structure: time 0.004577/0.5538, allocations: 1.139 MB / 455.3 MB, free: 1.348 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.499e-05/0.5539, allocations: 12.03 kB / 455.3 MB, free: 1.336 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003915/0.5578, allocations: 297.5 kB / 455.6 MB, free: 1.066 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001842/0.5597, allocations: 0.5273 MB / 456.1 MB, free: 0.5977 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000126/0.5599, allocations: 82.08 kB / 456.2 MB, free: 0.5508 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003258/0.5602, allocations: 105.9 kB / 456.3 MB, free: 492 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003567/0.5638, allocations: 0.9439 MB / 457.2 MB, free: 15.84 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.594e-05/0.5639, allocations: 0 / 457.2 MB, free: 15.84 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002096/0.5641, allocations: 52.03 kB / 457.3 MB, free: 15.81 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.459e-05/0.5642, allocations: 24 kB / 457.3 MB, free: 15.79 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003527/0.5677, allocations: 0.7693 MB / 458.1 MB, free: 15.02 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01218/0.5799, allocations: 3.573 MB / 461.6 MB, free: 11.27 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004987/0.585, allocations: 1.845 MB / 463.5 MB, free: 9.184 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001877/0.5869, allocations: 424 kB / 463.9 MB, free: 8.766 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002234/0.5871, allocations: 101.8 kB / 464 MB, free: 8.648 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001755/0.5889, allocations: 452 kB / 464.4 MB, free: 8.176 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 7.599e-06/0.589, allocations: 0 / 464.4 MB, free: 8.176 MB / 378.7 MB Notification: Performance of matching and sorting (n=84): time 0.003919/0.5929, allocations: 0.8293 MB / 465.3 MB, free: 7.328 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001621/0.5931, allocations: 200.6 kB / 465.5 MB, free: 7.09 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006866/0.5938, allocations: 395.8 kB / 465.9 MB, free: 6.695 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.028e-05/0.5939, allocations: 45.7 kB / 465.9 MB, free: 6.645 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004108/0.5943, allocations: 411.6 kB / 466.3 MB, free: 6.234 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003173/0.5946, allocations: 272 kB / 466.6 MB, free: 5.965 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.122e-05/0.5947, allocations: 20 kB / 466.6 MB, free: 5.945 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002238/0.595, allocations: 374.8 kB / 467 MB, free: 5.57 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005983/0.5956, allocations: 230 kB / 467.2 MB, free: 5.344 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008148/0.5964, allocations: 445.4 kB / 467.6 MB, free: 4.82 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007313/0.5971, allocations: 289.9 kB / 467.9 MB, free: 4.539 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.787e-06/0.5972, allocations: 0 / 467.9 MB, free: 4.539 MB / 378.7 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.002439/0.5996, allocations: 0.9469 MB / 468.8 MB, free: 3.574 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.489e-05/0.5997, allocations: 9.094 kB / 468.9 MB, free: 3.566 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.515e-05/0.5997, allocations: 8 kB / 468.9 MB, free: 3.559 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001099/0.6008, allocations: 259.7 kB / 469.1 MB, free: 3.301 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007673/0.6016, allocations: 151.7 kB / 469.3 MB, free: 3.152 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007118/0.6087, allocations: 4.376 MB / 473.6 MB, free: 14.51 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007967/0.6095, allocations: 103.2 kB / 473.7 MB, free: 14.41 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.175e-05/0.6097, allocations: 36 kB / 473.8 MB, free: 14.38 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.iDC2.mean.y_last,iDC2.mean.y_last,$PRE.iAC.mean1.y_last,iAC.mean1.y_last,$PRE.iAC.mean2.y_last,iAC.mean2.y_last,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 (82): * Single equations (assignments): 80 * 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.000259/0.6099, allocations: 164.7 kB / 473.9 MB, free: 14.21 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000152/0.6101, allocations: 67.25 kB / 474 MB, free: 14.14 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002417/0.6125, allocations: 0.8992 MB / 474.9 MB, free: 13.23 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-05/0.6126, allocations: 12 kB / 474.9 MB, free: 13.21 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.504e-06/0.6126, allocations: 0 / 474.9 MB, free: 13.21 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.305e-05/0.6126, allocations: 3.984 kB / 474.9 MB, free: 13.21 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004112/0.6167, allocations: 1.877 MB / 476.8 MB, free: 11.26 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-05/0.6167, allocations: 4 kB / 476.8 MB, free: 11.26 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006067/0.6174, allocations: 99.88 kB / 476.9 MB, free: 11.16 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00101/0.6184, allocations: 256 kB / 477.1 MB, free: 10.91 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.838e-05/0.6185, allocations: 20 kB / 477.2 MB, free: 10.89 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00677/0.6253, allocations: 4.347 MB / 481.5 MB, free: 6.277 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.636e-06/0.6253, allocations: 4.031 kB / 481.5 MB, free: 6.273 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003017/0.6283, allocations: 1.286 MB / 482.8 MB, free: 4.945 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004032/0.6288, allocations: 216 kB / 483 MB, free: 4.715 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001332/0.6289, allocations: 20 kB / 483 MB, free: 4.695 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005802/0.6295, allocations: 51.97 kB / 483.1 MB, free: 4.645 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001926/0.6297, allocations: 64.67 kB / 483.1 MB, free: 4.582 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.094e-05/0.6298, allocations: 28 kB / 483.2 MB, free: 4.555 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004995/0.6303, allocations: 301.6 kB / 483.5 MB, free: 4.262 MB / 394.7 MB Notification: Performance of sort global known variables: time 7.37e-07/0.6303, allocations: 0 / 483.5 MB, free: 4.262 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001344/0.6317, allocations: 315.1 kB / 483.8 MB, free: 3.953 MB / 394.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_last,iAC.mean2.y_last,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.off,iDC2.mean.y_last) * Number of discrete states: 3 (iAC.mean1.x,iAC.mean2.x,iDC2.mean.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 52 * 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.0003694/0.6321, allocations: 201.6 kB / 484 MB, free: 3.754 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002134/0.6342, allocations: 0.9748 MB / 484.9 MB, free: 2.762 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.74e-06/0.6342, allocations: 0 / 484.9 MB, free: 2.762 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001364/0.6356, allocations: 0.6767 MB / 485.6 MB, free: 2.062 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006431/0.6363, allocations: 106.2 kB / 485.7 MB, free: 1.957 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003052/0.6394, allocations: 1.192 MB / 486.9 MB, free: 0.7344 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008737/0.6402, allocations: 1.014 MB / 487.9 MB, free: 15.69 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0004692/0.6407, allocations: 77.34 kB / 488 MB, free: 15.61 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001867/0.6409, allocations: 51.42 kB / 488.1 MB, free: 15.56 MB / 410.7 MB Notification: Performance of SimCode: time 1.37e-06/0.6409, allocations: 0 / 488.1 MB, free: 15.56 MB / 410.7 MB Notification: Performance of Templates: time 0.02894/0.6699, allocations: 11.14 MB / 499.2 MB, free: 4.508 MB / 410.7 MB