Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_R",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.033/2.033, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 5.249e-05/5.282e-05, allocations: 4 kB / 255.4 MB, free: 3.09 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.1099, allocations: 44.51 MB / 300 MB, free: 6.527 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4602/0.5701, allocations: 82.03 MB / 382 MB, free: 12.85 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003251/0.5705, allocations: 85.06 kB / 382.1 MB, free: 12.85 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04936/0.6199, allocations: 13.04 MB / 395.1 MB, free: 11.54 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.043e-06/0.62, allocations: 0 / 395.1 MB, free: 11.54 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.056e-05/0.62, allocations: 19.44 kB / 395.1 MB, free: 11.53 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: 155 * Number of variables: 155 Notification: Performance of Generate backend data structure: time 0.002057/0.6221, allocations: 0.8605 MB / 396 MB, free: 10.98 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.026e-05/0.6222, allocations: 15.66 kB / 396 MB, free: 10.98 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001771/0.6224, allocations: 101.4 kB / 396.1 MB, free: 10.94 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002076/0.6226, allocations: 86.83 kB / 396.2 MB, free: 10.9 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009802/0.6236, allocations: 499.2 kB / 396.7 MB, free: 10.62 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.658e-05/0.6236, allocations: 48.19 kB / 396.7 MB, free: 10.62 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001449/0.6238, allocations: 65.45 kB / 396.8 MB, free: 10.62 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001517/0.6253, allocations: 0.6661 MB / 397.4 MB, free: 10.51 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.914e-05/0.6254, allocations: 0 / 397.4 MB, free: 10.51 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.342e-05/0.6255, allocations: 26.91 kB / 397.5 MB, free: 10.51 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.77e-05/0.6255, allocations: 15.38 kB / 397.5 MB, free: 10.51 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001205/0.6267, allocations: 481.4 kB / 398 MB, free: 10.5 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005307/0.632, allocations: 2.599 MB / 400.6 MB, free: 9.18 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001534/0.6336, allocations: 0.5614 MB / 401.1 MB, free: 9.09 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007981/0.6344, allocations: 307.7 kB / 401.4 MB, free: 9.059 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.965e-05/0.6345, allocations: 4.406 kB / 401.4 MB, free: 9.059 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007107/0.6352, allocations: 335.3 kB / 401.8 MB, free: 8.93 MB / 314.7 MB Notification: Performance of pre-optimization done (n=55): time 2.765e-06/0.6353, allocations: 3.938 kB / 401.8 MB, free: 8.926 MB / 314.7 MB Notification: Performance of matching and sorting (n=55): time 0.001372/0.6366, allocations: 0.5174 MB / 402.3 MB, free: 8.805 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.398e-05/0.6367, allocations: 117.8 kB / 402.4 MB, free: 8.68 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007065/0.6374, allocations: 411.4 kB / 402.8 MB, free: 8.543 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.141e-05/0.6375, allocations: 48.97 kB / 402.8 MB, free: 8.508 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002275/0.6378, allocations: 341.5 kB / 403.2 MB, free: 8.266 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001543/0.6379, allocations: 164.4 kB / 403.3 MB, free: 8.152 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.581e-05/0.638, allocations: 14.66 kB / 403.3 MB, free: 8.152 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.782e-05/0.6381, allocations: 336.9 kB / 403.7 MB, free: 7.828 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004546/0.6386, allocations: 181 kB / 403.9 MB, free: 7.82 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005589/0.6391, allocations: 336.2 kB / 404.2 MB, free: 7.637 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004801/0.6396, allocations: 200.6 kB / 404.4 MB, free: 7.594 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.554e-06/0.6396, allocations: 3.844 kB / 404.4 MB, free: 7.594 MB / 314.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001445/0.6411, allocations: 0.618 MB / 405 MB, free: 7.457 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003393/0.6415, allocations: 1.57 MB / 406.6 MB, free: 5.809 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.381e-05/0.6415, allocations: 3.938 kB / 406.6 MB, free: 5.809 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007227/0.6422, allocations: 149.3 kB / 406.7 MB, free: 5.781 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005878/0.6428, allocations: 88.86 kB / 406.8 MB, free: 5.762 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003818/0.6467, allocations: 2.345 MB / 409.1 MB, free: 20.24 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008439/0.6475, allocations: 89.72 kB / 409.2 MB, free: 20.2 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.453e-05/0.6476, allocations: 22.5 kB / 409.3 MB, free: 20.2 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.054e-05/0.6476, allocations: 3.875 kB / 409.3 MB, free: 20.2 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001335/0.649, allocations: 0.564 MB / 409.8 MB, free: 20.11 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.378e-06/0.649, allocations: 7.844 kB / 409.8 MB, free: 20.11 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005799/0.6496, allocations: 162.8 kB / 410 MB, free: 20.07 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000504/0.6501, allocations: 73.88 kB / 410.1 MB, free: 20.06 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003726/0.6539, allocations: 2.315 MB / 412.4 MB, free: 18.56 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006052/0.6545, allocations: 73.42 kB / 412.5 MB, free: 18.53 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.925e-05/0.6546, allocations: 22.38 kB / 412.5 MB, free: 18.53 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 29 ($PRE.meanVoltage.y,meanVoltage.y,$PRE.meanCurrent.y,meanCurrent.y,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.rootMeanSquareVoltage.mean.y,rootMeanSquareVoltage.mean.y,$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 (61): * Single equations (assignments): 60 * 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 {4 14} Notification: Performance of prepare postOptimizeDAE: time 0.0002899/0.6549, allocations: 159.9 kB / 412.6 MB, free: 18.4 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001938/0.6551, allocations: 62.19 kB / 412.7 MB, free: 18.37 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002102/0.6553, allocations: 67.78 kB / 412.8 MB, free: 18.35 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.548e-06/0.6553, allocations: 6 kB / 412.8 MB, free: 18.35 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.787e-06/0.6553, allocations: 4 kB / 412.8 MB, free: 18.34 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.376e-06/0.6553, allocations: 3.938 kB / 412.8 MB, free: 18.34 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002803/0.6582, allocations: 1.341 MB / 414.1 MB, free: 17.77 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.071e-06/0.6582, allocations: 7.938 kB / 414.1 MB, free: 17.77 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003621/0.6586, allocations: 46.31 kB / 414.2 MB, free: 17.75 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005999/0.6592, allocations: 141.9 kB / 414.3 MB, free: 17.72 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.96e-05/0.6593, allocations: 14.86 kB / 414.3 MB, free: 17.72 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003611/0.6629, allocations: 2.231 MB / 416.5 MB, free: 16.28 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.6629, allocations: 3.984 kB / 416.6 MB, free: 16.27 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002011/0.6649, allocations: 0.8993 MB / 417.5 MB, free: 16 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003378/0.6653, allocations: 178.1 kB / 417.6 MB, free: 15.86 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001201/0.6654, allocations: 13.97 kB / 417.6 MB, free: 15.86 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005822/0.666, allocations: 45.94 kB / 417.7 MB, free: 15.84 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002468/0.6663, allocations: 72.92 kB / 417.8 MB, free: 15.82 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.781e-05/0.6663, allocations: 23.64 kB / 417.8 MB, free: 15.81 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005348/0.6669, allocations: 313.8 kB / 418.1 MB, free: 15.7 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.2e-07/0.6669, allocations: 3.875 kB / 418.1 MB, free: 15.7 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001528/0.6684, allocations: 331.9 kB / 418.4 MB, free: 15.65 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x) * Number of discrete variables: 20 (pulse2.twoPulse.negativeThreshold[1].y,pulse2.twoPulse.positiveThreshold[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,rootMeanSquareVoltage.mean.y,meanCurrent.y,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_n1.off,rectifier.thyristor_p1.off,rectifier.thyristor_p2.off,rectifier.thyristor_n2.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 32 * 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 {4 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.002405/0.6709, allocations: 1.532 MB / 419.9 MB, free: 14.78 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002568/0.6735, allocations: 1.142 MB / 421.1 MB, free: 14.4 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.344e-06/0.6735, allocations: 4.406 kB / 421.1 MB, free: 14.4 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009127/0.6744, allocations: 445.4 kB / 421.5 MB, free: 14.22 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000834/0.6753, allocations: 105.4 kB / 421.6 MB, free: 14.19 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003105/0.6784, allocations: 1.028 MB / 422.7 MB, free: 13.7 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006107/0.6791, allocations: 0.9443 MB / 423.6 MB, free: 12.89 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000453/0.6795, allocations: 221.3 kB / 423.8 MB, free: 12.86 MB / 330.7 MB Notification: Performance of SimCode: time 1.483e-06/0.6795, allocations: 0 / 423.8 MB, free: 12.86 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.963/3.643, allocations: 13.19 MB / 437 MB, free: 6.305 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.RectifierBridge2Pulse.ThyristorBridge2Pulse_R_res.mat does not exist to compare? outputFormat=mat