Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_DC_Drive",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.946/1.946, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.366e-05/3.389e-05, allocations: 4 kB / 292.3 MB, free: 8.211 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1057, allocations: 50.41 MB / 342.7 MB, free: 5.781 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5507/0.6564, allocations: 107.4 MB / 450 MB, free: 2.812 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003421/0.6568, allocations: 92.5 kB / 450.1 MB, free: 2.762 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1572/0.814, allocations: 37.13 MB / 487.2 MB, free: 1.781 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.963e-06/0.814, allocations: 0 / 487.2 MB, free: 1.781 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001641/0.8142, allocations: 48.36 kB / 487.3 MB, free: 1.734 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 373 * Number of variables: 373 Notification: Performance of Generate backend data structure: time 0.005345/0.8196, allocations: 1.752 MB / 489 MB, free: 15.93 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.23e-05/0.8196, allocations: 8.031 kB / 489 MB, free: 15.92 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006579/0.8203, allocations: 218.3 kB / 489.3 MB, free: 15.69 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001115/0.8214, allocations: 249.5 kB / 489.5 MB, free: 15.45 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004293/0.8258, allocations: 1.286 MB / 490.8 MB, free: 14.1 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001409/0.8259, allocations: 119 kB / 490.9 MB, free: 13.98 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003646/0.8263, allocations: 159.9 kB / 491.1 MB, free: 13.83 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004424/0.8307, allocations: 1.529 MB / 492.6 MB, free: 12.23 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.247e-05/0.8309, allocations: 0 / 492.6 MB, free: 12.23 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002252/0.8311, allocations: 64 kB / 492.6 MB, free: 12.17 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.642e-05/0.8312, allocations: 36 kB / 492.7 MB, free: 12.13 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003738/0.8349, allocations: 1.161 MB / 493.8 MB, free: 10.97 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01587/0.8508, allocations: 6.482 MB / 0.4886 GB, free: 4.223 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002594/0.8535, allocations: 0.9449 MB / 0.4895 GB, free: 3.266 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001734/0.8552, allocations: 0.5861 MB / 0.4901 GB, free: 2.676 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.385e-05/0.8553, allocations: 20.67 kB / 0.4901 GB, free: 2.656 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001403/0.8567, allocations: 0.5591 MB / 0.4907 GB, free: 2.074 MB / 410.7 MB Notification: Performance of pre-optimization done (n=94): time 5.871e-06/0.8568, allocations: 0 / 0.4907 GB, free: 2.074 MB / 410.7 MB Notification: Performance of matching and sorting (n=97): time 0.006848/0.8636, allocations: 2.444 MB / 0.493 GB, free: 15.55 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001266/0.8638, allocations: 196.7 kB / 0.4932 GB, free: 15.32 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002782/0.8666, allocations: 1.157 MB / 0.4944 GB, free: 14.14 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000255/0.8669, allocations: 49.7 kB / 0.4944 GB, free: 14.09 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009793/0.8679, allocations: 0.7802 MB / 0.4952 GB, free: 13.3 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004908/0.8684, allocations: 323.5 kB / 0.4955 GB, free: 12.98 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001185/0.8685, allocations: 24 kB / 0.4955 GB, free: 12.96 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001742/0.8687, allocations: 361.9 kB / 0.4959 GB, free: 12.6 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001134/0.8699, allocations: 419.8 kB / 0.4963 GB, free: 12.19 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00148/0.8714, allocations: 0.8448 MB / 0.4971 GB, free: 11.15 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001404/0.8728, allocations: 0.5183 MB / 0.4976 GB, free: 10.63 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.698e-06/0.8728, allocations: 0 / 0.4976 GB, free: 10.63 MB / 426.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.004107/0.8769, allocations: 1.565 MB / 0.4991 GB, free: 9.035 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001954/0.8789, allocations: 5.101 MB / 0.5041 GB, free: 3.586 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.67e-05/0.879, allocations: 12 kB / 0.5041 GB, free: 3.574 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001086/0.8801, allocations: 217.5 kB / 0.5043 GB, free: 3.355 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002244/0.8824, allocations: 307.5 kB / 0.5046 GB, free: 3.055 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006241/0.8886, allocations: 3.916 MB / 0.5084 GB, free: 14.87 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002504/0.8912, allocations: 183.7 kB / 0.5086 GB, free: 14.69 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003024/0.8915, allocations: 56 kB / 0.5087 GB, free: 14.64 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.424e-05/0.8915, allocations: 4 kB / 0.5087 GB, free: 14.63 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003837/0.8954, allocations: 1.401 MB / 0.51 GB, free: 13.21 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.055e-05/0.8955, allocations: 12 kB / 0.51 GB, free: 13.2 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009074/0.8964, allocations: 213.8 kB / 0.5102 GB, free: 12.98 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002197/0.8986, allocations: 307.6 kB / 0.5105 GB, free: 12.68 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006943/0.9056, allocations: 3.923 MB / 0.5144 GB, free: 8.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002326/0.9079, allocations: 155.9 kB / 0.5145 GB, free: 8.348 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003077/0.9083, allocations: 56 kB / 0.5146 GB, free: 8.293 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * Number of states: 0 () * Number of discrete variables: 29 ($PRE.meanVoltage.y_last,meanVoltage.y_last,$PRE.meanCurrent.y_last,meanCurrent.y_last,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.rootMeanSquareVoltage.mean.y_last,rootMeanSquareVoltage.mean.y_last,$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 (146): * Single equations (assignments): 144 * 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: 1 {(1,100.0%) 5} * Non-linear torn systems: 1 {4 14} Notification: Performance of prepare postOptimizeDAE: time 0.0005046/0.9088, allocations: 221.7 kB / 0.5148 GB, free: 8.07 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004642/0.9093, allocations: 146.2 kB / 0.5149 GB, free: 7.926 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00343/0.9127, allocations: 1.216 MB / 0.5161 GB, free: 6.668 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.705e-05/0.9128, allocations: 12 kB / 0.5161 GB, free: 6.656 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.9128, allocations: 0 / 0.5161 GB, free: 6.656 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.582e-05/0.9128, allocations: 3.984 kB / 0.5161 GB, free: 6.652 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007364/0.9202, allocations: 2.777 MB / 0.5188 GB, free: 3.766 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.064e-05/0.9203, allocations: 0 / 0.5188 GB, free: 3.766 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001479/0.9218, allocations: 168 kB / 0.519 GB, free: 3.602 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008991/0.9227, allocations: 197.5 kB / 0.5192 GB, free: 3.402 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001535/0.9228, allocations: 23.98 kB / 0.5192 GB, free: 3.379 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2965/1.219, allocations: 3.812 MB / 0.5229 GB, free: 119.2 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.045e-05/1.219, allocations: 5.641 kB / 0.5229 GB, free: 119.2 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004848/1.224, allocations: 1.874 MB / 0.5248 GB, free: 118.8 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001125/1.225, allocations: 329 kB / 0.5251 GB, free: 118.7 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003474/1.226, allocations: 31.55 kB / 0.5251 GB, free: 118.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001735/1.228, allocations: 139.5 kB / 0.5252 GB, free: 118.7 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003902/1.228, allocations: 105.6 kB / 0.5253 GB, free: 118.7 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.422e-05/1.228, allocations: 30.92 kB / 0.5254 GB, free: 118.7 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002061/1.23, allocations: 0.8653 MB / 0.5262 GB, free: 118.5 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.71e-07/1.23, allocations: 0 / 0.5262 GB, free: 118.5 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003554/1.234, allocations: 0.6409 MB / 0.5268 GB, free: 118.5 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 10 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,pulse2.twoPulse.filter[1].firstOrder.y,pulse2.twoPulse.filter[1].transferFunction[1].x_scaled[1],pulse2.twoPulse.filter[1].transferFunction[2].x_scaled[1],inductor.i,dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,lMains.i) * Number of discrete variables: 20 (pulse2.twoPulse.positiveThreshold[1].y,pulse2.twoPulse.negativeThreshold[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_last,rootMeanSquareVoltage.mean.y_last,meanCurrent.y_last,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 (75): * Single equations (assignments): 68 * 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: 1 {(1,100.0%) 5} * Non-linear torn systems: 1 {4 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.005132/1.239, allocations: 3.144 MB / 0.5299 GB, free: 117.1 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005428/1.244, allocations: 2.321 MB / 0.5322 GB, free: 116.6 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.037e-06/1.244, allocations: 0 / 0.5322 GB, free: 116.6 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002029/1.247, allocations: 0.8457 MB / 0.533 GB, free: 116.4 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002486/1.249, allocations: 300.2 kB / 0.5333 GB, free: 116.4 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009089/1.258, allocations: 2.793 MB / 0.536 GB, free: 115.7 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001362/1.26, allocations: 1.356 MB / 0.5373 GB, free: 115 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002864/1.262, allocations: 449.7 kB / 0.5378 GB, free: 115 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001128/1.264, allocations: 0.5869 MB / 0.5383 GB, free: 115 MB / 442.7 MB Notification: Performance of SimCode: time 1.162e-06/1.264, allocations: 0 / 0.5383 GB, free: 115 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1005/1.364, allocations: 38.17 MB / 0.5756 GB, free: 107.9 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002642/1.364, allocations: 242.5 kB / 0.5759 GB, free: 107.5 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.852/6.217, allocations: 3.281 kB / 0.5759 GB, free: 107.5 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive_res.mat does not exist to compare? outputFormat=mat