Running command: "" <> buildModelFMU(ModelicaTest.Electrical.PowerConverters.HalfControlledBridge2mPulse,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Electrical_PowerConverters_HalfControlledBridge2mPulse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.631/2.631, allocations: 235 MB / 247.6 MB, free: 14.35 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.988e-05/3.991e-05, allocations: 4 kB / 305 MB, free: 5.559 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.413/0.4131, allocations: 54.85 MB / 359.9 MB, free: 2.309 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1772/0.5903, allocations: 96.35 MB / 456.2 MB, free: 0.5039 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002769/0.5907, allocations: 74.62 kB / 456.3 MB, free: 444 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1348/0.7255, allocations: 31.58 MB / 487.9 MB, free: 0.6602 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.374e-06/0.7256, allocations: 3.938 kB / 487.9 MB, free: 0.6562 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000246/0.7258, allocations: 51.94 kB / 487.9 MB, free: 0.6055 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 454 * Number of variables: 454 Notification: Performance of Generate backend data structure: time 0.008169/0.734, allocations: 2.066 MB / 490 MB, free: 14.48 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.938e-05/0.7341, allocations: 12.02 kB / 490 MB, free: 14.47 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001083/0.7352, allocations: 265.5 kB / 490.2 MB, free: 14.2 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009281/0.7361, allocations: 237.3 kB / 490.5 MB, free: 13.97 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008942/0.7451, allocations: 2.172 MB / 492.7 MB, free: 11.74 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002368/0.7454, allocations: 143.5 kB / 492.8 MB, free: 11.6 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008056/0.7462, allocations: 176 kB / 493 MB, free: 11.43 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007918/0.7542, allocations: 2.414 MB / 495.4 MB, free: 8.93 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.48e-05/0.7543, allocations: 7.953 kB / 495.4 MB, free: 8.922 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003614/0.7547, allocations: 72 kB / 495.5 MB, free: 8.852 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001229/0.7548, allocations: 71.5 kB / 495.5 MB, free: 8.781 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007042/0.7619, allocations: 1.986 MB / 497.5 MB, free: 6.793 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02244/0.7844, allocations: 7.198 MB / 0.4929 GB, free: 15.47 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005056/0.7895, allocations: 1.748 MB / 0.4946 GB, free: 13.71 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003786/0.7933, allocations: 1.263 MB / 0.4958 GB, free: 12.45 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001556/0.7935, allocations: 16.94 kB / 0.4958 GB, free: 12.43 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002526/0.7961, allocations: 0.908 MB / 0.4967 GB, free: 11.49 MB / 442.7 MB Notification: Performance of pre-optimization done (n=126): time 7.013e-06/0.7961, allocations: 0 / 0.4967 GB, free: 11.49 MB / 442.7 MB Notification: Performance of matching and sorting (n=126): time 0.00537/0.8015, allocations: 1.765 MB / 0.4984 GB, free: 9.715 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001815/0.8018, allocations: 242.6 kB / 0.4987 GB, free: 9.43 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003105/0.8049, allocations: 1.152 MB / 0.4998 GB, free: 8.266 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003815/0.8053, allocations: 69.67 kB / 0.4999 GB, free: 8.191 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00108/0.8064, allocations: 0.7749 MB / 0.5006 GB, free: 7.406 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007313/0.8072, allocations: 374.8 kB / 0.501 GB, free: 7.035 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001456/0.8073, allocations: 28 kB / 0.501 GB, free: 7.008 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002213/0.8076, allocations: 370.7 kB / 0.5014 GB, free: 6.637 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001832/0.8094, allocations: 0.6598 MB / 0.502 GB, free: 5.977 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002249/0.8117, allocations: 0.9406 MB / 0.5029 GB, free: 4.93 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002037/0.8138, allocations: 0.7309 MB / 0.5036 GB, free: 4.199 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.439e-05/0.8139, allocations: 0 / 0.5036 GB, free: 4.199 MB / 442.7 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.005298/0.8192, allocations: 1.91 MB / 0.5055 GB, free: 2.277 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001107/0.8204, allocations: 2.447 MB / 0.5079 GB, free: 15.64 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.126e-05/0.8204, allocations: 11.98 kB / 0.5079 GB, free: 15.63 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00252/0.823, allocations: 0.5512 MB / 0.5084 GB, free: 15.07 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001543/0.8246, allocations: 183.6 kB / 0.5086 GB, free: 14.89 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01406/0.8387, allocations: 5.998 MB / 0.5145 GB, free: 8.75 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002253/0.841, allocations: 214.9 kB / 0.5147 GB, free: 8.539 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003053/0.8413, allocations: 48 kB / 0.5147 GB, free: 8.492 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/0.8414, allocations: 8 kB / 0.5147 GB, free: 8.484 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005091/0.8465, allocations: 1.851 MB / 0.5165 GB, free: 6.629 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.672e-05/0.8466, allocations: 4 kB / 0.5166 GB, free: 6.625 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002053/0.8486, allocations: 0.5443 MB / 0.5171 GB, free: 6.078 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001471/0.8501, allocations: 175.7 kB / 0.5172 GB, free: 5.906 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.33/1.18, allocations: 6.034 MB / 0.5231 GB, free: 123.1 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002236/1.183, allocations: 177.6 kB / 0.5233 GB, free: 123.1 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003928/1.183, allocations: 48.89 kB / 0.5234 GB, free: 123.1 MB / 458.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: 57 ($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,rectifier.diode_n.idealDiode[1].off,rectifier.diode_n.idealDiode[2].off,rectifier.diode_n.idealDiode[3].off,$PRE.rectifier.pre[1].u,rectifier.pre[1].u,rectifier.pre[1].y,$PRE.rectifier.pre[2].u,rectifier.pre[2].u,rectifier.pre[2].y,$PRE.rectifier.pre[3].u,rectifier.pre[3].u,rectifier.pre[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 (126): * Single equations (assignments): 125 * 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 38} Notification: Performance of prepare postOptimizeDAE: time 0.0007409/1.184, allocations: 226.1 kB / 0.5236 GB, free: 123 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000711/1.184, allocations: 149.6 kB / 0.5237 GB, free: 123 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008928/1.185, allocations: 176.3 kB / 0.5239 GB, free: 123 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.793e-05/1.185, allocations: 15.8 kB / 0.5239 GB, free: 123 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.111e-05/1.185, allocations: 3.938 kB / 0.5239 GB, free: 123 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.075e-05/1.186, allocations: 6.234 kB / 0.5239 GB, free: 123 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01646/1.202, allocations: 3.889 MB / 0.5277 GB, free: 122.7 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.682e-05/1.202, allocations: 0 / 0.5277 GB, free: 122.7 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00133/1.203, allocations: 96.14 kB / 0.5278 GB, free: 122.7 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003168/1.207, allocations: 0.5271 MB / 0.5283 GB, free: 122.7 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002959/1.207, allocations: 23.75 kB / 0.5283 GB, free: 122.7 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01807/1.225, allocations: 5.928 MB / 0.5341 GB, free: 121.3 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.13e-06/1.225, allocations: 0 / 0.5341 GB, free: 121.3 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009312/1.234, allocations: 2.671 MB / 0.5367 GB, free: 121.1 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001762/1.236, allocations: 382.7 kB / 0.5371 GB, free: 120.9 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005372/1.237, allocations: 36.59 kB / 0.5371 GB, free: 120.9 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002183/1.239, allocations: 121.9 kB / 0.5372 GB, free: 120.9 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00111/1.24, allocations: 192.4 kB / 0.5374 GB, free: 120.9 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001885/1.24, allocations: 35.14 kB / 0.5375 GB, free: 120.9 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003243/1.244, allocations: 0.8743 MB / 0.5383 GB, free: 120.8 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.002e-06/1.244, allocations: 0 / 0.5383 GB, free: 120.8 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006103/1.25, allocations: 0.9237 MB / 0.5392 GB, free: 120.7 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x) * Number of discrete variables: 42 (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.diode_n.idealDiode[1].off,rectifier.diode_n.idealDiode[2].off,rectifier.diode_n.idealDiode[3].off,rectifier.pre[1].u,rectifier.pre[1].y,rectifier.pre[2].u,rectifier.pre[2].y,rectifier.pre[3].u,rectifier.pre[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: 9 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.pre[3].u,rectifier.pre[2].u,rectifier.pre[1].u,rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[2].off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (83): * Single equations (assignments): 73 * 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 38} Notification: Performance of Backend phase and start with SimCode phase: time 0.009377/1.259, allocations: 3.303 MB / 0.5424 GB, free: 119.4 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008888/1.268, allocations: 3.081 MB / 0.5455 GB, free: 118.1 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.681e-05/1.268, allocations: 2.672 kB / 0.5455 GB, free: 118.1 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003205/1.272, allocations: 1.079 MB / 0.5465 GB, free: 117.7 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003143/1.275, allocations: 362 kB / 0.5469 GB, free: 117.6 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01128/1.286, allocations: 3.468 MB / 0.5502 GB, free: 116.3 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001739/1.288, allocations: 1.767 MB / 0.552 GB, free: 115.4 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001366/1.289, allocations: 0.6434 MB / 0.5526 GB, free: 114.9 MB / 458.7 MB Notification: Performance of SimCode: time 1.222e-06/1.289, allocations: 4.25 kB / 0.5526 GB, free: 114.9 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.517/4.806, allocations: 42.67 MB / 0.5943 GB, free: 92.57 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Electrical.PowerConverters.HalfControlledBridge2mPulse_res.mat does not exist to compare? outputFormat=mat