Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2mPulse.ThyristorCenterTap2mPulse_RLV,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTap2mPulse_ThyristorCenterTap2mPulse_RLV",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.196/2.196, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.4e-05/3.413e-05, allocations: 0 / 249.7 MB, free: 14.8 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3422/0.3423, allocations: 44.5 MB / 294.2 MB, free: 14.33 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1552/0.4975, allocations: 85.92 MB / 380.2 MB, free: 11.9 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003465/0.4979, allocations: 91.94 kB / 380.3 MB, free: 11.81 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.153/0.651, allocations: 35.68 MB / 415.9 MB, free: 7.867 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.695e-06/0.6511, allocations: 4 kB / 415.9 MB, free: 7.863 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002281/0.6513, allocations: 43.94 kB / 416 MB, free: 7.82 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: 446 * Number of variables: 446 Notification: Performance of Generate backend data structure: time 0.007714/0.659, allocations: 2.007 MB / 418 MB, free: 5.754 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.875e-05/0.6591, allocations: 12.03 kB / 418 MB, free: 5.742 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001172/0.6603, allocations: 229.3 kB / 418.2 MB, free: 5.516 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0079/0.6682, allocations: 1.968 MB / 420.2 MB, free: 3.492 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001563/0.6684, allocations: 59.98 kB / 420.3 MB, free: 3.434 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006888/0.6691, allocations: 111.9 kB / 420.4 MB, free: 3.324 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005821/0.675, allocations: 1.865 MB / 422.2 MB, free: 1.457 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2741/0.9491, allocations: 2.105 MB / 424.3 MB, free: 93.46 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.221e-05/0.9493, allocations: 5.688 kB / 424.3 MB, free: 93.46 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002418/0.9495, allocations: 2.719 kB / 424.3 MB, free: 93.46 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001916/0.9497, allocations: 80.34 kB / 424.4 MB, free: 93.45 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02068/0.9704, allocations: 6.954 MB / 431.4 MB, free: 91.81 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004539/0.975, allocations: 1.58 MB / 433 MB, free: 91.77 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002243/0.9773, allocations: 0.8724 MB / 433.8 MB, free: 91.75 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001573/0.9775, allocations: 11.25 kB / 433.8 MB, free: 91.75 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001948/0.9795, allocations: 0.8037 MB / 434.6 MB, free: 91.67 MB / 362.7 MB Notification: Performance of pre-optimization done (n=114): time 4.95e-06/0.9795, allocations: 0 / 434.6 MB, free: 91.67 MB / 362.7 MB Notification: Performance of matching and sorting (n=114): time 0.003993/0.9835, allocations: 1.417 MB / 436.1 MB, free: 91.54 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001107/0.9837, allocations: 129.2 kB / 436.2 MB, free: 91.41 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003394/0.9871, allocations: 0.9671 MB / 437.1 MB, free: 91.26 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004159/0.9876, allocations: 50.66 kB / 437.2 MB, free: 91.23 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00126/0.9889, allocations: 0.7711 MB / 438 MB, free: 90.96 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007388/0.9897, allocations: 326.3 kB / 438.3 MB, free: 90.76 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001501/0.9899, allocations: 1.641 kB / 438.3 MB, free: 90.76 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001687/0.9901, allocations: 356.6 kB / 438.6 MB, free: 90.43 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001411/0.9915, allocations: 0.568 MB / 439.2 MB, free: 90.21 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001452/0.993, allocations: 0.7757 MB / 440 MB, free: 89.77 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001263/0.9943, allocations: 0.5828 MB / 440.6 MB, free: 89.56 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.06e-05/0.9943, allocations: 0 / 440.6 MB, free: 89.56 MB / 362.7 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.003726/0.9981, allocations: 1.623 MB / 442.2 MB, free: 88.96 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000421/0.9985, allocations: 1.919 MB / 444.1 MB, free: 86.93 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.04e-05/0.9986, allocations: 6.188 kB / 444.1 MB, free: 86.93 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001497/1, allocations: 423.1 kB / 444.5 MB, free: 86.79 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001449/1.002, allocations: 181.9 kB / 444.7 MB, free: 86.79 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00774/1.009, allocations: 4.322 MB / 449 MB, free: 84.2 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001786/1.011, allocations: 154.9 kB / 449.2 MB, free: 84.17 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001985/1.011, allocations: 42.84 kB / 449.2 MB, free: 84.16 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.524e-05/1.011, allocations: 3.844 kB / 449.2 MB, free: 84.16 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003587/1.015, allocations: 1.464 MB / 450.7 MB, free: 83.66 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.726e-05/1.015, allocations: 7.656 kB / 450.7 MB, free: 83.66 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001395/1.017, allocations: 414 kB / 451.1 MB, free: 83.52 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001383/1.018, allocations: 175.9 kB / 451.3 MB, free: 83.52 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007542/1.026, allocations: 4.308 MB / 455.6 MB, free: 80.93 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001674/1.027, allocations: 139.5 kB / 455.7 MB, free: 80.89 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001692/1.027, allocations: 45.69 kB / 455.8 MB, free: 80.88 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 (122): * Single equations (assignments): 121 * 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 21} Notification: Performance of prepare postOptimizeDAE: time 0.0004793/1.028, allocations: 181.5 kB / 455.9 MB, free: 80.76 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003159/1.031, allocations: 1.417 MB / 457.4 MB, free: 80.21 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004335/1.032, allocations: 125.5 kB / 457.5 MB, free: 80.15 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005385/1.032, allocations: 150.3 kB / 457.6 MB, free: 80.05 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.345e-05/1.032, allocations: 10.88 kB / 457.6 MB, free: 80.05 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/1.032, allocations: 0 / 457.6 MB, free: 80.05 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.425e-05/1.032, allocations: 7.641 kB / 457.6 MB, free: 80.05 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008583/1.041, allocations: 3.262 MB / 460.9 MB, free: 78.73 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.809e-06/1.041, allocations: 0 / 460.9 MB, free: 78.73 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001097/1.042, allocations: 122.8 kB / 461 MB, free: 78.72 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001303/1.043, allocations: 384 kB / 461.4 MB, free: 78.6 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002163/1.044, allocations: 14.58 kB / 461.4 MB, free: 78.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01023/1.054, allocations: 4.19 MB / 465.6 MB, free: 76.09 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.003e-06/1.054, allocations: 0 / 465.6 MB, free: 76.09 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007315/1.061, allocations: 2.397 MB / 468 MB, free: 75.06 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001409/1.063, allocations: 349.5 kB / 468.3 MB, free: 74.83 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006632/1.063, allocations: 18.66 kB / 468.4 MB, free: 74.82 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00215/1.066, allocations: 89.09 kB / 468.4 MB, free: 74.82 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001106/1.067, allocations: 228.7 kB / 468.7 MB, free: 74.78 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002008/1.067, allocations: 31.67 kB / 468.7 MB, free: 74.77 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002339/1.069, allocations: 0.7303 MB / 469.4 MB, free: 74.45 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.713e-06/1.069, allocations: 0 / 469.4 MB, free: 74.45 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003783/1.073, allocations: 0.7861 MB / 470.2 MB, free: 73.81 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,inductor.i) * 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[1].off,rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_n.idealThyristor[3].off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 78 * 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 21} Notification: Performance of Backend phase and start with SimCode phase: time 0.005252/1.079, allocations: 3.001 MB / 473.2 MB, free: 71.11 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.005968/1.085, allocations: 2.667 MB / 475.9 MB, free: 68.72 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.375e-06/1.085, allocations: 0 / 475.9 MB, free: 68.72 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002155/1.087, allocations: 0.9436 MB / 476.8 MB, free: 67.88 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002942/1.09, allocations: 252.1 kB / 477.1 MB, free: 67.7 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0139/1.104, allocations: 3.29 MB / 480.4 MB, free: 64.88 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003526/1.107, allocations: 1.749 MB / 482.1 MB, free: 63.43 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.004865/1.112, allocations: 0.5697 MB / 482.7 MB, free: 63.07 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001346/1.114, allocations: 0.6203 MB / 483.3 MB, free: 62.5 MB / 362.7 MB Notification: Performance of SimCode: time 1.412e-06/1.114, allocations: 0 / 483.3 MB, free: 62.5 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1079/1.222, allocations: 36.83 MB / 0.5079 GB, free: 26.05 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000285/1.222, allocations: 208.8 kB / 0.5081 GB, free: 25.76 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.125/5.348, allocations: 0 / 0.5081 GB, free: 25.76 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_RLV_res.mat does not exist to compare? outputFormat=mat