Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Rectifier,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Analog_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.831/1.831, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.225e-05/4.241e-05, allocations: 0 / 225.1 MB, free: 2.699 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2965/0.2966, allocations: 38.77 MB / 263.8 MB, free: 9.754 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1267/0.4234, allocations: 69.36 MB / 333.2 MB, free: 4.289 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002802/0.4237, allocations: 67.97 kB / 333.3 MB, free: 4.223 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04041/0.4641, allocations: 8.362 MB / 341.6 MB, free: 11.84 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.255e-06/0.4642, allocations: 0 / 341.6 MB, free: 11.84 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.375e-05/0.4643, allocations: 16 kB / 341.6 MB, free: 11.82 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.002138/0.4664, allocations: 0.7635 MB / 342.4 MB, free: 11.01 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.769e-05/0.4665, allocations: 8.031 kB / 342.4 MB, free: 11 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003149/0.4668, allocations: 111.6 kB / 342.5 MB, free: 10.88 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002222/0.467, allocations: 75.11 kB / 342.6 MB, free: 10.81 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008181/0.4679, allocations: 359.5 kB / 342.9 MB, free: 10.41 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.078e-05/0.468, allocations: 37.31 kB / 343 MB, free: 10.38 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001396/0.4681, allocations: 63.89 kB / 343 MB, free: 10.32 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00142/0.4695, allocations: 0.5421 MB / 343.6 MB, free: 9.746 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.561e-05/0.4696, allocations: 3.938 kB / 343.6 MB, free: 9.742 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.579e-05/0.4697, allocations: 24 kB / 343.6 MB, free: 9.719 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.107e-05/0.4697, allocations: 15.95 kB / 343.6 MB, free: 9.703 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001279/0.471, allocations: 429.1 kB / 344 MB, free: 9.285 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005096/0.4762, allocations: 2.118 MB / 346.2 MB, free: 7.078 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001424/0.4776, allocations: 0.6143 MB / 346.8 MB, free: 6.434 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009607/0.4787, allocations: 381.8 kB / 347.1 MB, free: 6.055 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.957e-05/0.4788, allocations: 12.56 kB / 347.2 MB, free: 6.043 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.644e-05/0.4788, allocations: 43.12 kB / 347.2 MB, free: 5.988 MB / 298.7 MB Notification: Performance of pre-optimization done (n=60): time 4.008e-06/0.4788, allocations: 0 / 347.2 MB, free: 5.988 MB / 298.7 MB Notification: Performance of matching and sorting (n=61): time 0.003704/0.4826, allocations: 1.252 MB / 348.5 MB, free: 4.672 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.329e-05/0.4827, allocations: 59.97 kB / 348.5 MB, free: 4.602 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006265/0.4833, allocations: 318.9 kB / 348.8 MB, free: 4.285 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001005/0.4834, allocations: 33.7 kB / 348.9 MB, free: 4.246 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002235/0.4837, allocations: 283.5 kB / 349.1 MB, free: 3.969 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002668/0.4839, allocations: 205 kB / 349.3 MB, free: 3.766 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.145e-05/0.484, allocations: 12 kB / 349.3 MB, free: 3.754 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000154/0.4842, allocations: 330.8 kB / 349.7 MB, free: 3.422 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004646/0.4846, allocations: 149.1 kB / 349.8 MB, free: 3.277 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005047/0.4852, allocations: 195.9 kB / 350 MB, free: 3.078 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004916/0.4857, allocations: 163.2 kB / 350.2 MB, free: 2.922 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.4857, allocations: 0 / 350.2 MB, free: 2.922 MB / 298.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00185/0.4875, allocations: 0.6035 MB / 350.8 MB, free: 2.301 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.489e-05/0.4876, allocations: 4 kB / 350.8 MB, free: 2.297 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.302e-05/0.4877, allocations: 3.953 kB / 350.8 MB, free: 2.293 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001256/0.4889, allocations: 255.2 kB / 351 MB, free: 2.031 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005884/0.4896, allocations: 63.89 kB / 351.1 MB, free: 1.969 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01008/0.4997, allocations: 6.769 MB / 357.9 MB, free: 10.66 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005957/0.5003, allocations: 20.02 kB / 357.9 MB, free: 10.64 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.385e-05/0.5004, allocations: 16 kB / 357.9 MB, free: 10.62 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 (IdealDiode1.off,IdealDiode2.off,IdealDiode3.off,IdealDiode4.off,IdealDiode5.off,IdealDiode6.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 29 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002047/0.5006, allocations: 132.9 kB / 358 MB, free: 10.48 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000133/0.5008, allocations: 51.34 kB / 358.1 MB, free: 10.43 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002068/0.501, allocations: 69.09 kB / 358.1 MB, free: 10.37 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.051e-05/0.501, allocations: 4 kB / 358.1 MB, free: 10.36 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.297e-05/0.501, allocations: 4 kB / 358.1 MB, free: 10.36 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.15e-05/0.501, allocations: 7.938 kB / 358.2 MB, free: 10.35 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00349/0.5045, allocations: 1.318 MB / 359.5 MB, free: 8.965 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.057e-06/0.5046, allocations: 0 / 359.5 MB, free: 8.965 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005848/0.5052, allocations: 60.08 kB / 359.5 MB, free: 8.906 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001237/0.5065, allocations: 255.2 kB / 359.8 MB, free: 8.645 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001134/0.5066, allocations: 12 kB / 359.8 MB, free: 8.633 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01012/0.5168, allocations: 6.765 MB / 366.6 MB, free: 1.328 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.5168, allocations: 0 / 366.6 MB, free: 1.328 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002779/0.5196, allocations: 0.9704 MB / 367.5 MB, free: 336 kB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003945/0.52, allocations: 160.6 kB / 367.7 MB, free: 156 kB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001028/0.5202, allocations: 15.98 kB / 367.7 MB, free: 140 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005029/0.5207, allocations: 16 kB / 367.7 MB, free: 124 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002372/0.5209, allocations: 52.44 kB / 367.8 MB, free: 72 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.342e-05/0.521, allocations: 19.98 kB / 367.8 MB, free: 52 kB / 314.7 MB Notification: Performance of sorting global known variables: time 0.2394/0.7604, allocations: 249.1 kB / 368 MB, free: 90.66 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.082e-06/0.7604, allocations: 1.094 kB / 368 MB, free: 90.66 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001497/0.7619, allocations: 180.3 kB / 368.2 MB, free: 90.66 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Inductor2.i,Inductor3.i,Capacitor1.v,Capacitor2.v) * Number of discrete variables: 6 (IdealDiode1.off,IdealDiode2.off,IdealDiode3.off,IdealDiode4.off,IdealDiode5.off,IdealDiode6.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 24 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.003325/0.7653, allocations: 1.534 MB / 369.7 MB, free: 89.98 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002104/0.7675, allocations: 0.9918 MB / 370.7 MB, free: 89.52 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.7675, allocations: 0 / 370.7 MB, free: 89.52 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00151/0.769, allocations: 0.808 MB / 371.5 MB, free: 89.06 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007305/0.7698, allocations: 71.7 kB / 371.6 MB, free: 89.06 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00362/0.7735, allocations: 1.174 MB / 372.8 MB, free: 88.68 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004149/0.7739, allocations: 0.9008 MB / 373.7 MB, free: 87.97 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003499/0.7743, allocations: 176.8 kB / 373.9 MB, free: 87.96 MB / 314.7 MB Notification: Performance of SimCode: time 1.062e-06/0.7743, allocations: 0 / 373.9 MB, free: 87.96 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.221/3.995, allocations: 15.86 MB / 389.7 MB, free: 78.14 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.Rectifier_res.mat does not exist to compare? outputFormat=mat