Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_DC_Drive",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.052/2.052, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.285e-05/3.294e-05, allocations: 4 kB / 255.4 MB, free: 3.078 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1108, allocations: 44.51 MB / 300 MB, free: 6.508 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4705/0.5814, allocations: 100.5 MB / 400.4 MB, free: 12.41 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003098/0.5818, allocations: 89.75 kB / 400.5 MB, free: 12.4 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1493/0.7311, allocations: 36.29 MB / 436.8 MB, free: 12.29 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.7312, allocations: 0 / 436.8 MB, free: 12.29 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002432/0.7314, allocations: 32 kB / 436.8 MB, free: 12.25 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 365 * Number of variables: 365 Notification: Performance of Generate backend data structure: time 0.006633/0.7381, allocations: 1.731 MB / 438.6 MB, free: 10.59 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.462e-05/0.7382, allocations: 8.031 kB / 438.6 MB, free: 10.58 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009585/0.7391, allocations: 221.2 kB / 438.8 MB, free: 10.45 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001505/0.7407, allocations: 237.6 kB / 439 MB, free: 10.21 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005001/0.7457, allocations: 1.275 MB / 440.3 MB, free: 9.203 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001924/0.746, allocations: 111.8 kB / 440.4 MB, free: 9.141 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000648/0.7466, allocations: 153.5 kB / 440.5 MB, free: 9.039 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005141/0.7518, allocations: 1.509 MB / 442.1 MB, free: 7.969 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001024/0.752, allocations: 3.906 kB / 442.1 MB, free: 7.965 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002372/0.7522, allocations: 66.62 kB / 442.1 MB, free: 7.945 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.351e-05/0.7523, allocations: 32 kB / 442.2 MB, free: 7.914 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004179/0.7565, allocations: 1.151 MB / 443.3 MB, free: 7.16 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01752/0.774, allocations: 6.39 MB / 449.7 MB, free: 1.973 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003365/0.7775, allocations: 1.018 MB / 450.7 MB, free: 1.168 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001966/0.7795, allocations: 0.5822 MB / 451.3 MB, free: 0.582 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001195/0.7797, allocations: 16.78 kB / 451.3 MB, free: 0.5664 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001609/0.7813, allocations: 0.5372 MB / 451.8 MB, free: 8 kB / 330.7 MB Notification: Performance of pre-optimization done (n=92): time 4.719e-06/0.7813, allocations: 0 / 451.8 MB, free: 8 kB / 330.7 MB Notification: Performance of matching and sorting (n=95): time 0.007231/0.7886, allocations: 2.397 MB / 454.2 MB, free: 13.53 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001291/0.7888, allocations: 167 kB / 454.4 MB, free: 13.33 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003175/0.792, allocations: 1.145 MB / 455.6 MB, free: 12.18 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002974/0.7923, allocations: 53.69 kB / 455.6 MB, free: 12.12 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00099/0.7933, allocations: 0.7445 MB / 456.4 MB, free: 11.37 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006354/0.794, allocations: 315.2 kB / 456.7 MB, free: 11.07 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001242/0.7941, allocations: 28 kB / 456.7 MB, free: 11.04 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002031/0.7943, allocations: 366.7 kB / 457 MB, free: 10.67 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001238/0.7956, allocations: 410.5 kB / 457.4 MB, free: 10.27 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001661/0.7973, allocations: 0.8256 MB / 458.3 MB, free: 9.254 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001567/0.7989, allocations: 0.5005 MB / 458.8 MB, free: 8.754 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.656e-05/0.799, allocations: 4 kB / 458.8 MB, free: 8.75 MB / 346.7 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.004233/0.8032, allocations: 1.473 MB / 460.2 MB, free: 7.246 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002161/0.8054, allocations: 5.057 MB / 465.3 MB, free: 1.797 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-05/0.8055, allocations: 16.14 kB / 465.3 MB, free: 1.781 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001137/0.8067, allocations: 217.5 kB / 465.5 MB, free: 1.562 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002288/0.809, allocations: 311.5 kB / 465.8 MB, free: 1.258 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006386/0.8154, allocations: 3.913 MB / 469.7 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002569/0.818, allocations: 175.9 kB / 469.9 MB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003067/0.8184, allocations: 59.94 kB / 470 MB, free: 12.86 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.671e-05/0.8184, allocations: 4.781 kB / 470 MB, free: 12.85 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003969/0.8224, allocations: 1.413 MB / 471.4 MB, free: 11.41 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.216e-05/0.8225, allocations: 15.95 kB / 471.4 MB, free: 11.4 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009015/0.8234, allocations: 213.3 kB / 471.6 MB, free: 11.19 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002249/0.8257, allocations: 303.5 kB / 471.9 MB, free: 10.89 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006133/0.8319, allocations: 3.899 MB / 475.8 MB, free: 6.727 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001402/0.8333, allocations: 112 kB / 475.9 MB, free: 6.617 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001611/0.8335, allocations: 52 kB / 476 MB, free: 6.566 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * Number of states: 0 () * Number of discrete variables: 29 ($PRE.meanVoltage.y,meanVoltage.y,$PRE.meanCurrent.y,meanCurrent.y,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.rootMeanSquareVoltage.mean.y,rootMeanSquareVoltage.mean.y,$whenCondition2,$whenCondition1,rectifier.andCondition_p.y,rectifier.andCondition_n.y,$PRE.rectifier.thyristor_p1.off,rectifier.thyristor_p1.off,$PRE.rectifier.thyristor_p2.off,rectifier.thyristor_p2.off,$PRE.rectifier.thyristor_n1.off,rectifier.thyristor_n1.off,$PRE.rectifier.thyristor_n2.off,rectifier.thyristor_n2.off,pulse2.twoPulse.positiveThreshold[1].y,pulse2.twoPulse.negativeThreshold[1].y,$PRE.pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerPositive[1].entryTime,$PRE.pulse2.twoPulse.timerNegative[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.fire_p,pulse2.fire_n) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (144): * Single equations (assignments): 142 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 1 {4 14} Notification: Performance of prepare postOptimizeDAE: time 0.0004463/0.834, allocations: 192.6 kB / 476.2 MB, free: 6.371 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004819/0.8345, allocations: 146.3 kB / 476.3 MB, free: 6.227 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003465/0.838, allocations: 1.2 MB / 477.5 MB, free: 4.992 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.61e-05/0.838, allocations: 8 kB / 477.5 MB, free: 4.984 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.8381, allocations: 0 / 477.5 MB, free: 4.984 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.908e-05/0.8381, allocations: 12.06 kB / 477.5 MB, free: 4.973 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007405/0.8455, allocations: 2.728 MB / 480.3 MB, free: 2.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.29e-05/0.8456, allocations: 3.984 kB / 480.3 MB, free: 2.156 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001427/0.847, allocations: 156 kB / 480.4 MB, free: 2.004 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000988/0.848, allocations: 197.5 kB / 480.6 MB, free: 1.805 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002242/0.8483, allocations: 27.98 kB / 480.6 MB, free: 1.777 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006118/0.8544, allocations: 3.816 MB / 484.4 MB, free: 13.7 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.367e-06/0.8545, allocations: 7.984 kB / 484.5 MB, free: 13.69 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004564/0.8591, allocations: 1.831 MB / 486.3 MB, free: 11.78 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001189/0.8603, allocations: 327.4 kB / 486.6 MB, free: 11.44 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004308/0.8608, allocations: 35.89 kB / 486.6 MB, free: 11.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001871/0.8627, allocations: 135.8 kB / 486.8 MB, free: 11.27 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004737/0.8632, allocations: 104.6 kB / 486.9 MB, free: 11.17 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001025/0.8633, allocations: 31.98 kB / 486.9 MB, free: 11.14 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002342/0.8657, allocations: 0.8506 MB / 487.8 MB, free: 10.28 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.142e-06/0.8657, allocations: 0 / 487.8 MB, free: 10.28 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004067/0.8698, allocations: 0.6405 MB / 488.4 MB, free: 9.641 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 10 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,pulse2.twoPulse.filter[1].firstOrder.y,pulse2.twoPulse.filter[1].transferFunction[1].x_scaled[1],pulse2.twoPulse.filter[1].transferFunction[2].x_scaled[1],inductor.i,dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,lMains.i) * Number of discrete variables: 20 (pulse2.twoPulse.positiveThreshold[1].y,pulse2.twoPulse.negativeThreshold[1].y,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,rectifier.andCondition_p.y,rectifier.andCondition_n.y,rectifier.thyristor_p1.off,rectifier.thyristor_p2.off,rectifier.thyristor_n1.off,rectifier.thyristor_n2.off,meanVoltage.y,rootMeanSquareVoltage.mean.y,meanCurrent.y,pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.fire_p,pulse2.fire_n) * Number of discrete states: 7 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.thyristor_p2.off,rectifier.thyristor_p1.off,rectifier.thyristor_n1.off,rectifier.thyristor_n2.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 1 {4 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.005783/0.8756, allocations: 3.08 MB / 491.5 MB, free: 6.484 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.006125/0.8818, allocations: 2.313 MB / 493.8 MB, free: 4.129 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.789e-06/0.8819, allocations: 2 kB / 493.8 MB, free: 4.129 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002212/0.8841, allocations: 0.8531 MB / 494.6 MB, free: 3.246 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002526/0.8867, allocations: 296.4 kB / 494.9 MB, free: 2.957 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009762/0.8965, allocations: 2.768 MB / 497.7 MB, free: 112 kB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00149/0.898, allocations: 1.325 MB / 499 MB, free: 14.76 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001525/0.8996, allocations: 0.6047 MB / 499.6 MB, free: 14.16 MB / 394.7 MB Notification: Performance of SimCode: time 1.342e-06/0.8996, allocations: 7.938 kB / 499.6 MB, free: 14.15 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.882/4.781, allocations: 41.52 MB / 0.5285 GB, free: 116.1 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.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive_res.mat does not exist to compare? outputFormat=mat