Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.ThyristorCenterTapmPulse_R,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTapmPulse_ThyristorCenterTapmPulse_R",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.015/2.015, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.149e-05/3.153e-05, allocations: 4 kB / 249.7 MB, free: 15.17 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3507/0.3508, allocations: 44.5 MB / 294.2 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2179/0.5688, allocations: 84.08 MB / 378.3 MB, free: 13.86 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003408/0.5692, allocations: 91.94 kB / 378.4 MB, free: 13.77 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1319/0.7012, allocations: 27.56 MB / 406 MB, free: 2.023 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.7012, allocations: 0 / 406 MB, free: 2.023 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001972/0.7015, allocations: 35.94 kB / 406 MB, free: 1.988 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 318 * Number of variables: 318 Notification: Performance of Generate backend data structure: time 0.007096/0.7086, allocations: 1.502 MB / 407.5 MB, free: 420 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.526e-05/0.7087, allocations: 8.031 kB / 407.5 MB, free: 412 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009346/0.7096, allocations: 162.2 kB / 407.7 MB, free: 248 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008469/0.7181, allocations: 1.62 MB / 409.3 MB, free: 14.58 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000131/0.7183, allocations: 47.98 kB / 409.3 MB, free: 14.53 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004202/0.7187, allocations: 72 kB / 409.4 MB, free: 14.46 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003643/0.7224, allocations: 1.25 MB / 410.7 MB, free: 13.21 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005596/0.728, allocations: 1.479 MB / 412.1 MB, free: 11.66 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.323e-05/0.7282, allocations: 4 kB / 412.1 MB, free: 11.65 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002394/0.7284, allocations: 4 kB / 412.1 MB, free: 11.65 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001563/0.7286, allocations: 50.45 kB / 412.2 MB, free: 11.6 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.022/0.7506, allocations: 4.614 MB / 416.8 MB, free: 6.867 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003922/0.7546, allocations: 0.99 MB / 417.8 MB, free: 5.859 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01007/0.7647, allocations: 0.5222 MB / 418.3 MB, free: 5.332 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001036/0.7649, allocations: 8.547 kB / 418.3 MB, free: 5.324 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001879/0.7668, allocations: 0.5587 MB / 418.9 MB, free: 4.746 MB / 362.7 MB Notification: Performance of pre-optimization done (n=79): time 5.48e-06/0.7668, allocations: 0 / 418.9 MB, free: 4.746 MB / 362.7 MB Notification: Performance of matching and sorting (n=79): time 0.007711/0.7745, allocations: 0.9293 MB / 419.8 MB, free: 3.805 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000141/0.7747, allocations: 149.3 kB / 420 MB, free: 3.629 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00206/0.7768, allocations: 0.6752 MB / 420.6 MB, free: 2.945 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002557/0.7771, allocations: 41.69 kB / 420.7 MB, free: 2.898 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009094/0.778, allocations: 0.5912 MB / 421.3 MB, free: 2.301 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004712/0.7785, allocations: 217 kB / 421.5 MB, free: 2.086 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.9e-05/0.7786, allocations: 0 / 421.5 MB, free: 2.086 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002338/0.7789, allocations: 350.8 kB / 421.8 MB, free: 1.734 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002997/0.7819, allocations: 390.4 kB / 422.2 MB, free: 1.352 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00126/0.7832, allocations: 0.5954 MB / 422.8 MB, free: 0.6602 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001009/0.7842, allocations: 420.2 kB / 423.2 MB, free: 256 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.236e-06/0.7843, allocations: 0 / 423.2 MB, free: 256 kB / 362.7 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.2732/1.057, allocations: 1.047 MB / 424.3 MB, free: 99.94 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006345/1.058, allocations: 2.529 MB / 426.8 MB, free: 97.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.025e-05/1.058, allocations: 6.406 kB / 426.8 MB, free: 97.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001101/1.059, allocations: 225.3 kB / 427 MB, free: 97.31 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001081/1.06, allocations: 145 kB / 427.1 MB, free: 97.31 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004766/1.065, allocations: 2.822 MB / 430 MB, free: 96.05 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001391/1.067, allocations: 133.8 kB / 430.1 MB, free: 96.05 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001308/1.067, allocations: 35.09 kB / 430.1 MB, free: 96.05 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/1.067, allocations: 11.75 kB / 430.1 MB, free: 96.05 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002434/1.069, allocations: 0.9799 MB / 431.1 MB, free: 96.02 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.377e-05/1.069, allocations: 8.047 kB / 431.1 MB, free: 96.02 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007277/1.07, allocations: 232.1 kB / 431.4 MB, free: 96.02 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001034/1.071, allocations: 130.6 kB / 431.5 MB, free: 96.02 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004629/1.076, allocations: 2.85 MB / 434.3 MB, free: 94.75 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001012/1.077, allocations: 112 kB / 434.4 MB, free: 94.75 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001056/1.077, allocations: 38.75 kB / 434.5 MB, free: 94.75 MB / 362.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 (101): * Single equations (assignments): 100 * 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 12} Notification: Performance of prepare postOptimizeDAE: time 0.0003883/1.077, allocations: 171.7 kB / 434.7 MB, free: 94.63 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002412/1.08, allocations: 0.9321 MB / 435.6 MB, free: 94.55 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003179/1.08, allocations: 92.25 kB / 435.7 MB, free: 94.51 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003288/1.081, allocations: 97.14 kB / 435.8 MB, free: 94.5 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.448e-05/1.081, allocations: 11.77 kB / 435.8 MB, free: 94.5 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/1.081, allocations: 1.125 kB / 435.8 MB, free: 94.5 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.352e-05/1.081, allocations: 8.875 kB / 435.8 MB, free: 94.49 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006023/1.087, allocations: 2.385 MB / 438.2 MB, free: 94.04 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.925e-06/1.087, allocations: 0 / 438.2 MB, free: 94.04 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006315/1.087, allocations: 76.3 kB / 438.3 MB, free: 94.04 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006817/1.088, allocations: 199.1 kB / 438.4 MB, free: 93.98 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001004/1.088, allocations: 7.844 kB / 438.5 MB, free: 93.97 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003679/1.092, allocations: 2.547 MB / 441 MB, free: 92.22 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.581e-06/1.092, allocations: 3.75 kB / 441 MB, free: 92.22 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003315/1.095, allocations: 1.583 MB / 442.6 MB, free: 91.52 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007159/1.096, allocations: 256.7 kB / 442.8 MB, free: 91.34 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002834/1.096, allocations: 11.38 kB / 442.8 MB, free: 91.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009769/1.097, allocations: 80.14 kB / 442.9 MB, free: 91.34 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004854/1.098, allocations: 141.5 kB / 443.1 MB, free: 91.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.332e-05/1.098, allocations: 26.94 kB / 443.1 MB, free: 91.31 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0009017/1.099, allocations: 0.4933 MB / 443.6 MB, free: 91.08 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.323e-06/1.099, allocations: 0 / 443.6 MB, free: 91.08 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002366/1.101, allocations: 0.5307 MB / 444.1 MB, free: 91.02 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x) * 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 (66): * Single equations (assignments): 56 * 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 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.003593/1.105, allocations: 2.242 MB / 446.4 MB, free: 89.71 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003914/1.109, allocations: 1.766 MB / 448.1 MB, free: 88.97 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.498e-06/1.109, allocations: 448 / 448.1 MB, free: 88.97 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001348/1.11, allocations: 0.63 MB / 448.8 MB, free: 88.68 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001511/1.112, allocations: 165 kB / 448.9 MB, free: 88.63 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006159/1.118, allocations: 2.128 MB / 451 MB, free: 87.79 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001073/1.119, allocations: 1.366 MB / 452.4 MB, free: 86.97 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009144/1.12, allocations: 425.8 kB / 452.8 MB, free: 86.64 MB / 362.7 MB Notification: Performance of SimCode: time 1.072e-06/1.12, allocations: 3.312 kB / 452.8 MB, free: 86.64 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.122/4.242, allocations: 27.03 MB / 479.9 MB, free: 67.14 MB / 362.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_R_res.mat does not exist to compare? outputFormat=mat