Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2mPulse.DiodeCenterTap2mPulse,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTap2mPulse_DiodeCenterTap2mPulse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.013/2.013, allocations: 194.9 MB / 208.4 MB, free: 3.16 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.961e-05/3.988e-05, allocations: 3.984 kB / 255.5 MB, free: 3.062 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.1189, allocations: 44.51 MB / 300 MB, free: 6.496 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4733/0.5922, allocations: 78.57 MB / 378.5 MB, free: 12.47 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002816/0.5926, allocations: 87.89 kB / 378.6 MB, free: 12.47 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08054/0.6731, allocations: 20.97 MB / 399.6 MB, free: 9.383 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.587e-06/0.6732, allocations: 0 / 399.6 MB, free: 9.383 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001248/0.6733, allocations: 35.19 kB / 399.6 MB, free: 9.375 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: 264 * Number of variables: 264 Notification: Performance of Generate backend data structure: time 0.004544/0.6779, allocations: 1.365 MB / 401 MB, free: 8.484 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.844e-05/0.678, allocations: 11.41 kB / 401 MB, free: 8.484 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005281/0.6785, allocations: 161.8 kB / 401.2 MB, free: 8.418 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004502/0.679, allocations: 158 kB / 401.3 MB, free: 8.34 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002671/0.6817, allocations: 0.9481 MB / 402.3 MB, free: 7.887 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.832e-05/0.6818, allocations: 74.97 kB / 402.3 MB, free: 7.883 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003038/0.6821, allocations: 104.1 kB / 402.4 MB, free: 7.879 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003521/0.6856, allocations: 1.464 MB / 403.9 MB, free: 7.449 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.826e-05/0.6857, allocations: 11.92 kB / 403.9 MB, free: 7.441 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000167/0.6859, allocations: 41.59 kB / 404 MB, free: 7.441 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.713e-05/0.686, allocations: 48 kB / 404 MB, free: 7.434 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003394/0.6894, allocations: 1.276 MB / 405.3 MB, free: 7.273 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0115/0.701, allocations: 4.975 MB / 410.3 MB, free: 4.77 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002201/0.7032, allocations: 1.401 MB / 411.7 MB, free: 4.062 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001641/0.7049, allocations: 0.6964 MB / 412.4 MB, free: 3.965 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.686e-05/0.705, allocations: 11.98 kB / 412.4 MB, free: 3.965 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001274/0.7063, allocations: 0.572 MB / 412.9 MB, free: 3.766 MB / 314.7 MB Notification: Performance of pre-optimization done (n=72): time 4.438e-06/0.7063, allocations: 4 kB / 412.9 MB, free: 3.762 MB / 314.7 MB Notification: Performance of matching and sorting (n=72): time 0.002993/0.7094, allocations: 1.181 MB / 414.1 MB, free: 3.477 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.674e-05/0.7095, allocations: 89.69 kB / 414.2 MB, free: 3.375 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001702/0.7112, allocations: 0.8269 MB / 415 MB, free: 3.152 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002116/0.7114, allocations: 40.05 kB / 415.1 MB, free: 3.121 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004652/0.7119, allocations: 0.5204 MB / 415.6 MB, free: 2.785 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003199/0.7122, allocations: 234.1 kB / 415.8 MB, free: 2.621 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.279e-05/0.7123, allocations: 14.69 kB / 415.8 MB, free: 2.621 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.367e-05/0.7124, allocations: 336.9 kB / 416.2 MB, free: 2.301 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00084/0.7133, allocations: 376.6 kB / 416.5 MB, free: 2.254 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009434/0.7142, allocations: 0.5139 MB / 417 MB, free: 2.039 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008919/0.7151, allocations: 406.8 kB / 417.4 MB, free: 1.965 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.644e-06/0.7152, allocations: 0 / 417.4 MB, free: 1.965 MB / 314.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002532/0.7177, allocations: 1.141 MB / 418.6 MB, free: 1.715 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.814e-05/0.7178, allocations: 13.41 kB / 418.6 MB, free: 1.711 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.242e-05/0.7178, allocations: 3.688 kB / 418.6 MB, free: 1.711 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00136/0.7192, allocations: 389 kB / 419 MB, free: 1.629 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009379/0.7201, allocations: 120.3 kB / 419.1 MB, free: 1.598 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007416/0.7276, allocations: 4.124 MB / 423.2 MB, free: 15.66 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00117/0.7288, allocations: 83.2 kB / 423.3 MB, free: 15.62 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.233e-05/0.7289, allocations: 26.12 kB / 423.3 MB, free: 15.62 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.meanVoltage.y,meanVoltage.y,$PRE.meanCurrent.y,meanCurrent.y,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.rootMeanSquareVoltage.mean.y,rootMeanSquareVoltage.mean.y,rectifier.diode_p.idealDiode[1].off,rectifier.diode_p.idealDiode[2].off,rectifier.diode_p.idealDiode[3].off,rectifier.diode_n.idealDiode[1].off,rectifier.diode_n.idealDiode[2].off,rectifier.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 57 * 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 {6 22} Notification: Performance of prepare postOptimizeDAE: time 0.0002772/0.7292, allocations: 143.9 kB / 423.5 MB, free: 15.5 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002117/0.7294, allocations: 97.38 kB / 423.6 MB, free: 15.45 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00042/0.7298, allocations: 122.5 kB / 423.7 MB, free: 15.39 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.056e-05/0.7299, allocations: 7.969 kB / 423.7 MB, free: 15.39 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.459e-05/0.7299, allocations: 4 kB / 423.7 MB, free: 15.38 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.758e-05/0.7299, allocations: 7.922 kB / 423.7 MB, free: 15.38 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006127/0.7361, allocations: 2.526 MB / 426.2 MB, free: 13.81 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.62e-05/0.7361, allocations: 3.984 kB / 426.2 MB, free: 13.8 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008637/0.737, allocations: 93.56 kB / 426.3 MB, free: 13.78 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001412/0.7384, allocations: 381.2 kB / 426.7 MB, free: 13.59 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001168/0.7386, allocations: 11.88 kB / 426.7 MB, free: 13.58 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007973/0.7466, allocations: 4.089 MB / 430.8 MB, free: 10.57 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.7466, allocations: 0 / 430.8 MB, free: 10.57 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004281/0.7509, allocations: 1.855 MB / 432.7 MB, free: 9.516 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009142/0.7519, allocations: 281.7 kB / 432.9 MB, free: 9.293 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002317/0.7521, allocations: 18.38 kB / 432.9 MB, free: 9.281 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008657/0.753, allocations: 49.05 kB / 433 MB, free: 9.258 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003254/0.7533, allocations: 79.09 kB / 433.1 MB, free: 9.211 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.604e-05/0.7534, allocations: 23.61 kB / 433.1 MB, free: 9.199 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.00142/0.7549, allocations: 0.6575 MB / 433.8 MB, free: 8.859 MB / 330.7 MB Notification: Performance of sort global known variables: time 9.82e-07/0.7549, allocations: 0 / 433.8 MB, free: 8.859 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001805/0.7567, allocations: 344.8 kB / 434.1 MB, free: 8.781 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: 12 ($whenCondition3,$whenCondition2,$whenCondition1,rectifier.diode_p.idealDiode[1].off,rectifier.diode_p.idealDiode[2].off,rectifier.diode_p.idealDiode[3].off,rectifier.diode_n.idealDiode[1].off,rectifier.diode_n.idealDiode[2].off,rectifier.diode_n.idealDiode[3].off,meanVoltage.y,rootMeanSquareVoltage.mean.y,meanCurrent.y) * Number of discrete states: 3 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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 {6 22} Notification: Performance of Backend phase and start with SimCode phase: time 0.00482/0.7616, allocations: 2.435 MB / 436.5 MB, free: 7.176 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003046/0.7647, allocations: 1.177 MB / 437.7 MB, free: 6.52 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.754e-06/0.7647, allocations: 0.875 kB / 437.7 MB, free: 6.52 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001888/0.7666, allocations: 0.7555 MB / 438.5 MB, free: 6.062 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001857/0.7685, allocations: 228.7 kB / 438.7 MB, free: 5.949 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00854/0.7771, allocations: 2.438 MB / 441.1 MB, free: 4.207 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00155/0.7787, allocations: 1.381 MB / 442.5 MB, free: 2.801 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001055/0.7798, allocations: 411.3 kB / 442.9 MB, free: 2.398 MB / 330.7 MB Notification: Performance of SimCode: time 3.436e-06/0.7798, allocations: 0 / 442.9 MB, free: 2.398 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.097/3.877, allocations: 27.59 MB / 470.5 MB, free: 6.82 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.RectifierCenterTap2mPulse.DiodeCenterTap2mPulse_res.mat does not exist to compare? outputFormat=mat