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.2_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier") Notification: Performance of loadModel(Modelica): time 1.98/1.98, allocations: 194.9 MB / 208 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.607e-05/2.614e-05, allocations: 4 kB / 255.4 MB, free: 2.707 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07667/0.07672, allocations: 44.48 MB / 299.9 MB, free: 6.16 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3805/0.4572, allocations: 82.24 MB / 382.1 MB, free: 21.43 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003823/0.4577, allocations: 83.48 kB / 382.2 MB, free: 21.43 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0856/0.5433, allocations: 22.17 MB / 404.4 MB, free: 16.96 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.721e-06/0.5433, allocations: 0 / 404.4 MB, free: 16.96 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.604e-05/0.5434, allocations: 19.41 kB / 404.4 MB, free: 16.96 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.002443/0.5458, allocations: 1.142 MB / 405.5 MB, free: 16.17 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/0.5459, allocations: 11.72 kB / 405.5 MB, free: 16.17 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002648/0.5486, allocations: 369.7 kB / 405.9 MB, free: 16.03 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008385/0.5494, allocations: 0.5236 MB / 406.4 MB, free: 15.67 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.826e-05/0.5495, allocations: 84.81 kB / 406.5 MB, free: 15.66 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001731/0.5497, allocations: 100.7 kB / 406.6 MB, free: 15.66 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001941/0.5516, allocations: 0.9765 MB / 407.6 MB, free: 15.41 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.183e-05/0.5517, allocations: 15.75 kB / 407.6 MB, free: 15.4 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001216/0.5518, allocations: 39.69 kB / 407.6 MB, free: 15.4 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.346e-05/0.5519, allocations: 23.5 kB / 407.7 MB, free: 15.4 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001795/0.5537, allocations: 0.8292 MB / 408.5 MB, free: 15.36 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006092/0.5598, allocations: 3.782 MB / 412.3 MB, free: 13.18 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002336/0.5621, allocations: 2.43 MB / 414.7 MB, free: 11.17 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008816/0.563, allocations: 433.1 kB / 415.1 MB, free: 11.12 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001064/0.5632, allocations: 93.47 kB / 415.2 MB, free: 11.03 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008081/0.564, allocations: 460.3 kB / 415.7 MB, free: 10.85 MB / 314.7 MB Notification: Performance of pre-optimization done (n=86): time 4.254e-06/0.564, allocations: 0 / 415.7 MB, free: 10.85 MB / 314.7 MB Notification: Performance of matching and sorting (n=86): time 0.001986/0.566, allocations: 0.8426 MB / 416.5 MB, free: 10.64 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.808e-05/0.5661, allocations: 196.6 kB / 416.7 MB, free: 10.41 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005335/0.5666, allocations: 408.1 kB / 417.1 MB, free: 10.27 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.336e-05/0.5667, allocations: 47.56 kB / 417.1 MB, free: 10.23 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002513/0.567, allocations: 426.1 kB / 417.6 MB, free: 9.941 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001908/0.5672, allocations: 278.2 kB / 417.8 MB, free: 9.738 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.699e-05/0.5673, allocations: 18.28 kB / 417.9 MB, free: 9.738 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001059/0.5674, allocations: 376.8 kB / 418.2 MB, free: 9.402 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005216/0.5679, allocations: 241.2 kB / 418.5 MB, free: 9.402 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006533/0.5686, allocations: 490.5 kB / 418.9 MB, free: 9.09 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006354/0.5692, allocations: 309.1 kB / 419.2 MB, free: 9.031 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.663e-06/0.5693, allocations: 3.906 kB / 419.2 MB, free: 9.031 MB / 314.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002114/0.5714, allocations: 0.9856 MB / 420.2 MB, free: 8.805 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.116e-05/0.5714, allocations: 11.84 kB / 420.2 MB, free: 8.801 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.227e-05/0.5715, allocations: 7.812 kB / 420.2 MB, free: 8.801 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001007/0.5725, allocations: 266.8 kB / 420.5 MB, free: 8.738 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007507/0.5732, allocations: 166.9 kB / 420.7 MB, free: 8.703 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00598/0.5792, allocations: 4.374 MB / 425 MB, free: 21.69 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009034/0.5802, allocations: 113.5 kB / 425.2 MB, free: 21.63 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.885e-05/0.5803, allocations: 42.77 kB / 425.2 MB, free: 21.63 MB / 330.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.0002484/0.5806, allocations: 165.2 kB / 425.4 MB, free: 21.5 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001298/0.5807, allocations: 74.05 kB / 425.4 MB, free: 21.46 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002147/0.5829, allocations: 0.9089 MB / 426.3 MB, free: 21.24 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.427e-05/0.5829, allocations: 19.84 kB / 426.4 MB, free: 21.23 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.117e-06/0.5829, allocations: 0 / 426.4 MB, free: 21.23 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.22e-05/0.5829, allocations: 8.172 kB / 426.4 MB, free: 21.22 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003598/0.5865, allocations: 1.897 MB / 428.3 MB, free: 20.46 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.567e-06/0.5866, allocations: 3.938 kB / 428.3 MB, free: 20.46 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006031/0.5872, allocations: 104.8 kB / 428.4 MB, free: 20.44 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009497/0.5882, allocations: 251.3 kB / 428.6 MB, free: 20.38 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.208e-05/0.5883, allocations: 21.59 kB / 428.6 MB, free: 20.38 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006141/0.5944, allocations: 4.347 MB / 433 MB, free: 17.32 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.456e-06/0.5945, allocations: 7.953 kB / 433 MB, free: 17.32 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002735/0.5972, allocations: 1.298 MB / 434.3 MB, free: 16.57 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003845/0.5976, allocations: 220 kB / 434.5 MB, free: 16.37 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001307/0.5978, allocations: 18.81 kB / 434.5 MB, free: 16.36 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005912/0.5984, allocations: 51.44 kB / 434.6 MB, free: 16.33 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001882/0.5986, allocations: 69.44 kB / 434.6 MB, free: 16.29 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.013e-05/0.5987, allocations: 27.31 kB / 434.7 MB, free: 16.29 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004758/0.5991, allocations: 308.9 kB / 435 MB, free: 16.11 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.67e-07/0.5992, allocations: 0 / 435 MB, free: 16.11 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001307/0.6005, allocations: 322.8 kB / 435.3 MB, free: 16.03 MB / 330.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.0003331/0.6008, allocations: 177.2 kB / 435.5 MB, free: 15.89 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002035/0.6029, allocations: 0.9983 MB / 436.5 MB, free: 15.32 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.527e-06/0.6029, allocations: 0 / 436.5 MB, free: 15.32 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001225/0.6041, allocations: 0.6715 MB / 437.1 MB, free: 14.88 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007049/0.6049, allocations: 107.6 kB / 437.2 MB, free: 14.82 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004898/0.6098, allocations: 1.646 MB / 438.9 MB, free: 13.87 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007466/0.6106, allocations: 1.014 MB / 439.9 MB, free: 13.02 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.000558/0.6111, allocations: 80.8 kB / 440 MB, free: 12.98 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001764/0.6113, allocations: 49.95 kB / 440 MB, free: 12.97 MB / 330.7 MB Notification: Performance of SimCode: time 1.733e-06/0.6114, allocations: 4 kB / 440 MB, free: 12.96 MB / 330.7 MB Notification: Performance of Templates: time 0.02848/0.6398, allocations: 11.16 MB / 451.2 MB, free: 3.512 MB / 330.7 MB