Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Rectifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.271/2.271, allocations: 205.8 MB / 218.9 MB, free: 9.277 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.437e-05/3.452e-05, allocations: 3.984 kB / 269.5 MB, free: 6.301 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1038, allocations: 47.57 MB / 317 MB, free: 6.641 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4074/0.5112, allocations: 78.87 MB / 395.9 MB, free: 9.207 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002668/0.5116, allocations: 65.47 kB / 396 MB, free: 9.176 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04019/0.5518, allocations: 8.847 MB / 404.8 MB, free: 1.664 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.5518, allocations: 3.938 kB / 404.8 MB, free: 1.66 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.704e-05/0.5519, allocations: 15.98 kB / 404.8 MB, free: 1.645 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.002045/0.5539, allocations: 0.7611 MB / 405.6 MB, free: 0.875 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.23e-05/0.554, allocations: 8.031 kB / 405.6 MB, free: 0.8672 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00026/0.5543, allocations: 106.7 kB / 405.7 MB, free: 0.7852 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001934/0.5545, allocations: 75.11 kB / 405.8 MB, free: 0.7109 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000738/0.5552, allocations: 364.5 kB / 406.1 MB, free: 360 kB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.015e-05/0.5553, allocations: 45.81 kB / 406.2 MB, free: 332 kB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001279/0.5555, allocations: 59.86 kB / 406.2 MB, free: 292 kB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001315/0.5568, allocations: 0.5272 MB / 406.8 MB, free: 15.89 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.289e-05/0.5568, allocations: 0 / 406.8 MB, free: 15.89 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.422e-05/0.5569, allocations: 26.44 kB / 406.8 MB, free: 15.89 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.095e-05/0.5569, allocations: 15.98 kB / 406.8 MB, free: 15.87 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001167/0.5581, allocations: 420 kB / 407.2 MB, free: 15.61 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004941/0.5631, allocations: 2.117 MB / 409.3 MB, free: 13.81 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001299/0.5644, allocations: 0.5962 MB / 409.9 MB, free: 13.41 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008486/0.5653, allocations: 384.3 kB / 410.3 MB, free: 13.16 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.008e-05/0.5654, allocations: 4.562 kB / 410.3 MB, free: 13.16 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.238e-05/0.5655, allocations: 42.5 kB / 410.3 MB, free: 13.11 MB / 330.7 MB Notification: Performance of pre-optimization done (n=60): time 3.667e-06/0.5655, allocations: 0 / 410.3 MB, free: 13.11 MB / 330.7 MB Notification: Performance of matching and sorting (n=61): time 0.003423/0.5689, allocations: 1.258 MB / 411.6 MB, free: 12.09 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.058e-05/0.569, allocations: 59.97 kB / 411.7 MB, free: 12.02 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005539/0.5696, allocations: 309.6 kB / 412 MB, free: 11.77 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.164e-05/0.5696, allocations: 35.02 kB / 412 MB, free: 11.74 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001845/0.5698, allocations: 238.9 kB / 412.2 MB, free: 11.57 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002201/0.5701, allocations: 207.3 kB / 412.4 MB, free: 11.39 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.597e-05/0.5701, allocations: 6.688 kB / 412.4 MB, free: 11.39 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000174/0.5703, allocations: 357.9 kB / 412.8 MB, free: 11.05 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004447/0.5708, allocations: 149.6 kB / 412.9 MB, free: 10.96 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004662/0.5712, allocations: 188.4 kB / 413.1 MB, free: 10.84 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004627/0.5717, allocations: 167.7 kB / 413.3 MB, free: 10.73 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.798e-06/0.5717, allocations: 0 / 413.3 MB, free: 10.73 MB / 330.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001815/0.5736, allocations: 0.6258 MB / 413.9 MB, free: 10.25 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.726e-05/0.5736, allocations: 4 kB / 413.9 MB, free: 10.25 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.167e-05/0.5737, allocations: 7.938 kB / 413.9 MB, free: 10.24 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001208/0.5749, allocations: 256.4 kB / 414.2 MB, free: 10.04 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005685/0.5755, allocations: 71.86 kB / 414.2 MB, free: 9.969 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009103/0.5846, allocations: 6.75 MB / 421 MB, free: 3.391 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005719/0.5852, allocations: 23.66 kB / 421 MB, free: 3.375 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.353e-05/0.5853, allocations: 23.61 kB / 421 MB, free: 3.355 MB / 330.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.0001837/0.5855, allocations: 131 kB / 421.2 MB, free: 3.238 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00013/0.5856, allocations: 47.44 kB / 421.2 MB, free: 3.191 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001662/0.5858, allocations: 67.83 kB / 421.3 MB, free: 3.164 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.957e-06/0.5858, allocations: 11.94 kB / 421.3 MB, free: 3.152 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.222e-05/0.5858, allocations: 4 kB / 421.3 MB, free: 3.148 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.137e-05/0.5859, allocations: 3.984 kB / 421.3 MB, free: 3.145 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003185/0.5891, allocations: 1.309 MB / 422.6 MB, free: 2.113 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.943e-06/0.5891, allocations: 0 / 422.6 MB, free: 2.113 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005547/0.5897, allocations: 55.03 kB / 422.7 MB, free: 2.062 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00119/0.5909, allocations: 260.4 kB / 422.9 MB, free: 1.852 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.972e-05/0.591, allocations: 18.55 kB / 422.9 MB, free: 1.844 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009571/0.6006, allocations: 6.757 MB / 429.7 MB, free: 11.26 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.15e-06/0.6006, allocations: 96 / 429.7 MB, free: 11.26 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002625/0.6033, allocations: 0.9698 MB / 430.7 MB, free: 10.54 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003919/0.6037, allocations: 158.7 kB / 430.8 MB, free: 10.39 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001012/0.6038, allocations: 18.56 kB / 430.8 MB, free: 10.38 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004969/0.6044, allocations: 19.12 kB / 430.9 MB, free: 10.37 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000218/0.6046, allocations: 51.97 kB / 430.9 MB, free: 10.32 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.735e-05/0.6046, allocations: 15.31 kB / 430.9 MB, free: 10.31 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004193/0.6051, allocations: 247.8 kB / 431.2 MB, free: 10.12 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.6051, allocations: 0 / 431.2 MB, free: 10.12 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001291/0.6064, allocations: 178.2 kB / 431.3 MB, free: 9.965 MB / 346.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.003027/0.6094, allocations: 1.546 MB / 432.9 MB, free: 8.676 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002199/0.6117, allocations: 0.9574 MB / 433.8 MB, free: 7.855 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.6117, allocations: 0 / 433.8 MB, free: 7.855 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001678/0.6134, allocations: 0.7878 MB / 434.6 MB, free: 7.148 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007252/0.6142, allocations: 68.75 kB / 434.7 MB, free: 7.105 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003831/0.6181, allocations: 1.125 MB / 435.8 MB, free: 6.059 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006322/0.6187, allocations: 0.8946 MB / 436.7 MB, free: 5.137 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000333/0.6191, allocations: 56.48 kB / 436.8 MB, free: 5.082 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003413/0.6194, allocations: 178.7 kB / 436.9 MB, free: 5.035 MB / 346.7 MB Notification: Performance of SimCode: time 1.312e-06/0.6195, allocations: 0 / 436.9 MB, free: 5.035 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0562/0.6757, allocations: 12.05 MB / 449 MB, free: 9.062 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000352/0.6761, allocations: 180.8 kB / 449.2 MB, free: 8.832 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.068/3.744, allocations: 3.938 kB / 449.2 MB, free: 8.828 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier_res.mat does not exist to compare? outputFormat=mat