Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.ThyristorCenterTapmPulse_RLV_Characteristic,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTapmPulse_ThyristorCenterTapmPulse_RLV_Characteristic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.082/2.082, allocations: 194.9 MB / 208 MB, free: 3.262 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.573e-05/3.604e-05, allocations: 4.625 kB / 255.5 MB, free: 2.605 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1211, allocations: 44.51 MB / 300 MB, free: 6.047 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.454/0.5752, allocations: 85.53 MB / 385.5 MB, free: 12.65 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003173/0.5756, allocations: 88.39 kB / 385.6 MB, free: 12.65 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1394/0.715, allocations: 28.56 MB / 414.2 MB, free: 4.797 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.7151, allocations: 0 / 414.2 MB, free: 4.797 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001605/0.7152, allocations: 39.14 kB / 414.2 MB, free: 4.789 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.005881/0.7211, allocations: 1.56 MB / 415.7 MB, free: 3.777 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.613e-05/0.7212, allocations: 7.781 kB / 415.8 MB, free: 3.777 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005635/0.7218, allocations: 204.7 kB / 416 MB, free: 3.699 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005816/0.7224, allocations: 167.8 kB / 416.1 MB, free: 3.613 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006968/0.7294, allocations: 1.63 MB / 417.8 MB, free: 2.941 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001306/0.7296, allocations: 106 kB / 417.9 MB, free: 2.934 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004717/0.73, allocations: 133.1 kB / 418 MB, free: 2.93 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004113/0.7342, allocations: 1.691 MB / 419.7 MB, free: 2.473 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.825e-05/0.7343, allocations: 3.875 kB / 419.7 MB, free: 2.473 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001836/0.7345, allocations: 52.62 kB / 419.7 MB, free: 2.473 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.141e-05/0.7346, allocations: 60.75 kB / 419.8 MB, free: 2.461 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003252/0.7378, allocations: 1.345 MB / 421.1 MB, free: 2.305 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01154/0.7494, allocations: 5.01 MB / 426.1 MB, free: 52 kB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002649/0.7521, allocations: 1.061 MB / 427.2 MB, free: 15.88 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001312/0.7535, allocations: 0.5769 MB / 427.8 MB, free: 15.81 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.037e-05/0.7536, allocations: 15.12 kB / 427.8 MB, free: 15.8 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001288/0.7549, allocations: 0.6079 MB / 428.4 MB, free: 15.59 MB / 330.7 MB Notification: Performance of pre-optimization done (n=85): time 5.76e-06/0.7549, allocations: 0 / 428.4 MB, free: 15.59 MB / 330.7 MB Notification: Performance of matching and sorting (n=85): time 0.002672/0.7576, allocations: 1.017 MB / 429.4 MB, free: 15.34 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001183/0.7577, allocations: 150.6 kB / 429.6 MB, free: 15.18 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001602/0.7593, allocations: 0.757 MB / 430.3 MB, free: 14.96 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002063/0.7596, allocations: 58.5 kB / 430.4 MB, free: 14.93 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006811/0.7603, allocations: 0.5823 MB / 431 MB, free: 14.6 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003592/0.7606, allocations: 251.4 kB / 431.2 MB, free: 14.43 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.996e-05/0.7607, allocations: 18.03 kB / 431.2 MB, free: 14.43 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001781/0.7609, allocations: 341 kB / 431.6 MB, free: 14.11 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000955/0.7619, allocations: 420.2 kB / 432 MB, free: 14.06 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001177/0.7631, allocations: 0.6312 MB / 432.6 MB, free: 13.68 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001034/0.7641, allocations: 442.7 kB / 433 MB, free: 13.45 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.374e-06/0.7641, allocations: 0 / 433 MB, free: 13.45 MB / 330.7 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.003043/0.7672, allocations: 1.222 MB / 434.3 MB, free: 12.82 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001219/0.7685, allocations: 2.534 MB / 436.8 MB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.847e-05/0.7685, allocations: 11.58 kB / 436.8 MB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009277/0.7695, allocations: 214.9 kB / 437 MB, free: 10 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001238/0.7707, allocations: 165.2 kB / 437.2 MB, free: 9.953 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005136/0.7759, allocations: 2.751 MB / 439.9 MB, free: 7.332 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001479/0.7774, allocations: 155.2 kB / 440.1 MB, free: 7.18 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001375/0.7776, allocations: 43.94 kB / 440.1 MB, free: 7.137 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.477e-05/0.7776, allocations: 4 kB / 440.1 MB, free: 7.133 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003002/0.7806, allocations: 1.112 MB / 441.2 MB, free: 6.016 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.027e-05/0.7807, allocations: 8 kB / 441.2 MB, free: 6.008 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008254/0.7815, allocations: 228.7 kB / 441.5 MB, free: 5.781 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001151/0.7827, allocations: 156.3 kB / 441.6 MB, free: 5.629 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005215/0.7879, allocations: 2.773 MB / 444.4 MB, free: 2.723 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001475/0.7895, allocations: 131.4 kB / 444.5 MB, free: 2.594 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00016/0.7897, allocations: 39.98 kB / 444.6 MB, free: 2.555 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.0004568/0.7901, allocations: 208.8 kB / 444.8 MB, free: 2.348 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003071/0.7905, allocations: 90.88 kB / 444.9 MB, free: 2.258 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004343/0.7909, allocations: 117.2 kB / 445 MB, free: 2.137 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-05/0.7909, allocations: 11.94 kB / 445 MB, free: 2.125 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.668e-06/0.7909, allocations: 0 / 445 MB, free: 2.125 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.746e-05/0.791, allocations: 7.984 kB / 445 MB, free: 2.117 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007273/0.7983, allocations: 2.57 MB / 447.6 MB, free: 15.49 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-05/0.7983, allocations: 4 kB / 447.6 MB, free: 15.49 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001161/0.7995, allocations: 95.81 kB / 447.7 MB, free: 15.39 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001017/0.8006, allocations: 216.9 kB / 447.9 MB, free: 15.18 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001695/0.8007, allocations: 15.95 kB / 447.9 MB, free: 15.16 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006669/0.8074, allocations: 2.724 MB / 450.6 MB, free: 12.31 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.8075, allocations: 0 / 450.6 MB, free: 12.31 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006005/0.8135, allocations: 1.684 MB / 452.3 MB, free: 10.59 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001273/0.8148, allocations: 267.8 kB / 452.5 MB, free: 10.3 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003818/0.8153, allocations: 23.98 kB / 452.6 MB, free: 10.28 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001698/0.817, allocations: 99.91 kB / 452.7 MB, free: 10.18 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00078/0.8178, allocations: 148.5 kB / 452.8 MB, free: 10.04 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001381/0.818, allocations: 27.94 kB / 452.8 MB, free: 10.01 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001975/0.8199, allocations: 0.5772 MB / 453.4 MB, free: 9.434 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.52e-07/0.82, allocations: 0 / 453.4 MB, free: 9.434 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.01269/0.8327, allocations: 0.5839 MB / 454 MB, free: 8.848 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.01442/0.8472, allocations: 2.438 MB / 456.4 MB, free: 6.371 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01183/0.8591, allocations: 1.913 MB / 458.4 MB, free: 4.426 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.618e-06/0.8591, allocations: 0 / 458.4 MB, free: 4.426 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002367/0.8615, allocations: 0.7191 MB / 459.1 MB, free: 3.695 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00213/0.8637, allocations: 195.9 kB / 459.3 MB, free: 3.508 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009828/0.8735, allocations: 2.371 MB / 461.6 MB, free: 1.078 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00221/0.8758, allocations: 1.41 MB / 463 MB, free: 15.64 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.003156/0.879, allocations: 431 kB / 463.5 MB, free: 15.21 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001539/0.8806, allocations: 439.3 kB / 463.9 MB, free: 14.79 MB / 362.7 MB Notification: Performance of SimCode: time 1.703e-06/0.8807, allocations: 0 / 463.9 MB, free: 14.79 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08814/0.9688, allocations: 26.96 MB / 490.9 MB, free: 3.855 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004094/0.9693, allocations: 256.9 kB / 491.1 MB, free: 3.52 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.766/4.735, allocations: 0 / 491.1 MB, free: 3.52 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.ThyristorCenterTapmPulse_RLV_Characteristic_res.mat does not exist to compare? outputFormat=mat