Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_DC_Drive,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_ThyristorBridge2mPulse_DC_Drive",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.026/2.026, allocations: 205.8 MB / 218.9 MB, free: 9.273 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.811e-05/2.815e-05, allocations: 0 / 269.5 MB, free: 6.285 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09928/0.09933, allocations: 47.57 MB / 317 MB, free: 6.629 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5697/0.6691, allocations: 110.9 MB / 427.9 MB, free: 9.102 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003424/0.6695, allocations: 92.88 kB / 428 MB, free: 9.051 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2985/0.968, allocations: 65.64 MB / 493.7 MB, free: 14.36 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.165e-06/0.968, allocations: 0 / 493.7 MB, free: 14.36 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005438/0.9686, allocations: 91.86 kB / 493.8 MB, free: 14.27 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 733 * Number of variables: 733 Notification: Performance of Generate backend data structure: time 0.01412/0.9827, allocations: 3.437 MB / 497.2 MB, free: 10.74 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.855e-05/0.9828, allocations: 15.97 kB / 497.2 MB, free: 10.73 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002233/0.985, allocations: 450.4 kB / 497.7 MB, free: 10.27 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002855/0.988, allocations: 447.1 kB / 498.1 MB, free: 9.832 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01901/1.007, allocations: 4.062 MB / 0.4904 GB, free: 5.691 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004033/1.007, allocations: 225.7 kB / 0.4906 GB, free: 5.469 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001326/1.009, allocations: 291.9 kB / 0.4909 GB, free: 5.184 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01336/1.022, allocations: 3.771 MB / 0.4946 GB, free: 1.277 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001563/1.022, allocations: 4 kB / 0.4946 GB, free: 1.273 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001089/1.024, allocations: 128 kB / 0.4947 GB, free: 1.148 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001894/1.024, allocations: 109.5 kB / 0.4948 GB, free: 1.039 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01118/1.035, allocations: 3.251 MB / 0.498 GB, free: 13.78 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0419/1.077, allocations: 12.81 MB / 0.5105 GB, free: 0.6523 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.302/1.379, allocations: 2.76 MB / 0.5132 GB, free: 100.7 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004359/1.383, allocations: 1.542 MB / 0.5147 GB, free: 100.6 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002004/1.384, allocations: 15.75 kB / 0.5147 GB, free: 100.6 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004093/1.388, allocations: 1.386 MB / 0.516 GB, free: 100.5 MB / 426.7 MB Notification: Performance of pre-optimization done (n=179): time 8.155e-06/1.388, allocations: 0 / 0.516 GB, free: 100.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=183): time 0.01896/1.407, allocations: 6.077 MB / 0.522 GB, free: 99.3 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001459/1.407, allocations: 289.9 kB / 0.5223 GB, free: 98.98 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007305/1.414, allocations: 2.395 MB / 0.5246 GB, free: 98.75 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005936/1.415, allocations: 84.94 kB / 0.5247 GB, free: 98.72 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002068/1.417, allocations: 1.465 MB / 0.5261 GB, free: 98.29 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001142/1.418, allocations: 0.5841 MB / 0.5267 GB, free: 98 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002668/1.419, allocations: 47.56 kB / 0.5267 GB, free: 98 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002304/1.419, allocations: 403 kB / 0.5271 GB, free: 97.7 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002912/1.422, allocations: 1.156 MB / 0.5282 GB, free: 97.69 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00382/1.426, allocations: 1.783 MB / 0.53 GB, free: 96.99 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004853/1.431, allocations: 1.351 MB / 0.5313 GB, free: 96.97 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-05/1.431, allocations: 7.75 kB / 0.5313 GB, free: 96.97 MB / 426.7 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.009902/1.441, allocations: 3.662 MB / 0.5349 GB, free: 96.54 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001879/1.442, allocations: 7.328 MB / 0.542 GB, free: 88.76 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.06e-05/1.443, allocations: 19.34 kB / 0.542 GB, free: 88.76 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002231/1.445, allocations: 0.5658 MB / 0.5426 GB, free: 88.74 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003995/1.449, allocations: 0.5371 MB / 0.5431 GB, free: 88.74 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01178/1.461, allocations: 7.96 MB / 0.5509 GB, free: 84.66 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00518/1.466, allocations: 419.8 kB / 0.5513 GB, free: 84.66 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006795/1.467, allocations: 90.69 kB / 0.5514 GB, free: 84.66 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.384e-05/1.467, allocations: 3.938 kB / 0.5514 GB, free: 84.66 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01009/1.477, allocations: 3.411 MB / 0.5547 GB, free: 84.04 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001418/1.477, allocations: 21.72 kB / 0.5547 GB, free: 84.04 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002901/1.48, allocations: 0.576 MB / 0.5553 GB, free: 83.85 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00529/1.485, allocations: 0.5266 MB / 0.5558 GB, free: 83.84 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01548/1.501, allocations: 7.945 MB / 0.5636 GB, free: 78.09 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004887/1.506, allocations: 403.9 kB / 0.564 GB, free: 78.05 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006532/1.506, allocations: 88.47 kB / 0.564 GB, free: 78.03 MB / 426.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,meanVoltage.y,$PRE.meanCurrent.y,meanCurrent.y,$whenCondition9,$whenCondition8,$whenCondition7,$PRE.rootMeanSquareVoltage.mean.y,rootMeanSquareVoltage.mean.y,$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 (255): * Single equations (assignments): 252 * 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.0008602/1.507, allocations: 307.2 kB / 0.5643 GB, free: 77.84 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009505/1.508, allocations: 252.5 kB / 0.5646 GB, free: 77.71 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007302/1.516, allocations: 2.986 MB / 0.5675 GB, free: 76.45 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-05/1.516, allocations: 17.06 kB / 0.5675 GB, free: 76.45 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.158e-05/1.516, allocations: 3.25 kB / 0.5675 GB, free: 76.45 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.278e-05/1.516, allocations: 11.25 kB / 0.5675 GB, free: 76.45 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01882/1.535, allocations: 6.668 MB / 0.574 GB, free: 73.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-05/1.535, allocations: 3.656 kB / 0.574 GB, free: 73.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002538/1.537, allocations: 286.3 kB / 0.5743 GB, free: 73.69 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002013/1.539, allocations: 0.5119 MB / 0.5748 GB, free: 73.52 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004942/1.54, allocations: 63.8 kB / 0.5749 GB, free: 73.49 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01107/1.551, allocations: 7.683 MB / 0.5824 GB, free: 67.91 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.352e-06/1.551, allocations: 7.688 kB / 0.5824 GB, free: 67.91 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01032/1.561, allocations: 4.578 MB / 0.5869 GB, free: 65.8 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002405/1.564, allocations: 0.6273 MB / 0.5875 GB, free: 65.43 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001136/1.565, allocations: 72.22 kB / 0.5875 GB, free: 65.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004232/1.569, allocations: 362 kB / 0.5879 GB, free: 65.38 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001098/1.57, allocations: 265.4 kB / 0.5881 GB, free: 65.33 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000209/1.571, allocations: 53.58 kB / 0.5882 GB, free: 65.32 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004451/1.575, allocations: 1.797 MB / 0.5899 GB, free: 64.63 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.92e-07/1.575, allocations: 0 / 0.5899 GB, free: 64.63 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008141/1.583, allocations: 1.213 MB / 0.5911 GB, free: 64.51 MB / 426.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,rootMeanSquareVoltage.mean.y,meanCurrent.y,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_n.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_n.idealThyristor[3].off,rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[1].off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (143): * Single equations (assignments): 131 * 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%) 12,(1,100.0%) 4} * Non-linear torn systems: 1 {6 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.01136/1.595, allocations: 5.963 MB / 0.5969 GB, free: 61.34 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01234/1.607, allocations: 5.269 MB / 0.6021 GB, free: 56.75 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.328e-05/1.607, allocations: 384 / 0.6021 GB, free: 56.75 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004809/1.612, allocations: 2.059 MB / 0.6041 GB, free: 54.94 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005365/1.617, allocations: 0.6089 MB / 0.6047 GB, free: 54.46 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02103/1.639, allocations: 6.69 MB / 0.6112 GB, free: 48.77 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003668/1.642, allocations: 2.486 MB / 0.6137 GB, free: 46.81 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.007477/1.65, allocations: 1.491 MB / 0.6151 GB, free: 45.88 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002757/1.653, allocations: 1.197 MB / 0.6163 GB, free: 44.78 MB / 426.7 MB Notification: Performance of SimCode: time 2.144e-06/1.653, allocations: 0 / 0.6163 GB, free: 44.78 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6098/2.263, allocations: 77.45 MB / 0.6919 GB, free: 90.07 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002343/2.263, allocations: 237.3 kB / 0.6922 GB, free: 89.74 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.846/8.109, allocations: 0 / 0.6922 GB, free: 89.74 MB / 426.7 MB