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_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier") Notification: Performance of loadModel(Modelica): time 2.034/2.034, allocations: 194.9 MB / 211.2 MB, free: 8.355 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.212e-05/4.213e-05, allocations: 15.83 kB / 258.8 MB, free: 8.707 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3057/0.3058, allocations: 44.5 MB / 303.3 MB, free: 12.77 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier): time 0.008862/0.3147, allocations: 5.045 MB / 308.3 MB, free: 8.656 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.005721/0.3205, allocations: 1.828 MB / 310.2 MB, free: 6.82 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001594/0.3222, allocations: 35.94 kB / 310.2 MB, free: 6.785 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001107/0.3233, allocations: 170.8 kB / 310.4 MB, free: 6.617 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002936/0.3263, allocations: 0.654 MB / 311 MB, free: 5.961 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001515/0.3279, allocations: 343.2 kB / 311.4 MB, free: 5.625 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001958/0.3299, allocations: 0.5891 MB / 311.9 MB, free: 5.031 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002332/0.3322, allocations: 0.812 MB / 312.8 MB, free: 4.184 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007656/0.333, allocations: 319.1 kB / 313.1 MB, free: 3.871 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009009/0.334, allocations: 406.6 kB / 313.5 MB, free: 3.473 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007759/0.3348, allocations: 159.8 kB / 313.6 MB, free: 3.316 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002678/0.3351, allocations: 44 kB / 313.7 MB, free: 3.273 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002108/0.3353, allocations: 159.3 kB / 313.8 MB, free: 3.117 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002982/0.3356, allocations: 88 kB / 313.9 MB, free: 3.031 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001895/0.3375, allocations: 1.052 MB / 315 MB, free: 1.977 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.3376, allocations: 4 kB / 315 MB, free: 1.973 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.657e-06/0.3376, allocations: 0 / 315 MB, free: 1.973 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.866e-05/0.3377, allocations: 0 / 315 MB, free: 1.973 MB / 250.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.004261/0.3419, allocations: 1.191 MB / 316.2 MB, free: 0.7227 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.821e-05/0.342, allocations: 8.031 kB / 316.2 MB, free: 0.7148 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00466/0.3467, allocations: 474.2 kB / 316.6 MB, free: 256 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001504/0.3482, allocations: 0.5489 MB / 317.2 MB, free: 15.66 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001099/0.3484, allocations: 82.02 kB / 317.3 MB, free: 15.58 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002788/0.3487, allocations: 104 kB / 317.4 MB, free: 15.48 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003269/0.352, allocations: 1.035 MB / 318.4 MB, free: 14.39 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.142e-05/0.3521, allocations: 4 kB / 318.4 MB, free: 14.39 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001622/0.3522, allocations: 44 kB / 318.4 MB, free: 14.34 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.233e-05/0.3523, allocations: 24 kB / 318.5 MB, free: 14.32 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003339/0.3556, allocations: 0.9369 MB / 319.4 MB, free: 13.39 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01016/0.3658, allocations: 3.75 MB / 323.2 MB, free: 9.449 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004366/0.3703, allocations: 2.486 MB / 325.6 MB, free: 6.598 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002239/0.3705, allocations: 101.7 kB / 325.7 MB, free: 6.48 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001485/0.372, allocations: 0.493 MB / 326.2 MB, free: 5.953 MB / 266.7 MB Notification: Performance of pre-optimization done (n=86): time 3.977e-06/0.3721, allocations: 0 / 326.2 MB, free: 5.953 MB / 266.7 MB Notification: Performance of matching and sorting (n=86): time 0.008027/0.3801, allocations: 1.685 MB / 327.9 MB, free: 4.223 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000149/0.3803, allocations: 196.8 kB / 328.1 MB, free: 3.984 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008484/0.3812, allocations: 409.1 kB / 328.5 MB, free: 3.578 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001666/0.3813, allocations: 41.7 kB / 328.5 MB, free: 3.531 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004931/0.3819, allocations: 473.9 kB / 329 MB, free: 3.062 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004224/0.3823, allocations: 287.8 kB / 329.3 MB, free: 2.777 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.657e-05/0.3824, allocations: 20 kB / 329.3 MB, free: 2.758 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001853/0.3826, allocations: 342.8 kB / 329.6 MB, free: 2.414 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001068/0.3837, allocations: 285.9 kB / 329.9 MB, free: 2.137 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001271/0.385, allocations: 0.5278 MB / 330.5 MB, free: 1.504 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001237/0.3862, allocations: 347 kB / 330.8 MB, free: 1.168 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.458e-06/0.3863, allocations: 4 kB / 330.8 MB, free: 1.164 MB / 266.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.003517/0.3898, allocations: 1.065 MB / 331.9 MB, free: 88 kB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.353e-05/0.3899, allocations: 8 kB / 331.9 MB, free: 80 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.431e-05/0.3899, allocations: 16.16 kB / 331.9 MB, free: 64 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001482/0.3914, allocations: 278 kB / 332.2 MB, free: 15.79 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001247/0.3927, allocations: 167.7 kB / 332.3 MB, free: 15.62 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008462/0.4011, allocations: 4.455 MB / 336.8 MB, free: 10.9 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001214/0.4024, allocations: 115.2 kB / 336.9 MB, free: 10.79 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001178/0.4025, allocations: 39.98 kB / 336.9 MB, free: 10.75 MB / 282.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 {2 8,4 17} Notification: Performance of prepare postOptimizeDAE: time 0.0005996/0.4032, allocations: 241.6 kB / 337.2 MB, free: 10.5 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000207/0.4034, allocations: 75.16 kB / 337.2 MB, free: 10.43 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00342/0.4068, allocations: 0.9832 MB / 338.2 MB, free: 9.43 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.939e-05/0.4069, allocations: 8 kB / 338.2 MB, free: 9.422 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.4069, allocations: 4.062 kB / 338.2 MB, free: 9.418 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.656e-05/0.4069, allocations: 3.984 kB / 338.2 MB, free: 9.414 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005308/0.4122, allocations: 1.957 MB / 340.2 MB, free: 7.395 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-05/0.4123, allocations: 7.938 kB / 340.2 MB, free: 7.387 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009216/0.4132, allocations: 107.9 kB / 340.3 MB, free: 7.281 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001399/0.4146, allocations: 269.6 kB / 340.6 MB, free: 7.012 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00013/0.4148, allocations: 19.98 kB / 340.6 MB, free: 6.992 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008237/0.423, allocations: 4.42 MB / 345 MB, free: 2.312 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.384e-06/0.4231, allocations: 96 / 345 MB, free: 2.312 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004576/0.4277, allocations: 1.431 MB / 346.4 MB, free: 0.8477 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005276/0.4283, allocations: 216 kB / 346.6 MB, free: 0.6133 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001892/0.4285, allocations: 16 kB / 346.7 MB, free: 0.5977 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008481/0.4293, allocations: 55.95 kB / 346.7 MB, free: 0.543 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002773/0.4296, allocations: 64.91 kB / 346.8 MB, free: 492 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.622e-05/0.4297, allocations: 27.98 kB / 346.8 MB, free: 464 kB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0005733/0.4303, allocations: 314.9 kB / 347.1 MB, free: 152 kB / 282.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.4303, allocations: 0 / 347.1 MB, free: 152 kB / 282.7 MB Notification: Performance of remove unused functions: time 0.001547/0.4319, allocations: 307.2 kB / 347.4 MB, free: 15.84 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (voltageQS.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.0003951/0.4323, allocations: 159.2 kB / 347.6 MB, free: 15.68 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.003391/0.4357, allocations: 1.128 MB / 348.7 MB, free: 14.53 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.007e-05/0.4358, allocations: 4 kB / 348.7 MB, free: 14.53 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002126/0.4379, allocations: 0.751 MB / 349.5 MB, free: 13.75 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008826/0.4388, allocations: 98.02 kB / 349.6 MB, free: 13.65 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005088/0.4439, allocations: 2.066 MB / 351.6 MB, free: 11.55 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007991/0.4448, allocations: 1.006 MB / 352.6 MB, free: 10.52 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003627/0.4452, allocations: 63.41 kB / 352.7 MB, free: 10.46 MB / 298.7 MB Notification: Performance of SimCode: time 1.513e-06/0.4452, allocations: 0 / 352.7 MB, free: 10.46 MB / 298.7 MB Notification: Performance of Templates: time 0.03456/0.4798, allocations: 16.63 MB / 369.3 MB, free: 9.824 MB / 314.7 MB