Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_DC_Drive,tolerance=1e-06,outputFormat="empty",numberOfIntervals=150000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_DC_Drive") Notification: Performance of loadModel(Modelica): time 1.94/1.94, allocations: 225.8 MB / 239.3 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.299e-05/3.309e-05, allocations: 8 kB / 292.1 MB, free: 8.797 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.096/0.09605, allocations: 50.42 MB / 342.6 MB, free: 6.359 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4017/0.4978, allocations: 112.2 MB / 454.8 MB, free: 14.3 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002711/0.4981, allocations: 86.2 kB / 454.9 MB, free: 14.25 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2645/0.7626, allocations: 67.01 MB / 0.5096 GB, free: 15.32 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.453e-06/0.7627, allocations: 0 / 0.5096 GB, free: 15.32 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0004137/0.7631, allocations: 83.94 kB / 0.5097 GB, free: 15.24 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 748 * Number of variables: 748 Notification: Performance of Generate backend data structure: time 0.01066/0.7738, allocations: 3.5 MB / 0.5131 GB, free: 11.66 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.641e-05/0.7739, allocations: 12.03 kB / 0.5131 GB, free: 11.65 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002178/0.776, allocations: 443.2 kB / 0.5136 GB, free: 11.21 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01569/0.7918, allocations: 4.156 MB / 0.5176 GB, free: 6.977 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002904/0.7921, allocations: 229.8 kB / 0.5178 GB, free: 6.75 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008699/0.793, allocations: 299.9 kB / 0.5181 GB, free: 6.457 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009935/0.8029, allocations: 3.844 MB / 0.5219 GB, free: 2.473 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.992e-05/0.8031, allocations: 3.906 kB / 0.5219 GB, free: 2.469 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004485/0.8035, allocations: 128 kB / 0.522 GB, free: 2.344 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001525/0.8037, allocations: 113.6 kB / 0.5221 GB, free: 2.23 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2555/1.059, allocations: 3.304 MB / 0.5254 GB, free: 101.3 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02964/1.089, allocations: 13 MB / 0.538 GB, free: 98.57 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005237/1.094, allocations: 2.636 MB / 0.5406 GB, free: 98.52 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003017/1.097, allocations: 1.577 MB / 0.5422 GB, free: 98.49 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000129/1.097, allocations: 19.67 kB / 0.5422 GB, free: 98.49 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002734/1.1, allocations: 1.427 MB / 0.5436 GB, free: 98.36 MB / 442.7 MB Notification: Performance of pre-optimization done (n=185): time 6.533e-06/1.1, allocations: 0 / 0.5436 GB, free: 98.36 MB / 442.7 MB Notification: Performance of matching and sorting (n=189): time 0.01303/1.113, allocations: 6.228 MB / 0.5497 GB, free: 96.9 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.906e-05/1.113, allocations: 317.8 kB / 0.55 GB, free: 96.56 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005029/1.118, allocations: 2.432 MB / 0.5523 GB, free: 96.32 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004459/1.119, allocations: 89.53 kB / 0.5524 GB, free: 96.29 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001257/1.12, allocations: 1.351 MB / 0.5537 GB, free: 95.8 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008083/1.121, allocations: 0.6005 MB / 0.5543 GB, free: 95.48 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000198/1.121, allocations: 50.72 kB / 0.5544 GB, free: 95.48 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000173/1.121, allocations: 407.6 kB / 0.5548 GB, free: 95.17 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002271/1.124, allocations: 1.177 MB / 0.5559 GB, free: 94.94 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002792/1.126, allocations: 1.825 MB / 0.5577 GB, free: 93.76 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002723/1.129, allocations: 1.395 MB / 0.5591 GB, free: 93.3 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.852e-05/1.129, allocations: 10.16 kB / 0.5591 GB, free: 93.3 MB / 442.7 MB Notification: Performance of matching and sorting (n=301) (initialization): time 0.006909/1.136, allocations: 3.559 MB / 0.5625 GB, free: 91.97 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001356/1.138, allocations: 6.887 MB / 0.5693 GB, free: 84.69 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.584e-05/1.138, allocations: 17.22 kB / 0.5693 GB, free: 84.69 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001614/1.139, allocations: 0.5745 MB / 0.5698 GB, free: 84.51 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002954/1.142, allocations: 0.5482 MB / 0.5704 GB, free: 84.49 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00974/1.152, allocations: 7.954 MB / 0.5781 GB, free: 78.74 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003782/1.156, allocations: 422 kB / 0.5785 GB, free: 78.7 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004302/1.156, allocations: 95.06 kB / 0.5786 GB, free: 78.68 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.305e-05/1.156, allocations: 3.719 kB / 0.5786 GB, free: 78.68 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006536/1.163, allocations: 3.491 MB / 0.5821 GB, free: 77.39 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.181e-05/1.163, allocations: 16.97 kB / 0.5821 GB, free: 77.39 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001523/1.165, allocations: 0.5688 MB / 0.5826 GB, free: 77.21 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002604/1.167, allocations: 0.5353 MB / 0.5831 GB, free: 77.19 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009455/1.177, allocations: 8.027 MB / 0.591 GB, free: 71.39 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001896/1.179, allocations: 240.5 kB / 0.5912 GB, free: 71.35 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002631/1.179, allocations: 91.81 kB / 0.5913 GB, free: 71.33 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 79 * Number of states: 0 () * Number of discrete variables: 69 ($PRE.meanVoltage.y_last,meanVoltage.y_last,$PRE.meanCurrent.y_last,meanCurrent.y_last,$whenCondition9,$whenCondition8,$whenCondition7,$PRE.rootMeanSquareVoltage.mean.y_last,rootMeanSquareVoltage.mean.y_last,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[1].off,$PRE.rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[2].off,$PRE.rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_p.idealThyristor[3].off,$PRE.rectifier.thyristor_n.idealThyristor[1].off,rectifier.thyristor_n.idealThyristor[1].off,$PRE.rectifier.thyristor_n.idealThyristor[2].off,rectifier.thyristor_n.idealThyristor[2].off,$PRE.rectifier.thyristor_n.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[3].off,$PRE.rectifier.pre_p[1].u,rectifier.pre_p[1].u,rectifier.pre_p[1].y,$PRE.rectifier.pre_p[2].u,rectifier.pre_p[2].u,rectifier.pre_p[2].y,$PRE.rectifier.pre_p[3].u,rectifier.pre_p[3].u,rectifier.pre_p[3].y,$PRE.rectifier.pre_n[1].u,rectifier.pre_n[1].u,rectifier.pre_n[1].y,$PRE.rectifier.pre_n[2].u,rectifier.pre_n[2].u,rectifier.pre_n[2].y,$PRE.rectifier.pre_n[3].u,rectifier.pre_n[3].u,rectifier.pre_n[3].y,pulse2.twomPulse.positiveThreshold[1].y,pulse2.twomPulse.positiveThreshold[2].y,pulse2.twomPulse.positiveThreshold[3].y,pulse2.twomPulse.negativeThreshold[1].y,pulse2.twomPulse.negativeThreshold[2].y,pulse2.twomPulse.negativeThreshold[3].y,$PRE.pulse2.twomPulse.timerPositive[1].entryTime,pulse2.twomPulse.timerPositive[1].entryTime,$PRE.pulse2.twomPulse.timerPositive[2].entryTime,pulse2.twomPulse.timerPositive[2].entryTime,$PRE.pulse2.twomPulse.timerPositive[3].entryTime,pulse2.twomPulse.timerPositive[3].entryTime,$PRE.pulse2.twomPulse.timerNegative[1].entryTime,pulse2.twomPulse.timerNegative[1].entryTime,$PRE.pulse2.twomPulse.timerNegative[2].entryTime,pulse2.twomPulse.timerNegative[2].entryTime,$PRE.pulse2.twomPulse.timerNegative[3].entryTime,pulse2.twomPulse.timerNegative[3].entryTime,pulse2.fire_p[1],pulse2.fire_p[2],pulse2.fire_p[3],pulse2.fire_n[1],pulse2.fire_n[2],pulse2.fire_n[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (261): * Single equations (assignments): 258 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 12,(1,100.0%) 4} * Non-linear torn systems: 1 {6 19} Notification: Performance of prepare postOptimizeDAE: time 0.0006376/1.179, allocations: 309.8 kB / 0.5916 GB, free: 71.1 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007055/1.18, allocations: 257.9 kB / 0.5918 GB, free: 70.96 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006112/1.186, allocations: 3.066 MB / 0.5948 GB, free: 69.66 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.861e-05/1.186, allocations: 18.66 kB / 0.5949 GB, free: 69.66 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.014e-05/1.186, allocations: 3.875 kB / 0.5949 GB, free: 69.66 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.532e-05/1.186, allocations: 7.781 kB / 0.5949 GB, free: 69.66 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01377/1.2, allocations: 6.817 MB / 0.6015 GB, free: 66.83 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.376e-05/1.2, allocations: 2.594 kB / 0.6015 GB, free: 66.83 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001697/1.202, allocations: 299.3 kB / 0.6018 GB, free: 66.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001484/1.204, allocations: 0.5256 MB / 0.6023 GB, free: 66.63 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003111/1.204, allocations: 62.48 kB / 0.6024 GB, free: 66.6 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009341/1.213, allocations: 7.693 MB / 0.6099 GB, free: 60.99 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/1.213, allocations: 0 / 0.6099 GB, free: 60.99 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008145/1.221, allocations: 4.715 MB / 0.6145 GB, free: 58.81 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001914/1.223, allocations: 0.6347 MB / 0.6151 GB, free: 58.43 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007927/1.224, allocations: 72.89 kB / 0.6152 GB, free: 58.39 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002744/1.227, allocations: 367.8 kB / 0.6155 GB, free: 58.36 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000767/1.228, allocations: 278.5 kB / 0.6158 GB, free: 58.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001882/1.228, allocations: 52 kB / 0.6159 GB, free: 58.29 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003842/1.232, allocations: 1.815 MB / 0.6176 GB, free: 57.6 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.05e-06/1.232, allocations: 4 kB / 0.6176 GB, free: 57.6 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006046/1.238, allocations: 1.228 MB / 0.6188 GB, free: 56.82 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 17 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,pulse2.twomPulse.filter[1].firstOrder.y,pulse2.twomPulse.filter[1].transferFunction[1].x_scaled[1],pulse2.twomPulse.filter[1].transferFunction[2].x_scaled[1],pulse2.twomPulse.filter[2].firstOrder.y,pulse2.twomPulse.filter[2].transferFunction[1].x_scaled[1],pulse2.twomPulse.filter[2].transferFunction[2].x_scaled[1],pulse2.twomPulse.filter[3].firstOrder.y,pulse2.twomPulse.filter[3].transferFunction[1].x_scaled[1],pulse2.twomPulse.filter[3].transferFunction[2].x_scaled[1],inductor.i,dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,lMains.inductor[2].i,lMains.inductor[3].i) * Number of discrete variables: 48 (pulse2.twomPulse.positiveThreshold[1].y,pulse2.twomPulse.positiveThreshold[2].y,pulse2.twomPulse.positiveThreshold[3].y,pulse2.twomPulse.negativeThreshold[1].y,pulse2.twomPulse.negativeThreshold[2].y,pulse2.twomPulse.negativeThreshold[3].y,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[1].off,rectifier.thyristor_n.idealThyristor[2].off,rectifier.thyristor_n.idealThyristor[3].off,rectifier.pre_p[1].u,rectifier.pre_p[1].y,rectifier.pre_p[2].u,rectifier.pre_p[2].y,rectifier.pre_p[3].u,rectifier.pre_p[3].y,rectifier.pre_n[1].u,rectifier.pre_n[1].y,rectifier.pre_n[2].u,rectifier.pre_n[2].y,rectifier.pre_n[3].u,rectifier.pre_n[3].y,meanVoltage.y_last,rootMeanSquareVoltage.mean.y_last,meanCurrent.y_last,pulse2.twomPulse.timerPositive[1].entryTime,pulse2.twomPulse.timerPositive[2].entryTime,pulse2.twomPulse.timerPositive[3].entryTime,pulse2.twomPulse.timerNegative[1].entryTime,pulse2.twomPulse.timerNegative[2].entryTime,pulse2.twomPulse.timerNegative[3].entryTime,pulse2.fire_p[1],pulse2.fire_p[2],pulse2.fire_p[3],pulse2.fire_n[1],pulse2.fire_n[2],pulse2.fire_n[3]) * Number of discrete states: 15 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.pre_n[3].u,rectifier.pre_n[2].u,rectifier.pre_n[1].u,rectifier.pre_p[3].u,rectifier.pre_p[2].u,rectifier.pre_p[1].u,rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_n.idealThyristor[1].off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (149): * Single equations (assignments): 137 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 12} * Non-linear torn systems: 1 {6 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008799/1.239, allocations: 439.2 kB / 0.6192 GB, free: 56.48 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.009289/1.248, allocations: 5.286 MB / 0.6244 GB, free: 51.75 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.262e-05/1.248, allocations: 6.906 kB / 0.6244 GB, free: 51.75 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003549/1.252, allocations: 2.018 MB / 0.6264 GB, free: 49.96 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003567/1.255, allocations: 0.6162 MB / 0.627 GB, free: 49.47 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01316/1.269, allocations: 5.909 MB / 0.6328 GB, free: 44.31 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002597/1.271, allocations: 2.496 MB / 0.6352 GB, free: 42.35 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001064/1.272, allocations: 174.7 kB / 0.6354 GB, free: 42.19 MB / 442.7 MB Notification: Performance of SimCode: time 1.753e-06/1.272, allocations: 0 / 0.6354 GB, free: 42.19 MB / 442.7 MB Notification: Performance of Templates: time 0.3662/1.639, allocations: 93.12 MB / 0.7263 GB, free: 105.9 MB / 458.7 MB