Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_DC_Drive",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.983/1.983, allocations: 194.9 MB / 208 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.32e-05/3.324e-05, allocations: 4 kB / 255.5 MB, free: 2.598 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0982/0.09827, allocations: 44.5 MB / 300 MB, free: 6.035 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4364/0.5347, allocations: 100.5 MB / 400.5 MB, free: 12.21 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003124/0.5351, allocations: 90.66 kB / 400.6 MB, free: 12.2 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1469/0.682, allocations: 36.28 MB / 436.9 MB, free: 11.87 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.176e-06/0.6821, allocations: 0 / 436.9 MB, free: 11.87 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001836/0.6823, allocations: 32 kB / 436.9 MB, free: 11.84 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.006882/0.6892, allocations: 1.73 MB / 438.6 MB, free: 10.18 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.181e-05/0.6893, allocations: 8.031 kB / 438.6 MB, free: 10.17 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007525/0.69, allocations: 221.9 kB / 438.8 MB, free: 10.03 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001166/0.6912, allocations: 241.6 kB / 439.1 MB, free: 9.793 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004493/0.6957, allocations: 1.276 MB / 440.4 MB, free: 8.789 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001507/0.6959, allocations: 109 kB / 440.5 MB, free: 8.727 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004658/0.6964, allocations: 153 kB / 440.6 MB, free: 8.625 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004332/0.7008, allocations: 1.485 MB / 442.1 MB, free: 7.578 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.459e-05/0.7009, allocations: 6.719 kB / 442.1 MB, free: 7.574 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002261/0.7011, allocations: 65.94 kB / 442.2 MB, free: 7.555 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.347e-05/0.7012, allocations: 43.97 kB / 442.2 MB, free: 7.512 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003321/0.7045, allocations: 1.125 MB / 443.3 MB, free: 6.785 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01531/0.7199, allocations: 6.394 MB / 449.7 MB, free: 1.594 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002989/0.7229, allocations: 1.008 MB / 450.7 MB, free: 0.7539 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001797/0.7248, allocations: 0.5797 MB / 451.3 MB, free: 180 kB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.961e-05/0.7249, allocations: 16.78 kB / 451.3 MB, free: 164 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00152/0.7264, allocations: 0.5441 MB / 451.9 MB, free: 15.59 MB / 346.7 MB Notification: Performance of pre-optimization done (n=92): time 4.117e-06/0.7264, allocations: 0 / 451.9 MB, free: 15.59 MB / 346.7 MB Notification: Performance of matching and sorting (n=95): time 0.006903/0.7333, allocations: 2.389 MB / 454.3 MB, free: 13.13 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001355/0.7335, allocations: 171 kB / 454.4 MB, free: 12.93 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002758/0.7363, allocations: 1.141 MB / 455.6 MB, free: 11.78 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002619/0.7366, allocations: 49.7 kB / 455.6 MB, free: 11.72 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001016/0.7376, allocations: 0.7678 MB / 456.4 MB, free: 10.95 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004777/0.7381, allocations: 322.1 kB / 456.7 MB, free: 10.64 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001063/0.7382, allocations: 24 kB / 456.7 MB, free: 10.62 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002079/0.7384, allocations: 357.9 kB / 457.1 MB, free: 10.26 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001152/0.7396, allocations: 418.5 kB / 457.5 MB, free: 9.852 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00161/0.7412, allocations: 0.8152 MB / 458.3 MB, free: 8.844 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001426/0.7427, allocations: 0.5044 MB / 458.8 MB, free: 8.34 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.327e-05/0.7427, allocations: 4 kB / 458.8 MB, free: 8.336 MB / 346.7 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.004392/0.7471, allocations: 1.519 MB / 460.3 MB, free: 6.785 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002441/0.7496, allocations: 5.1 MB / 465.4 MB, free: 1.336 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.33e-05/0.7497, allocations: 12 kB / 465.4 MB, free: 1.324 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001131/0.7509, allocations: 221.6 kB / 465.7 MB, free: 1.102 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002271/0.7532, allocations: 311.5 kB / 466 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006358/0.7595, allocations: 3.912 MB / 469.9 MB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002532/0.7621, allocations: 171.8 kB / 470 MB, free: 12.46 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003165/0.7625, allocations: 52 kB / 470.1 MB, free: 12.41 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.7625, allocations: 7.125 kB / 470.1 MB, free: 12.4 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003993/0.7665, allocations: 1.382 MB / 471.5 MB, free: 11 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.285e-05/0.7666, allocations: 15.95 kB / 471.5 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009524/0.7676, allocations: 218 kB / 471.7 MB, free: 10.76 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002279/0.7699, allocations: 299.5 kB / 472 MB, free: 10.47 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006308/0.7763, allocations: 3.916 MB / 475.9 MB, free: 6.285 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002327/0.7786, allocations: 155.9 kB / 476.1 MB, free: 6.133 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001705/0.7788, allocations: 55.98 kB / 476.1 MB, free: 6.078 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.0004568/0.7793, allocations: 204.7 kB / 476.3 MB, free: 5.871 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003753/0.7797, allocations: 142.3 kB / 476.5 MB, free: 5.73 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003426/0.7831, allocations: 1.201 MB / 477.7 MB, free: 4.496 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.687e-05/0.7832, allocations: 8 kB / 477.7 MB, free: 4.488 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.047e-05/0.7832, allocations: 7.984 kB / 477.7 MB, free: 4.48 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.881e-05/0.7833, allocations: 7.938 kB / 477.7 MB, free: 4.473 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007621/0.7909, allocations: 2.716 MB / 480.4 MB, free: 1.672 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.455e-05/0.791, allocations: 4 kB / 480.4 MB, free: 1.668 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001441/0.7924, allocations: 160 kB / 480.6 MB, free: 1.512 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000954/0.7934, allocations: 203.7 kB / 480.8 MB, free: 1.309 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001672/0.7936, allocations: 31.98 kB / 480.8 MB, free: 1.277 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006095/0.7997, allocations: 3.805 MB / 484.6 MB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.408e-06/0.7998, allocations: 7.969 kB / 484.6 MB, free: 13.2 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004671/0.8044, allocations: 1.828 MB / 486.4 MB, free: 11.28 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001187/0.8057, allocations: 331.2 kB / 486.8 MB, free: 10.94 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003415/0.806, allocations: 35.88 kB / 486.8 MB, free: 10.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001704/0.8078, allocations: 135.8 kB / 486.9 MB, free: 10.77 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004123/0.8082, allocations: 100.7 kB / 487 MB, free: 10.67 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.776e-05/0.8083, allocations: 31.98 kB / 487.1 MB, free: 10.64 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002205/0.8105, allocations: 0.8545 MB / 487.9 MB, free: 9.781 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.8106, allocations: 0 / 487.9 MB, free: 9.781 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004298/0.8149, allocations: 0.6405 MB / 488.5 MB, free: 9.141 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.00578/0.8207, allocations: 3.09 MB / 491.6 MB, free: 5.988 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005978/0.8268, allocations: 2.273 MB / 493.9 MB, free: 3.68 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.027e-05/0.8268, allocations: 1.188 kB / 493.9 MB, free: 3.68 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002422/0.8293, allocations: 0.8416 MB / 494.8 MB, free: 2.82 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002673/0.832, allocations: 293.2 kB / 495 MB, free: 2.535 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01032/0.8424, allocations: 2.746 MB / 497.8 MB, free: 15.71 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001536/0.8439, allocations: 1.339 MB / 499.1 MB, free: 14.35 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002847/0.8468, allocations: 434.9 kB / 499.5 MB, free: 13.92 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001273/0.8482, allocations: 0.5774 MB / 0.4884 GB, free: 13.34 MB / 394.7 MB Notification: Performance of SimCode: time 1.693e-06/0.8482, allocations: 0 / 0.4884 GB, free: 13.34 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4177/1.266, allocations: 37.59 MB / 0.5251 GB, free: 113.1 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002142/1.266, allocations: 234.6 kB / 0.5253 GB, free: 112.7 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.35/5.617, allocations: 3.938 kB / 0.5253 GB, free: 112.7 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive_res.mat does not exist to compare? outputFormat=mat