Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_Rectifier1Pulse_Thyristor1Pulse_R_Characteristic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.031/2.031, allocations: 195 MB / 203.2 MB, free: 13.78 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.798e-05/2.804e-05, allocations: 8 kB / 249.7 MB, free: 15.18 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.306/0.306, allocations: 44.5 MB / 294.2 MB, free: 14.31 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1481/0.4542, allocations: 78.87 MB / 373.1 MB, free: 3.09 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003494/0.4546, allocations: 87.94 kB / 373.2 MB, free: 3.004 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04101/0.4957, allocations: 9.138 MB / 382.3 MB, free: 9.836 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.824e-06/0.4957, allocations: 0 / 382.3 MB, free: 9.836 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.82e-05/0.4958, allocations: 8 kB / 382.3 MB, free: 9.828 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.002054/0.4978, allocations: 0.6953 MB / 383 MB, free: 9.082 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.274e-05/0.4979, allocations: 12.03 kB / 383 MB, free: 9.07 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000215/0.4981, allocations: 55.34 kB / 383.1 MB, free: 9.016 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008442/0.499, allocations: 374.8 kB / 383.4 MB, free: 8.609 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.742e-05/0.4991, allocations: 15.98 kB / 383.5 MB, free: 8.594 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.774e-05/0.4992, allocations: 24 kB / 383.5 MB, free: 8.57 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008419/0.5, allocations: 277.5 kB / 383.8 MB, free: 8.301 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009826/0.501, allocations: 374.2 kB / 384.1 MB, free: 7.918 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.012e-05/0.5011, allocations: 11.94 kB / 384.1 MB, free: 7.906 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.832e-05/0.5012, allocations: 4 kB / 384.1 MB, free: 7.902 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.508e-05/0.5012, allocations: 8 kB / 384.1 MB, free: 7.895 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004131/0.5053, allocations: 1.494 MB / 385.6 MB, free: 6.32 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001264/0.5067, allocations: 331.3 kB / 386 MB, free: 5.988 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002758/0.507, allocations: 101.3 kB / 386.1 MB, free: 5.887 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.454e-05/0.507, allocations: 4.234 kB / 386.1 MB, free: 5.883 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005587/0.5076, allocations: 225.2 kB / 386.3 MB, free: 5.645 MB / 330.7 MB Notification: Performance of pre-optimization done (n=32): time 5.471e-06/0.5076, allocations: 0 / 386.3 MB, free: 5.645 MB / 330.7 MB Notification: Performance of matching and sorting (n=32): time 0.0009914/0.5086, allocations: 293.9 kB / 386.6 MB, free: 5.348 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.27e-05/0.5087, allocations: 122.8 kB / 386.7 MB, free: 5.203 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004669/0.5092, allocations: 257 kB / 386.9 MB, free: 4.941 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001111/0.5094, allocations: 37.69 kB / 387 MB, free: 4.898 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002292/0.5096, allocations: 278.6 kB / 387.3 MB, free: 4.625 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001223/0.5097, allocations: 90.7 kB / 387.3 MB, free: 4.535 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.862e-05/0.5098, allocations: 4 kB / 387.3 MB, free: 4.531 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.5099, allocations: 330.8 kB / 387.7 MB, free: 4.199 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002726/0.5102, allocations: 96.84 kB / 387.8 MB, free: 4.105 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004003/0.5106, allocations: 238.1 kB / 388 MB, free: 3.801 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003183/0.511, allocations: 116.5 kB / 388.1 MB, free: 3.688 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.466e-06/0.511, allocations: 4 kB / 388.1 MB, free: 3.684 MB / 330.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0009281/0.5119, allocations: 346.2 kB / 388.5 MB, free: 3.336 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007183/0.5127, allocations: 1.668 MB / 390.1 MB, free: 1.539 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.649e-05/0.5127, allocations: 4 kB / 390.1 MB, free: 1.535 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003331/0.513, allocations: 48.83 kB / 390.2 MB, free: 1.484 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006312/0.5137, allocations: 75.89 kB / 390.2 MB, free: 1.41 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001791/0.5155, allocations: 1.443 MB / 391.7 MB, free: 15.85 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006511/0.5162, allocations: 63.72 kB / 391.8 MB, free: 15.79 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.427e-05/0.5163, allocations: 16 kB / 391.8 MB, free: 15.77 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.469e-05/0.5163, allocations: 7.953 kB / 391.8 MB, free: 15.77 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008311/0.5171, allocations: 300.5 kB / 392.1 MB, free: 15.47 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.368e-06/0.5172, allocations: 4 kB / 392.1 MB, free: 15.46 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002245/0.5174, allocations: 40.83 kB / 392.1 MB, free: 15.42 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004819/0.5179, allocations: 72.31 kB / 392.2 MB, free: 15.35 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001653/0.5196, allocations: 1.443 MB / 393.6 MB, free: 13.8 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005139/0.5201, allocations: 47.88 kB / 393.7 MB, free: 13.75 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.28e-05/0.5202, allocations: 20 kB / 393.7 MB, free: 13.73 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 (47): * Single equations (assignments): 46 * 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.0002415/0.5204, allocations: 139 kB / 393.8 MB, free: 13.59 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0009138/0.5214, allocations: 294 kB / 394.1 MB, free: 13.29 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.811e-05/0.5215, allocations: 39.47 kB / 394.2 MB, free: 13.25 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001455/0.5216, allocations: 36.25 kB / 394.2 MB, free: 13.21 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.594e-06/0.5216, allocations: 4 kB / 394.2 MB, free: 13.2 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/0.5217, allocations: 0 / 394.2 MB, free: 13.2 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.313e-06/0.5217, allocations: 0 / 394.2 MB, free: 13.2 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00179/0.5235, allocations: 0.7694 MB / 395 MB, free: 12.39 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.25e-06/0.5235, allocations: 0 / 395 MB, free: 12.39 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004264/0.524, allocations: 47.91 kB / 395 MB, free: 12.34 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002318/0.5242, allocations: 48.78 kB / 395.1 MB, free: 12.29 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.892e-05/0.5243, allocations: 4 kB / 395.1 MB, free: 12.29 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001673/0.526, allocations: 1.35 MB / 396.4 MB, free: 10.82 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.634e-06/0.526, allocations: 3.938 kB / 396.4 MB, free: 10.82 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001229/0.5273, allocations: 0.4961 MB / 396.9 MB, free: 10.3 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002642/0.5276, allocations: 136.6 kB / 397 MB, free: 10.15 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.478e-05/0.5277, allocations: 7.938 kB / 397.1 MB, free: 10.14 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005292/0.5282, allocations: 39.97 kB / 397.1 MB, free: 10.1 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001644/0.5284, allocations: 35.94 kB / 397.1 MB, free: 10.07 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.691e-05/0.5285, allocations: 12 kB / 397.1 MB, free: 10.05 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003361/0.5288, allocations: 196.6 kB / 397.3 MB, free: 9.867 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.71e-07/0.5288, allocations: 0 / 397.3 MB, free: 9.867 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001266/0.5301, allocations: 171.4 kB / 397.5 MB, free: 9.699 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 (28): * Single equations (assignments): 22 * 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.001601/0.5317, allocations: 1.077 MB / 398.6 MB, free: 8.59 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001591/0.5334, allocations: 0.6426 MB / 399.2 MB, free: 7.93 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.268e-06/0.5334, allocations: 4.062 kB / 399.2 MB, free: 7.926 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005299/0.534, allocations: 245.5 kB / 399.5 MB, free: 7.676 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000543/0.5345, allocations: 41.14 kB / 399.5 MB, free: 7.633 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002516/0.5371, allocations: 0.6717 MB / 400.2 MB, free: 6.922 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006611/0.5378, allocations: 0.847 MB / 401 MB, free: 6.047 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003768/0.5382, allocations: 147.3 kB / 401.2 MB, free: 5.902 MB / 346.7 MB Notification: Performance of SimCode: time 1.142e-06/0.5382, allocations: 0 / 401.2 MB, free: 5.902 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.866/3.404, allocations: 8.333 MB / 409.5 MB, free: 13.58 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_Characteristic_res.mat does not exist to compare? outputFormat=mat