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 2.139/2.139, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.495e-05/2.5e-05, allocations: 0 / 249.7 MB, free: 15.19 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3199/0.32, allocations: 44.51 MB / 294.2 MB, free: 14.16 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1497/0.4697, allocations: 78.59 MB / 372.8 MB, free: 3.285 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003045/0.4701, allocations: 83.95 kB / 372.9 MB, free: 3.203 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0845/0.5546, allocations: 20.16 MB / 393.1 MB, free: 14.88 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.834e-06/0.5547, allocations: 0 / 393.1 MB, free: 14.88 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001204/0.5548, allocations: 20 kB / 393.1 MB, free: 14.86 MB / 346.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.004314/0.5591, allocations: 1.291 MB / 394.4 MB, free: 13.52 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.366e-05/0.5592, allocations: 8.031 kB / 394.4 MB, free: 13.51 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006381/0.5598, allocations: 138.4 kB / 394.5 MB, free: 13.38 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006666/0.5665, allocations: 1.667 MB / 396.2 MB, free: 11.66 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.96e-05/0.5666, allocations: 32 kB / 396.2 MB, free: 11.63 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002394/0.5669, allocations: 63.94 kB / 396.3 MB, free: 11.57 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00313/0.57, allocations: 1.121 MB / 397.4 MB, free: 10.45 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003223/0.5733, allocations: 1.248 MB / 398.6 MB, free: 9.141 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.168e-05/0.5734, allocations: 3.906 kB / 398.6 MB, free: 9.137 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001282/0.5735, allocations: 0 / 398.6 MB, free: 9.137 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.428e-05/0.5736, allocations: 45.98 kB / 398.7 MB, free: 9.09 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01105/0.5847, allocations: 4.143 MB / 402.8 MB, free: 4.863 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00285/0.5876, allocations: 1.908 MB / 404.7 MB, free: 2.727 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001407/0.589, allocations: 0.607 MB / 405.3 MB, free: 2.121 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.902e-05/0.5891, allocations: 12.77 kB / 405.4 MB, free: 2.109 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001253/0.5904, allocations: 0.5473 MB / 405.9 MB, free: 1.539 MB / 346.7 MB Notification: Performance of pre-optimization done (n=75): time 7.564e-06/0.5905, allocations: 0 / 405.9 MB, free: 1.539 MB / 346.7 MB Notification: Performance of matching and sorting (n=75): time 0.00316/0.5936, allocations: 1.167 MB / 407.1 MB, free: 372 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.239e-05/0.5937, allocations: 111.6 kB / 407.2 MB, free: 236 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001535/0.5953, allocations: 0.6637 MB / 407.8 MB, free: 15.56 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001826/0.5955, allocations: 25.7 kB / 407.9 MB, free: 15.53 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005456/0.5961, allocations: 494.3 kB / 408.4 MB, free: 15.04 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003636/0.5964, allocations: 236.5 kB / 408.6 MB, free: 14.81 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.263e-05/0.5965, allocations: 0 / 408.6 MB, free: 14.81 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002015/0.5967, allocations: 342.8 kB / 408.9 MB, free: 14.46 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008395/0.5976, allocations: 357.4 kB / 409.3 MB, free: 14.11 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009719/0.5986, allocations: 0.4903 MB / 409.8 MB, free: 13.57 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009246/0.5995, allocations: 409.9 kB / 410.2 MB, free: 13.18 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.472e-06/0.5995, allocations: 3.938 kB / 410.2 MB, free: 13.17 MB / 362.7 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.002736/0.6023, allocations: 1.116 MB / 411.3 MB, free: 12.04 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.448e-05/0.6023, allocations: 15.95 kB / 411.3 MB, free: 12.03 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.558e-05/0.6024, allocations: 4 kB / 411.3 MB, free: 12.02 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001783/0.6042, allocations: 464.4 kB / 411.8 MB, free: 11.57 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007449/0.6049, allocations: 87.83 kB / 411.8 MB, free: 11.48 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01122/0.6162, allocations: 4.953 MB / 416.8 MB, free: 6.406 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000995/0.6172, allocations: 67.48 kB / 416.9 MB, free: 6.34 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.877e-05/0.6173, allocations: 24.11 kB / 416.9 MB, free: 6.316 MB / 362.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.0002722/0.6176, allocations: 142.5 kB / 417 MB, free: 6.172 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003047/0.6207, allocations: 1.163 MB / 418.2 MB, free: 4.996 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002723/0.621, allocations: 87.02 kB / 418.3 MB, free: 4.91 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004409/0.6214, allocations: 100.5 kB / 418.4 MB, free: 4.805 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.624e-05/0.6215, allocations: 8 kB / 418.4 MB, free: 4.797 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.563e-06/0.6215, allocations: 4.125 kB / 418.4 MB, free: 4.793 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.324e-05/0.6215, allocations: 3.984 kB / 418.4 MB, free: 4.789 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006076/0.6276, allocations: 2.378 MB / 420.8 MB, free: 2.359 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.054e-06/0.6276, allocations: 0 / 420.8 MB, free: 2.359 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005872/0.6282, allocations: 63.91 kB / 420.8 MB, free: 2.297 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001673/0.6299, allocations: 452.7 kB / 421.3 MB, free: 1.852 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.333e-05/0.63, allocations: 7.938 kB / 421.3 MB, free: 1.844 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2808/0.9108, allocations: 4.928 MB / 426.2 MB, free: 101.6 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/0.9108, allocations: 0 / 426.2 MB, free: 101.6 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004001/0.9149, allocations: 1.789 MB / 428 MB, free: 101.4 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007667/0.9157, allocations: 269.8 kB / 428.3 MB, free: 101.3 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002025/0.9159, allocations: 2.125 kB / 428.3 MB, free: 101.3 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007317/0.9166, allocations: 36.34 kB / 428.3 MB, free: 101.3 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003445/0.917, allocations: 75.34 kB / 428.4 MB, free: 101.3 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.291e-05/0.9171, allocations: 24.28 kB / 428.4 MB, free: 101.3 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001016/0.9181, allocations: 0.51 MB / 428.9 MB, free: 101.2 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.61e-07/0.9181, allocations: 7.219 kB / 428.9 MB, free: 101.2 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001805/0.92, allocations: 317.4 kB / 429.2 MB, free: 101.2 MB / 362.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.004349/0.9244, allocations: 2.344 MB / 431.6 MB, free: 100.4 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002996/0.9274, allocations: 1.177 MB / 432.7 MB, free: 100.3 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.715e-06/0.9274, allocations: 0 / 432.7 MB, free: 100.3 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001896/0.9293, allocations: 0.7527 MB / 433.5 MB, free: 100.1 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001968/0.9313, allocations: 217.4 kB / 433.7 MB, free: 100.1 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006166/0.9376, allocations: 2.053 MB / 435.8 MB, free: 99.39 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00109/0.9387, allocations: 1.319 MB / 437.1 MB, free: 98.58 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007665/0.9395, allocations: 371.4 kB / 437.4 MB, free: 98.29 MB / 362.7 MB Notification: Performance of SimCode: time 1.062e-06/0.9395, allocations: 0 / 437.4 MB, free: 98.29 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.236/4.176, allocations: 25.25 MB / 462.7 MB, free: 84.4 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