Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RL,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_RL",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.256/2.256, allocations: 195 MB / 202.9 MB, free: 6.727 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.756e-05/2.769e-05, allocations: 4.094 kB / 249.8 MB, free: 5.27 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09714/0.09719, allocations: 44.51 MB / 294.3 MB, free: 10.63 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5003/0.5975, allocations: 81.67 MB / 376 MB, free: 7.172 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003197/0.5979, allocations: 86.91 kB / 376.1 MB, free: 7.172 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05599/0.6539, allocations: 13.24 MB / 389.3 MB, free: 18.24 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.454e-06/0.654, allocations: 0 / 389.3 MB, free: 18.24 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.353e-05/0.6541, allocations: 23.09 kB / 389.3 MB, free: 18.24 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: 161 * Number of variables: 161 Notification: Performance of Generate backend data structure: time 0.002276/0.6564, allocations: 0.8779 MB / 390.2 MB, free: 17.59 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.887e-05/0.6564, allocations: 7.719 kB / 390.2 MB, free: 17.59 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002201/0.6567, allocations: 93.33 kB / 390.3 MB, free: 17.54 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001083/0.6578, allocations: 499.8 kB / 390.8 MB, free: 17.22 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.991e-05/0.6578, allocations: 23.44 kB / 390.8 MB, free: 17.22 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001418/0.658, allocations: 49.84 kB / 390.9 MB, free: 17.21 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001293/0.6593, allocations: 458.6 kB / 391.3 MB, free: 17.18 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001485/0.6608, allocations: 0.5879 MB / 391.9 MB, free: 17 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.201e-05/0.6608, allocations: 0 / 391.9 MB, free: 17 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.146e-05/0.6609, allocations: 3.984 kB / 391.9 MB, free: 16.99 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.802e-05/0.661, allocations: 23.33 kB / 391.9 MB, free: 16.98 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005718/0.6667, allocations: 2.514 MB / 394.4 MB, free: 15.53 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001581/0.6683, allocations: 0.5504 MB / 395 MB, free: 15.44 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009353/0.6693, allocations: 336.8 kB / 395.3 MB, free: 15.4 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.77e-05/0.6694, allocations: 4.312 kB / 395.3 MB, free: 15.4 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007772/0.6702, allocations: 325.2 kB / 395.6 MB, free: 15.27 MB / 314.7 MB Notification: Performance of pre-optimization done (n=57): time 3.817e-06/0.6702, allocations: 4 kB / 395.6 MB, free: 15.27 MB / 314.7 MB Notification: Performance of matching and sorting (n=57): time 0.001417/0.6716, allocations: 0.4954 MB / 396.1 MB, free: 15.14 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.841e-05/0.6717, allocations: 114.1 kB / 396.3 MB, free: 15.02 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006929/0.6724, allocations: 368 kB / 396.6 MB, free: 14.88 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.776e-05/0.6725, allocations: 33.08 kB / 396.6 MB, free: 14.84 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003245/0.6729, allocations: 315.5 kB / 397 MB, free: 14.65 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002191/0.6731, allocations: 173.2 kB / 397.1 MB, free: 14.53 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.748e-05/0.6732, allocations: 0 / 397.1 MB, free: 14.53 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000204/0.6734, allocations: 368 kB / 397.5 MB, free: 14.19 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004562/0.6738, allocations: 181.2 kB / 397.7 MB, free: 14.18 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000603/0.6745, allocations: 327.4 kB / 398 MB, free: 14 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005089/0.675, allocations: 194.6 kB / 398.2 MB, free: 13.96 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.933e-06/0.675, allocations: 3.875 kB / 398.2 MB, free: 13.96 MB / 314.7 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001715/0.6767, allocations: 0.6136 MB / 398.8 MB, free: 13.81 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007476/0.6775, allocations: 1.58 MB / 400.4 MB, free: 12.15 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.529e-05/0.6775, allocations: 3.875 kB / 400.4 MB, free: 12.15 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007907/0.6783, allocations: 158.7 kB / 400.5 MB, free: 12.11 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007343/0.6791, allocations: 97.48 kB / 400.6 MB, free: 12.09 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005293/0.6844, allocations: 3.504 MB / 404.1 MB, free: 9.316 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009369/0.6854, allocations: 73.89 kB / 404.2 MB, free: 9.281 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.217e-05/0.6855, allocations: 22.38 kB / 404.2 MB, free: 9.281 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.17e-05/0.6855, allocations: 8.062 kB / 404.2 MB, free: 9.281 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001453/0.6869, allocations: 0.5304 MB / 404.8 MB, free: 9.184 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.757e-06/0.687, allocations: 3.875 kB / 404.8 MB, free: 9.184 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007132/0.6877, allocations: 155.9 kB / 404.9 MB, free: 9.145 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006468/0.6884, allocations: 88.77 kB / 405 MB, free: 9.125 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005085/0.6935, allocations: 3.507 MB / 408.5 MB, free: 6.348 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000833/0.6943, allocations: 62.69 kB / 408.6 MB, free: 6.316 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.86e-05/0.6944, allocations: 27 kB / 408.6 MB, free: 6.316 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 29 ($PRE.meanVoltage.y,meanVoltage.y,$PRE.meanCurrent.y,meanCurrent.y,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.rootMeanSquareVoltage.mean.y,rootMeanSquareVoltage.mean.y,$whenCondition2,$whenCondition1,rectifier.andCondition_p.y,rectifier.andCondition_n.y,$PRE.rectifier.thyristor_p1.off,rectifier.thyristor_p1.off,$PRE.rectifier.thyristor_p2.off,rectifier.thyristor_p2.off,$PRE.rectifier.thyristor_n1.off,rectifier.thyristor_n1.off,$PRE.rectifier.thyristor_n2.off,rectifier.thyristor_n2.off,pulse2.twoPulse.positiveThreshold[1].y,pulse2.twoPulse.negativeThreshold[1].y,$PRE.pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerPositive[1].entryTime,$PRE.pulse2.twoPulse.timerNegative[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.fire_p,pulse2.fire_n) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 63 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 8,2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0002952/0.6947, allocations: 140.8 kB / 408.7 MB, free: 6.191 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00131/0.696, allocations: 0.491 MB / 409.2 MB, free: 6.078 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001223/0.6962, allocations: 58.39 kB / 409.3 MB, free: 6.047 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002189/0.6964, allocations: 58.53 kB / 409.3 MB, free: 6.035 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.867e-06/0.6964, allocations: 3.688 kB / 409.3 MB, free: 6.035 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.616e-06/0.6964, allocations: 0 / 409.3 MB, free: 6.035 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.844e-05/0.6965, allocations: 7.969 kB / 409.3 MB, free: 6.027 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003175/0.6997, allocations: 1.26 MB / 410.6 MB, free: 5.5 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.233e-06/0.6997, allocations: 0 / 410.6 MB, free: 5.5 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000532/0.7003, allocations: 46.41 kB / 410.7 MB, free: 5.492 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007049/0.701, allocations: 147 kB / 410.8 MB, free: 5.453 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.865e-05/0.7011, allocations: 11.72 kB / 410.8 MB, free: 5.445 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005023/0.7061, allocations: 3.388 MB / 414.2 MB, free: 2.77 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.113e-05/0.7062, allocations: 8.016 kB / 414.2 MB, free: 2.762 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002238/0.7084, allocations: 0.8706 MB / 415.1 MB, free: 2.504 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003696/0.7088, allocations: 180 kB / 415.2 MB, free: 2.359 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001503/0.709, allocations: 7.859 kB / 415.3 MB, free: 2.355 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006456/0.7096, allocations: 30.59 kB / 415.3 MB, free: 2.348 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002939/0.7099, allocations: 71.95 kB / 415.4 MB, free: 2.32 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.761e-05/0.71, allocations: 18.48 kB / 415.4 MB, free: 2.316 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004681/0.7105, allocations: 277.6 kB / 415.6 MB, free: 2.207 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.7105, allocations: 0 / 415.6 MB, free: 2.207 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001743/0.7123, allocations: 307.6 kB / 415.9 MB, free: 2.152 MB / 314.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: 20 (pulse2.twoPulse.negativeThreshold[1].y,pulse2.twoPulse.positiveThreshold[1].y,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,rectifier.andCondition_p.y,rectifier.andCondition_n.y,rectifier.thyristor_p1.off,rectifier.thyristor_p2.off,rectifier.thyristor_n1.off,rectifier.thyristor_n2.off,meanVoltage.y,rootMeanSquareVoltage.mean.y,meanCurrent.y,pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.fire_p,pulse2.fire_n) * Number of discrete states: 7 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.thyristor_p2.off,rectifier.thyristor_p1.off,rectifier.thyristor_n1.off,rectifier.thyristor_n2.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 8,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.002614/0.7149, allocations: 1.449 MB / 417.4 MB, free: 1.348 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002999/0.7179, allocations: 1.291 MB / 418.7 MB, free: 476 kB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 8.997e-06/0.718, allocations: 4 kB / 418.7 MB, free: 472 kB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001076/0.7191, allocations: 0.504 MB / 419.2 MB, free: 48 kB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009223/0.72, allocations: 83.41 kB / 419.3 MB, free: 15.98 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003786/0.7238, allocations: 1.046 MB / 420.3 MB, free: 15.01 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008503/0.7247, allocations: 0.9426 MB / 421.3 MB, free: 14.05 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0007858/0.7255, allocations: 100.6 kB / 421.4 MB, free: 13.95 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004552/0.726, allocations: 215.5 kB / 421.6 MB, free: 13.9 MB / 330.7 MB Notification: Performance of SimCode: time 1.222e-06/0.726, allocations: 0 / 421.6 MB, free: 13.9 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07616/0.8021, allocations: 14.33 MB / 435.9 MB, free: 15.64 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003919/0.8026, allocations: 214.1 kB / 436.1 MB, free: 15.36 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.511/4.313, allocations: 0 / 436.1 MB, free: 15.36 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RL_res.mat does not exist to compare? outputFormat=mat