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.077/2.077, allocations: 194.9 MB / 208.4 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.279e-05/3.283e-05, allocations: 4 kB / 255.5 MB, free: 3.078 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09487/0.09493, allocations: 44.51 MB / 300 MB, free: 6.504 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.422/0.517, allocations: 79.53 MB / 379.5 MB, free: 12.45 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003349/0.5174, allocations: 86.97 kB / 379.6 MB, free: 12.45 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03912/0.5566, allocations: 9.222 MB / 388.8 MB, free: 11.52 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.5566, allocations: 3.719 kB / 388.8 MB, free: 11.52 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.678e-05/0.5567, allocations: 8.953 kB / 388.8 MB, free: 11.52 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.001796/0.5585, allocations: 0.7096 MB / 389.5 MB, free: 11.04 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.272e-05/0.5585, allocations: 7.625 kB / 389.5 MB, free: 11.04 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000153/0.5587, allocations: 85.94 kB / 389.6 MB, free: 11 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001569/0.5589, allocations: 58.3 kB / 389.7 MB, free: 10.97 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007434/0.5596, allocations: 355.6 kB / 390 MB, free: 10.73 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.266e-05/0.5597, allocations: 36.39 kB / 390.1 MB, free: 10.73 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.905e-05/0.5598, allocations: 41.62 kB / 390.1 MB, free: 10.73 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00102/0.5608, allocations: 431.4 kB / 390.5 MB, free: 10.66 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.736e-05/0.5609, allocations: 0 / 390.5 MB, free: 10.66 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.849e-05/0.561, allocations: 19.36 kB / 390.5 MB, free: 10.66 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.217e-05/0.561, allocations: 11.66 kB / 390.6 MB, free: 10.66 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007762/0.5618, allocations: 287.8 kB / 390.8 MB, free: 10.66 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003697/0.5655, allocations: 1.57 MB / 392.4 MB, free: 10 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001225/0.5668, allocations: 338.8 kB / 392.7 MB, free: 9.977 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002801/0.5671, allocations: 104.1 kB / 392.8 MB, free: 9.969 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.61e-05/0.5672, allocations: 12.11 kB / 392.9 MB, free: 9.961 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004928/0.5677, allocations: 237.4 kB / 393.1 MB, free: 9.891 MB / 314.7 MB Notification: Performance of pre-optimization done (n=32): time 2.906e-06/0.5677, allocations: 0 / 393.1 MB, free: 9.891 MB / 314.7 MB Notification: Performance of matching and sorting (n=32): time 0.000916/0.5686, allocations: 320.4 kB / 393.4 MB, free: 9.816 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.776e-05/0.5687, allocations: 110.5 kB / 393.5 MB, free: 9.691 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004143/0.5691, allocations: 279.1 kB / 393.8 MB, free: 9.586 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.328e-05/0.5692, allocations: 41.36 kB / 393.8 MB, free: 9.551 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001661/0.5694, allocations: 282.9 kB / 394.1 MB, free: 9.34 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001175/0.5695, allocations: 104.1 kB / 394.2 MB, free: 9.285 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.904e-05/0.5695, allocations: 7.812 kB / 394.2 MB, free: 9.285 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.867e-05/0.5696, allocations: 326.1 kB / 394.5 MB, free: 8.973 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002679/0.5699, allocations: 103.8 kB / 394.6 MB, free: 8.969 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003699/0.5703, allocations: 253.6 kB / 394.9 MB, free: 8.785 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002956/0.5706, allocations: 119.4 kB / 395 MB, free: 8.777 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.46e-06/0.5706, allocations: 0 / 395 MB, free: 8.777 MB / 314.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0008402/0.5715, allocations: 398.2 kB / 395.4 MB, free: 8.688 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003416/0.5718, allocations: 1.655 MB / 397 MB, free: 6.949 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.38e-05/0.5719, allocations: 7.906 kB / 397 MB, free: 6.949 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003082/0.5722, allocations: 47.17 kB / 397.1 MB, free: 6.941 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005364/0.5727, allocations: 77.27 kB / 397.2 MB, free: 6.93 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001764/0.5745, allocations: 1.497 MB / 398.7 MB, free: 21.58 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006433/0.5752, allocations: 73.39 kB / 398.7 MB, free: 21.56 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.677e-05/0.5752, allocations: 11.72 kB / 398.7 MB, free: 21.56 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.027e-05/0.5753, allocations: 7.906 kB / 398.7 MB, free: 21.56 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007871/0.5761, allocations: 340.8 kB / 399.1 MB, free: 21.52 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.5761, allocations: 3.844 kB / 399.1 MB, free: 21.52 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001823/0.5763, allocations: 48.02 kB / 399.1 MB, free: 21.51 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004253/0.5767, allocations: 73.69 kB / 399.2 MB, free: 21.5 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001563/0.5783, allocations: 1.485 MB / 400.7 MB, free: 20.16 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004913/0.5788, allocations: 61.09 kB / 400.8 MB, free: 20.14 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.372e-05/0.5789, allocations: 23.34 kB / 400.8 MB, free: 20.14 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 (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.0002301/0.5791, allocations: 141.4 kB / 400.9 MB, free: 20.02 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001161/0.5792, allocations: 35.12 kB / 400.9 MB, free: 20 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001212/0.5794, allocations: 38.48 kB / 401 MB, free: 19.99 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.988e-06/0.5794, allocations: 0 / 401 MB, free: 19.99 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.5794, allocations: 3.875 kB / 401 MB, free: 19.99 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.835e-06/0.5794, allocations: 2.906 kB / 401 MB, free: 19.99 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001662/0.5811, allocations: 0.8478 MB / 401.8 MB, free: 19.66 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.969e-06/0.5811, allocations: 0 / 401.8 MB, free: 19.66 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003909/0.5815, allocations: 38.45 kB / 401.9 MB, free: 19.66 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002039/0.5817, allocations: 45.19 kB / 401.9 MB, free: 19.65 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.768e-05/0.5818, allocations: 7.625 kB / 401.9 MB, free: 19.65 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00153/0.5833, allocations: 1.41 MB / 403.3 MB, free: 18.36 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.5834, allocations: 7.938 kB / 403.3 MB, free: 18.36 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001111/0.5845, allocations: 0.5228 MB / 403.9 MB, free: 18.2 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002184/0.5847, allocations: 144.3 kB / 404 MB, free: 18.07 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.948e-05/0.5848, allocations: 11.03 kB / 404 MB, free: 18.07 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000519/0.5853, allocations: 48.94 kB / 404.1 MB, free: 18.07 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001312/0.5855, allocations: 31.5 kB / 404.1 MB, free: 18.07 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.178e-05/0.5855, allocations: 11.39 kB / 404.1 MB, free: 18.07 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003277/0.5859, allocations: 215.3 kB / 404.3 MB, free: 17.99 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5859, allocations: 0 / 404.3 MB, free: 17.99 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001118/0.587, allocations: 196.9 kB / 404.5 MB, free: 17.95 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 (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.001597/0.5886, allocations: 1.092 MB / 405.6 MB, free: 17.25 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001511/0.5902, allocations: 0.6636 MB / 406.3 MB, free: 17.01 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.725e-06/0.5902, allocations: 3.969 kB / 406.3 MB, free: 17.01 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000487/0.5907, allocations: 245.1 kB / 406.5 MB, free: 16.9 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005693/0.5913, allocations: 57.06 kB / 406.6 MB, free: 16.89 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002361/0.5937, allocations: 0.7038 MB / 407.3 MB, free: 16.6 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005036/0.5942, allocations: 0.8396 MB / 408.1 MB, free: 15.9 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003281/0.5946, allocations: 137.1 kB / 408.2 MB, free: 15.89 MB / 330.7 MB Notification: Performance of SimCode: time 1.172e-06/0.5946, allocations: 0 / 408.2 MB, free: 15.89 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.903/3.498, allocations: 8.42 MB / 416.7 MB, free: 12.46 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_Characteristic_res.mat does not exist to compare? outputFormat=mat