Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_R,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_ThyristorBridge2mPulse_R",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.085/2.085, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.188e-05/3.192e-05, allocations: 4 kB / 255.5 MB, free: 3.082 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09397/0.09404, allocations: 44.51 MB / 300 MB, free: 6.516 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4773/0.5714, allocations: 86.8 MB / 386.8 MB, free: 12.51 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003299/0.5718, allocations: 84.55 kB / 386.9 MB, free: 12.51 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1524/0.7242, allocations: 35.48 MB / 422.3 MB, free: 1.652 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.7243, allocations: 0 / 422.3 MB, free: 1.652 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.000215/0.7246, allocations: 50.62 kB / 422.4 MB, free: 1.641 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.006839/0.7314, allocations: 1.932 MB / 424.3 MB, free: 456 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.527e-05/0.7315, allocations: 9.594 kB / 424.3 MB, free: 456 kB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008784/0.7324, allocations: 260.8 kB / 424.6 MB, free: 364 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007245/0.7331, allocations: 221.7 kB / 424.8 MB, free: 248 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008056/0.7412, allocations: 2.045 MB / 426.8 MB, free: 15.44 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000221/0.7415, allocations: 131.6 kB / 427 MB, free: 15.43 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007096/0.7422, allocations: 170 kB / 427.1 MB, free: 15.43 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006664/0.7489, allocations: 2.305 MB / 429.4 MB, free: 14.83 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.173e-05/0.749, allocations: 7.719 kB / 429.5 MB, free: 14.83 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002806/0.7493, allocations: 71.75 kB / 429.5 MB, free: 14.83 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001221/0.7495, allocations: 74.48 kB / 429.6 MB, free: 14.82 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005581/0.7551, allocations: 1.858 MB / 431.5 MB, free: 14.61 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01904/0.7741, allocations: 6.743 MB / 438.2 MB, free: 10.39 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004916/0.7791, allocations: 1.664 MB / 439.9 MB, free: 8.719 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003224/0.7824, allocations: 1.124 MB / 441 MB, free: 7.594 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.747e-05/0.7825, allocations: 13 kB / 441 MB, free: 7.582 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00208/0.7846, allocations: 0.8545 MB / 441.8 MB, free: 6.711 MB / 330.7 MB Notification: Performance of pre-optimization done (n=120): time 6.512e-06/0.7846, allocations: 0 / 441.8 MB, free: 6.711 MB / 330.7 MB Notification: Performance of matching and sorting (n=120): time 0.004815/0.7895, allocations: 1.636 MB / 443.5 MB, free: 5.062 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001274/0.7896, allocations: 153.5 kB / 443.6 MB, free: 4.883 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002602/0.7922, allocations: 1.034 MB / 444.7 MB, free: 3.828 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004143/0.7927, allocations: 73.67 kB / 444.7 MB, free: 3.75 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001011/0.7937, allocations: 0.7312 MB / 445.5 MB, free: 3.02 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006698/0.7944, allocations: 349.6 kB / 445.8 MB, free: 2.688 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001215/0.7946, allocations: 24 kB / 445.8 MB, free: 2.664 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002196/0.7948, allocations: 366.8 kB / 446.2 MB, free: 2.297 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00169/0.7965, allocations: 0.6273 MB / 446.8 MB, free: 1.672 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002091/0.7986, allocations: 0.8887 MB / 447.7 MB, free: 0.6836 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001872/0.8005, allocations: 0.6802 MB / 448.4 MB, free: 8 kB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.196e-05/0.8006, allocations: 4 kB / 448.4 MB, free: 4 kB / 330.7 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.00493/0.8055, allocations: 1.825 MB / 450.2 MB, free: 14.16 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001154/0.8067, allocations: 2.453 MB / 452.7 MB, free: 11.52 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.586e-05/0.8068, allocations: 8 kB / 452.7 MB, free: 11.52 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00219/0.809, allocations: 0.5159 MB / 453.2 MB, free: 11 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001353/0.8104, allocations: 167.7 kB / 453.4 MB, free: 10.83 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0127/0.8231, allocations: 5.487 MB / 458.8 MB, free: 5.215 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001988/0.8251, allocations: 195 kB / 459 MB, free: 5.023 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002259/0.8254, allocations: 48 kB / 459.1 MB, free: 4.977 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.665e-05/0.8254, allocations: 4 kB / 459.1 MB, free: 4.973 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004735/0.8302, allocations: 1.761 MB / 460.9 MB, free: 3.207 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.263e-05/0.8303, allocations: 4 kB / 460.9 MB, free: 3.203 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001862/0.8321, allocations: 0.521 MB / 461.4 MB, free: 2.68 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001306/0.8335, allocations: 159.7 kB / 461.5 MB, free: 2.523 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01261/0.8461, allocations: 5.553 MB / 467.1 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001463/0.8476, allocations: 155.3 kB / 467.2 MB, free: 12.69 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000152/0.8478, allocations: 55.98 kB / 467.3 MB, free: 12.63 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.0005771/0.8484, allocations: 229.3 kB / 467.5 MB, free: 12.39 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000514/0.8489, allocations: 130.4 kB / 467.6 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006331/0.8496, allocations: 164.5 kB / 467.8 MB, free: 12.1 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.085e-05/0.8496, allocations: 19.95 kB / 467.8 MB, free: 12.08 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.636e-06/0.8496, allocations: 0 / 467.8 MB, free: 12.08 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.9e-05/0.8497, allocations: 7.969 kB / 467.8 MB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01062/0.8603, allocations: 3.652 MB / 471.5 MB, free: 8.383 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.055e-05/0.8604, allocations: 0 / 471.5 MB, free: 8.383 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000845/0.8612, allocations: 87.83 kB / 471.6 MB, free: 8.297 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001991/0.8632, allocations: 484.6 kB / 472 MB, free: 7.82 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002326/0.8635, allocations: 27.98 kB / 472.1 MB, free: 7.793 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0125/0.876, allocations: 5.417 MB / 477.5 MB, free: 2.246 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.8761, allocations: 0 / 477.5 MB, free: 2.246 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006302/0.8824, allocations: 2.522 MB / 480 MB, free: 15.71 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001233/0.8837, allocations: 359.3 kB / 480.4 MB, free: 15.34 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003843/0.8841, allocations: 43.94 kB / 480.4 MB, free: 15.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001395/0.8855, allocations: 107.9 kB / 480.5 MB, free: 15.19 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008158/0.8863, allocations: 236.6 kB / 480.7 MB, free: 14.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001152/0.8865, allocations: 35.98 kB / 480.8 MB, free: 14.92 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001871/0.8883, allocations: 0.7726 MB / 481.5 MB, free: 14.14 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.31e-07/0.8884, allocations: 4 kB / 481.5 MB, free: 14.13 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003622/0.892, allocations: 0.8449 MB / 482.4 MB, free: 13.29 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.006709/0.8988, allocations: 3.153 MB / 485.5 MB, free: 10.11 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.008323/0.9072, allocations: 2.924 MB / 488.5 MB, free: 7.168 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.237e-05/0.9072, allocations: 4.5 kB / 488.5 MB, free: 7.164 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002972/0.9102, allocations: 1.014 MB / 489.5 MB, free: 6.137 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002718/0.913, allocations: 308.1 kB / 489.8 MB, free: 5.832 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0105/0.9235, allocations: 3.191 MB / 493 MB, free: 2.582 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001994/0.9256, allocations: 1.676 MB / 494.7 MB, free: 0.875 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001414/0.927, allocations: 0.6047 MB / 495.3 MB, free: 276 kB / 378.7 MB Notification: Performance of SimCode: time 1.382e-06/0.9271, allocations: 0 / 495.3 MB, free: 276 kB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.541/4.469, allocations: 39.36 MB / 0.5221 GB, free: 124 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_R_res.mat does not exist to compare? outputFormat=mat