Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_R,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_ThyristorBridge2mPulse_R",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.867/1.867, allocations: 194.9 MB / 208 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.401e-05/3.41e-05, allocations: 4 kB / 255.5 MB, free: 2.59 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09321/0.09327, allocations: 44.51 MB / 300 MB, free: 6.02 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4224/0.5158, allocations: 86.79 MB / 386.8 MB, free: 12.36 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003144/0.5162, allocations: 89.09 kB / 386.9 MB, free: 12.36 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1428/0.659, allocations: 35.48 MB / 422.4 MB, free: 1.422 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.475e-06/0.6591, allocations: 0 / 422.4 MB, free: 1.422 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001994/0.6593, allocations: 50.38 kB / 422.4 MB, free: 1.41 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.007501/0.6668, allocations: 1.935 MB / 424.3 MB, free: 220 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.572e-05/0.6669, allocations: 11.75 kB / 424.4 MB, free: 216 kB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008662/0.6678, allocations: 252.4 kB / 424.6 MB, free: 124 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008248/0.6686, allocations: 220.5 kB / 424.8 MB, free: 12 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01017/0.6788, allocations: 2.047 MB / 426.9 MB, free: 15.22 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001852/0.6791, allocations: 132.8 kB / 427 MB, free: 15.21 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005233/0.6796, allocations: 170.9 kB / 427.2 MB, free: 15.21 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00705/0.6867, allocations: 2.306 MB / 429.5 MB, free: 14.61 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.243e-05/0.6868, allocations: 7.891 kB / 429.5 MB, free: 14.6 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002546/0.6871, allocations: 68.81 kB / 429.5 MB, free: 14.6 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001038/0.6872, allocations: 72.17 kB / 429.6 MB, free: 14.59 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004525/0.6917, allocations: 1.855 MB / 431.5 MB, free: 14.39 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01729/0.709, allocations: 6.747 MB / 438.2 MB, free: 10.01 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004983/0.7141, allocations: 1.669 MB / 439.9 MB, free: 8.328 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003209/0.7173, allocations: 1.128 MB / 441 MB, free: 7.199 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001014/0.7175, allocations: 12.94 kB / 441 MB, free: 7.188 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002143/0.7196, allocations: 0.8505 MB / 441.9 MB, free: 6.32 MB / 330.7 MB Notification: Performance of pre-optimization done (n=120): time 4.589e-06/0.7197, allocations: 3.938 kB / 441.9 MB, free: 6.316 MB / 330.7 MB Notification: Performance of matching and sorting (n=120): time 0.004622/0.7243, allocations: 1.64 MB / 443.5 MB, free: 4.664 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001266/0.7245, allocations: 149.5 kB / 443.7 MB, free: 4.488 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002569/0.7271, allocations: 1.034 MB / 444.7 MB, free: 3.434 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003576/0.7274, allocations: 73.69 kB / 444.8 MB, free: 3.355 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001/0.7285, allocations: 0.7443 MB / 445.5 MB, free: 2.609 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005875/0.7291, allocations: 354.2 kB / 445.9 MB, free: 2.273 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001153/0.7292, allocations: 24 kB / 445.9 MB, free: 2.25 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001999/0.7294, allocations: 361.9 kB / 446.2 MB, free: 1.891 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001661/0.7311, allocations: 0.6273 MB / 446.9 MB, free: 1.266 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00187/0.733, allocations: 0.8848 MB / 447.8 MB, free: 288 kB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001705/0.7347, allocations: 0.6763 MB / 448.4 MB, free: 15.61 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.826e-06/0.7347, allocations: 0 / 448.4 MB, free: 15.61 MB / 346.7 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.004809/0.7395, allocations: 1.906 MB / 450.3 MB, free: 13.69 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001076/0.7407, allocations: 2.447 MB / 452.8 MB, free: 11.05 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.915e-05/0.7407, allocations: 4 kB / 452.8 MB, free: 11.05 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002145/0.7428, allocations: 0.5237 MB / 453.3 MB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001313/0.7442, allocations: 163.7 kB / 453.5 MB, free: 10.36 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01224/0.7564, allocations: 5.492 MB / 459 MB, free: 4.742 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001887/0.7584, allocations: 191 kB / 459.1 MB, free: 4.555 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001781/0.7586, allocations: 47.98 kB / 459.2 MB, free: 4.508 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/0.7586, allocations: 6.031 kB / 459.2 MB, free: 4.504 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004618/0.7632, allocations: 1.761 MB / 461 MB, free: 2.738 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.171e-05/0.7633, allocations: 4 kB / 461 MB, free: 2.734 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001966/0.7653, allocations: 0.521 MB / 461.5 MB, free: 2.211 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001229/0.7665, allocations: 155.7 kB / 461.6 MB, free: 2.059 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01226/0.7788, allocations: 5.503 MB / 467.1 MB, free: 12.42 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001822/0.7807, allocations: 171.1 kB / 467.3 MB, free: 12.25 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001827/0.7809, allocations: 44 kB / 467.4 MB, free: 12.21 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.0005352/0.7814, allocations: 237.3 kB / 467.6 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004286/0.7819, allocations: 122.5 kB / 467.7 MB, free: 11.84 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005464/0.7824, allocations: 168.5 kB / 467.9 MB, free: 11.68 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-05/0.7825, allocations: 15.95 kB / 467.9 MB, free: 11.66 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.436e-06/0.7825, allocations: 0 / 467.9 MB, free: 11.66 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.824e-05/0.7825, allocations: 7.969 kB / 467.9 MB, free: 11.65 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009809/0.7923, allocations: 3.649 MB / 471.5 MB, free: 7.965 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.989e-06/0.7924, allocations: 0 / 471.5 MB, free: 7.965 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007865/0.7932, allocations: 87.88 kB / 471.6 MB, free: 7.879 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002303/0.7955, allocations: 488.5 kB / 472.1 MB, free: 7.398 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002194/0.7958, allocations: 27.98 kB / 472.1 MB, free: 7.371 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01199/0.8078, allocations: 5.425 MB / 477.6 MB, free: 1.812 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.8078, allocations: 0 / 477.6 MB, free: 1.812 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005973/0.8138, allocations: 2.515 MB / 480.1 MB, free: 15.29 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001084/0.815, allocations: 363.2 kB / 480.4 MB, free: 14.91 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003168/0.8153, allocations: 51.88 kB / 480.5 MB, free: 14.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001278/0.8166, allocations: 103.9 kB / 480.6 MB, free: 14.76 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007786/0.8174, allocations: 232.6 kB / 480.8 MB, free: 14.53 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001148/0.8175, allocations: 35.98 kB / 480.8 MB, free: 14.49 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001838/0.8194, allocations: 0.7726 MB / 481.6 MB, free: 13.71 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.8194, allocations: 4 kB / 481.6 MB, free: 13.7 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003307/0.8227, allocations: 0.845 MB / 482.5 MB, free: 12.86 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.006377/0.8291, allocations: 3.161 MB / 485.6 MB, free: 9.668 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.007709/0.8369, allocations: 2.954 MB / 488.6 MB, free: 6.695 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.737e-06/0.8369, allocations: 0 / 488.6 MB, free: 6.695 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002787/0.8397, allocations: 1.018 MB / 489.6 MB, free: 5.668 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002437/0.8422, allocations: 315.7 kB / 489.9 MB, free: 5.363 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009864/0.8521, allocations: 3.246 MB / 493.2 MB, free: 2.059 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002044/0.8542, allocations: 1.725 MB / 494.9 MB, free: 308 kB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002811/0.857, allocations: 0.5763 MB / 495.5 MB, free: 15.72 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001317/0.8584, allocations: 0.5891 MB / 496 MB, free: 15.13 MB / 394.7 MB Notification: Performance of SimCode: time 1.172e-06/0.8584, allocations: 0 / 496 MB, free: 15.13 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4587/1.317, allocations: 42.95 MB / 0.5264 GB, free: 120.9 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002525/1.317, allocations: 228.5 kB / 0.5266 GB, free: 120.6 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.238/5.555, allocations: 3.938 kB / 0.5266 GB, free: 120.6 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_R_res.mat does not exist to compare? outputFormat=mat