Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Rectifier,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Analog_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.755/1.755, allocations: 171.3 MB / 178.4 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 3.487e-05/3.499e-05, allocations: 4 kB / 219.6 MB, free: 6.953 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2597/0.2597, allocations: 38.77 MB / 258.3 MB, free: 12.21 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1421/0.4019, allocations: 68.69 MB / 327 MB, free: 9.094 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002488/0.4022, allocations: 71.97 kB / 327.1 MB, free: 9.023 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03505/0.4372, allocations: 8.253 MB / 335.4 MB, free: 0.7422 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.4373, allocations: 0 / 335.4 MB, free: 0.7422 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.448e-05/0.4373, allocations: 12 kB / 335.4 MB, free: 0.7305 MB / 282.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.00182/0.4392, allocations: 0.7714 MB / 336.1 MB, free: 15.91 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.055e-05/0.4392, allocations: 8.031 kB / 336.2 MB, free: 15.9 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001629/0.4394, allocations: 79.05 kB / 336.2 MB, free: 15.82 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006761/0.4401, allocations: 359.4 kB / 336.6 MB, free: 15.43 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.991e-05/0.4401, allocations: 16 kB / 336.6 MB, free: 15.42 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001145/0.4403, allocations: 31.98 kB / 336.6 MB, free: 15.39 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001077/0.4414, allocations: 378.5 kB / 337 MB, free: 15.02 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001125/0.4425, allocations: 448.5 kB / 337.4 MB, free: 14.55 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.915e-05/0.4425, allocations: 0 / 337.4 MB, free: 14.55 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.641e-05/0.4426, allocations: 3.984 kB / 337.4 MB, free: 14.55 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.135e-05/0.4426, allocations: 19.95 kB / 337.5 MB, free: 14.53 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004508/0.4472, allocations: 1.963 MB / 339.4 MB, free: 12.49 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00122/0.4484, allocations: 0.5817 MB / 340 MB, free: 11.88 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007689/0.4492, allocations: 357.8 kB / 340.4 MB, free: 11.52 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.021e-05/0.4493, allocations: 4.562 kB / 340.4 MB, free: 11.52 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.062e-05/0.4494, allocations: 43.12 kB / 340.4 MB, free: 11.46 MB / 298.7 MB Notification: Performance of pre-optimization done (n=60): time 3.907e-06/0.4494, allocations: 0 / 340.4 MB, free: 11.46 MB / 298.7 MB Notification: Performance of matching and sorting (n=61): time 0.003197/0.4526, allocations: 1.15 MB / 341.6 MB, free: 10.25 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.672e-05/0.4527, allocations: 67.89 kB / 341.6 MB, free: 10.17 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004537/0.4531, allocations: 266.4 kB / 341.9 MB, free: 9.906 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.688e-05/0.4532, allocations: 25.7 kB / 341.9 MB, free: 9.875 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001993/0.4534, allocations: 240.9 kB / 342.1 MB, free: 9.633 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002067/0.4536, allocations: 193.1 kB / 342.3 MB, free: 9.441 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.287e-05/0.4537, allocations: 0 / 342.3 MB, free: 9.441 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001604/0.4538, allocations: 354.8 kB / 342.7 MB, free: 9.086 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003801/0.4542, allocations: 137.1 kB / 342.8 MB, free: 8.953 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004505/0.4547, allocations: 174.8 kB / 343 MB, free: 8.777 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004453/0.4552, allocations: 150.1 kB / 343.1 MB, free: 8.629 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.4552, allocations: 0 / 343.1 MB, free: 8.629 MB / 298.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001692/0.4569, allocations: 0.5797 MB / 343.7 MB, free: 8.031 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.228e-05/0.4569, allocations: 4 kB / 343.7 MB, free: 8.027 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.395e-06/0.4569, allocations: 0 / 343.7 MB, free: 8.027 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001157/0.4581, allocations: 251.2 kB / 344 MB, free: 7.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005422/0.4587, allocations: 59.91 kB / 344 MB, free: 7.711 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008819/0.4675, allocations: 6.531 MB / 350.5 MB, free: 0.7188 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004968/0.468, allocations: 7.984 kB / 350.6 MB, free: 0.7109 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.737e-05/0.4681, allocations: 16 kB / 350.6 MB, free: 0.6953 MB / 298.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.0001721/0.4683, allocations: 116.4 kB / 350.7 MB, free: 0.5781 MB / 298.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00139/0.4697, allocations: 0.5369 MB / 351.2 MB, free: 24 kB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001345/0.4698, allocations: 47.48 kB / 351.3 MB, free: 15.97 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001619/0.47, allocations: 61.14 kB / 351.3 MB, free: 15.92 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.728e-06/0.47, allocations: 8 kB / 351.3 MB, free: 15.91 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.254e-06/0.4701, allocations: 8 kB / 351.3 MB, free: 15.9 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.847e-06/0.4701, allocations: 3.984 kB / 351.3 MB, free: 15.9 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00281/0.4729, allocations: 1.178 MB / 352.5 MB, free: 14.66 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.741e-06/0.4729, allocations: 0 / 352.5 MB, free: 14.66 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005332/0.4735, allocations: 51.97 kB / 352.6 MB, free: 14.61 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001086/0.4746, allocations: 255.1 kB / 352.8 MB, free: 14.35 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.041e-05/0.4746, allocations: 0 / 352.8 MB, free: 14.35 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008393/0.483, allocations: 6.527 MB / 359.3 MB, free: 7.355 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/0.4831, allocations: 0 / 359.3 MB, free: 7.355 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002356/0.4855, allocations: 0.9003 MB / 360.2 MB, free: 6.426 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003168/0.4858, allocations: 164.5 kB / 360.4 MB, free: 6.246 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.595e-05/0.4859, allocations: 8.125 kB / 360.4 MB, free: 6.238 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004414/0.4864, allocations: 15.98 kB / 360.4 MB, free: 6.223 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002145/0.4866, allocations: 52.42 kB / 360.5 MB, free: 6.172 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.668e-05/0.4867, allocations: 16 kB / 360.5 MB, free: 6.156 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003529/0.487, allocations: 220.5 kB / 360.7 MB, free: 5.941 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.487, allocations: 7.938 kB / 360.7 MB, free: 5.934 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001269/0.4883, allocations: 152 kB / 360.9 MB, free: 5.785 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.002641/0.491, allocations: 1.468 MB / 362.3 MB, free: 4.277 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002043/0.4931, allocations: 0.9258 MB / 363.3 MB, free: 3.309 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.4931, allocations: 0 / 363.3 MB, free: 3.309 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001473/0.4946, allocations: 0.77 MB / 364 MB, free: 2.5 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006403/0.4952, allocations: 55.58 kB / 364.1 MB, free: 2.449 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003445/0.4987, allocations: 1.054 MB / 365.1 MB, free: 1.367 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006232/0.4994, allocations: 0.8944 MB / 366 MB, free: 452 kB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002918/0.4997, allocations: 52.34 kB / 366.1 MB, free: 396 kB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000325/0.5, allocations: 171.4 kB / 366.3 MB, free: 224 kB / 314.7 MB Notification: Performance of SimCode: time 9.42e-07/0.5, allocations: 3.938 kB / 366.3 MB, free: 220 kB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2669/0.7669, allocations: 10.77 MB / 377 MB, free: 90.11 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002486/0.7672, allocations: 133.4 kB / 377.2 MB, free: 89.92 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.874/3.641, allocations: 0 / 377.2 MB, free: 89.92 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Analog.Examples.Rectifier_res.mat does not exist to compare? outputFormat=mat