Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.ThyristorCenterTapmPulse_RLV_Characteristic,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTapmPulse_ThyristorCenterTapmPulse_RLV_Characteristic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.01/2.01, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.228e-05/4.26e-05, allocations: 4 kB / 255.4 MB, free: 3.102 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1063, allocations: 44.51 MB / 300 MB, free: 6.531 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4546/0.561, allocations: 85.52 MB / 385.5 MB, free: 12.35 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003405/0.5614, allocations: 89.47 kB / 385.6 MB, free: 12.35 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1389/0.7003, allocations: 28.57 MB / 414.1 MB, free: 4.625 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.976e-06/0.7004, allocations: 0 / 414.1 MB, free: 4.625 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002204/0.7006, allocations: 39.06 kB / 414.2 MB, free: 4.617 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: 332 * Number of variables: 332 Notification: Performance of Generate backend data structure: time 0.006956/0.7076, allocations: 1.554 MB / 415.7 MB, free: 3.605 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.188e-05/0.7077, allocations: 15.39 kB / 415.7 MB, free: 3.602 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008636/0.7085, allocations: 203.4 kB / 415.9 MB, free: 3.527 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006689/0.7092, allocations: 167.1 kB / 416.1 MB, free: 3.441 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007705/0.717, allocations: 1.626 MB / 417.7 MB, free: 2.773 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002039/0.7172, allocations: 102.8 kB / 417.8 MB, free: 2.766 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007161/0.718, allocations: 127.3 kB / 417.9 MB, free: 2.766 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007022/0.725, allocations: 1.692 MB / 419.6 MB, free: 2.312 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.861e-05/0.7252, allocations: 3.938 kB / 419.6 MB, free: 2.309 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004202/0.7256, allocations: 58.67 kB / 419.7 MB, free: 2.305 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001233/0.7258, allocations: 55.56 kB / 419.8 MB, free: 2.297 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006098/0.7319, allocations: 1.336 MB / 421.1 MB, free: 2.148 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01443/0.7464, allocations: 5.024 MB / 426.1 MB, free: 15.9 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003137/0.7496, allocations: 1.039 MB / 427.1 MB, free: 15.74 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001691/0.7513, allocations: 0.5851 MB / 427.7 MB, free: 15.66 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001172/0.7515, allocations: 19.97 kB / 427.8 MB, free: 15.65 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00162/0.7532, allocations: 0.6014 MB / 428.4 MB, free: 15.44 MB / 330.7 MB Notification: Performance of pre-optimization done (n=85): time 5.089e-06/0.7532, allocations: 0 / 428.4 MB, free: 15.44 MB / 330.7 MB Notification: Performance of matching and sorting (n=85): time 0.002952/0.7562, allocations: 1.017 MB / 429.4 MB, free: 15.19 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001263/0.7564, allocations: 148.7 kB / 429.5 MB, free: 15.03 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001722/0.7581, allocations: 0.7587 MB / 430.3 MB, free: 14.81 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002773/0.7584, allocations: 56.97 kB / 430.3 MB, free: 14.77 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007217/0.7592, allocations: 0.5928 MB / 430.9 MB, free: 14.39 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004677/0.7597, allocations: 247.7 kB / 431.2 MB, free: 14.23 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.414e-05/0.7597, allocations: 19.44 kB / 431.2 MB, free: 14.23 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001676/0.7599, allocations: 348.8 kB / 431.5 MB, free: 13.9 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009928/0.7609, allocations: 413.7 kB / 431.9 MB, free: 13.85 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001254/0.7622, allocations: 0.6344 MB / 432.6 MB, free: 13.53 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001121/0.7634, allocations: 440.5 kB / 433 MB, free: 13.43 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-05/0.7634, allocations: 6.906 kB / 433 MB, free: 13.43 MB / 330.7 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002967/0.7664, allocations: 1.176 MB / 434.2 MB, free: 12.93 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001088/0.7675, allocations: 2.523 MB / 436.7 MB, free: 10.23 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.005e-05/0.7676, allocations: 11.7 kB / 436.7 MB, free: 10.22 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009616/0.7686, allocations: 220.8 kB / 436.9 MB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001295/0.7699, allocations: 168 kB / 437.1 MB, free: 10.06 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005104/0.7751, allocations: 2.762 MB / 439.9 MB, free: 7.707 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001554/0.7767, allocations: 151.2 kB / 440 MB, free: 7.559 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001891/0.7769, allocations: 39.98 kB / 440 MB, free: 7.52 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/0.7769, allocations: 4 kB / 440 MB, free: 7.516 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003108/0.7801, allocations: 1.108 MB / 441.2 MB, free: 6.402 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.387e-05/0.7801, allocations: 8 kB / 441.2 MB, free: 6.395 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007661/0.7809, allocations: 221.1 kB / 441.4 MB, free: 6.176 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001291/0.7822, allocations: 163.8 kB / 441.5 MB, free: 6.016 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005214/0.7875, allocations: 2.803 MB / 444.3 MB, free: 3.078 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001141/0.7887, allocations: 131.5 kB / 444.5 MB, free: 2.949 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001093/0.7888, allocations: 36 kB / 444.5 MB, free: 2.914 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 (108): * Single equations (assignments): 107 * 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.0004423/0.7893, allocations: 204.8 kB / 444.7 MB, free: 2.711 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003675/0.7897, allocations: 98.86 kB / 444.8 MB, free: 2.613 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004101/0.7901, allocations: 113.2 kB / 444.9 MB, free: 2.496 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.415e-05/0.7901, allocations: 8 kB / 444.9 MB, free: 2.488 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.012e-05/0.7901, allocations: 0 / 444.9 MB, free: 2.488 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.35e-05/0.7902, allocations: 3.984 kB / 444.9 MB, free: 2.484 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007301/0.7975, allocations: 2.585 MB / 447.5 MB, free: 15.85 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.04e-05/0.7976, allocations: 0 / 447.5 MB, free: 15.85 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000935/0.7985, allocations: 96.06 kB / 447.6 MB, free: 15.76 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007768/0.7993, allocations: 200.8 kB / 447.8 MB, free: 15.56 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001453/0.7995, allocations: 31.94 kB / 447.8 MB, free: 15.53 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005022/0.8045, allocations: 2.72 MB / 450.5 MB, free: 12.67 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.446e-06/0.8046, allocations: 4 kB / 450.6 MB, free: 12.67 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004972/0.8095, allocations: 1.686 MB / 452.2 MB, free: 10.95 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001411/0.811, allocations: 271.8 kB / 452.5 MB, free: 10.66 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005304/0.8116, allocations: 20 kB / 452.5 MB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002057/0.8137, allocations: 99.89 kB / 452.6 MB, free: 10.54 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009093/0.8147, allocations: 144.6 kB / 452.8 MB, free: 10.4 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001639/0.8149, allocations: 31.94 kB / 452.8 MB, free: 10.37 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002148/0.8171, allocations: 0.5772 MB / 453.4 MB, free: 9.797 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.483e-06/0.8171, allocations: 4 kB / 453.4 MB, free: 9.793 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.004944/0.8221, allocations: 0.5838 MB / 454 MB, free: 9.207 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 (73): * Single equations (assignments): 63 * 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.007733/0.8299, allocations: 2.419 MB / 456.4 MB, free: 6.742 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01631/0.8463, allocations: 1.894 MB / 458.3 MB, free: 4.828 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.618e-05/0.8464, allocations: 0.5625 kB / 458.3 MB, free: 4.828 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002732/0.8491, allocations: 0.7097 MB / 459 MB, free: 4.105 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006886/0.8561, allocations: 200.2 kB / 459.2 MB, free: 3.906 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02373/0.8799, allocations: 2.353 MB / 461.5 MB, free: 1.496 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002435/0.8824, allocations: 1.389 MB / 462.9 MB, free: 76 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002069/0.8845, allocations: 460.6 kB / 463.4 MB, free: 15.64 MB / 362.7 MB Notification: Performance of SimCode: time 2.404e-06/0.8846, allocations: 0 / 463.4 MB, free: 15.64 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.61/4.495, allocations: 28.34 MB / 491.7 MB, free: 3.324 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_Characteristic_res.mat does not exist to compare? outputFormat=mat