Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive,tolerance=1e-06,outputFormat="empty",numberOfIntervals=150000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive") Notification: Performance of loadModel(Modelica): time 2.079/2.079, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.317e-05/2.326e-05, allocations: 0 / 292.1 MB, free: 8.828 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09276/0.09281, allocations: 50.42 MB / 342.6 MB, free: 6.391 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3939/0.4867, allocations: 107.4 MB / 450 MB, free: 3.098 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000274/0.487, allocations: 86.19 kB / 450 MB, free: 3.051 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1478/0.6348, allocations: 37.12 MB / 487.2 MB, free: 2.266 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.175e-06/0.6349, allocations: 4 kB / 487.2 MB, free: 2.262 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001806/0.6351, allocations: 44.38 kB / 487.2 MB, free: 2.219 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 373 * Number of variables: 373 Notification: Performance of Generate backend data structure: time 0.004713/0.6398, allocations: 1.746 MB / 489 MB, free: 428 kB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.038e-05/0.6399, allocations: 12.03 kB / 489 MB, free: 416 kB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001174/0.6411, allocations: 241.5 kB / 489.2 MB, free: 172 kB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003932/0.645, allocations: 1.29 MB / 490.5 MB, free: 14.82 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000166/0.6452, allocations: 118.9 kB / 490.6 MB, free: 14.7 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003782/0.6456, allocations: 151.9 kB / 490.8 MB, free: 14.55 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003812/0.6495, allocations: 1.521 MB / 492.3 MB, free: 12.96 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.465e-05/0.6496, allocations: 0 / 492.3 MB, free: 12.96 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002007/0.6498, allocations: 64 kB / 492.4 MB, free: 12.9 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.034e-05/0.6498, allocations: 40 kB / 492.4 MB, free: 12.86 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003244/0.6531, allocations: 1.157 MB / 493.5 MB, free: 11.7 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01392/0.6671, allocations: 6.466 MB / 0.4883 GB, free: 4.973 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002288/0.6694, allocations: 0.9565 MB / 0.4892 GB, free: 4.004 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00144/0.6709, allocations: 0.5939 MB / 0.4898 GB, free: 3.406 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.969e-05/0.671, allocations: 8.781 kB / 0.4898 GB, free: 3.398 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001255/0.6722, allocations: 0.5591 MB / 0.4904 GB, free: 2.816 MB / 410.7 MB Notification: Performance of pre-optimization done (n=94): time 7.286e-06/0.6723, allocations: 0 / 0.4904 GB, free: 2.816 MB / 410.7 MB Notification: Performance of matching and sorting (n=97): time 0.006091/0.6784, allocations: 2.455 MB / 0.4928 GB, free: 284 kB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001498/0.6785, allocations: 196.6 kB / 0.4929 GB, free: 44 kB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002534/0.6811, allocations: 1.149 MB / 0.4941 GB, free: 14.88 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001944/0.6813, allocations: 53.69 kB / 0.4941 GB, free: 14.82 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008349/0.6822, allocations: 0.7466 MB / 0.4949 GB, free: 14.07 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004352/0.6826, allocations: 327.5 kB / 0.4952 GB, free: 13.74 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.242e-05/0.6827, allocations: 32 kB / 0.4952 GB, free: 13.71 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002255/0.683, allocations: 358.8 kB / 0.4955 GB, free: 13.35 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001026/0.684, allocations: 419.9 kB / 0.4959 GB, free: 12.94 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001448/0.6855, allocations: 0.8448 MB / 0.4968 GB, free: 11.9 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001225/0.6867, allocations: 0.5143 MB / 0.4973 GB, free: 11.39 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.166e-05/0.6867, allocations: 4 kB / 0.4973 GB, free: 11.39 MB / 426.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.003505/0.6902, allocations: 1.469 MB / 0.4987 GB, free: 9.883 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002905/0.6932, allocations: 5.056 MB / 0.5036 GB, free: 4.434 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.571e-05/0.6933, allocations: 12 kB / 0.5037 GB, free: 4.422 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009075/0.6942, allocations: 209.6 kB / 0.5039 GB, free: 4.211 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001606/0.6958, allocations: 315.5 kB / 0.5042 GB, free: 3.902 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005933/0.7018, allocations: 3.919 MB / 0.508 GB, free: 15.71 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001878/0.7037, allocations: 171.8 kB / 0.5081 GB, free: 15.55 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001818/0.7039, allocations: 56 kB / 0.5082 GB, free: 15.49 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.067e-05/0.7039, allocations: 4 kB / 0.5082 GB, free: 15.49 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003336/0.7073, allocations: 1.409 MB / 0.5096 GB, free: 14.06 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.043e-05/0.7073, allocations: 12 kB / 0.5096 GB, free: 14.05 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000737/0.7081, allocations: 214.3 kB / 0.5098 GB, free: 13.83 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001514/0.7096, allocations: 311.5 kB / 0.5101 GB, free: 13.53 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005846/0.7155, allocations: 3.896 MB / 0.5139 GB, free: 9.367 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001099/0.7166, allocations: 107.8 kB / 0.514 GB, free: 9.262 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000136/0.7168, allocations: 55.98 kB / 0.5141 GB, free: 9.207 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * Number of states: 0 () * Number of discrete variables: 29 ($PRE.meanVoltage.y_last,meanVoltage.y_last,$PRE.meanCurrent.y_last,meanCurrent.y_last,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.rootMeanSquareVoltage.mean.y_last,rootMeanSquareVoltage.mean.y_last,$whenCondition2,$whenCondition1,rectifier.andCondition_p.y,rectifier.andCondition_n.y,$PRE.rectifier.thyristor_p1.off,rectifier.thyristor_p1.off,$PRE.rectifier.thyristor_p2.off,rectifier.thyristor_p2.off,$PRE.rectifier.thyristor_n1.off,rectifier.thyristor_n1.off,$PRE.rectifier.thyristor_n2.off,rectifier.thyristor_n2.off,pulse2.twoPulse.positiveThreshold[1].y,pulse2.twoPulse.negativeThreshold[1].y,$PRE.pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerPositive[1].entryTime,$PRE.pulse2.twoPulse.timerNegative[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.fire_p,pulse2.fire_n) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 144 * 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: 1 {(1,100.0%) 5} * Non-linear torn systems: 1 {4 14} Notification: Performance of prepare postOptimizeDAE: time 0.000427/0.7172, allocations: 216.9 kB / 0.5143 GB, free: 8.988 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004045/0.7176, allocations: 138.3 kB / 0.5144 GB, free: 8.852 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002996/0.7206, allocations: 1.232 MB / 0.5156 GB, free: 7.586 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.729e-05/0.7207, allocations: 8 kB / 0.5156 GB, free: 7.578 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.569e-06/0.7207, allocations: 0 / 0.5156 GB, free: 7.578 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.512e-05/0.7207, allocations: 3.984 kB / 0.5156 GB, free: 7.574 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006397/0.7271, allocations: 2.777 MB / 0.5183 GB, free: 4.688 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-05/0.7272, allocations: 4 kB / 0.5183 GB, free: 4.684 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001007/0.7282, allocations: 164 kB / 0.5185 GB, free: 4.523 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00076/0.729, allocations: 201.6 kB / 0.5187 GB, free: 4.32 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001183/0.7291, allocations: 23.98 kB / 0.5187 GB, free: 4.297 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005713/0.7349, allocations: 3.81 MB / 0.5224 GB, free: 220 kB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.787e-06/0.7349, allocations: 4.031 kB / 0.5224 GB, free: 216 kB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2454/0.9803, allocations: 1.873 MB / 0.5242 GB, free: 120.5 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009758/0.9813, allocations: 330.9 kB / 0.5246 GB, free: 120.4 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003001/0.9817, allocations: 26.5 kB / 0.5246 GB, free: 120.4 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001373/0.983, allocations: 139.7 kB / 0.5247 GB, free: 120.4 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003375/0.9834, allocations: 108.6 kB / 0.5248 GB, free: 120.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.035e-05/0.9835, allocations: 31.98 kB / 0.5249 GB, free: 120.4 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001862/0.9854, allocations: 0.8616 MB / 0.5257 GB, free: 120.3 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.91e-07/0.9854, allocations: 1.375 kB / 0.5257 GB, free: 120.3 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003311/0.9887, allocations: 0.6391 MB / 0.5263 GB, free: 120.3 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 10 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,pulse2.twoPulse.filter[1].firstOrder.y,pulse2.twoPulse.filter[1].transferFunction[1].x_scaled[1],pulse2.twoPulse.filter[1].transferFunction[2].x_scaled[1],inductor.i,dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,lMains.i) * Number of discrete variables: 20 (pulse2.twoPulse.positiveThreshold[1].y,pulse2.twoPulse.negativeThreshold[1].y,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,rectifier.andCondition_p.y,rectifier.andCondition_n.y,rectifier.thyristor_p1.off,rectifier.thyristor_p2.off,rectifier.thyristor_n1.off,rectifier.thyristor_n2.off,meanVoltage.y_last,rootMeanSquareVoltage.mean.y_last,meanCurrent.y_last,pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.fire_p,pulse2.fire_n) * Number of discrete states: 7 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.thyristor_p2.off,rectifier.thyristor_p1.off,rectifier.thyristor_n1.off,rectifier.thyristor_n2.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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: 1 {(1,100.0%) 5} * Non-linear torn systems: 1 {4 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006729/0.9894, allocations: 344 kB / 0.5266 GB, free: 120.2 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004606/0.9941, allocations: 2.272 MB / 0.5289 GB, free: 119.7 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.03e-05/0.9941, allocations: 1.562 kB / 0.5289 GB, free: 119.7 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001692/0.9958, allocations: 0.8407 MB / 0.5297 GB, free: 119.5 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001993/0.9978, allocations: 302.4 kB / 0.53 GB, free: 119.5 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006187/1.004, allocations: 2.493 MB / 0.5324 GB, free: 118.8 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001276/1.005, allocations: 1.345 MB / 0.5337 GB, free: 118.1 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005508/1.006, allocations: 94.33 kB / 0.5338 GB, free: 118.1 MB / 442.7 MB Notification: Performance of SimCode: time 1.764e-06/1.006, allocations: 7.172 kB / 0.5338 GB, free: 118.1 MB / 442.7 MB Notification: Performance of Templates: time 0.04866/1.055, allocations: 34.72 MB / 0.5677 GB, free: 113.8 MB / 442.7 MB