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.043/2.043, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.478e-05/3.488e-05, allocations: 0 / 255.5 MB, free: 3.078 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1004, allocations: 44.5 MB / 300 MB, free: 6.512 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4158/0.5162, allocations: 84.76 MB / 384.7 MB, free: 12.86 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003122/0.5166, allocations: 88.31 kB / 384.8 MB, free: 12.86 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1052/0.6218, allocations: 27.84 MB / 412.7 MB, free: 5.57 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.6219, allocations: 0 / 412.7 MB, free: 5.57 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001387/0.622, allocations: 34.75 kB / 412.7 MB, free: 5.566 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: 318 * Number of variables: 318 Notification: Performance of Generate backend data structure: time 0.004862/0.6269, allocations: 1.503 MB / 414.2 MB, free: 4.574 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.133e-05/0.627, allocations: 11.47 kB / 414.2 MB, free: 4.574 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006614/0.6277, allocations: 195.5 kB / 414.4 MB, free: 4.5 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005093/0.6282, allocations: 163.7 kB / 414.6 MB, free: 4.418 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00584/0.6341, allocations: 1.609 MB / 416.2 MB, free: 3.754 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000116/0.6342, allocations: 104.6 kB / 416.3 MB, free: 3.746 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003343/0.6346, allocations: 124.9 kB / 416.4 MB, free: 3.746 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004015/0.6386, allocations: 1.632 MB / 418 MB, free: 3.305 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.06e-05/0.6387, allocations: 0 / 418 MB, free: 3.305 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001865/0.6389, allocations: 52.56 kB / 418.1 MB, free: 3.305 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.266e-05/0.639, allocations: 57.05 kB / 418.1 MB, free: 3.293 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003356/0.6424, allocations: 1.298 MB / 419.4 MB, free: 3.148 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01198/0.6544, allocations: 4.852 MB / 424.3 MB, free: 0.9805 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002638/0.6571, allocations: 1.015 MB / 425.3 MB, free: 0.793 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001295/0.6584, allocations: 0.5562 MB / 425.9 MB, free: 0.7148 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.692e-05/0.6585, allocations: 12.25 kB / 425.9 MB, free: 0.7109 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001271/0.6598, allocations: 0.5761 MB / 426.4 MB, free: 0.5039 MB / 314.7 MB Notification: Performance of pre-optimization done (n=79): time 4.338e-06/0.6598, allocations: 0 / 426.4 MB, free: 0.5039 MB / 314.7 MB Notification: Performance of matching and sorting (n=79): time 0.002551/0.6624, allocations: 0.9912 MB / 427.4 MB, free: 260 kB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.114e-05/0.6625, allocations: 156.3 kB / 427.6 MB, free: 92 kB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001678/0.6642, allocations: 0.7639 MB / 428.3 MB, free: 15.87 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002501/0.6645, allocations: 56.91 kB / 428.4 MB, free: 15.84 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000707/0.6652, allocations: 0.5803 MB / 429 MB, free: 15.46 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003861/0.6656, allocations: 230.5 kB / 429.2 MB, free: 15.31 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.523e-05/0.6657, allocations: 19.47 kB / 429.2 MB, free: 15.31 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001747/0.6659, allocations: 345 kB / 429.6 MB, free: 14.98 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000925/0.6668, allocations: 403.9 kB / 430 MB, free: 14.93 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001165/0.668, allocations: 0.6128 MB / 430.6 MB, free: 14.61 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001017/0.6691, allocations: 430.4 kB / 431 MB, free: 14.52 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.081e-05/0.6691, allocations: 4 kB / 431 MB, free: 14.51 MB / 330.7 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.002778/0.6719, allocations: 1.126 MB / 432.1 MB, free: 14.05 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001188/0.6731, allocations: 2.534 MB / 434.7 MB, free: 11.34 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.891e-05/0.6732, allocations: 3.875 kB / 434.7 MB, free: 11.34 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00104/0.6743, allocations: 227.3 kB / 434.9 MB, free: 11.23 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001098/0.6754, allocations: 148 kB / 435 MB, free: 11.18 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005345/0.6808, allocations: 2.904 MB / 437.9 MB, free: 8.855 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001434/0.6822, allocations: 152.7 kB / 438.1 MB, free: 8.777 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001168/0.6824, allocations: 34.72 kB / 438.1 MB, free: 8.77 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.402e-05/0.6824, allocations: 5.656 kB / 438.1 MB, free: 8.77 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00257/0.685, allocations: 1.072 MB / 439.2 MB, free: 8.238 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.966e-05/0.6851, allocations: 7.75 kB / 439.2 MB, free: 8.238 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008045/0.6859, allocations: 224.3 kB / 439.4 MB, free: 8.047 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009816/0.6869, allocations: 135.8 kB / 439.5 MB, free: 7.914 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005521/0.6924, allocations: 2.919 MB / 442.5 MB, free: 4.855 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001084/0.6936, allocations: 139.5 kB / 442.6 MB, free: 4.719 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000101/0.6937, allocations: 36 kB / 442.6 MB, free: 4.684 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 (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.0004055/0.6941, allocations: 200 kB / 442.8 MB, free: 4.488 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003313/0.6944, allocations: 90.92 kB / 442.9 MB, free: 4.398 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003879/0.6948, allocations: 112.9 kB / 443 MB, free: 4.285 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.377e-05/0.6949, allocations: 8 kB / 443 MB, free: 4.277 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.118e-06/0.6949, allocations: 96 / 443 MB, free: 4.277 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.671e-05/0.6949, allocations: 11.97 kB / 443.1 MB, free: 4.266 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007127/0.702, allocations: 2.632 MB / 445.7 MB, free: 1.586 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.568e-06/0.7021, allocations: 0 / 445.7 MB, free: 1.586 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006606/0.7028, allocations: 79.83 kB / 445.8 MB, free: 1.508 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008362/0.7036, allocations: 206.1 kB / 446 MB, free: 1.305 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001295/0.7038, allocations: 12 kB / 446 MB, free: 1.293 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004809/0.7086, allocations: 2.646 MB / 448.6 MB, free: 14.52 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/0.7087, allocations: 4 kB / 448.6 MB, free: 14.52 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00431/0.713, allocations: 1.646 MB / 450.3 MB, free: 12.84 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008392/0.7139, allocations: 263.8 kB / 450.5 MB, free: 12.57 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002476/0.7142, allocations: 27.98 kB / 450.6 MB, free: 12.54 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001017/0.7152, allocations: 87.92 kB / 450.6 MB, free: 12.45 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00054/0.7158, allocations: 140.5 kB / 450.8 MB, free: 12.32 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.541e-05/0.7159, allocations: 24 kB / 450.8 MB, free: 12.29 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.00135/0.7172, allocations: 0.5888 MB / 451.4 MB, free: 11.71 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.61e-07/0.7172, allocations: 0 / 451.4 MB, free: 11.71 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002621/0.7199, allocations: 0.5643 MB / 452 MB, free: 11.14 MB / 346.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.004829/0.7248, allocations: 2.334 MB / 454.3 MB, free: 8.77 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.004721/0.7295, allocations: 1.812 MB / 456.1 MB, free: 6.941 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.09e-05/0.7296, allocations: 448 / 456.1 MB, free: 6.941 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001632/0.7312, allocations: 0.658 MB / 456.8 MB, free: 6.277 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001676/0.7329, allocations: 183.1 kB / 456.9 MB, free: 6.094 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007115/0.7401, allocations: 2.19 MB / 459.1 MB, free: 3.852 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001554/0.7417, allocations: 1.37 MB / 460.5 MB, free: 2.453 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001073/0.7428, allocations: 435.3 kB / 460.9 MB, free: 2.027 MB / 346.7 MB Notification: Performance of SimCode: time 1.283e-06/0.7428, allocations: 0 / 460.9 MB, free: 2.027 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.323/4.066, allocations: 27.43 MB / 488.4 MB, free: 6.594 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_R_res.mat does not exist to compare? outputFormat=mat