Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_R,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_ThyristorBridge2mPulse_R",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.249/2.249, allocations: 195 MB / 202.9 MB, free: 6.723 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.605e-05/2.619e-05, allocations: 3.094 kB / 249.8 MB, free: 5.27 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09776/0.09781, allocations: 44.51 MB / 294.3 MB, free: 10.63 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4389/0.5368, allocations: 86.13 MB / 380.4 MB, free: 6.133 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003188/0.5372, allocations: 83.89 kB / 380.5 MB, free: 6.121 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1507/0.6879, allocations: 35.12 MB / 415.6 MB, free: 4.641 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.454e-06/0.688, allocations: 0 / 415.6 MB, free: 4.641 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002821/0.6883, allocations: 51.94 kB / 415.7 MB, free: 4.59 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 436 * Number of variables: 436 Notification: Performance of Generate backend data structure: time 0.007916/0.6962, allocations: 1.929 MB / 417.6 MB, free: 2.738 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.194e-05/0.6963, allocations: 12.03 kB / 417.6 MB, free: 2.727 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00114/0.6975, allocations: 217.4 kB / 417.8 MB, free: 2.512 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009078/0.7066, allocations: 2.05 MB / 419.9 MB, free: 0.957 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001532/0.7068, allocations: 63.3 kB / 420 MB, free: 0.8984 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007144/0.7075, allocations: 100 kB / 420.1 MB, free: 0.8008 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006164/0.7137, allocations: 1.792 MB / 421.8 MB, free: 15.72 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007102/0.7208, allocations: 2.089 MB / 423.9 MB, free: 14.2 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.684e-05/0.721, allocations: 0 / 423.9 MB, free: 14.2 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002466/0.7212, allocations: 5.562 kB / 423.9 MB, free: 14.2 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001435/0.7214, allocations: 72.73 kB / 424 MB, free: 14.12 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0216/0.743, allocations: 6.396 MB / 430.4 MB, free: 8.055 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005335/0.7484, allocations: 1.617 MB / 432 MB, free: 6.434 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002818/0.7512, allocations: 1.004 MB / 433 MB, free: 5.434 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001495/0.7514, allocations: 13.31 kB / 433 MB, free: 5.422 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002278/0.7537, allocations: 0.8238 MB / 433.9 MB, free: 4.574 MB / 330.7 MB Notification: Performance of pre-optimization done (n=120): time 5.23e-06/0.7538, allocations: 0 / 433.9 MB, free: 4.574 MB / 330.7 MB Notification: Performance of matching and sorting (n=120): time 0.004878/0.7587, allocations: 1.565 MB / 435.4 MB, free: 3 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001265/0.7588, allocations: 149.8 kB / 435.6 MB, free: 2.824 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002459/0.7613, allocations: 0.8968 MB / 436.5 MB, free: 1.906 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003819/0.7617, allocations: 53.67 kB / 436.5 MB, free: 1.848 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001154/0.7629, allocations: 0.7435 MB / 437.3 MB, free: 1.102 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006837/0.7636, allocations: 338.2 kB / 437.6 MB, free: 0.7734 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001122/0.7637, allocations: 0 / 437.6 MB, free: 0.7734 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002169/0.764, allocations: 361.9 kB / 438 MB, free: 424 kB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001792/0.7658, allocations: 0.6077 MB / 438.6 MB, free: 15.8 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002175/0.768, allocations: 0.8652 MB / 439.4 MB, free: 14.85 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001927/0.77, allocations: 0.6427 MB / 440.1 MB, free: 14.2 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.742e-05/0.77, allocations: 0 / 440.1 MB, free: 14.2 MB / 346.7 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.005976/0.776, allocations: 1.788 MB / 441.9 MB, free: 12.4 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001559/0.7776, allocations: 2.447 MB / 444.3 MB, free: 9.766 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.275e-05/0.7777, allocations: 4 kB / 444.3 MB, free: 9.762 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003169/0.7809, allocations: 0.5159 MB / 444.8 MB, free: 9.242 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001865/0.7828, allocations: 167.7 kB / 445 MB, free: 9.078 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03096/0.8138, allocations: 5.39 MB / 450.4 MB, free: 3.57 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002807/0.8167, allocations: 155.1 kB / 450.5 MB, free: 3.418 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002417/0.8169, allocations: 52.05 kB / 450.6 MB, free: 3.367 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.901e-05/0.817, allocations: 4 kB / 450.6 MB, free: 3.363 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006761/0.8238, allocations: 1.628 MB / 452.2 MB, free: 1.73 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.213e-05/0.8238, allocations: 12.08 kB / 452.2 MB, free: 1.719 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003102/0.827, allocations: 0.5052 MB / 452.7 MB, free: 1.211 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001829/0.8288, allocations: 163.7 kB / 452.9 MB, free: 1.051 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01987/0.8487, allocations: 5.402 MB / 458.3 MB, free: 11.54 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002624/0.8514, allocations: 135.3 kB / 458.4 MB, free: 11.4 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002837/0.8517, allocations: 48.05 kB / 458.5 MB, free: 11.36 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * 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,pulse2m.twomPulse.positiveThreshold[1].y,pulse2m.twomPulse.positiveThreshold[2].y,pulse2m.twomPulse.positiveThreshold[3].y,pulse2m.twomPulse.negativeThreshold[1].y,pulse2m.twomPulse.negativeThreshold[2].y,pulse2m.twomPulse.negativeThreshold[3].y,$PRE.pulse2m.twomPulse.timerPositive[1].entryTime,pulse2m.twomPulse.timerPositive[1].entryTime,$PRE.pulse2m.twomPulse.timerPositive[2].entryTime,pulse2m.twomPulse.timerPositive[2].entryTime,$PRE.pulse2m.twomPulse.timerPositive[3].entryTime,pulse2m.twomPulse.timerPositive[3].entryTime,$PRE.pulse2m.twomPulse.timerNegative[1].entryTime,pulse2m.twomPulse.timerNegative[1].entryTime,$PRE.pulse2m.twomPulse.timerNegative[2].entryTime,pulse2m.twomPulse.timerNegative[2].entryTime,$PRE.pulse2m.twomPulse.timerNegative[3].entryTime,pulse2m.twomPulse.timerNegative[3].entryTime,pulse2m.fire_p[1],pulse2m.fire_p[2],pulse2m.fire_p[3],pulse2m.fire_n[1],pulse2m.fire_n[2],pulse2m.fire_n[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * Single equations (assignments): 128 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 32} Notification: Performance of prepare postOptimizeDAE: time 0.0008133/0.8525, allocations: 200.9 kB / 458.7 MB, free: 11.14 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006103/0.8587, allocations: 1.554 MB / 460.2 MB, free: 9.578 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005699/0.8593, allocations: 122.5 kB / 460.3 MB, free: 9.457 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006736/0.86, allocations: 143.6 kB / 460.5 MB, free: 9.309 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-05/0.86, allocations: 15.94 kB / 460.5 MB, free: 9.293 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.672e-06/0.86, allocations: 0 / 460.5 MB, free: 9.293 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.487e-05/0.8601, allocations: 7.969 kB / 460.5 MB, free: 9.285 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0115/0.8716, allocations: 3.321 MB / 463.8 MB, free: 5.941 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-05/0.8717, allocations: 3.953 kB / 463.8 MB, free: 5.938 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001009/0.8727, allocations: 83.83 kB / 463.9 MB, free: 5.855 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002305/0.875, allocations: 492.6 kB / 464.4 MB, free: 5.371 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002194/0.8753, allocations: 11.98 kB / 464.4 MB, free: 5.359 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01429/0.8896, allocations: 5.264 MB / 469.7 MB, free: 15.98 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.031e-06/0.8896, allocations: 0 / 469.7 MB, free: 15.98 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006606/0.8963, allocations: 2.425 MB / 472.1 MB, free: 13.54 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001364/0.8977, allocations: 343.4 kB / 472.4 MB, free: 13.18 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004653/0.8982, allocations: 27.97 kB / 472.5 MB, free: 13.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001428/0.8996, allocations: 87.89 kB / 472.5 MB, free: 13.07 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009788/0.9006, allocations: 229 kB / 472.8 MB, free: 12.85 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001357/0.9008, allocations: 35.98 kB / 472.8 MB, free: 12.81 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001685/0.9025, allocations: 0.6564 MB / 473.5 MB, free: 12.14 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.9025, allocations: 0 / 473.5 MB, free: 12.14 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003666/0.9062, allocations: 0.7668 MB / 474.2 MB, free: 11.38 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x) * Number of discrete variables: 48 (pulse2m.twomPulse.negativeThreshold[2].y,pulse2m.twomPulse.positiveThreshold[2].y,pulse2m.twomPulse.negativeThreshold[1].y,pulse2m.twomPulse.positiveThreshold[1].y,pulse2m.twomPulse.negativeThreshold[3].y,pulse2m.twomPulse.positiveThreshold[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,pulse2m.twomPulse.timerPositive[1].entryTime,pulse2m.twomPulse.timerPositive[2].entryTime,pulse2m.twomPulse.timerPositive[3].entryTime,pulse2m.twomPulse.timerNegative[1].entryTime,pulse2m.twomPulse.timerNegative[2].entryTime,pulse2m.twomPulse.timerNegative[3].entryTime,pulse2m.fire_p[1],pulse2m.fire_p[2],pulse2m.fire_p[3],pulse2m.fire_n[1],pulse2m.fire_n[2],pulse2m.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_n.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[1].off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (83): * Single equations (assignments): 73 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 32} Notification: Performance of Backend phase and start with SimCode phase: time 0.007018/0.9133, allocations: 3.062 MB / 477.3 MB, free: 8.285 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.008217/0.9215, allocations: 2.885 MB / 480.2 MB, free: 5.379 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.334e-06/0.9216, allocations: 0 / 480.2 MB, free: 5.379 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002859/0.9245, allocations: 0.9988 MB / 481.2 MB, free: 4.371 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002504/0.927, allocations: 263.4 kB / 481.4 MB, free: 4.113 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01118/0.9382, allocations: 3.141 MB / 484.6 MB, free: 0.918 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00239/0.9406, allocations: 1.713 MB / 486.3 MB, free: 15.17 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.003052/0.9437, allocations: 0.5444 MB / 486.8 MB, free: 14.62 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00158/0.9454, allocations: 0.5774 MB / 487.4 MB, free: 14.05 MB / 394.7 MB Notification: Performance of SimCode: time 1.223e-06/0.9454, allocations: 0 / 487.4 MB, free: 14.05 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4117/1.357, allocations: 39.44 MB / 0.5145 GB, free: 108 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002764/1.357, allocations: 195.6 kB / 0.5147 GB, free: 107.7 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 4.573/5.93, allocations: 6.75 kB / 0.5147 GB, free: 107.7 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_R_res.mat does not exist to compare? outputFormat=mat