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.106/2.106, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.124e-05/3.142e-05, allocations: 4 kB / 255.5 MB, free: 3.062 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1086, allocations: 44.5 MB / 300 MB, free: 6.5 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4801/0.5887, allocations: 100.5 MB / 400.5 MB, free: 12.34 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003313/0.5891, allocations: 89.94 kB / 400.5 MB, free: 12.32 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1483/0.7374, allocations: 36.28 MB / 436.8 MB, free: 12.21 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.655e-06/0.7375, allocations: 4 kB / 436.8 MB, free: 12.21 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002154/0.7377, allocations: 35.91 kB / 436.9 MB, free: 12.18 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.006344/0.7441, allocations: 1.721 MB / 438.6 MB, free: 10.52 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.088e-05/0.7442, allocations: 8.031 kB / 438.6 MB, free: 10.51 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000875/0.745, allocations: 222 kB / 438.8 MB, free: 10.38 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001288/0.7463, allocations: 237.6 kB / 439 MB, free: 10.14 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004952/0.7513, allocations: 1.281 MB / 440.3 MB, free: 9.133 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001598/0.7515, allocations: 115.4 kB / 440.4 MB, free: 9.066 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004972/0.752, allocations: 148.3 kB / 440.6 MB, free: 8.969 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004405/0.7565, allocations: 1.484 MB / 442.1 MB, free: 7.922 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.948e-05/0.7566, allocations: 11.72 kB / 442.1 MB, free: 7.914 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002347/0.7568, allocations: 65.17 kB / 442.1 MB, free: 7.895 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.666e-05/0.7569, allocations: 40 kB / 442.2 MB, free: 7.855 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004269/0.7612, allocations: 1.133 MB / 443.3 MB, free: 7.121 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01715/0.7784, allocations: 6.388 MB / 449.7 MB, free: 1.938 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003163/0.7816, allocations: 0.9997 MB / 450.7 MB, free: 1.133 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001818/0.7835, allocations: 0.5849 MB / 451.3 MB, free: 0.5508 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.127e-05/0.7836, allocations: 12.78 kB / 451.3 MB, free: 0.5391 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001479/0.7851, allocations: 0.5473 MB / 451.8 MB, free: 15.97 MB / 346.7 MB Notification: Performance of pre-optimization done (n=92): time 3.396e-06/0.7851, allocations: 0 / 451.8 MB, free: 15.97 MB / 346.7 MB Notification: Performance of matching and sorting (n=95): time 0.007365/0.7925, allocations: 2.389 MB / 454.2 MB, free: 13.5 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00015/0.7927, allocations: 171 kB / 454.4 MB, free: 13.3 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002988/0.7957, allocations: 1.141 MB / 455.5 MB, free: 12.15 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003122/0.796, allocations: 49.7 kB / 455.6 MB, free: 12.09 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009431/0.797, allocations: 0.7502 MB / 456.3 MB, free: 11.34 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005645/0.7976, allocations: 315.4 kB / 456.6 MB, free: 11.04 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001082/0.7977, allocations: 28 kB / 456.7 MB, free: 11.01 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002332/0.7979, allocations: 362.7 kB / 457 MB, free: 10.65 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001201/0.7992, allocations: 410.5 kB / 457.4 MB, free: 10.25 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001633/0.8008, allocations: 0.8191 MB / 458.2 MB, free: 9.234 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001421/0.8023, allocations: 0.5005 MB / 458.7 MB, free: 8.734 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-05/0.8023, allocations: 8 kB / 458.8 MB, free: 8.727 MB / 346.7 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.003968/0.8063, allocations: 1.437 MB / 460.2 MB, free: 7.258 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002788/0.8091, allocations: 5.054 MB / 465.2 MB, free: 1.812 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.03e-05/0.8092, allocations: 15.98 kB / 465.3 MB, free: 1.797 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001159/0.8104, allocations: 217.7 kB / 465.5 MB, free: 1.578 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002319/0.8127, allocations: 307.5 kB / 465.8 MB, free: 1.277 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006743/0.8195, allocations: 3.913 MB / 469.7 MB, free: 13.1 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002594/0.8221, allocations: 171.8 kB / 469.9 MB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002881/0.8225, allocations: 56 kB / 469.9 MB, free: 12.88 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.669e-05/0.8225, allocations: 4 kB / 469.9 MB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003803/0.8263, allocations: 1.378 MB / 471.3 MB, free: 11.47 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.899e-05/0.8264, allocations: 15.95 kB / 471.3 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008831/0.8273, allocations: 215.1 kB / 471.5 MB, free: 11.24 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002189/0.8295, allocations: 303.5 kB / 471.8 MB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006579/0.8361, allocations: 3.902 MB / 475.7 MB, free: 6.785 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001546/0.8377, allocations: 104 kB / 475.8 MB, free: 6.684 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002303/0.838, allocations: 59.98 kB / 475.9 MB, free: 6.625 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.0005268/0.8385, allocations: 203.7 kB / 476.1 MB, free: 6.422 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005463/0.8391, allocations: 142.3 kB / 476.2 MB, free: 6.281 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003555/0.8426, allocations: 1.204 MB / 477.4 MB, free: 5.035 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.979e-05/0.8427, allocations: 8 kB / 477.4 MB, free: 5.027 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.098e-05/0.8427, allocations: 7.984 kB / 477.4 MB, free: 5.02 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.268e-05/0.8427, allocations: 7.938 kB / 477.4 MB, free: 5.012 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008023/0.8508, allocations: 2.72 MB / 480.2 MB, free: 2.211 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.608e-06/0.8508, allocations: 0 / 480.2 MB, free: 2.211 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001459/0.8523, allocations: 155.8 kB / 480.3 MB, free: 2.059 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009464/0.8533, allocations: 201.7 kB / 480.5 MB, free: 1.855 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001796/0.8535, allocations: 27.98 kB / 480.5 MB, free: 1.828 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006432/0.8599, allocations: 3.81 MB / 484.3 MB, free: 13.76 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.619e-06/0.86, allocations: 0 / 484.3 MB, free: 13.76 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004696/0.8647, allocations: 1.835 MB / 486.2 MB, free: 11.84 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001164/0.8659, allocations: 323.3 kB / 486.5 MB, free: 11.5 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003763/0.8663, allocations: 35.94 kB / 486.5 MB, free: 11.46 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001807/0.8681, allocations: 135.8 kB / 486.7 MB, free: 11.33 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005109/0.8687, allocations: 108.7 kB / 486.8 MB, free: 11.22 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001081/0.8688, allocations: 27.98 kB / 486.8 MB, free: 11.2 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002339/0.8712, allocations: 0.8584 MB / 487.7 MB, free: 10.33 MB / 378.7 MB Notification: Performance of sort global known variables: time 9.21e-07/0.8712, allocations: 0 / 487.7 MB, free: 10.33 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004212/0.8754, allocations: 0.6366 MB / 488.3 MB, free: 9.695 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.006092/0.8816, allocations: 3.084 MB / 491.4 MB, free: 6.535 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005862/0.8875, allocations: 2.236 MB / 493.6 MB, free: 4.27 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.349e-05/0.8875, allocations: 0 / 493.6 MB, free: 4.27 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002348/0.8899, allocations: 0.8306 MB / 494.4 MB, free: 3.422 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002673/0.8926, allocations: 293.3 kB / 494.7 MB, free: 3.133 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009968/0.9026, allocations: 2.763 MB / 497.5 MB, free: 300 kB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001519/0.9042, allocations: 1.329 MB / 498.8 MB, free: 14.93 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001501/0.9057, allocations: 0.6008 MB / 499.4 MB, free: 14.34 MB / 394.7 MB Notification: Performance of SimCode: time 1.884e-06/0.9057, allocations: 0 / 499.4 MB, free: 14.34 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.731/4.637, allocations: 41.4 MB / 0.5281 GB, free: 115.7 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