Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_RL,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_ThyristorBridge2mPulse_RL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.044/2.044, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.395e-05/3.405e-05, allocations: 4 kB / 255.4 MB, free: 3.086 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09655/0.09662, allocations: 44.5 MB / 299.9 MB, free: 6.527 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4542/0.5509, allocations: 87.26 MB / 387.2 MB, free: 12.68 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003163/0.5512, allocations: 92.69 kB / 387.3 MB, free: 12.68 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1762/0.7274, allocations: 47.06 MB / 434.4 MB, free: 13.19 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.344e-06/0.7275, allocations: 0 / 434.4 MB, free: 13.19 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001983/0.7277, allocations: 54.09 kB / 434.4 MB, free: 13.18 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 442 * Number of variables: 442 Notification: Performance of Generate backend data structure: time 0.007323/0.735, allocations: 1.945 MB / 436.4 MB, free: 11.5 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.798e-05/0.7351, allocations: 11.97 kB / 436.4 MB, free: 11.48 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009543/0.7361, allocations: 256.7 kB / 436.6 MB, free: 11.33 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007914/0.7369, allocations: 221.4 kB / 436.8 MB, free: 11.11 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008307/0.7452, allocations: 2.05 MB / 438.9 MB, free: 9.551 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001808/0.7455, allocations: 141.1 kB / 439 MB, free: 9.473 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006083/0.7461, allocations: 179.1 kB / 439.2 MB, free: 9.352 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006952/0.753, allocations: 2.34 MB / 441.5 MB, free: 7.711 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.112e-05/0.7532, allocations: 7.891 kB / 441.5 MB, free: 7.703 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002818/0.7535, allocations: 71.52 kB / 441.6 MB, free: 7.637 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001248/0.7536, allocations: 75.41 kB / 441.7 MB, free: 7.562 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005933/0.7595, allocations: 1.895 MB / 443.6 MB, free: 5.664 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02031/0.7799, allocations: 6.796 MB / 450.4 MB, free: 14.8 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006068/0.786, allocations: 1.675 MB / 452.1 MB, free: 13.11 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002484/0.7886, allocations: 0.9255 MB / 453 MB, free: 12.18 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001229/0.7887, allocations: 13 kB / 453 MB, free: 12.16 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002204/0.791, allocations: 0.8721 MB / 453.9 MB, free: 11.27 MB / 346.7 MB Notification: Performance of pre-optimization done (n=122): time 4.819e-06/0.791, allocations: 0 / 453.9 MB, free: 11.27 MB / 346.7 MB Notification: Performance of matching and sorting (n=122): time 0.004654/0.7957, allocations: 1.618 MB / 455.5 MB, free: 9.641 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001472/0.7959, allocations: 165.5 kB / 455.6 MB, free: 9.449 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002523/0.7984, allocations: 1.027 MB / 456.7 MB, free: 8.402 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003623/0.7988, allocations: 77.67 kB / 456.7 MB, free: 8.32 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009289/0.7997, allocations: 0.739 MB / 457.5 MB, free: 7.582 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006144/0.8004, allocations: 364.5 kB / 457.8 MB, free: 7.234 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000124/0.8005, allocations: 32 kB / 457.9 MB, free: 7.203 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001955/0.8007, allocations: 358.8 kB / 458.2 MB, free: 6.844 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001659/0.8024, allocations: 0.6403 MB / 458.9 MB, free: 6.203 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001962/0.8044, allocations: 0.9097 MB / 459.8 MB, free: 5.199 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001713/0.8061, allocations: 0.692 MB / 460.5 MB, free: 4.504 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.023e-05/0.8062, allocations: 8 kB / 460.5 MB, free: 4.496 MB / 346.7 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.004648/0.8108, allocations: 1.853 MB / 462.3 MB, free: 2.633 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001329/0.8122, allocations: 2.441 MB / 464.8 MB, free: 4 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.441e-05/0.8123, allocations: 12.05 kB / 464.8 MB, free: 15.99 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002073/0.8144, allocations: 0.4901 MB / 465.3 MB, free: 15.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001447/0.8158, allocations: 179.7 kB / 465.4 MB, free: 15.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01158/0.8275, allocations: 5.212 MB / 470.7 MB, free: 9.98 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001966/0.8295, allocations: 187.1 kB / 470.8 MB, free: 9.797 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002037/0.8297, allocations: 51.98 kB / 470.9 MB, free: 9.746 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/0.8297, allocations: 5.562 kB / 470.9 MB, free: 9.742 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00455/0.8343, allocations: 1.788 MB / 472.7 MB, free: 7.949 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.334e-05/0.8344, allocations: 4 kB / 472.7 MB, free: 7.945 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001719/0.8361, allocations: 0.4896 MB / 473.2 MB, free: 7.453 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001373/0.8375, allocations: 167.7 kB / 473.3 MB, free: 7.289 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01145/0.849, allocations: 5.271 MB / 478.6 MB, free: 1.887 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00145/0.8505, allocations: 167.2 kB / 478.8 MB, free: 1.723 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001407/0.8507, allocations: 40 kB / 478.8 MB, free: 1.684 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 69 ($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,$PRE.rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[1].off,$PRE.rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[2].off,$PRE.rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_p.idealThyristor[3].off,$PRE.rectifier.thyristor_n.idealThyristor[1].off,rectifier.thyristor_n.idealThyristor[1].off,$PRE.rectifier.thyristor_n.idealThyristor[2].off,rectifier.thyristor_n.idealThyristor[2].off,$PRE.rectifier.thyristor_n.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[3].off,$PRE.rectifier.pre_p[1].u,rectifier.pre_p[1].u,rectifier.pre_p[1].y,$PRE.rectifier.pre_p[2].u,rectifier.pre_p[2].u,rectifier.pre_p[2].y,$PRE.rectifier.pre_p[3].u,rectifier.pre_p[3].u,rectifier.pre_p[3].y,$PRE.rectifier.pre_n[1].u,rectifier.pre_n[1].u,rectifier.pre_n[1].y,$PRE.rectifier.pre_n[2].u,rectifier.pre_n[2].u,rectifier.pre_n[2].y,$PRE.rectifier.pre_n[3].u,rectifier.pre_n[3].u,rectifier.pre_n[3].y,pulse2m.twomPulse.positiveThreshold[1].y,pulse2m.twomPulse.positiveThreshold[2].y,pulse2m.twomPulse.positiveThreshold[3].y,pulse2m.twomPulse.negativeThreshold[1].y,pulse2m.twomPulse.negativeThreshold[2].y,pulse2m.twomPulse.negativeThreshold[3].y,$PRE.pulse2m.twomPulse.timerPositive[1].entryTime,pulse2m.twomPulse.timerPositive[1].entryTime,$PRE.pulse2m.twomPulse.timerPositive[2].entryTime,pulse2m.twomPulse.timerPositive[2].entryTime,$PRE.pulse2m.twomPulse.timerPositive[3].entryTime,pulse2m.twomPulse.timerPositive[3].entryTime,$PRE.pulse2m.twomPulse.timerNegative[1].entryTime,pulse2m.twomPulse.timerNegative[1].entryTime,$PRE.pulse2m.twomPulse.timerNegative[2].entryTime,pulse2m.twomPulse.timerNegative[2].entryTime,$PRE.pulse2m.twomPulse.timerNegative[3].entryTime,pulse2m.twomPulse.timerNegative[3].entryTime,pulse2m.fire_p[1],pulse2m.fire_p[2],pulse2m.fire_p[3],pulse2m.fire_n[1],pulse2m.fire_n[2],pulse2m.fire_n[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (136): * Single equations (assignments): 135 * 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 {6 28} Notification: Performance of prepare postOptimizeDAE: time 0.000546/0.8512, allocations: 249.2 kB / 479.1 MB, free: 1.426 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004514/0.8517, allocations: 130.4 kB / 479.2 MB, free: 1.297 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000614/0.8523, allocations: 168.5 kB / 479.3 MB, free: 1.129 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.644e-05/0.8524, allocations: 12 kB / 479.4 MB, free: 1.117 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/0.8524, allocations: 0 / 479.4 MB, free: 1.117 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.744e-05/0.8524, allocations: 3.984 kB / 479.4 MB, free: 1.113 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009314/0.8617, allocations: 3.543 MB / 482.9 MB, free: 13.54 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.647e-06/0.8618, allocations: 0 / 482.9 MB, free: 13.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009719/0.8628, allocations: 103.8 kB / 483 MB, free: 13.43 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001894/0.8647, allocations: 468.7 kB / 483.5 MB, free: 12.97 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002118/0.8649, allocations: 27.98 kB / 483.5 MB, free: 12.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01177/0.8767, allocations: 5.151 MB / 488.6 MB, free: 7.664 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/0.8768, allocations: 0 / 488.6 MB, free: 7.664 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007136/0.884, allocations: 2.568 MB / 491.2 MB, free: 5.078 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001481/0.8855, allocations: 367.2 kB / 491.6 MB, free: 4.699 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004553/0.886, allocations: 39.98 kB / 491.6 MB, free: 4.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00136/0.8874, allocations: 111.8 kB / 491.7 MB, free: 4.551 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008348/0.8882, allocations: 232.7 kB / 491.9 MB, free: 4.324 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001256/0.8884, allocations: 39.98 kB / 492 MB, free: 4.285 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002008/0.8904, allocations: 0.7805 MB / 492.8 MB, free: 3.492 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.81e-07/0.8904, allocations: 4 kB / 492.8 MB, free: 3.488 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003496/0.8939, allocations: 0.845 MB / 493.6 MB, free: 2.641 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,inductor.i) * Number of discrete variables: 48 (pulse2m.twomPulse.negativeThreshold[2].y,pulse2m.twomPulse.positiveThreshold[2].y,pulse2m.twomPulse.negativeThreshold[1].y,pulse2m.twomPulse.positiveThreshold[1].y,pulse2m.twomPulse.negativeThreshold[3].y,pulse2m.twomPulse.positiveThreshold[3].y,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[1].off,rectifier.thyristor_n.idealThyristor[2].off,rectifier.thyristor_n.idealThyristor[3].off,rectifier.pre_p[1].u,rectifier.pre_p[1].y,rectifier.pre_p[2].u,rectifier.pre_p[2].y,rectifier.pre_p[3].u,rectifier.pre_p[3].y,rectifier.pre_n[1].u,rectifier.pre_n[1].y,rectifier.pre_n[2].u,rectifier.pre_n[2].y,rectifier.pre_n[3].u,rectifier.pre_n[3].y,meanVoltage.y,rootMeanSquareVoltage.mean.y,meanCurrent.y,pulse2m.twomPulse.timerPositive[1].entryTime,pulse2m.twomPulse.timerPositive[2].entryTime,pulse2m.twomPulse.timerPositive[3].entryTime,pulse2m.twomPulse.timerNegative[1].entryTime,pulse2m.twomPulse.timerNegative[2].entryTime,pulse2m.twomPulse.timerNegative[3].entryTime,pulse2m.fire_p[1],pulse2m.fire_p[2],pulse2m.fire_p[3],pulse2m.fire_n[1],pulse2m.fire_n[2],pulse2m.fire_n[3]) * Number of discrete states: 15 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.pre_n[3].u,rectifier.pre_n[2].u,rectifier.pre_n[1].u,rectifier.pre_p[3].u,rectifier.pre_p[2].u,rectifier.pre_p[1].u,rectifier.thyristor_n.idealThyristor[1].off,rectifier.thyristor_n.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[3].off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (89): * Single equations (assignments): 79 * 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 {6 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.007465/0.9014, allocations: 3.212 MB / 496.8 MB, free: 15.41 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.008401/0.9099, allocations: 3.003 MB / 499.8 MB, free: 12.38 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.143e-05/0.91, allocations: 2.188 kB / 499.8 MB, free: 12.38 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002811/0.9128, allocations: 1.039 MB / 0.4891 GB, free: 11.33 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002464/0.9153, allocations: 316 kB / 0.4894 GB, free: 11.02 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0101/0.9254, allocations: 3.26 MB / 0.4926 GB, free: 7.707 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002063/0.9276, allocations: 1.687 MB / 0.4943 GB, free: 5.988 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001596/0.9292, allocations: 0.6243 MB / 0.4949 GB, free: 5.363 MB / 394.7 MB Notification: Performance of SimCode: time 1.362e-06/0.9292, allocations: 0 / 0.4949 GB, free: 5.363 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.794/4.723, allocations: 39.91 MB / 0.5338 GB, free: 121.4 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_RL_res.mat does not exist to compare? outputFormat=mat