Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_DiodeBridge2mPulse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.985/1.985, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.761e-05/3.776e-05, allocations: 4 kB / 255.4 MB, free: 3.07 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09603/0.09611, allocations: 44.5 MB / 299.9 MB, free: 6.504 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4445/0.5407, allocations: 79.25 MB / 379.2 MB, free: 12.86 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003219/0.5411, allocations: 89.14 kB / 379.3 MB, free: 12.86 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07942/0.6205, allocations: 20.38 MB / 399.7 MB, free: 9.812 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.345e-06/0.6206, allocations: 0 / 399.7 MB, free: 9.812 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001108/0.6207, allocations: 31.06 kB / 399.7 MB, free: 9.805 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: 248 * Number of variables: 248 Notification: Performance of Generate backend data structure: time 0.003957/0.6247, allocations: 1.29 MB / 401 MB, free: 8.957 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.043e-05/0.6248, allocations: 7.875 kB / 401 MB, free: 8.957 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004427/0.6252, allocations: 152.8 kB / 401.1 MB, free: 8.895 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004327/0.6257, allocations: 140.5 kB / 401.3 MB, free: 8.824 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006231/0.6319, allocations: 1.668 MB / 402.9 MB, free: 8.133 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.48e-05/0.632, allocations: 85.62 kB / 403 MB, free: 8.125 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002795/0.6323, allocations: 92.12 kB / 403.1 MB, free: 8.125 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003331/0.6357, allocations: 1.385 MB / 404.5 MB, free: 7.73 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.674e-05/0.6358, allocations: 7.75 kB / 404.5 MB, free: 7.727 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001558/0.6359, allocations: 36.94 kB / 404.5 MB, free: 7.727 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.765e-05/0.636, allocations: 46.83 kB / 404.6 MB, free: 7.723 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002952/0.639, allocations: 1.176 MB / 405.8 MB, free: 7.582 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009745/0.6488, allocations: 4.332 MB / 410.1 MB, free: 5.605 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002623/0.6515, allocations: 1.951 MB / 412 MB, free: 4.305 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00186/0.6534, allocations: 0.7216 MB / 412.8 MB, free: 4.199 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.732e-05/0.6535, allocations: 15.56 kB / 412.8 MB, free: 4.199 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001238/0.6548, allocations: 0.5761 MB / 413.4 MB, free: 4 MB / 314.7 MB Notification: Performance of pre-optimization done (n=75): time 5.38e-06/0.6548, allocations: 0 / 413.4 MB, free: 4 MB / 314.7 MB Notification: Performance of matching and sorting (n=75): time 0.003096/0.6579, allocations: 1.224 MB / 414.6 MB, free: 3.703 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.003e-05/0.658, allocations: 119 kB / 414.7 MB, free: 3.574 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00156/0.6596, allocations: 0.725 MB / 415.4 MB, free: 3.367 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001954/0.6598, allocations: 39.89 kB / 415.5 MB, free: 3.336 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004225/0.6602, allocations: 498.6 kB / 415.9 MB, free: 3.016 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000248/0.6605, allocations: 246.8 kB / 416.2 MB, free: 2.844 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.621e-05/0.6606, allocations: 14.34 kB / 416.2 MB, free: 2.844 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.97e-05/0.6607, allocations: 341 kB / 416.5 MB, free: 2.523 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007992/0.6615, allocations: 369.5 kB / 416.9 MB, free: 2.48 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008828/0.6624, allocations: 0.5152 MB / 417.4 MB, free: 2.27 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009113/0.6633, allocations: 419.5 kB / 417.8 MB, free: 2.191 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.321e-06/0.6633, allocations: 0 / 417.8 MB, free: 2.191 MB / 314.7 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.002649/0.666, allocations: 1.199 MB / 419 MB, free: 1.938 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.781e-05/0.6661, allocations: 3.906 kB / 419 MB, free: 1.938 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.442e-05/0.6661, allocations: 3.906 kB / 419 MB, free: 1.938 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001697/0.6678, allocations: 479.1 kB / 419.5 MB, free: 1.824 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007194/0.6685, allocations: 93.36 kB / 419.6 MB, free: 1.805 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01003/0.6786, allocations: 5.102 MB / 424.7 MB, free: 15.11 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001113/0.6798, allocations: 86.3 kB / 424.8 MB, free: 15.06 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.674e-05/0.6799, allocations: 23.38 kB / 424.8 MB, free: 15.05 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 (54): * Single equations (assignments): 53 * 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 30} Notification: Performance of prepare postOptimizeDAE: time 0.00028/0.6802, allocations: 150.4 kB / 424.9 MB, free: 14.91 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002009/0.6804, allocations: 89.48 kB / 425 MB, free: 14.87 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000388/0.6808, allocations: 111.1 kB / 425.1 MB, free: 14.78 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.225e-05/0.6808, allocations: 11.61 kB / 425.2 MB, free: 14.77 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/0.6808, allocations: 3.875 kB / 425.2 MB, free: 14.77 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.28e-05/0.6808, allocations: 3.984 kB / 425.2 MB, free: 14.77 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006438/0.6873, allocations: 2.585 MB / 427.7 MB, free: 13.16 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.905e-06/0.6874, allocations: 0 / 427.7 MB, free: 13.16 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005834/0.6879, allocations: 66.16 kB / 427.8 MB, free: 13.14 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001671/0.6896, allocations: 454.1 kB / 428.3 MB, free: 12.91 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001239/0.6898, allocations: 19.86 kB / 428.3 MB, free: 12.9 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0104/0.7002, allocations: 5.037 MB / 433.3 MB, free: 9.348 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.626e-06/0.7003, allocations: 0 / 433.3 MB, free: 9.348 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004231/0.7045, allocations: 1.865 MB / 435.2 MB, free: 8.293 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008383/0.7054, allocations: 278.3 kB / 435.4 MB, free: 8.07 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001907/0.7056, allocations: 11.22 kB / 435.5 MB, free: 8.062 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008042/0.7064, allocations: 46.33 kB / 435.5 MB, free: 8.039 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003176/0.7068, allocations: 69.67 kB / 435.6 MB, free: 8.004 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.426e-05/0.7069, allocations: 22.95 kB / 435.6 MB, free: 7.996 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001322/0.7082, allocations: 0.5784 MB / 436.2 MB, free: 7.684 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.72e-07/0.7082, allocations: 3.906 kB / 436.2 MB, free: 7.684 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001724/0.71, allocations: 343.8 kB / 436.5 MB, free: 7.605 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 (40): * Single equations (assignments): 36 * 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 30} Notification: Performance of Backend phase and start with SimCode phase: time 0.004727/0.7147, allocations: 2.442 MB / 439 MB, free: 5.992 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003131/0.7179, allocations: 1.222 MB / 440.2 MB, free: 5.305 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.424e-06/0.718, allocations: 0 / 440.2 MB, free: 5.305 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002024/0.72, allocations: 0.7982 MB / 441 MB, free: 4.742 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002059/0.7221, allocations: 246.9 kB / 441.2 MB, free: 4.504 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006942/0.7291, allocations: 2.118 MB / 443.3 MB, free: 2.336 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0014/0.7305, allocations: 1.319 MB / 444.7 MB, free: 0.9883 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008913/0.7315, allocations: 383.3 kB / 445 MB, free: 0.6133 MB / 330.7 MB Notification: Performance of SimCode: time 1.293e-06/0.7315, allocations: 0 / 445 MB, free: 0.6133 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.12/3.852, allocations: 25.72 MB / 470.7 MB, free: 6.918 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.RectifierBridge2mPulse.DiodeBridge2mPulse_res.mat does not exist to compare? outputFormat=mat