Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RL,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_RL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.246/2.246, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.434e-05/3.451e-05, allocations: 4 kB / 255.5 MB, free: 3.074 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09482/0.09488, allocations: 44.51 MB / 300 MB, free: 6.5 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4222/0.5172, allocations: 82.34 MB / 382.3 MB, free: 12.68 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003268/0.5176, allocations: 83.98 kB / 382.4 MB, free: 12.68 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05346/0.571, allocations: 13.38 MB / 395.8 MB, free: 11.33 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.5711, allocations: 0 / 395.8 MB, free: 11.33 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.048e-05/0.5712, allocations: 23.06 kB / 395.8 MB, free: 11.33 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.00232/0.5735, allocations: 0.8727 MB / 396.7 MB, free: 10.78 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.972e-05/0.5736, allocations: 11.45 kB / 396.7 MB, free: 10.78 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002578/0.5738, allocations: 107.6 kB / 396.8 MB, free: 10.74 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002653/0.5741, allocations: 96.16 kB / 396.9 MB, free: 10.69 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001128/0.5752, allocations: 497.9 kB / 397.4 MB, free: 10.42 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.221e-05/0.5753, allocations: 62.84 kB / 397.4 MB, free: 10.41 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001403/0.5755, allocations: 71.22 kB / 397.5 MB, free: 10.41 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001646/0.5771, allocations: 0.6673 MB / 398.2 MB, free: 10.3 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.855e-05/0.5772, allocations: 0 / 398.2 MB, free: 10.3 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.925e-05/0.5773, allocations: 30.81 kB / 398.2 MB, free: 10.3 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.684e-05/0.5774, allocations: 19.5 kB / 398.2 MB, free: 10.3 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001324/0.5787, allocations: 490 kB / 398.7 MB, free: 10.29 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005466/0.5842, allocations: 2.647 MB / 401.3 MB, free: 8.773 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001499/0.5857, allocations: 0.5695 MB / 401.9 MB, free: 8.684 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001127/0.5869, allocations: 391.7 kB / 402.3 MB, free: 8.633 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.208e-05/0.587, allocations: 4.312 kB / 402.3 MB, free: 8.633 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007267/0.5877, allocations: 339.3 kB / 402.6 MB, free: 8.504 MB / 314.7 MB Notification: Performance of pre-optimization done (n=57): time 3.156e-06/0.5877, allocations: 0 / 402.6 MB, free: 8.504 MB / 314.7 MB Notification: Performance of matching and sorting (n=57): time 0.001434/0.5892, allocations: 0.5416 MB / 403.2 MB, free: 8.379 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.584e-05/0.5893, allocations: 115 kB / 403.3 MB, free: 8.25 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007772/0.5901, allocations: 426.3 kB / 403.7 MB, free: 8.102 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001003/0.5902, allocations: 40.27 kB / 403.7 MB, free: 8.07 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002371/0.5904, allocations: 357.3 kB / 404.1 MB, free: 7.824 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001674/0.5906, allocations: 176.2 kB / 404.3 MB, free: 7.703 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.792e-05/0.5907, allocations: 13.47 kB / 404.3 MB, free: 7.703 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.153e-05/0.5908, allocations: 339.4 kB / 404.6 MB, free: 7.379 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004723/0.5912, allocations: 187.3 kB / 404.8 MB, free: 7.375 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005593/0.5918, allocations: 338.2 kB / 405.1 MB, free: 7.191 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004952/0.5923, allocations: 211.9 kB / 405.3 MB, free: 7.148 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.432e-06/0.5923, allocations: 0 / 405.3 MB, free: 7.148 MB / 314.7 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.00158/0.5939, allocations: 0.6465 MB / 406 MB, free: 7.004 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003368/0.5943, allocations: 1.573 MB / 407.5 MB, free: 5.355 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.213e-05/0.5943, allocations: 3.844 kB / 407.5 MB, free: 5.355 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007631/0.5951, allocations: 153.9 kB / 407.7 MB, free: 5.316 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006916/0.5958, allocations: 103 kB / 407.8 MB, free: 5.293 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004864/0.6007, allocations: 3.591 MB / 411.4 MB, free: 18.43 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009558/0.6017, allocations: 91.64 kB / 411.5 MB, free: 18.39 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.026e-05/0.6018, allocations: 23.06 kB / 411.5 MB, free: 18.39 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.225e-05/0.6018, allocations: 3.906 kB / 411.5 MB, free: 18.39 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001529/0.6034, allocations: 0.6014 MB / 412.1 MB, free: 18.28 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.213e-05/0.6034, allocations: 7.719 kB / 412.1 MB, free: 18.28 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006083/0.604, allocations: 152.9 kB / 412.3 MB, free: 18.25 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006052/0.6047, allocations: 89.58 kB / 412.3 MB, free: 18.23 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004928/0.6096, allocations: 3.574 MB / 415.9 MB, free: 15.38 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007118/0.6104, allocations: 71.66 kB / 416 MB, free: 15.34 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.725e-05/0.6105, allocations: 24.81 kB / 416 MB, free: 15.34 MB / 330.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.0002908/0.6108, allocations: 161.2 kB / 416.2 MB, free: 15.22 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001982/0.611, allocations: 58.36 kB / 416.2 MB, free: 15.19 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002137/0.6112, allocations: 66.14 kB / 416.3 MB, free: 15.17 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.797e-06/0.6112, allocations: 8.172 kB / 416.3 MB, free: 15.17 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.655e-06/0.6112, allocations: 0 / 416.3 MB, free: 15.17 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.318e-06/0.6112, allocations: 7.984 kB / 416.3 MB, free: 15.16 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00312/0.6144, allocations: 1.404 MB / 417.7 MB, free: 14.56 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.632e-06/0.6144, allocations: 3.969 kB / 417.7 MB, free: 14.56 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004535/0.6149, allocations: 54.16 kB / 417.8 MB, free: 14.55 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006374/0.6155, allocations: 149.4 kB / 417.9 MB, free: 14.51 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.378e-05/0.6156, allocations: 14.81 kB / 417.9 MB, free: 14.5 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004826/0.6205, allocations: 3.516 MB / 421.4 MB, free: 11.71 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.6205, allocations: 3.844 kB / 421.4 MB, free: 11.71 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0023/0.6228, allocations: 0.9274 MB / 422.4 MB, free: 11.43 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000487/0.6234, allocations: 195.5 kB / 422.6 MB, free: 11.28 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001408/0.6235, allocations: 10.78 kB / 422.6 MB, free: 11.28 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006451/0.6242, allocations: 45.8 kB / 422.6 MB, free: 11.27 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002791/0.6245, allocations: 71.89 kB / 422.7 MB, free: 11.24 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.136e-05/0.6246, allocations: 23.61 kB / 422.7 MB, free: 11.23 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005976/0.6252, allocations: 326.8 kB / 423 MB, free: 11.12 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.31e-07/0.6252, allocations: 0 / 423 MB, free: 11.12 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001873/0.6271, allocations: 338.8 kB / 423.4 MB, free: 11.07 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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.002718/0.6298, allocations: 1.574 MB / 424.9 MB, free: 10.18 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002953/0.6328, allocations: 1.318 MB / 426.3 MB, free: 9.633 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 9.378e-06/0.6329, allocations: 0 / 426.3 MB, free: 9.633 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001072/0.634, allocations: 0.526 MB / 426.8 MB, free: 9.363 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009181/0.6349, allocations: 95.59 kB / 426.9 MB, free: 9.336 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003708/0.6387, allocations: 1.12 MB / 428 MB, free: 8.789 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006575/0.6394, allocations: 0.9444 MB / 428.9 MB, free: 7.98 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004906/0.6399, allocations: 233.1 kB / 429.2 MB, free: 7.949 MB / 330.7 MB Notification: Performance of SimCode: time 1.373e-06/0.6399, allocations: 4 kB / 429.2 MB, free: 7.945 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.193/3.833, allocations: 16.16 MB / 445.3 MB, free: 15.38 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RL_res.mat does not exist to compare? outputFormat=mat