Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.ThyristorCenterTapmPulse_RLV,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTapmPulse_ThyristorCenterTapmPulse_RLV",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.962/1.962, allocations: 194.9 MB / 208.4 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.522e-05/3.536e-05, allocations: 8 kB / 255.5 MB, free: 3.078 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09779/0.09787, allocations: 44.49 MB / 300 MB, free: 6.527 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4772/0.5751, allocations: 85.32 MB / 385.3 MB, free: 12.38 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003129/0.5755, allocations: 87.7 kB / 385.4 MB, free: 12.38 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.109/0.6845, allocations: 28.45 MB / 413.8 MB, free: 4.754 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.476e-06/0.6846, allocations: 0 / 413.8 MB, free: 4.754 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.000147/0.6847, allocations: 34.84 kB / 413.9 MB, free: 4.746 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: 330 * Number of variables: 330 Notification: Performance of Generate backend data structure: time 0.005347/0.6901, allocations: 1.534 MB / 415.4 MB, free: 3.746 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.316e-05/0.6902, allocations: 11.31 kB / 415.4 MB, free: 3.746 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006734/0.6909, allocations: 199.8 kB / 415.6 MB, free: 3.672 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000498/0.6914, allocations: 171.7 kB / 415.8 MB, free: 3.582 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005986/0.6974, allocations: 1.631 MB / 417.4 MB, free: 2.914 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000151/0.6976, allocations: 107.6 kB / 417.5 MB, free: 2.902 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004855/0.6981, allocations: 124.4 kB / 417.6 MB, free: 2.902 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004897/0.703, allocations: 1.668 MB / 419.3 MB, free: 2.457 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.977e-05/0.7031, allocations: 3.906 kB / 419.3 MB, free: 2.453 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002014/0.7033, allocations: 56.83 kB / 419.4 MB, free: 2.453 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.008e-05/0.7034, allocations: 60.83 kB / 419.4 MB, free: 2.441 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004167/0.7076, allocations: 1.314 MB / 420.7 MB, free: 2.301 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01391/0.7216, allocations: 4.992 MB / 425.7 MB, free: 56 kB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003424/0.7251, allocations: 1.058 MB / 426.8 MB, free: 15.91 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00151/0.7267, allocations: 0.5704 MB / 427.3 MB, free: 15.83 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.918e-05/0.7268, allocations: 7.594 kB / 427.4 MB, free: 15.83 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001497/0.7283, allocations: 0.5917 MB / 427.9 MB, free: 15.62 MB / 330.7 MB Notification: Performance of pre-optimization done (n=82): time 5.43e-06/0.7284, allocations: 3.781 kB / 427.9 MB, free: 15.62 MB / 330.7 MB Notification: Performance of matching and sorting (n=82): time 0.002916/0.7313, allocations: 0.9862 MB / 428.9 MB, free: 15.38 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001316/0.7315, allocations: 152.3 kB / 429.1 MB, free: 15.21 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001821/0.7333, allocations: 0.7865 MB / 429.9 MB, free: 14.99 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000272/0.7336, allocations: 55.75 kB / 429.9 MB, free: 14.95 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000775/0.7344, allocations: 0.5931 MB / 430.5 MB, free: 14.56 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000518/0.735, allocations: 231.5 kB / 430.7 MB, free: 14.41 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.669e-05/0.7351, allocations: 18.69 kB / 430.8 MB, free: 14.41 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001976/0.7353, allocations: 350.4 kB / 431.1 MB, free: 14.09 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001044/0.7363, allocations: 407.8 kB / 431.5 MB, free: 14.04 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001313/0.7377, allocations: 0.6306 MB / 432.1 MB, free: 13.71 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001163/0.7389, allocations: 434.3 kB / 432.6 MB, free: 13.62 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.323e-05/0.739, allocations: 3.875 kB / 432.6 MB, free: 13.62 MB / 330.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.003019/0.742, allocations: 1.14 MB / 433.7 MB, free: 13.12 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00134/0.7434, allocations: 2.536 MB / 436.2 MB, free: 10.4 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.876e-05/0.7435, allocations: 7.719 kB / 436.2 MB, free: 10.4 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009459/0.7444, allocations: 220.4 kB / 436.5 MB, free: 10.29 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001171/0.7456, allocations: 148.6 kB / 436.6 MB, free: 10.25 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005279/0.751, allocations: 2.767 MB / 439.4 MB, free: 8.008 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001564/0.7526, allocations: 153 kB / 439.5 MB, free: 7.93 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002019/0.7528, allocations: 40.72 kB / 439.6 MB, free: 7.918 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.583e-05/0.7529, allocations: 4 kB / 439.6 MB, free: 7.918 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003194/0.7561, allocations: 1.093 MB / 440.7 MB, free: 6.828 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.499e-05/0.7562, allocations: 7.953 kB / 440.7 MB, free: 6.82 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007537/0.7569, allocations: 221 kB / 440.9 MB, free: 6.602 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001172/0.7581, allocations: 151.7 kB / 441 MB, free: 6.453 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005326/0.7635, allocations: 2.791 MB / 443.8 MB, free: 3.523 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001179/0.7647, allocations: 135.4 kB / 444 MB, free: 3.391 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001278/0.7649, allocations: 36 kB / 444 MB, free: 3.355 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 48 ($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,$PRE.rectifier.thyristor.idealThyristor[1].off,rectifier.thyristor.idealThyristor[1].off,$PRE.rectifier.thyristor.idealThyristor[2].off,rectifier.thyristor.idealThyristor[2].off,$PRE.rectifier.thyristor.idealThyristor[3].off,rectifier.thyristor.idealThyristor[3].off,pulsem.twomPulse.positiveThreshold[1].y,pulsem.twomPulse.positiveThreshold[2].y,pulsem.twomPulse.positiveThreshold[3].y,pulsem.twomPulse.negativeThreshold[1].y,pulsem.twomPulse.negativeThreshold[2].y,pulsem.twomPulse.negativeThreshold[3].y,$PRE.pulsem.twomPulse.timerPositive[1].entryTime,pulsem.twomPulse.timerPositive[1].entryTime,$PRE.pulsem.twomPulse.timerPositive[2].entryTime,pulsem.twomPulse.timerPositive[2].entryTime,$PRE.pulsem.twomPulse.timerPositive[3].entryTime,pulsem.twomPulse.timerPositive[3].entryTime,$PRE.pulsem.twomPulse.timerNegative[1].entryTime,pulsem.twomPulse.timerNegative[1].entryTime,$PRE.pulsem.twomPulse.timerNegative[2].entryTime,pulsem.twomPulse.timerNegative[2].entryTime,$PRE.pulsem.twomPulse.timerNegative[3].entryTime,pulsem.twomPulse.timerNegative[3].entryTime,pulsem.fire_p[1],pulsem.fire_p[2],pulsem.fire_p[3],pulsem.fire_n[1],pulsem.fire_n[2],pulsem.fire_n[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (107): * Single equations (assignments): 106 * 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 {3 10} Notification: Performance of prepare postOptimizeDAE: time 0.0004644/0.7654, allocations: 204.7 kB / 444.2 MB, free: 3.152 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003691/0.7658, allocations: 90.88 kB / 444.3 MB, free: 3.062 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004266/0.7662, allocations: 121.3 kB / 444.4 MB, free: 2.938 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.478e-05/0.7662, allocations: 8 kB / 444.4 MB, free: 2.93 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.052e-05/0.7663, allocations: 0 / 444.4 MB, free: 2.93 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.349e-05/0.7663, allocations: 3.984 kB / 444.4 MB, free: 2.926 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007612/0.7739, allocations: 2.554 MB / 447 MB, free: 332 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.847e-06/0.774, allocations: 0 / 447 MB, free: 332 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008257/0.7748, allocations: 87.89 kB / 447 MB, free: 244 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008067/0.7756, allocations: 200.8 kB / 447.2 MB, free: 40 kB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001788/0.7758, allocations: 16 kB / 447.3 MB, free: 24 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005239/0.7811, allocations: 2.717 MB / 450 MB, free: 13.17 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.7812, allocations: 3.938 kB / 450 MB, free: 13.17 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004461/0.7856, allocations: 1.649 MB / 451.6 MB, free: 11.48 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009454/0.7866, allocations: 271.7 kB / 451.9 MB, free: 11.19 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003147/0.787, allocations: 20 kB / 451.9 MB, free: 11.17 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00119/0.7882, allocations: 91.91 kB / 452 MB, free: 11.08 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000572/0.7888, allocations: 140.6 kB / 452.1 MB, free: 10.95 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.539e-05/0.7889, allocations: 23.98 kB / 452.2 MB, free: 10.92 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001535/0.7905, allocations: 0.5889 MB / 452.8 MB, free: 10.34 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.21e-07/0.7905, allocations: 0 / 452.8 MB, free: 10.34 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00316/0.7937, allocations: 0.5877 MB / 453.3 MB, free: 9.746 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,inductor.i) * Number of discrete variables: 36 (pulsem.twomPulse.negativeThreshold[2].y,pulsem.twomPulse.positiveThreshold[2].y,pulsem.twomPulse.negativeThreshold[1].y,pulsem.twomPulse.positiveThreshold[1].y,pulsem.twomPulse.negativeThreshold[3].y,pulsem.twomPulse.positiveThreshold[3].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.thyristor.idealThyristor[1].off,rectifier.thyristor.idealThyristor[2].off,rectifier.thyristor.idealThyristor[3].off,meanVoltage.y,rootMeanSquareVoltage.mean.y,meanCurrent.y,pulsem.twomPulse.timerPositive[1].entryTime,pulsem.twomPulse.timerPositive[2].entryTime,pulsem.twomPulse.timerPositive[3].entryTime,pulsem.twomPulse.timerNegative[1].entryTime,pulsem.twomPulse.timerNegative[2].entryTime,pulsem.twomPulse.timerNegative[3].entryTime,pulsem.fire_p[1],pulsem.fire_p[2],pulsem.fire_p[3],pulsem.fire_n[1],pulsem.fire_n[2],pulsem.fire_n[3]) * Number of discrete states: 6 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.thyristor.idealThyristor[3].off,rectifier.thyristor.idealThyristor[1].off,rectifier.thyristor.idealThyristor[2].off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 60 * 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 {3 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.005198/0.7989, allocations: 2.391 MB / 455.7 MB, free: 7.32 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.007378/0.8064, allocations: 1.817 MB / 457.5 MB, free: 5.48 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.444e-05/0.8065, allocations: 448 / 457.5 MB, free: 5.48 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00277/0.8093, allocations: 0.6744 MB / 458.2 MB, free: 4.797 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002437/0.8118, allocations: 195.3 kB / 458.4 MB, free: 4.602 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01129/0.8231, allocations: 2.323 MB / 460.7 MB, free: 2.23 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002641/0.8258, allocations: 1.382 MB / 462.1 MB, free: 0.8164 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001776/0.8277, allocations: 459.3 kB / 462.6 MB, free: 376 kB / 346.7 MB Notification: Performance of SimCode: time 2.204e-06/0.8277, allocations: 0 / 462.6 MB, free: 376 kB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.616/4.444, allocations: 28.02 MB / 490.6 MB, free: 4.348 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.ThyristorCenterTapmPulse_RLV_res.mat does not exist to compare? outputFormat=mat