Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Rectifier,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Analog_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.968/1.968, allocations: 194.9 MB / 208.4 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.649e-05/3.661e-05, allocations: 4 kB / 255.5 MB, free: 3.098 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1105, allocations: 44.5 MB / 300 MB, free: 6.531 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4066/0.5171, allocations: 74.65 MB / 374.6 MB, free: 12.8 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000261/0.5174, allocations: 68.36 kB / 374.7 MB, free: 12.8 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03967/0.5571, allocations: 8.781 MB / 383.5 MB, free: 11.69 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.5572, allocations: 1.75 kB / 383.5 MB, free: 11.69 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.305e-05/0.5572, allocations: 11 kB / 383.5 MB, free: 11.69 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.00234/0.5596, allocations: 0.7567 MB / 384.2 MB, free: 11.19 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.65e-05/0.5597, allocations: 9.625 kB / 384.2 MB, free: 11.19 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003372/0.56, allocations: 110.8 kB / 384.3 MB, free: 11.14 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002518/0.5603, allocations: 70.66 kB / 384.4 MB, free: 11.1 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008974/0.5612, allocations: 368.2 kB / 384.8 MB, free: 10.84 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.685e-05/0.5613, allocations: 40.31 kB / 384.8 MB, free: 10.84 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001471/0.5615, allocations: 54.53 kB / 384.9 MB, free: 10.84 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001466/0.5629, allocations: 0.5355 MB / 385.4 MB, free: 10.73 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.076e-05/0.563, allocations: 5.359 kB / 385.4 MB, free: 10.73 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.646e-05/0.5631, allocations: 25.77 kB / 385.4 MB, free: 10.72 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.045e-05/0.5632, allocations: 13.75 kB / 385.4 MB, free: 10.72 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001352/0.5645, allocations: 415.6 kB / 385.8 MB, free: 10.72 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005077/0.5696, allocations: 2.118 MB / 388 MB, free: 9.758 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001296/0.571, allocations: 0.6031 MB / 388.6 MB, free: 9.621 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007604/0.5718, allocations: 387.8 kB / 388.9 MB, free: 9.598 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.04e-05/0.5719, allocations: 8.375 kB / 389 MB, free: 9.598 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.781e-05/0.5719, allocations: 38.94 kB / 389 MB, free: 9.555 MB / 314.7 MB Notification: Performance of pre-optimization done (n=60): time 3.407e-06/0.5719, allocations: 4 kB / 389 MB, free: 9.551 MB / 314.7 MB Notification: Performance of matching and sorting (n=61): time 0.003095/0.5751, allocations: 1.25 MB / 390.2 MB, free: 9.121 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.183e-05/0.5751, allocations: 55.88 kB / 390.3 MB, free: 9.059 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004694/0.5756, allocations: 316.5 kB / 390.6 MB, free: 8.945 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.66e-05/0.5757, allocations: 36.02 kB / 390.6 MB, free: 8.914 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001274/0.5758, allocations: 284.4 kB / 390.9 MB, free: 8.715 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001545/0.576, allocations: 201.7 kB / 391.1 MB, free: 8.586 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.602e-05/0.576, allocations: 13.25 kB / 391.1 MB, free: 8.586 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.051e-05/0.5761, allocations: 330 kB / 391.5 MB, free: 8.273 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003996/0.5765, allocations: 156.5 kB / 391.6 MB, free: 8.27 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004104/0.5769, allocations: 183.8 kB / 391.8 MB, free: 8.25 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004148/0.5774, allocations: 167.6 kB / 392 MB, free: 8.234 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.5774, allocations: 0 / 392 MB, free: 8.234 MB / 314.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001488/0.5789, allocations: 0.6023 MB / 392.6 MB, free: 8.133 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.314e-05/0.5789, allocations: 13.36 kB / 392.6 MB, free: 8.125 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.846e-06/0.5789, allocations: 0 / 392.6 MB, free: 8.125 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001075/0.58, allocations: 247.2 kB / 392.8 MB, free: 8.09 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005445/0.5806, allocations: 69.28 kB / 392.9 MB, free: 8.082 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007896/0.5885, allocations: 6.75 MB / 399.6 MB, free: 18.63 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006323/0.5892, allocations: 24.31 kB / 399.6 MB, free: 18.62 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.562e-05/0.5892, allocations: 18.97 kB / 399.7 MB, free: 18.62 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.0001779/0.5894, allocations: 139 kB / 399.8 MB, free: 18.51 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001049/0.5896, allocations: 50.72 kB / 399.9 MB, free: 18.48 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001545/0.5897, allocations: 64.14 kB / 399.9 MB, free: 18.47 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.062e-06/0.5897, allocations: 3.875 kB / 399.9 MB, free: 18.47 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.096e-05/0.5898, allocations: 7.797 kB / 399.9 MB, free: 18.47 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.664e-06/0.5898, allocations: 7.234 kB / 399.9 MB, free: 18.46 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002823/0.5926, allocations: 1.31 MB / 401.2 MB, free: 18.09 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.023e-06/0.5927, allocations: 7.875 kB / 401.3 MB, free: 18.09 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005302/0.5932, allocations: 63.02 kB / 401.3 MB, free: 18.08 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001036/0.5943, allocations: 253.7 kB / 401.6 MB, free: 18.04 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.982e-05/0.5943, allocations: 11.06 kB / 401.6 MB, free: 18.04 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008696/0.603, allocations: 6.761 MB / 408.3 MB, free: 12.58 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.6031, allocations: 0 / 408.3 MB, free: 12.58 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002372/0.6055, allocations: 0.971 MB / 409.3 MB, free: 12.36 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004157/0.6059, allocations: 157.3 kB / 409.5 MB, free: 12.24 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001034/0.6061, allocations: 14.22 kB / 409.5 MB, free: 12.24 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005167/0.6066, allocations: 26.53 kB / 409.5 MB, free: 12.23 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002176/0.6068, allocations: 49.11 kB / 409.5 MB, free: 12.22 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.486e-05/0.6069, allocations: 17.94 kB / 409.6 MB, free: 12.22 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004214/0.6073, allocations: 244.8 kB / 409.8 MB, free: 12.14 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.6073, allocations: 3.938 kB / 409.8 MB, free: 12.14 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001442/0.6088, allocations: 177.1 kB / 410 MB, free: 12.14 MB / 330.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.002777/0.6116, allocations: 1.546 MB / 411.5 MB, free: 11.38 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002067/0.6137, allocations: 0.949 MB / 412.5 MB, free: 10.92 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.002e-06/0.6138, allocations: 0 / 412.5 MB, free: 10.92 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001518/0.6153, allocations: 0.7819 MB / 413.3 MB, free: 10.46 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007644/0.6161, allocations: 73.81 kB / 413.3 MB, free: 10.46 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003682/0.6198, allocations: 1.16 MB / 414.5 MB, free: 9.934 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005681/0.6204, allocations: 0.8961 MB / 415.4 MB, free: 9.227 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003491/0.6208, allocations: 177.5 kB / 415.6 MB, free: 9.219 MB / 330.7 MB Notification: Performance of SimCode: time 1.132e-06/0.6208, allocations: 3.938 kB / 415.6 MB, free: 9.215 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.099/3.72, allocations: 15.84 MB / 431.4 MB, free: 3.055 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.Rectifier_res.mat does not exist to compare? outputFormat=mat