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 1.94/1.94, allocations: 194.9 MB / 208.4 MB, free: 3.258 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.418e-05/3.43e-05, allocations: 3.984 kB / 255.4 MB, free: 3.086 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09166/0.09174, allocations: 44.51 MB / 300 MB, free: 6.52 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4478/0.5396, allocations: 78.56 MB / 378.5 MB, free: 12.86 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003342/0.54, allocations: 86.45 kB / 378.6 MB, free: 12.86 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08205/0.6221, allocations: 20.97 MB / 399.6 MB, free: 9.762 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.324e-06/0.6222, allocations: 7.781 kB / 399.6 MB, free: 9.758 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001226/0.6223, allocations: 30.94 kB / 399.6 MB, free: 9.75 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.004696/0.627, allocations: 1.366 MB / 401 MB, free: 8.863 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.132e-05/0.6271, allocations: 7.625 kB / 401 MB, free: 8.863 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005824/0.6277, allocations: 171.2 kB / 401.1 MB, free: 8.793 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005306/0.6282, allocations: 156 kB / 401.3 MB, free: 8.711 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0028/0.6311, allocations: 0.9408 MB / 402.2 MB, free: 8.262 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.153e-05/0.6312, allocations: 83.34 kB / 402.3 MB, free: 8.254 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003199/0.6315, allocations: 100.8 kB / 402.4 MB, free: 8.254 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003846/0.6354, allocations: 1.473 MB / 403.9 MB, free: 7.82 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.924e-05/0.6355, allocations: 0 / 403.9 MB, free: 7.82 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000176/0.6357, allocations: 50.44 kB / 403.9 MB, free: 7.816 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.132e-05/0.6358, allocations: 52.42 kB / 404 MB, free: 7.801 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003412/0.6392, allocations: 1.288 MB / 405.3 MB, free: 7.637 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01196/0.6512, allocations: 4.967 MB / 410.3 MB, free: 5.137 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002319/0.6536, allocations: 1.411 MB / 411.7 MB, free: 4.426 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001703/0.6553, allocations: 0.6921 MB / 412.4 MB, free: 4.332 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.606e-05/0.6555, allocations: 8.312 kB / 412.4 MB, free: 4.328 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001317/0.6568, allocations: 0.582 MB / 412.9 MB, free: 4.133 MB / 314.7 MB Notification: Performance of pre-optimization done (n=72): time 4.218e-06/0.6568, allocations: 0 / 412.9 MB, free: 4.133 MB / 314.7 MB Notification: Performance of matching and sorting (n=72): time 0.003219/0.6601, allocations: 1.175 MB / 414.1 MB, free: 3.844 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.803e-05/0.6602, allocations: 97.41 kB / 414.2 MB, free: 3.742 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001931/0.6621, allocations: 0.827 MB / 415 MB, free: 3.52 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002783/0.6625, allocations: 40.64 kB / 415.1 MB, free: 3.488 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005358/0.663, allocations: 0.5209 MB / 415.6 MB, free: 3.152 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004175/0.6635, allocations: 232 kB / 415.8 MB, free: 2.988 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.398e-05/0.6635, allocations: 14.75 kB / 415.8 MB, free: 2.988 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.9e-05/0.6637, allocations: 337.6 kB / 416.2 MB, free: 2.668 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009512/0.6646, allocations: 377 kB / 416.5 MB, free: 2.621 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001022/0.6657, allocations: 0.5086 MB / 417 MB, free: 2.414 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001064/0.6668, allocations: 413.6 kB / 417.5 MB, free: 2.328 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-05/0.6668, allocations: 0 / 417.5 MB, free: 2.328 MB / 314.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.003065/0.6699, allocations: 1.159 MB / 418.6 MB, free: 2.074 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.394e-05/0.67, allocations: 5.531 kB / 418.6 MB, free: 2.074 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.395e-05/0.67, allocations: 3.938 kB / 418.6 MB, free: 2.074 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001422/0.6715, allocations: 395.2 kB / 419 MB, free: 1.992 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001008/0.6725, allocations: 120.5 kB / 419.1 MB, free: 1.961 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007705/0.6802, allocations: 4.111 MB / 423.2 MB, free: 15.79 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001153/0.6814, allocations: 90.2 kB / 423.3 MB, free: 15.73 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.851e-05/0.6816, allocations: 23.34 kB / 423.3 MB, free: 15.73 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.0002967/0.6819, allocations: 146.3 kB / 423.5 MB, free: 15.59 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002695/0.6821, allocations: 101.2 kB / 423.6 MB, free: 15.54 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004347/0.6826, allocations: 115.6 kB / 423.7 MB, free: 15.45 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.997e-06/0.6826, allocations: 7.844 kB / 423.7 MB, free: 15.45 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.792e-06/0.6826, allocations: 3.938 kB / 423.7 MB, free: 15.45 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.886e-05/0.6827, allocations: 11.97 kB / 423.7 MB, free: 15.43 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006457/0.6891, allocations: 2.531 MB / 426.3 MB, free: 13.85 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.217e-06/0.6892, allocations: 3.875 kB / 426.3 MB, free: 13.85 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008697/0.6901, allocations: 89.62 kB / 426.3 MB, free: 13.83 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001407/0.6915, allocations: 374.9 kB / 426.7 MB, free: 13.64 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001473/0.6917, allocations: 15.91 kB / 426.7 MB, free: 13.63 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00826/0.6999, allocations: 4.089 MB / 430.8 MB, free: 10.62 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.7, allocations: 0 / 430.8 MB, free: 10.62 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004644/0.7047, allocations: 1.854 MB / 432.7 MB, free: 9.574 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009731/0.7057, allocations: 284.4 kB / 432.9 MB, free: 9.348 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002252/0.7059, allocations: 15.88 kB / 433 MB, free: 9.336 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000874/0.7068, allocations: 48.48 kB / 433 MB, free: 9.316 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003386/0.7072, allocations: 75.75 kB / 433.1 MB, free: 9.273 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.825e-05/0.7073, allocations: 31.52 kB / 433.1 MB, free: 9.258 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001461/0.7088, allocations: 0.6556 MB / 433.8 MB, free: 8.918 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.92e-07/0.7088, allocations: 0 / 433.8 MB, free: 8.918 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001654/0.7105, allocations: 343.8 kB / 434.1 MB, free: 8.84 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.004947/0.7154, allocations: 2.44 MB / 436.5 MB, free: 7.234 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003215/0.7187, allocations: 1.192 MB / 437.7 MB, free: 6.566 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 8.415e-06/0.7188, allocations: 0 / 437.7 MB, free: 6.566 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00202/0.7208, allocations: 0.7739 MB / 438.5 MB, free: 6.094 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001875/0.7227, allocations: 232.4 kB / 438.7 MB, free: 5.98 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008722/0.7315, allocations: 2.438 MB / 441.2 MB, free: 4.266 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001634/0.7332, allocations: 1.381 MB / 442.6 MB, free: 2.859 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001061/0.7343, allocations: 423.2 kB / 443 MB, free: 2.445 MB / 330.7 MB Notification: Performance of SimCode: time 1.122e-06/0.7343, allocations: 0 / 443 MB, free: 2.445 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.243/3.977, allocations: 27.68 MB / 470.7 MB, free: 6.781 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