Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.HalfControlledBridge2mPulse,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_HalfControlledBridge2mPulse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.052/2.052, allocations: 205.8 MB / 218.9 MB, free: 9.262 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.209e-05/4.221e-05, allocations: 0 / 269.5 MB, free: 6.289 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.1235, allocations: 47.57 MB / 317 MB, free: 6.637 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.476/0.5996, allocations: 92.5 MB / 409.5 MB, free: 11.64 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003351/0.5999, allocations: 85 kB / 409.6 MB, free: 11.6 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.143/0.743, allocations: 28.71 MB / 438.3 MB, free: 3.422 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.565e-06/0.7431, allocations: 0 / 438.3 MB, free: 3.422 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002608/0.7434, allocations: 51.94 kB / 438.4 MB, free: 3.371 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 410 * Number of variables: 410 Notification: Performance of Generate backend data structure: time 0.007601/0.751, allocations: 1.882 MB / 440.3 MB, free: 1.535 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.337e-05/0.751, allocations: 8.031 kB / 440.3 MB, free: 1.527 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008595/0.7519, allocations: 245 kB / 440.5 MB, free: 1.375 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00074/0.7527, allocations: 213.5 kB / 440.7 MB, free: 1.164 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008446/0.7611, allocations: 2.013 MB / 442.7 MB, free: 15.57 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001649/0.7613, allocations: 128.6 kB / 442.8 MB, free: 15.49 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004619/0.7618, allocations: 162 kB / 443 MB, free: 15.38 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00637/0.7682, allocations: 2.173 MB / 445.2 MB, free: 13.88 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.372e-05/0.7683, allocations: 3.938 kB / 445.2 MB, free: 13.88 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002555/0.7686, allocations: 66.94 kB / 445.3 MB, free: 13.86 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001267/0.7687, allocations: 70.59 kB / 445.3 MB, free: 13.79 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005586/0.7743, allocations: 1.77 MB / 447.1 MB, free: 12.7 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01949/0.7939, allocations: 6.507 MB / 453.6 MB, free: 6.461 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004555/0.7985, allocations: 1.555 MB / 455.2 MB, free: 4.906 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003199/0.8017, allocations: 1.104 MB / 456.3 MB, free: 3.793 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001144/0.8019, allocations: 16.95 kB / 456.3 MB, free: 3.773 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002104/0.804, allocations: 0.8118 MB / 457.1 MB, free: 2.941 MB / 362.7 MB Notification: Performance of pre-optimization done (n=114): time 4.498e-06/0.804, allocations: 4 kB / 457.1 MB, free: 2.938 MB / 362.7 MB Notification: Performance of matching and sorting (n=114): time 0.004779/0.8088, allocations: 1.597 MB / 458.7 MB, free: 1.332 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001435/0.809, allocations: 157.5 kB / 458.8 MB, free: 1.145 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00255/0.8116, allocations: 1.007 MB / 459.8 MB, free: 120 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003411/0.812, allocations: 69.69 kB / 459.9 MB, free: 44 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001009/0.813, allocations: 0.7102 MB / 460.6 MB, free: 15.32 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006141/0.8136, allocations: 339.3 kB / 461 MB, free: 14.98 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001099/0.8137, allocations: 24 kB / 461 MB, free: 14.96 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000206/0.8139, allocations: 353.9 kB / 461.3 MB, free: 14.61 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001624/0.8156, allocations: 0.5843 MB / 461.9 MB, free: 14.02 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001857/0.8175, allocations: 0.8381 MB / 462.7 MB, free: 13.09 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001768/0.8193, allocations: 0.6333 MB / 463.4 MB, free: 12.46 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.435e-05/0.8193, allocations: 4 kB / 463.4 MB, free: 12.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.006628/0.826, allocations: 1.785 MB / 465.2 MB, free: 10.65 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001618/0.8276, allocations: 2.445 MB / 467.6 MB, free: 8.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.748e-05/0.8277, allocations: 8 kB / 467.6 MB, free: 8.012 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003389/0.8311, allocations: 0.4964 MB / 468.1 MB, free: 7.512 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001952/0.8331, allocations: 155.7 kB / 468.3 MB, free: 7.359 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01847/0.8516, allocations: 5.406 MB / 473.7 MB, free: 1.816 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002722/0.8544, allocations: 187 kB / 473.9 MB, free: 1.633 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001976/0.8547, allocations: 48 kB / 473.9 MB, free: 1.586 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.502e-05/0.8547, allocations: 4 kB / 473.9 MB, free: 1.582 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004236/0.8589, allocations: 1.645 MB / 475.6 MB, free: 15.93 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.175e-05/0.859, allocations: 11.94 kB / 475.6 MB, free: 15.92 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001929/0.861, allocations: 0.5047 MB / 476.1 MB, free: 15.41 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00125/0.8622, allocations: 151.7 kB / 476.2 MB, free: 15.27 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01201/0.8743, allocations: 5.388 MB / 481.6 MB, free: 9.73 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001763/0.8761, allocations: 167.2 kB / 481.8 MB, free: 9.566 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001356/0.8762, allocations: 44 kB / 481.8 MB, free: 9.523 MB / 394.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 (117): * Single equations (assignments): 116 * 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 32} Notification: Performance of prepare postOptimizeDAE: time 0.0004845/0.8767, allocations: 224.8 kB / 482 MB, free: 9.297 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003185/0.8771, allocations: 122.5 kB / 482.2 MB, free: 9.176 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005053/0.8776, allocations: 160.2 kB / 482.3 MB, free: 9.02 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.676e-05/0.8776, allocations: 12 kB / 482.3 MB, free: 9.008 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.104e-05/0.8776, allocations: 3.953 kB / 482.3 MB, free: 9.004 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.733e-05/0.8777, allocations: 7.969 kB / 482.3 MB, free: 8.996 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009527/0.8872, allocations: 3.531 MB / 485.9 MB, free: 5.402 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.766e-06/0.8873, allocations: 0 / 485.9 MB, free: 5.402 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007824/0.888, allocations: 83.83 kB / 485.9 MB, free: 5.32 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001915/0.89, allocations: 484.2 kB / 486.4 MB, free: 4.844 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001887/0.8902, allocations: 23.98 kB / 486.4 MB, free: 4.82 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01397/0.9042, allocations: 5.321 MB / 491.8 MB, free: 15.36 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.402e-06/0.9042, allocations: 11.94 kB / 491.8 MB, free: 15.34 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00859/0.9128, allocations: 2.427 MB / 494.2 MB, free: 12.9 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001452/0.9143, allocations: 351.3 kB / 494.5 MB, free: 12.54 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004054/0.9148, allocations: 39.94 kB / 494.6 MB, free: 12.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001737/0.9165, allocations: 103.9 kB / 494.7 MB, free: 12.39 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008209/0.9174, allocations: 172.7 kB / 494.9 MB, free: 12.23 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001471/0.9175, allocations: 31.98 kB / 494.9 MB, free: 12.2 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002438/0.92, allocations: 0.7682 MB / 495.7 MB, free: 11.41 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.42e-07/0.92, allocations: 0 / 495.7 MB, free: 11.41 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00474/0.9248, allocations: 0.8099 MB / 496.5 MB, free: 10.6 MB / 410.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[2].off,rectifier.thyristor_p.idealThyristor[1].off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (77): * Single equations (assignments): 67 * 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 32} Notification: Performance of Backend phase and start with SimCode phase: time 0.00887/0.9337, allocations: 3.063 MB / 499.5 MB, free: 7.508 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01036/0.9441, allocations: 2.823 MB / 0.4906 GB, free: 4.66 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.124e-05/0.9442, allocations: 0 / 0.4906 GB, free: 4.66 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003555/0.9478, allocations: 0.9872 MB / 0.4915 GB, free: 3.664 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003296/0.9511, allocations: 312.2 kB / 0.4918 GB, free: 3.359 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01096/0.9621, allocations: 3.123 MB / 0.4949 GB, free: 196 kB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002075/0.9642, allocations: 1.684 MB / 0.4965 GB, free: 14.47 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002673/0.9669, allocations: 0.537 MB / 0.4971 GB, free: 13.93 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001287/0.9682, allocations: 0.5579 MB / 0.4976 GB, free: 13.37 MB / 426.7 MB Notification: Performance of SimCode: time 1.523e-06/0.9682, allocations: 0 / 0.4976 GB, free: 13.37 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4114/1.38, allocations: 41.47 MB / 0.5381 GB, free: 123 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002696/1.38, allocations: 239.2 kB / 0.5383 GB, free: 122.6 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.932/5.312, allocations: 0 / 0.5383 GB, free: 122.6 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.HalfControlledBridge2mPulse_res.mat does not exist to compare? outputFormat=mat