Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2mPulse.ThyristorCenterTap2mPulse_R,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTap2mPulse_ThyristorCenterTap2mPulse_R",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.138/2.138, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.56e-05/2.571e-05, allocations: 4 kB / 249.8 MB, free: 14.79 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3101/0.3102, allocations: 44.49 MB / 294.2 MB, free: 14.36 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.224/0.5343, allocations: 85.36 MB / 379.6 MB, free: 12.46 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000347/0.5347, allocations: 91.94 kB / 379.7 MB, free: 12.37 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1489/0.6836, allocations: 35.08 MB / 414.8 MB, free: 9.031 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.675e-06/0.6836, allocations: 0 / 414.8 MB, free: 9.031 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002563/0.6839, allocations: 55.94 kB / 414.8 MB, free: 8.977 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 434 * Number of variables: 434 Notification: Performance of Generate backend data structure: time 0.007642/0.6916, allocations: 1.961 MB / 416.8 MB, free: 6.953 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.649e-05/0.6916, allocations: 8.031 kB / 416.8 MB, free: 6.945 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00119/0.6928, allocations: 225.4 kB / 417 MB, free: 6.723 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007811/0.7007, allocations: 1.956 MB / 419 MB, free: 4.711 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001592/0.7009, allocations: 64 kB / 419 MB, free: 4.648 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006276/0.7015, allocations: 99.91 kB / 419.1 MB, free: 4.551 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006/0.7076, allocations: 1.85 MB / 421 MB, free: 2.699 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006763/0.7144, allocations: 2.082 MB / 423.1 MB, free: 0.5391 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.096e-05/0.7145, allocations: 0 / 423.1 MB, free: 0.5391 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002259/0.7147, allocations: 7.984 kB / 423.1 MB, free: 0.5312 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001308/0.7149, allocations: 79.33 kB / 423.2 MB, free: 464 kB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.278/0.9929, allocations: 6.822 MB / 430 MB, free: 93.92 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006912/0.9999, allocations: 1.552 MB / 431.5 MB, free: 93.88 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003389/1.003, allocations: 0.8662 MB / 432.4 MB, free: 93.86 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001869/1.004, allocations: 11.27 kB / 432.4 MB, free: 93.86 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003069/1.007, allocations: 0.8003 MB / 433.2 MB, free: 93.77 MB / 362.7 MB Notification: Performance of pre-optimization done (n=111): time 8.466e-06/1.007, allocations: 4.062 kB / 433.2 MB, free: 93.77 MB / 362.7 MB Notification: Performance of matching and sorting (n=111): time 0.005413/1.012, allocations: 1.405 MB / 434.6 MB, free: 93.63 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.722e-05/1.012, allocations: 125.4 kB / 434.7 MB, free: 93.51 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003073/1.015, allocations: 0.9601 MB / 435.7 MB, free: 93.36 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003987/1.016, allocations: 47.91 kB / 435.7 MB, free: 93.32 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001302/1.017, allocations: 0.7639 MB / 436.5 MB, free: 93.06 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007301/1.018, allocations: 317.3 kB / 436.8 MB, free: 92.91 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001366/1.018, allocations: 0 / 436.8 MB, free: 92.91 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001607/1.018, allocations: 350.5 kB / 437.2 MB, free: 92.6 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001919/1.02, allocations: 0.5579 MB / 437.7 MB, free: 92.45 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002245/1.023, allocations: 0.766 MB / 438.5 MB, free: 92.01 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001988/1.025, allocations: 0.5805 MB / 439.1 MB, free: 91.8 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.122e-05/1.025, allocations: 0 / 439.1 MB, free: 91.8 MB / 362.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.006035/1.031, allocations: 1.601 MB / 440.7 MB, free: 91.2 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006176/1.031, allocations: 1.927 MB / 442.6 MB, free: 89.17 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.94e-05/1.031, allocations: 3.75 kB / 442.6 MB, free: 89.17 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002524/1.034, allocations: 428.6 kB / 443 MB, free: 89.04 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002169/1.036, allocations: 173.7 kB / 443.2 MB, free: 89.03 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008145/1.044, allocations: 4.284 MB / 447.5 MB, free: 86.48 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001742/1.046, allocations: 150.1 kB / 447.6 MB, free: 86.47 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001679/1.046, allocations: 41.28 kB / 447.7 MB, free: 86.46 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.318e-05/1.046, allocations: 3.906 kB / 447.7 MB, free: 86.46 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003186/1.05, allocations: 1.449 MB / 449.1 MB, free: 85.96 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.03e-05/1.05, allocations: 3.969 kB / 449.1 MB, free: 85.96 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001376/1.051, allocations: 425.9 kB / 449.5 MB, free: 85.82 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001319/1.053, allocations: 170 kB / 449.7 MB, free: 85.82 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007572/1.06, allocations: 4.284 MB / 454 MB, free: 83.26 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00169/1.062, allocations: 130.6 kB / 454.1 MB, free: 83.25 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002023/1.062, allocations: 43.5 kB / 454.1 MB, free: 83.24 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 57 ($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,rectifier.andCondition_p[1].y,rectifier.andCondition_p[2].y,rectifier.andCondition_p[3].y,rectifier.andCondition_n[1].y,rectifier.andCondition_n[2].y,rectifier.andCondition_n[3].y,$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,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 (117): * Single equations (assignments): 116 * 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 22} Notification: Performance of prepare postOptimizeDAE: time 0.0004348/1.063, allocations: 181.5 kB / 454.3 MB, free: 83.11 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003193/1.066, allocations: 1.401 MB / 455.7 MB, free: 82.57 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004511/1.066, allocations: 122.1 kB / 455.8 MB, free: 82.51 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004677/1.067, allocations: 144.9 kB / 456 MB, free: 82.42 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.293e-05/1.067, allocations: 11.5 kB / 456 MB, free: 82.42 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/1.067, allocations: 3.031 kB / 456 MB, free: 82.42 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.38e-05/1.067, allocations: 3.797 kB / 456 MB, free: 82.42 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007589/1.074, allocations: 3.232 MB / 459.2 MB, free: 81.12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.081e-05/1.074, allocations: 0 / 459.2 MB, free: 81.12 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000937/1.075, allocations: 115.7 kB / 459.4 MB, free: 81.11 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001283/1.077, allocations: 395.1 kB / 459.7 MB, free: 80.98 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001237/1.077, allocations: 10.97 kB / 459.7 MB, free: 80.98 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006815/1.084, allocations: 4.025 MB / 463.8 MB, free: 78.58 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.64e-06/1.084, allocations: 0 / 463.8 MB, free: 78.58 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004713/1.088, allocations: 2.369 MB / 466.1 MB, free: 77.45 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009709/1.089, allocations: 351.2 kB / 466.5 MB, free: 77.12 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00033/1.09, allocations: 15.47 kB / 466.5 MB, free: 77.11 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001297/1.091, allocations: 95.23 kB / 466.6 MB, free: 77.05 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007549/1.092, allocations: 226.9 kB / 466.8 MB, free: 76.91 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001026/1.092, allocations: 31.7 kB / 466.8 MB, free: 76.89 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001353/1.093, allocations: 0.7114 MB / 467.6 MB, free: 76.25 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.62e-07/1.093, allocations: 0 / 467.6 MB, free: 76.25 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002702/1.096, allocations: 0.7742 MB / 468.3 MB, free: 75.47 MB / 362.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: 42 (pulse2m.twomPulse.negativeThreshold[2].y,pulse2m.twomPulse.positiveThreshold[2].y,pulse2m.twomPulse.negativeThreshold[3].y,pulse2m.twomPulse.positiveThreshold[3].y,pulse2m.twomPulse.negativeThreshold[1].y,pulse2m.twomPulse.positiveThreshold[1].y,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,rectifier.andCondition_p[1].y,rectifier.andCondition_p[2].y,rectifier.andCondition_p[3].y,rectifier.andCondition_n[1].y,rectifier.andCondition_n[2].y,rectifier.andCondition_n[3].y,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,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: 9 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.thyristor_n.idealThyristor[2].off,rectifier.thyristor_n.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[2].off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 74 * 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 22} Notification: Performance of Backend phase and start with SimCode phase: time 0.005032/1.101, allocations: 2.987 MB / 471.3 MB, free: 72.79 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.005707/1.107, allocations: 2.658 MB / 474 MB, free: 70.41 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.792e-06/1.107, allocations: 0 / 474 MB, free: 70.41 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002101/1.109, allocations: 0.948 MB / 474.9 MB, free: 69.57 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00209/1.111, allocations: 245.2 kB / 475.2 MB, free: 69.39 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01003/1.121, allocations: 3.487 MB / 478.7 MB, free: 66.39 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001566/1.123, allocations: 1.742 MB / 480.4 MB, free: 64.95 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.002712/1.126, allocations: 0.5663 MB / 481 MB, free: 64.6 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001246/1.127, allocations: 0.6066 MB / 481.6 MB, free: 64.04 MB / 362.7 MB Notification: Performance of SimCode: time 1.673e-06/1.127, allocations: 0 / 481.6 MB, free: 64.04 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1117/1.239, allocations: 36.66 MB / 0.5061 GB, free: 28.02 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002713/1.239, allocations: 198.5 kB / 0.5063 GB, free: 27.74 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.08/5.319, allocations: 0 / 0.5063 GB, free: 27.74 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2mPulse.ThyristorCenterTap2mPulse_R_res.mat does not exist to compare? outputFormat=mat