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.204/2.204, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.611e-05/2.624e-05, allocations: 4 kB / 249.7 MB, free: 15.18 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3329/0.333, allocations: 44.5 MB / 294.2 MB, free: 14.17 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1549/0.4879, allocations: 81.66 MB / 375.9 MB, free: 212 kB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003532/0.4884, allocations: 91.58 kB / 376 MB, free: 124 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06042/0.5488, allocations: 13.25 MB / 389.2 MB, free: 2.797 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.764e-06/0.5489, allocations: 0 / 389.2 MB, free: 2.797 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.583e-05/0.549, allocations: 20 kB / 389.2 MB, free: 2.777 MB / 330.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.002396/0.5514, allocations: 0.8799 MB / 390.1 MB, free: 1.844 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.261e-05/0.5514, allocations: 8.031 kB / 390.1 MB, free: 1.836 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002999/0.5517, allocations: 90.92 kB / 390.2 MB, free: 1.746 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001355/0.5531, allocations: 0.4923 MB / 390.7 MB, free: 1.211 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.452e-05/0.5532, allocations: 24 kB / 390.7 MB, free: 1.188 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001559/0.5534, allocations: 51.89 kB / 390.8 MB, free: 1.137 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001391/0.5548, allocations: 454.5 kB / 391.2 MB, free: 0.6953 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001574/0.5564, allocations: 0.5902 MB / 391.8 MB, free: 76 kB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.441e-05/0.5564, allocations: 4 kB / 391.8 MB, free: 72 kB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.118e-05/0.5565, allocations: 0 / 391.8 MB, free: 72 kB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.718e-05/0.5566, allocations: 19.95 kB / 391.8 MB, free: 52 kB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006331/0.5629, allocations: 2.514 MB / 394.4 MB, free: 13.44 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001626/0.5646, allocations: 0.548 MB / 394.9 MB, free: 12.88 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001011/0.5657, allocations: 334.4 kB / 395.2 MB, free: 12.54 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.517e-05/0.5658, allocations: 8.422 kB / 395.2 MB, free: 12.54 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008254/0.5666, allocations: 324.7 kB / 395.6 MB, free: 12.2 MB / 346.7 MB Notification: Performance of pre-optimization done (n=57): time 3.957e-06/0.5666, allocations: 0 / 395.6 MB, free: 12.2 MB / 346.7 MB Notification: Performance of matching and sorting (n=57): time 0.001486/0.5681, allocations: 0.4923 MB / 396 MB, free: 11.69 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.361e-05/0.5683, allocations: 119.3 kB / 396.2 MB, free: 11.55 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007929/0.5691, allocations: 365.1 kB / 396.5 MB, free: 11.19 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001428/0.5692, allocations: 37.7 kB / 396.6 MB, free: 11.14 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003418/0.5696, allocations: 362.5 kB / 396.9 MB, free: 10.79 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002419/0.5699, allocations: 169.6 kB / 397.1 MB, free: 10.62 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.487e-05/0.5699, allocations: 0 / 397.1 MB, free: 10.62 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001664/0.5701, allocations: 339.3 kB / 397.4 MB, free: 10.28 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005397/0.5706, allocations: 181.5 kB / 397.6 MB, free: 10.1 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006344/0.5713, allocations: 324 kB / 397.9 MB, free: 9.727 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005636/0.5719, allocations: 191.2 kB / 398.1 MB, free: 9.539 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.718e-06/0.5719, allocations: 4 kB / 398.1 MB, free: 9.535 MB / 346.7 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001756/0.5737, allocations: 0.5944 MB / 398.7 MB, free: 8.926 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007743/0.5745, allocations: 1.574 MB / 400.3 MB, free: 7.23 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.145e-05/0.5745, allocations: 8 kB / 400.3 MB, free: 7.223 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00082/0.5753, allocations: 161.6 kB / 400.4 MB, free: 7.059 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007438/0.5761, allocations: 95.83 kB / 400.5 MB, free: 6.965 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005174/0.5813, allocations: 3.492 MB / 404 MB, free: 3.238 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009223/0.5823, allocations: 71.55 kB / 404.1 MB, free: 3.168 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.889e-05/0.5824, allocations: 24 kB / 404.1 MB, free: 3.145 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.354e-05/0.5824, allocations: 8.062 kB / 404.1 MB, free: 3.137 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001519/0.5839, allocations: 0.5307 MB / 404.6 MB, free: 2.598 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.354e-05/0.584, allocations: 4.125 kB / 404.6 MB, free: 2.594 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006692/0.5846, allocations: 169.8 kB / 404.8 MB, free: 2.422 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006416/0.5853, allocations: 91.77 kB / 404.9 MB, free: 2.332 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005015/0.5903, allocations: 3.468 MB / 408.4 MB, free: 14.63 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006628/0.591, allocations: 51.66 kB / 408.4 MB, free: 14.58 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.732e-05/0.5911, allocations: 27.98 kB / 408.4 MB, free: 14.55 MB / 362.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.0002946/0.5914, allocations: 153.1 kB / 408.6 MB, free: 14.4 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001379/0.5928, allocations: 0.4923 MB / 409.1 MB, free: 13.9 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001237/0.593, allocations: 59.28 kB / 409.1 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002048/0.5932, allocations: 53.59 kB / 409.2 MB, free: 13.79 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.351e-05/0.5932, allocations: 11.98 kB / 409.2 MB, free: 13.78 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.5932, allocations: 0 / 409.2 MB, free: 13.78 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.027e-06/0.5932, allocations: 0 / 409.2 MB, free: 13.78 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00304/0.5963, allocations: 1.25 MB / 410.5 MB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.081e-06/0.5963, allocations: 0 / 410.5 MB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004957/0.5969, allocations: 55.91 kB / 410.5 MB, free: 12.43 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006675/0.5975, allocations: 153.6 kB / 410.7 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.729e-05/0.5976, allocations: 7.984 kB / 410.7 MB, free: 12.26 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005038/0.6027, allocations: 3.391 MB / 414.1 MB, free: 8.633 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.116e-06/0.6027, allocations: 7.984 kB / 414.1 MB, free: 8.625 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002301/0.605, allocations: 0.879 MB / 415 MB, free: 7.723 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004077/0.6055, allocations: 184.3 kB / 415.1 MB, free: 7.523 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001315/0.6056, allocations: 0 / 415.1 MB, free: 7.523 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005943/0.6062, allocations: 35.97 kB / 415.2 MB, free: 7.488 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002936/0.6066, allocations: 76.44 kB / 415.2 MB, free: 7.414 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.371e-05/0.6066, allocations: 16 kB / 415.3 MB, free: 7.398 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004892/0.6071, allocations: 275 kB / 415.5 MB, free: 7.129 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.02e-07/0.6071, allocations: 0 / 415.5 MB, free: 7.129 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001805/0.609, allocations: 299.1 kB / 415.8 MB, free: 6.836 MB / 362.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.002666/0.6116, allocations: 1.445 MB / 417.3 MB, free: 5.355 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002886/0.6146, allocations: 1.285 MB / 418.5 MB, free: 4.031 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.242e-06/0.6146, allocations: 4.188 kB / 418.6 MB, free: 4.027 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001056/0.6157, allocations: 0.4974 MB / 419 MB, free: 3.512 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000829/0.6165, allocations: 74.05 kB / 419.1 MB, free: 3.441 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003602/0.6202, allocations: 1.058 MB / 420.2 MB, free: 2.332 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007086/0.6209, allocations: 0.9426 MB / 421.1 MB, free: 1.363 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005078/0.6214, allocations: 231.3 kB / 421.3 MB, free: 1.137 MB / 362.7 MB Notification: Performance of SimCode: time 1.072e-06/0.6215, allocations: 96 / 421.3 MB, free: 1.137 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.179/3.8, allocations: 15.84 MB / 437.2 MB, free: 102 MB / 362.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