Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_Rectifier1Pulse_Thyristor1Pulse_R",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.036/2.036, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.156e-05/4.175e-05, allocations: 8 kB / 255.4 MB, free: 3.09 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.101, allocations: 44.51 MB / 300 MB, free: 6.523 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4035/0.5045, allocations: 79.33 MB / 379.3 MB, free: 12.89 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003154/0.5049, allocations: 86.38 kB / 379.4 MB, free: 12.89 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0373/0.5422, allocations: 9.109 MB / 388.5 MB, free: 11.98 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.5422, allocations: 0 / 388.5 MB, free: 11.98 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.623e-05/0.5423, allocations: 9.078 kB / 388.5 MB, free: 11.98 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: 94 * Number of variables: 94 Notification: Performance of Generate backend data structure: time 0.00151/0.5438, allocations: 0.6828 MB / 389.2 MB, free: 11.51 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.743e-05/0.5439, allocations: 15.62 kB / 389.2 MB, free: 11.5 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001241/0.544, allocations: 69.92 kB / 389.2 MB, free: 11.46 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001427/0.5442, allocations: 57.88 kB / 389.3 MB, free: 11.44 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006977/0.5449, allocations: 370.6 kB / 389.7 MB, free: 11.2 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.6e-05/0.5449, allocations: 35.55 kB / 389.7 MB, free: 11.2 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.563e-05/0.545, allocations: 40.84 kB / 389.7 MB, free: 11.2 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009724/0.546, allocations: 423.2 kB / 390.2 MB, free: 11.12 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.837e-05/0.5461, allocations: 3.906 kB / 390.2 MB, free: 11.12 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.214e-05/0.5461, allocations: 19.62 kB / 390.2 MB, free: 11.12 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.152e-05/0.5462, allocations: 11.62 kB / 390.2 MB, free: 11.12 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007235/0.5469, allocations: 292.3 kB / 390.5 MB, free: 11.11 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003568/0.5505, allocations: 1.54 MB / 392 MB, free: 10.46 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006199/0.5511, allocations: 240.2 kB / 392.2 MB, free: 10.43 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002079/0.5514, allocations: 91.09 kB / 392.3 MB, free: 10.42 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.489e-05/0.5514, allocations: 3.875 kB / 392.3 MB, free: 10.42 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004526/0.5519, allocations: 224.9 kB / 392.6 MB, free: 10.35 MB / 314.7 MB Notification: Performance of pre-optimization done (n=29): time 2.745e-06/0.5519, allocations: 0 / 392.6 MB, free: 10.35 MB / 314.7 MB Notification: Performance of matching and sorting (n=29): time 0.0008561/0.5528, allocations: 295.2 kB / 392.9 MB, free: 10.27 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.89e-05/0.5528, allocations: 113.7 kB / 393 MB, free: 10.15 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000466/0.5533, allocations: 294.5 kB / 393.2 MB, free: 10.05 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.959e-05/0.5534, allocations: 40.86 kB / 393.3 MB, free: 10.01 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001899/0.5536, allocations: 293.2 kB / 393.6 MB, free: 9.793 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.031e-05/0.5537, allocations: 83.09 kB / 393.7 MB, free: 9.746 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.642e-05/0.5537, allocations: 10.69 kB / 393.7 MB, free: 9.742 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.001e-05/0.5538, allocations: 332.4 kB / 394 MB, free: 9.43 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002499/0.5541, allocations: 96.73 kB / 394.1 MB, free: 9.43 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003381/0.5544, allocations: 249.2 kB / 394.3 MB, free: 9.246 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000288/0.5547, allocations: 126.5 kB / 394.5 MB, free: 9.23 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.18e-06/0.5547, allocations: 0 / 394.5 MB, free: 9.23 MB / 314.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008216/0.5556, allocations: 390.3 kB / 394.8 MB, free: 9.145 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003549/0.5559, allocations: 1.653 MB / 396.5 MB, free: 7.41 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.213e-05/0.556, allocations: 3.875 kB / 396.5 MB, free: 7.41 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003087/0.5563, allocations: 51.69 kB / 396.5 MB, free: 7.402 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004398/0.5567, allocations: 67.8 kB / 396.6 MB, free: 7.395 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001655/0.5584, allocations: 1.497 MB / 398.1 MB, free: 22.04 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006717/0.5591, allocations: 81.2 kB / 398.2 MB, free: 22.02 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.784e-05/0.5592, allocations: 19.22 kB / 398.2 MB, free: 22.02 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.221e-05/0.5592, allocations: 3.844 kB / 398.2 MB, free: 22.02 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007605/0.56, allocations: 342 kB / 398.5 MB, free: 21.97 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.56, allocations: 3.875 kB / 398.5 MB, free: 21.97 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001857/0.5602, allocations: 41.81 kB / 398.6 MB, free: 21.96 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003547/0.5606, allocations: 65.38 kB / 398.6 MB, free: 21.96 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001598/0.5622, allocations: 1.486 MB / 400.1 MB, free: 20.61 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004816/0.5627, allocations: 60.55 kB / 400.2 MB, free: 20.59 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.278e-05/0.5627, allocations: 14.94 kB / 400.2 MB, free: 20.59 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 21 ($PRE.meanVoltage.y,meanVoltage.y,$PRE.meanCurrent.y,meanCurrent.y,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.rootMeanSquareVoltage.mean.y,rootMeanSquareVoltage.mean.y,$whenCondition2,$whenCondition1,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_n,$PRE.idealthyristor.off,idealthyristor.off,idealthyristor.fire) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0002195/0.563, allocations: 157.3 kB / 400.4 MB, free: 20.46 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001182/0.5631, allocations: 37.5 kB / 400.4 MB, free: 20.44 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001223/0.5632, allocations: 35.52 kB / 400.4 MB, free: 20.43 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.681e-06/0.5633, allocations: 7.875 kB / 400.4 MB, free: 20.43 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.5633, allocations: 0 / 400.4 MB, free: 20.43 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.825e-06/0.5633, allocations: 3.953 kB / 400.4 MB, free: 20.42 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001596/0.5649, allocations: 0.8184 MB / 401.3 MB, free: 20.1 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.25e-06/0.5649, allocations: 0 / 401.3 MB, free: 20.1 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002407/0.5652, allocations: 27.38 kB / 401.3 MB, free: 20.1 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001941/0.5654, allocations: 38.58 kB / 401.3 MB, free: 20.09 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.258e-05/0.5654, allocations: 11.22 kB / 401.3 MB, free: 20.09 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001437/0.5669, allocations: 1.411 MB / 402.7 MB, free: 18.81 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.5669, allocations: 0 / 402.7 MB, free: 18.81 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00107/0.568, allocations: 495.8 kB / 403.2 MB, free: 18.65 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002139/0.5682, allocations: 146.8 kB / 403.4 MB, free: 18.53 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.842e-05/0.5683, allocations: 11.12 kB / 403.4 MB, free: 18.52 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004418/0.5688, allocations: 38.91 kB / 403.4 MB, free: 18.52 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001233/0.5689, allocations: 26.92 kB / 403.5 MB, free: 18.52 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.056e-05/0.569, allocations: 11.52 kB / 403.5 MB, free: 18.52 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003643/0.5693, allocations: 230.6 kB / 403.7 MB, free: 18.43 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5694, allocations: 0 / 403.7 MB, free: 18.43 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001076/0.5704, allocations: 187.3 kB / 403.9 MB, free: 18.41 MB / 330.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: 15 (pulse2.twoPulse.negativeThreshold[1].y,pulse2.twoPulse.positiveThreshold[1].y,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,meanVoltage.y,rootMeanSquareVoltage.mean.y,meanCurrent.y,pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.fire_n,idealthyristor.off,idealthyristor.fire) * Number of discrete states: 4 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,idealthyristor.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 19 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.001567/0.572, allocations: 1.067 MB / 404.9 MB, free: 17.7 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001397/0.5735, allocations: 0.6753 MB / 405.6 MB, free: 17.43 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.973e-06/0.5735, allocations: 3.844 kB / 405.6 MB, free: 17.43 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004185/0.5739, allocations: 237.8 kB / 405.8 MB, free: 17.31 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005044/0.5745, allocations: 51.64 kB / 405.9 MB, free: 17.3 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002209/0.5767, allocations: 0.6704 MB / 406.6 MB, free: 17.02 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004484/0.5772, allocations: 0.8387 MB / 407.4 MB, free: 16.32 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003089/0.5775, allocations: 135.7 kB / 407.5 MB, free: 16.31 MB / 330.7 MB Notification: Performance of SimCode: time 1.613e-06/0.5775, allocations: 0 / 407.5 MB, free: 16.31 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.046/3.623, allocations: 8.256 MB / 415.8 MB, free: 13.07 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_res.mat does not exist to compare? outputFormat=mat