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.084/2.084, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.824e-05/2.848e-05, allocations: 0 / 249.7 MB, free: 15.18 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3099/0.3099, allocations: 44.5 MB / 294.2 MB, free: 14.21 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1433/0.4533, allocations: 78.68 MB / 372.9 MB, free: 3.207 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003426/0.4537, allocations: 83.95 kB / 373 MB, free: 3.125 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0398/0.4935, allocations: 9.019 MB / 382 MB, free: 10.08 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.963e-06/0.4936, allocations: 0 / 382 MB, free: 10.08 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.403e-05/0.4936, allocations: 8 kB / 382 MB, free: 10.07 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: 94 * Number of variables: 94 Notification: Performance of Generate backend data structure: time 0.001857/0.4955, allocations: 0.6797 MB / 382.7 MB, free: 9.344 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.382e-05/0.4956, allocations: 8.031 kB / 382.7 MB, free: 9.336 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002274/0.4958, allocations: 51.44 kB / 382.7 MB, free: 9.285 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008875/0.4967, allocations: 370.9 kB / 383.1 MB, free: 8.879 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.496e-05/0.4968, allocations: 16 kB / 383.1 MB, free: 8.863 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.593e-05/0.4969, allocations: 27.98 kB / 383.1 MB, free: 8.836 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008472/0.4978, allocations: 269.4 kB / 383.4 MB, free: 8.574 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009689/0.4988, allocations: 370.2 kB / 383.8 MB, free: 8.195 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.842e-05/0.4988, allocations: 7.906 kB / 383.8 MB, free: 8.188 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.859e-05/0.4989, allocations: 3.984 kB / 383.8 MB, free: 8.184 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.519e-05/0.4989, allocations: 8 kB / 383.8 MB, free: 8.176 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00389/0.5028, allocations: 1.47 MB / 385.3 MB, free: 6.629 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006339/0.5035, allocations: 211 kB / 385.5 MB, free: 6.414 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000224/0.5037, allocations: 88.83 kB / 385.6 MB, free: 6.324 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.761e-05/0.5038, allocations: 4 kB / 385.6 MB, free: 6.32 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005207/0.5043, allocations: 208.9 kB / 385.8 MB, free: 6.098 MB / 330.7 MB Notification: Performance of pre-optimization done (n=29): time 3.206e-06/0.5043, allocations: 0 / 385.8 MB, free: 6.098 MB / 330.7 MB Notification: Performance of matching and sorting (n=29): time 0.0009/0.5052, allocations: 270 kB / 386 MB, free: 5.824 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.08e-05/0.5054, allocations: 122.8 kB / 386.1 MB, free: 5.68 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005335/0.5059, allocations: 265.1 kB / 386.4 MB, free: 5.41 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.613e-05/0.506, allocations: 37.69 kB / 386.4 MB, free: 5.367 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002462/0.5062, allocations: 294.4 kB / 386.7 MB, free: 5.078 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001123/0.5064, allocations: 78.91 kB / 386.8 MB, free: 5 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.624e-05/0.5064, allocations: 0 / 386.8 MB, free: 5 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001525/0.5066, allocations: 330.8 kB / 387.1 MB, free: 4.668 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002588/0.5068, allocations: 96.84 kB / 387.2 MB, free: 4.574 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003972/0.5072, allocations: 238.2 kB / 387.5 MB, free: 4.266 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003052/0.5076, allocations: 121.6 kB / 387.6 MB, free: 4.148 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.531e-06/0.5076, allocations: 0 / 387.6 MB, free: 4.148 MB / 330.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0009155/0.5085, allocations: 348.8 kB / 387.9 MB, free: 3.801 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007953/0.5093, allocations: 1.656 MB / 389.6 MB, free: 2.016 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.596e-05/0.5094, allocations: 4 kB / 389.6 MB, free: 2.012 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003434/0.5097, allocations: 44.83 kB / 389.6 MB, free: 1.965 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000496/0.5102, allocations: 71.84 kB / 389.7 MB, free: 1.895 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001883/0.5121, allocations: 1.451 MB / 391.1 MB, free: 332 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006838/0.5129, allocations: 67.77 kB / 391.2 MB, free: 264 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.443e-05/0.5129, allocations: 19.95 kB / 391.2 MB, free: 244 kB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.202e-05/0.5129, allocations: 4 kB / 391.2 MB, free: 240 kB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008391/0.5138, allocations: 288.5 kB / 391.5 MB, free: 15.95 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.5138, allocations: 4 kB / 391.5 MB, free: 15.95 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002034/0.514, allocations: 40.84 kB / 391.6 MB, free: 15.9 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003929/0.5144, allocations: 63.84 kB / 391.6 MB, free: 15.84 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00172/0.5162, allocations: 1.44 MB / 393.1 MB, free: 14.29 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004807/0.5167, allocations: 47.88 kB / 393.1 MB, free: 14.24 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.833e-05/0.5168, allocations: 16 kB / 393.1 MB, free: 14.23 MB / 346.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.000245/0.517, allocations: 149.8 kB / 393.3 MB, free: 14.07 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008293/0.5178, allocations: 262 kB / 393.5 MB, free: 13.81 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.514e-05/0.5179, allocations: 35.53 kB / 393.6 MB, free: 13.77 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001358/0.5181, allocations: 44.25 kB / 393.6 MB, free: 13.72 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.315e-06/0.5181, allocations: 4 kB / 393.6 MB, free: 13.72 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.685e-06/0.5181, allocations: 0 / 393.6 MB, free: 13.72 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.476e-06/0.5181, allocations: 3.984 kB / 393.6 MB, free: 13.71 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001683/0.5198, allocations: 0.7298 MB / 394.3 MB, free: 12.94 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.653e-06/0.5199, allocations: 4 kB / 394.3 MB, free: 12.93 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002577/0.5202, allocations: 23.98 kB / 394.4 MB, free: 12.91 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002111/0.5204, allocations: 36.83 kB / 394.4 MB, free: 12.87 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.388e-05/0.5204, allocations: 8 kB / 394.4 MB, free: 12.86 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001648/0.5221, allocations: 1.35 MB / 395.8 MB, free: 11.4 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.5221, allocations: 0 / 395.8 MB, free: 11.4 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001136/0.5233, allocations: 484.5 kB / 396.2 MB, free: 10.91 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002386/0.5235, allocations: 140.6 kB / 396.4 MB, free: 10.75 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.312e-05/0.5236, allocations: 8.062 kB / 396.4 MB, free: 10.75 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004541/0.5241, allocations: 31.97 kB / 396.4 MB, free: 10.71 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001375/0.5243, allocations: 31.95 kB / 396.4 MB, free: 10.68 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.369e-05/0.5243, allocations: 11.98 kB / 396.5 MB, free: 10.67 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003489/0.5247, allocations: 208.6 kB / 396.7 MB, free: 10.47 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.5247, allocations: 4 kB / 396.7 MB, free: 10.47 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00119/0.5259, allocations: 175.4 kB / 396.8 MB, free: 10.3 MB / 346.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.001569/0.5275, allocations: 1.033 MB / 397.9 MB, free: 9.23 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001451/0.529, allocations: 0.6265 MB / 398.5 MB, free: 8.586 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/0.529, allocations: 0 / 398.5 MB, free: 8.586 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004414/0.5295, allocations: 226.6 kB / 398.7 MB, free: 8.355 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005515/0.53, allocations: 45.09 kB / 398.8 MB, free: 8.309 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002333/0.5324, allocations: 0.6512 MB / 399.4 MB, free: 7.617 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005616/0.533, allocations: 0.8347 MB / 400.2 MB, free: 6.754 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003422/0.5333, allocations: 136.5 kB / 400.4 MB, free: 6.621 MB / 346.7 MB Notification: Performance of SimCode: time 1.112e-06/0.5334, allocations: 0 / 400.4 MB, free: 6.621 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.922/3.455, allocations: 8.141 MB / 408.5 MB, free: 14.48 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.Rectifier1Pulse.Thyristor1Pulse_R_res.mat does not exist to compare? outputFormat=mat