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_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier") Notification: Performance of loadModel(Modelica): time 1.887/1.887, allocations: 225.8 MB / 239.4 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.944e-05/2.95e-05, allocations: 6.812 kB / 292.7 MB, free: 8.312 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08838/0.08844, allocations: 50.42 MB / 343.1 MB, free: 5.883 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3625/0.451, allocations: 89.47 MB / 432.6 MB, free: 4.84 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002408/0.4512, allocations: 77.27 kB / 432.6 MB, free: 4.801 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08027/0.5315, allocations: 22.01 MB / 454.6 MB, free: 2.484 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.149e-06/0.5316, allocations: 0 / 454.6 MB, free: 2.484 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.829e-05/0.5316, allocations: 20 kB / 454.7 MB, free: 2.465 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.002838/0.5345, allocations: 1.138 MB / 455.8 MB, free: 1.355 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.03e-05/0.5345, allocations: 8.031 kB / 455.8 MB, free: 1.348 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002128/0.5367, allocations: 294.5 kB / 456.1 MB, free: 1.082 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001016/0.5377, allocations: 0.5255 MB / 456.6 MB, free: 0.6172 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.427e-05/0.5378, allocations: 77.45 kB / 456.7 MB, free: 0.5742 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002126/0.538, allocations: 114.6 kB / 456.8 MB, free: 0.4961 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002157/0.5402, allocations: 0.9467 MB / 457.8 MB, free: 15.84 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.718e-05/0.5403, allocations: 0 / 457.8 MB, free: 15.84 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001378/0.5404, allocations: 44 kB / 457.8 MB, free: 15.79 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.932e-05/0.5405, allocations: 24 kB / 457.8 MB, free: 15.77 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002019/0.5425, allocations: 0.7654 MB / 458.6 MB, free: 15 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007125/0.5496, allocations: 3.581 MB / 462.2 MB, free: 11.25 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002877/0.5525, allocations: 1.842 MB / 464 MB, free: 9.168 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001011/0.5536, allocations: 423.9 kB / 464.4 MB, free: 8.75 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001427/0.5537, allocations: 93.88 kB / 464.5 MB, free: 8.641 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009931/0.5547, allocations: 464 kB / 465 MB, free: 8.156 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 4.259e-06/0.5548, allocations: 0 / 465 MB, free: 8.156 MB / 378.7 MB Notification: Performance of matching and sorting (n=84): time 0.002325/0.5571, allocations: 0.8293 MB / 465.8 MB, free: 7.305 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001437/0.5573, allocations: 200.6 kB / 466 MB, free: 7.066 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006889/0.558, allocations: 395.8 kB / 466.4 MB, free: 6.672 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.487e-05/0.5581, allocations: 41.7 kB / 466.4 MB, free: 6.625 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004139/0.5585, allocations: 419.6 kB / 466.8 MB, free: 6.207 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003066/0.5588, allocations: 264 kB / 467.1 MB, free: 5.945 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.523e-05/0.5589, allocations: 23.94 kB / 467.1 MB, free: 5.922 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002376/0.5591, allocations: 374.8 kB / 467.5 MB, free: 5.547 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006154/0.5598, allocations: 234 kB / 467.7 MB, free: 5.316 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008273/0.5606, allocations: 441.5 kB / 468.1 MB, free: 4.797 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007322/0.5614, allocations: 289.9 kB / 468.4 MB, free: 4.516 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.008e-05/0.5614, allocations: 4 kB / 468.4 MB, free: 4.512 MB / 378.7 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.002475/0.5639, allocations: 0.9392 MB / 469.4 MB, free: 3.559 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.064e-05/0.5639, allocations: 12.03 kB / 469.4 MB, free: 3.547 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.685e-05/0.5639, allocations: 11.94 kB / 469.4 MB, free: 3.535 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001099/0.5651, allocations: 259.6 kB / 469.6 MB, free: 3.277 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008439/0.5659, allocations: 151.7 kB / 469.8 MB, free: 3.129 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007132/0.5731, allocations: 4.37 MB / 474.2 MB, free: 14.5 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007922/0.5739, allocations: 107.2 kB / 474.3 MB, free: 14.39 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.591e-05/0.574, allocations: 36 kB / 474.3 MB, free: 14.36 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.0002572/0.5743, allocations: 160.7 kB / 474.5 MB, free: 14.2 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001535/0.5744, allocations: 67.25 kB / 474.5 MB, free: 14.13 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002464/0.5769, allocations: 0.9031 MB / 475.4 MB, free: 13.21 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.444e-05/0.577, allocations: 8 kB / 475.4 MB, free: 13.2 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.643e-06/0.577, allocations: 0 / 475.4 MB, free: 13.2 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.323e-05/0.577, allocations: 7.984 kB / 475.4 MB, free: 13.2 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004166/0.5812, allocations: 1.873 MB / 477.3 MB, free: 11.25 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/0.5812, allocations: 4 kB / 477.3 MB, free: 11.24 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005925/0.5818, allocations: 95.88 kB / 477.4 MB, free: 11.15 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001031/0.5828, allocations: 265.6 kB / 477.7 MB, free: 10.88 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.908e-05/0.5829, allocations: 16 kB / 477.7 MB, free: 10.87 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006846/0.5898, allocations: 4.346 MB / 482 MB, free: 6.258 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.914e-06/0.5898, allocations: 0 / 482 MB, free: 6.258 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002997/0.5928, allocations: 1.283 MB / 483.3 MB, free: 4.93 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003946/0.5932, allocations: 216 kB / 483.5 MB, free: 4.699 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000137/0.5934, allocations: 23.98 kB / 483.6 MB, free: 4.676 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005836/0.594, allocations: 55.97 kB / 483.6 MB, free: 4.621 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001851/0.5942, allocations: 60.69 kB / 483.7 MB, free: 4.562 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.173e-05/0.5943, allocations: 31.98 kB / 483.7 MB, free: 4.531 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004941/0.5948, allocations: 301.6 kB / 484 MB, free: 4.242 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.73e-07/0.5948, allocations: 0 / 484 MB, free: 4.242 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001329/0.5962, allocations: 319.1 kB / 484.3 MB, free: 3.93 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.0003598/0.5965, allocations: 193.6 kB / 484.5 MB, free: 3.738 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002113/0.5987, allocations: 0.9711 MB / 485.5 MB, free: 2.75 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.705e-06/0.5987, allocations: 0 / 485.5 MB, free: 2.75 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001371/0.6001, allocations: 0.6726 MB / 486.1 MB, free: 2.055 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006404/0.6007, allocations: 106.3 kB / 486.2 MB, free: 1.949 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003357/0.6041, allocations: 1.2 MB / 487.4 MB, free: 0.7188 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008702/0.605, allocations: 1.014 MB / 488.5 MB, free: 15.68 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0004592/0.6055, allocations: 73.34 kB / 488.5 MB, free: 15.6 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001877/0.6057, allocations: 55.42 kB / 488.6 MB, free: 15.55 MB / 410.7 MB Notification: Performance of SimCode: time 1.526e-06/0.6057, allocations: 3.938 kB / 488.6 MB, free: 15.54 MB / 410.7 MB Notification: Performance of Templates: time 0.02933/0.635, allocations: 11.14 MB / 499.7 MB, free: 4.488 MB / 410.7 MB