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.1_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier") Notification: Performance of loadModel(Modelica): time 1.833/1.833, allocations: 171.1 MB / 186.3 MB, free: 1.34 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.101e-05/3.103e-05, allocations: 4 kB / 228.1 MB, free: 7.98 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08959/0.08965, allocations: 38.76 MB / 266.9 MB, free: 1.137 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier): time 0.00851/0.09823, allocations: 4.754 MB / 271.6 MB, free: 12.34 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.005222/0.1035, allocations: 1.668 MB / 273.3 MB, free: 10.67 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001214/0.1048, allocations: 31.94 kB / 273.3 MB, free: 10.64 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001095/0.106, allocations: 158.8 kB / 273.5 MB, free: 10.48 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00234/0.1083, allocations: 0.5566 MB / 274.1 MB, free: 9.926 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001449/0.1098, allocations: 347.1 kB / 274.4 MB, free: 9.586 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.001588/0.1114, allocations: 0.5423 MB / 274.9 MB, free: 9.043 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002181/0.1136, allocations: 0.812 MB / 275.7 MB, free: 8.199 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006732/0.1143, allocations: 287.2 kB / 276 MB, free: 7.918 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000733/0.1151, allocations: 358.7 kB / 276.4 MB, free: 7.566 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005651/0.1157, allocations: 131.9 kB / 276.5 MB, free: 7.438 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002044/0.1159, allocations: 40 kB / 276.5 MB, free: 7.398 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001991/0.1161, allocations: 147.4 kB / 276.7 MB, free: 7.254 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002573/0.1164, allocations: 83.94 kB / 276.8 MB, free: 7.172 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001817/0.1182, allocations: 0.9816 MB / 277.8 MB, free: 6.188 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.1183, allocations: 0 / 277.8 MB, free: 6.188 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.935e-06/0.1183, allocations: 0 / 277.8 MB, free: 6.188 MB / 234.7 MB Notification: Performance of Transformations before backend: time 4.387e-05/0.1183, allocations: 0 / 277.8 MB, free: 6.188 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 227 * Number of variables: 227 Notification: Performance of Generate backend data structure: time 0.004333/0.1227, allocations: 1.147 MB / 278.9 MB, free: 4.992 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.702e-05/0.1228, allocations: 12.03 kB / 278.9 MB, free: 4.98 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009712/0.1237, allocations: 142.7 kB / 279.1 MB, free: 4.84 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00143/0.1252, allocations: 0.5101 MB / 279.6 MB, free: 4.285 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.767e-05/0.1253, allocations: 73.94 kB / 279.6 MB, free: 4.215 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002343/0.1256, allocations: 96 kB / 279.7 MB, free: 4.121 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002905/0.1285, allocations: 0.8986 MB / 280.6 MB, free: 3.195 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.563e-05/0.1286, allocations: 7.906 kB / 280.6 MB, free: 3.188 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001386/0.1288, allocations: 36 kB / 280.7 MB, free: 3.152 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.259e-05/0.1288, allocations: 20 kB / 280.7 MB, free: 3.133 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002646/0.1315, allocations: 0.7066 MB / 281.4 MB, free: 2.43 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007702/0.1392, allocations: 3.229 MB / 284.6 MB, free: 15.05 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002419/0.1417, allocations: 0.9282 MB / 285.6 MB, free: 14.05 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.231e-05/0.1418, allocations: 12.55 kB / 285.6 MB, free: 14.04 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00126/0.1431, allocations: 437.8 kB / 286 MB, free: 13.58 MB / 250.7 MB Notification: Performance of pre-optimization done (n=69): time 4.027e-06/0.1431, allocations: 0 / 286 MB, free: 13.58 MB / 250.7 MB Notification: Performance of matching and sorting (n=69): time 0.007738/0.1509, allocations: 1.553 MB / 287.5 MB, free: 11.98 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001356/0.151, allocations: 192.5 kB / 287.7 MB, free: 11.75 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007702/0.1518, allocations: 389 kB / 288.1 MB, free: 11.36 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001108/0.152, allocations: 41.7 kB / 288.2 MB, free: 11.32 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004076/0.1524, allocations: 426.1 kB / 288.6 MB, free: 10.89 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002899/0.1527, allocations: 228.7 kB / 288.8 MB, free: 10.67 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.225e-05/0.1528, allocations: 16 kB / 288.8 MB, free: 10.65 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001558/0.1529, allocations: 338.8 kB / 289.1 MB, free: 10.31 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008666/0.1538, allocations: 233.9 kB / 289.4 MB, free: 10.09 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00104/0.1549, allocations: 443.1 kB / 289.8 MB, free: 9.57 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009747/0.1558, allocations: 278.1 kB / 290.1 MB, free: 9.301 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.229e-05/0.1559, allocations: 4 kB / 290.1 MB, free: 9.297 MB / 250.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.003009/0.1589, allocations: 0.8952 MB / 291 MB, free: 8.391 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.521e-05/0.159, allocations: 8 kB / 291 MB, free: 8.383 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.853e-05/0.159, allocations: 4 kB / 291 MB, free: 8.379 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001452/0.1605, allocations: 278.7 kB / 291.3 MB, free: 8.102 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009046/0.1614, allocations: 127.7 kB / 291.4 MB, free: 7.977 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008486/0.1699, allocations: 4.456 MB / 295.8 MB, free: 3.254 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001035/0.171, allocations: 95.41 kB / 295.9 MB, free: 3.16 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.987e-05/0.1711, allocations: 31.98 kB / 296 MB, free: 3.129 MB / 250.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,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 (65): * Single equations (assignments): 63 * 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.0005696/0.1717, allocations: 237.6 kB / 296.2 MB, free: 2.887 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001766/0.1718, allocations: 67.23 kB / 296.3 MB, free: 2.82 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002911/0.1748, allocations: 0.8227 MB / 297.1 MB, free: 1.977 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.589e-05/0.1748, allocations: 4 kB / 297.1 MB, free: 1.973 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.1748, allocations: 4 kB / 297.1 MB, free: 1.969 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.379e-05/0.1749, allocations: 3.984 kB / 297.1 MB, free: 1.965 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004754/0.1796, allocations: 1.671 MB / 298.8 MB, free: 236 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.506e-06/0.1797, allocations: 0 / 298.8 MB, free: 236 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007128/0.1804, allocations: 79.89 kB / 298.8 MB, free: 156 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2172/0.3976, allocations: 258 kB / 299.1 MB, free: 29.35 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001598/0.3978, allocations: 16.67 kB / 299.1 MB, free: 29.35 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00776/0.4056, allocations: 4.423 MB / 303.5 MB, free: 26.63 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.017e-06/0.4057, allocations: 0.6094 kB / 303.5 MB, free: 26.63 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004052/0.4097, allocations: 1.245 MB / 304.8 MB, free: 26.07 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004244/0.4102, allocations: 198.9 kB / 305 MB, free: 25.92 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001579/0.4104, allocations: 14.38 kB / 305 MB, free: 25.91 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007198/0.4111, allocations: 49.83 kB / 305 MB, free: 25.9 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003039/0.4114, allocations: 67 kB / 305.1 MB, free: 25.88 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.69e-05/0.4115, allocations: 19.19 kB / 305.1 MB, free: 25.88 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.000553/0.4121, allocations: 298.3 kB / 305.4 MB, free: 25.73 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.332e-06/0.4121, allocations: 0 / 305.4 MB, free: 25.73 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.001546/0.4136, allocations: 276 kB / 305.7 MB, free: 25.67 MB / 250.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 (40): * Single equations (assignments): 35 * 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.0003078/0.414, allocations: 133.5 kB / 305.8 MB, free: 25.56 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.002941/0.4169, allocations: 0.9795 MB / 306.8 MB, free: 25.07 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 9.648e-06/0.417, allocations: 0 / 306.8 MB, free: 25.07 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001931/0.419, allocations: 0.6793 MB / 307.5 MB, free: 24.66 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000947/0.4199, allocations: 95.7 kB / 307.6 MB, free: 24.63 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0044/0.4244, allocations: 1.858 MB / 309.4 MB, free: 23.52 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007699/0.4252, allocations: 0.9821 MB / 310.4 MB, free: 22.81 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002954/0.4255, allocations: 45.25 kB / 310.5 MB, free: 22.8 MB / 250.7 MB Notification: Performance of SimCode: time 1.243e-06/0.4255, allocations: 0 / 310.5 MB, free: 22.8 MB / 250.7 MB Notification: Performance of Templates: time 0.04459/0.4701, allocations: 14.94 MB / 325.4 MB, free: 13.8 MB / 250.7 MB