Running command: "" <> buildModelFMU(ModelicaTest.Electrical.PowerConverters.HalfControlledBridge2mPulse,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Electrical_PowerConverters_HalfControlledBridge2mPulse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.457/2.457, allocations: 235.1 MB / 242.2 MB, free: 15.83 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.116e-05/3.114e-05, allocations: 0 / 299.5 MB, free: 6.516 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3839/0.384, allocations: 54.85 MB / 354.3 MB, free: 14.07 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1848/0.5689, allocations: 95.67 MB / 450 MB, free: 2.523 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000361/0.5693, allocations: 75.91 kB / 450.1 MB, free: 2.449 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1425/0.7118, allocations: 31.26 MB / 481.3 MB, free: 2.953 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.7119, allocations: 0 / 481.3 MB, free: 2.953 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002605/0.7121, allocations: 55.94 kB / 481.4 MB, free: 2.898 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.00818/0.7203, allocations: 2.075 MB / 483.5 MB, free: 0.7656 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.551e-05/0.7204, allocations: 8.031 kB / 483.5 MB, free: 0.7578 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001124/0.7215, allocations: 233.3 kB / 483.7 MB, free: 0.5273 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0087/0.7303, allocations: 2.168 MB / 485.9 MB, free: 14.3 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001338/0.7304, allocations: 63.98 kB / 485.9 MB, free: 14.24 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005451/0.731, allocations: 104 kB / 486 MB, free: 14.14 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005961/0.737, allocations: 1.916 MB / 488 MB, free: 12.22 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006858/0.7439, allocations: 2.177 MB / 490.1 MB, free: 9.957 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.831e-05/0.744, allocations: 7.891 kB / 490.1 MB, free: 9.949 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002442/0.7443, allocations: 7.984 kB / 490.1 MB, free: 9.941 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000125/0.7444, allocations: 67.52 kB / 490.2 MB, free: 9.875 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01916/0.7636, allocations: 6.835 MB / 497 MB, free: 2.926 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004279/0.7679, allocations: 1.696 MB / 498.7 MB, free: 1.23 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002721/0.7707, allocations: 1.122 MB / 499.9 MB, free: 112 kB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001136/0.7708, allocations: 17.25 kB / 499.9 MB, free: 92 kB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.3066/1.077, allocations: 0.8735 MB / 0.489 GB, free: 107.7 MB / 426.7 MB Notification: Performance of pre-optimization done (n=126): time 5.59e-06/1.078, allocations: 0 / 0.489 GB, free: 107.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=126): time 0.004317/1.082, allocations: 1.638 MB / 0.4906 GB, free: 107.7 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000108/1.082, allocations: 234 kB / 0.4908 GB, free: 107.4 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002244/1.084, allocations: 1.009 MB / 0.4918 GB, free: 107.3 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000324/1.085, allocations: 46.73 kB / 0.4919 GB, free: 107.2 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008734/1.085, allocations: 0.7935 MB / 0.4926 GB, free: 107 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005571/1.086, allocations: 369.1 kB / 0.493 GB, free: 106.8 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.966e-05/1.086, allocations: 1.188 kB / 0.493 GB, free: 106.8 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000129/1.086, allocations: 357.2 kB / 0.4933 GB, free: 106.5 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00146/1.088, allocations: 0.6274 MB / 0.494 GB, free: 106.5 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001608/1.089, allocations: 0.9195 MB / 0.4949 GB, free: 106.2 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001496/1.091, allocations: 0.6944 MB / 0.4955 GB, free: 106.2 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.878e-06/1.091, allocations: 2.375 kB / 0.4955 GB, free: 106.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.004359/1.095, allocations: 1.875 MB / 0.4974 GB, free: 106.1 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005413/1.096, allocations: 2.45 MB / 0.4998 GB, free: 103.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.411e-05/1.096, allocations: 8.75 kB / 0.4998 GB, free: 103.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00215/1.098, allocations: 0.55 MB / 0.5003 GB, free: 103.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001399/1.1, allocations: 179.4 kB / 0.5005 GB, free: 103.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.011/1.111, allocations: 5.87 MB / 0.5062 GB, free: 101.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001939/1.113, allocations: 182 kB / 0.5064 GB, free: 101.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001478/1.113, allocations: 47.03 kB / 0.5064 GB, free: 101.3 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.323e-05/1.113, allocations: 7.031 kB / 0.5064 GB, free: 101.3 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003737/1.116, allocations: 1.72 MB / 0.5081 GB, free: 100.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.499e-05/1.117, allocations: 10.3 kB / 0.5081 GB, free: 100.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001857/1.118, allocations: 0.5377 MB / 0.5086 GB, free: 100.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001375/1.12, allocations: 172 kB / 0.5088 GB, free: 100.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01098/1.131, allocations: 5.877 MB / 0.5145 GB, free: 97.25 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001946/1.133, allocations: 160.5 kB / 0.5147 GB, free: 97.21 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002085/1.133, allocations: 43.75 kB / 0.5147 GB, free: 97.2 MB / 426.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.0005232/1.134, allocations: 186.8 kB / 0.5149 GB, free: 97.08 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003804/1.137, allocations: 1.636 MB / 0.5165 GB, free: 96.46 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004408/1.138, allocations: 129.8 kB / 0.5166 GB, free: 96.4 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004994/1.138, allocations: 155.8 kB / 0.5168 GB, free: 96.3 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.335e-05/1.139, allocations: 14.03 kB / 0.5168 GB, free: 96.3 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.171e-06/1.139, allocations: 0 / 0.5168 GB, free: 96.3 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.71e-05/1.139, allocations: 11.5 kB / 0.5168 GB, free: 96.29 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008532/1.147, allocations: 3.561 MB / 0.5203 GB, free: 94.87 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.929e-06/1.147, allocations: 0.6875 kB / 0.5203 GB, free: 94.87 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008257/1.148, allocations: 97.16 kB / 0.5204 GB, free: 94.86 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001921/1.15, allocations: 0.5207 MB / 0.5209 GB, free: 94.7 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001523/1.15, allocations: 3.047 kB / 0.5209 GB, free: 94.7 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01061/1.161, allocations: 5.761 MB / 0.5265 GB, free: 91.5 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.472e-06/1.161, allocations: 3.125 kB / 0.5265 GB, free: 91.5 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005007/1.166, allocations: 2.562 MB / 0.529 GB, free: 90.41 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001118/1.167, allocations: 375.7 kB / 0.5294 GB, free: 90.16 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003608/1.167, allocations: 14.67 kB / 0.5294 GB, free: 90.16 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001445/1.169, allocations: 109.2 kB / 0.5295 GB, free: 90.16 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00064/1.17, allocations: 181.2 kB / 0.5297 GB, free: 90.13 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001058/1.17, allocations: 33.27 kB / 0.5297 GB, free: 90.12 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001416/1.171, allocations: 0.7549 MB / 0.5304 GB, free: 89.79 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.21e-07/1.171, allocations: 0 / 0.5304 GB, free: 89.79 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003235/1.174, allocations: 0.8514 MB / 0.5313 GB, free: 89.63 MB / 426.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[1].off,rectifier.thyristor_p.idealThyristor[3].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.005188/1.18, allocations: 3.178 MB / 0.5344 GB, free: 87.27 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006596/1.186, allocations: 3.053 MB / 0.5374 GB, free: 84.59 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.694e-06/1.186, allocations: 0 / 0.5374 GB, free: 84.59 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002368/1.189, allocations: 1.057 MB / 0.5384 GB, free: 83.64 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002494/1.191, allocations: 310.6 kB / 0.5387 GB, free: 83.41 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009664/1.201, allocations: 3.417 MB / 0.542 GB, free: 80.48 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001699/1.203, allocations: 1.804 MB / 0.5438 GB, free: 79 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002655/1.205, allocations: 0.5846 MB / 0.5444 GB, free: 78.62 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001099/1.206, allocations: 0.6244 MB / 0.545 GB, free: 78.06 MB / 426.7 MB Notification: Performance of SimCode: time 1.162e-06/1.206, allocations: 4 kB / 0.545 GB, free: 78.05 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1265/1.333, allocations: 42.89 MB / 0.5869 GB, free: 37.01 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002165/1.333, allocations: 167.1 kB / 0.587 GB, free: 36.81 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.002/5.335, allocations: 4 kB / 0.587 GB, free: 36.81 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Electrical.PowerConverters.HalfControlledBridge2mPulse_res.mat does not exist to compare? outputFormat=mat