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 2.021/2.021, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.602e-05/3.612e-05, allocations: 8 kB / 249.7 MB, free: 15.19 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3299/0.33, allocations: 44.49 MB / 294.2 MB, free: 14.23 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.135/0.465, allocations: 73.99 MB / 368.2 MB, free: 7.906 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002561/0.4653, allocations: 67.95 kB / 368.3 MB, free: 7.84 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03697/0.5023, allocations: 8.68 MB / 376.9 MB, free: 15.1 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.442e-06/0.5024, allocations: 0 / 376.9 MB, free: 15.1 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.643e-05/0.5024, allocations: 12 kB / 376.9 MB, free: 15.09 MB / 330.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.00185/0.5043, allocations: 0.7519 MB / 377.7 MB, free: 14.29 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.545e-05/0.5044, allocations: 12.03 kB / 377.7 MB, free: 14.28 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001981/0.5046, allocations: 71.16 kB / 377.8 MB, free: 14.21 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007122/0.5053, allocations: 363.4 kB / 378.1 MB, free: 13.81 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.268e-05/0.5053, allocations: 16 kB / 378.1 MB, free: 13.79 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000114/0.5055, allocations: 32 kB / 378.2 MB, free: 13.76 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001184/0.5067, allocations: 378.5 kB / 378.5 MB, free: 13.39 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001144/0.5078, allocations: 440.6 kB / 379 MB, free: 12.93 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.223e-05/0.5079, allocations: 11.94 kB / 379 MB, free: 12.92 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.581e-05/0.5079, allocations: 3.953 kB / 379 MB, free: 12.92 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.464e-05/0.508, allocations: 15.98 kB / 379 MB, free: 12.9 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004559/0.5126, allocations: 1.96 MB / 381 MB, free: 10.87 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001325/0.5139, allocations: 0.5856 MB / 381.6 MB, free: 10.25 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007984/0.5148, allocations: 357.7 kB / 381.9 MB, free: 9.898 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.504e-05/0.5149, allocations: 8.547 kB / 381.9 MB, free: 9.887 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.117e-05/0.5149, allocations: 47.12 kB / 382 MB, free: 9.832 MB / 330.7 MB Notification: Performance of pre-optimization done (n=60): time 3.907e-06/0.5149, allocations: 0 / 382 MB, free: 9.832 MB / 330.7 MB Notification: Performance of matching and sorting (n=61): time 0.003249/0.5182, allocations: 1.146 MB / 383.1 MB, free: 8.621 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.94e-05/0.5183, allocations: 63.97 kB / 383.2 MB, free: 8.547 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004768/0.5188, allocations: 270.4 kB / 383.4 MB, free: 8.281 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.048e-05/0.5188, allocations: 25.7 kB / 383.5 MB, free: 8.25 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002408/0.5191, allocations: 279.4 kB / 383.7 MB, free: 7.973 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002348/0.5193, allocations: 193.1 kB / 383.9 MB, free: 7.781 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.317e-05/0.5194, allocations: 0 / 383.9 MB, free: 7.781 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.5195, allocations: 330.8 kB / 384.2 MB, free: 7.449 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004247/0.52, allocations: 137.1 kB / 384.4 MB, free: 7.312 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000468/0.5204, allocations: 178.8 kB / 384.5 MB, free: 7.137 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004581/0.5209, allocations: 154.1 kB / 384.7 MB, free: 6.984 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.5209, allocations: 0 / 384.7 MB, free: 6.984 MB / 330.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001729/0.5227, allocations: 0.5566 MB / 385.3 MB, free: 6.41 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.613e-05/0.5227, allocations: 4 kB / 385.3 MB, free: 6.406 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.167e-06/0.5227, allocations: 3.938 kB / 385.3 MB, free: 6.402 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001156/0.5239, allocations: 243.2 kB / 385.5 MB, free: 6.152 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005552/0.5245, allocations: 67.94 kB / 385.6 MB, free: 6.086 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009623/0.5341, allocations: 6.515 MB / 392.1 MB, free: 15.1 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000533/0.5347, allocations: 16.08 kB / 392.1 MB, free: 15.08 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.423e-05/0.5348, allocations: 19.94 kB / 392.1 MB, free: 15.06 MB / 346.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.0001852/0.535, allocations: 112.3 kB / 392.2 MB, free: 14.95 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001566/0.5366, allocations: 0.5447 MB / 392.8 MB, free: 14.39 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001215/0.5367, allocations: 51.39 kB / 392.8 MB, free: 14.34 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001766/0.5369, allocations: 57.06 kB / 392.9 MB, free: 14.29 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.548e-06/0.5369, allocations: 4 kB / 392.9 MB, free: 14.28 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.928e-06/0.5369, allocations: 4.125 kB / 392.9 MB, free: 14.28 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.193e-05/0.5369, allocations: 7.984 kB / 392.9 MB, free: 14.27 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003074/0.54, allocations: 1.174 MB / 394.1 MB, free: 13.04 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.953e-06/0.5401, allocations: 0 / 394.1 MB, free: 13.04 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005451/0.5406, allocations: 55.91 kB / 394.1 MB, free: 12.98 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001173/0.5418, allocations: 255.6 kB / 394.4 MB, free: 12.72 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.105e-05/0.5419, allocations: 4 kB / 394.4 MB, free: 12.72 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009197/0.5511, allocations: 6.531 MB / 400.9 MB, free: 5.723 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-06/0.5512, allocations: 0 / 400.9 MB, free: 5.723 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002433/0.5536, allocations: 0.908 MB / 401.8 MB, free: 4.789 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003355/0.554, allocations: 156.5 kB / 402 MB, free: 4.617 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001033/0.5541, allocations: 8 kB / 402 MB, free: 4.609 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004355/0.5546, allocations: 8.109 kB / 402 MB, free: 4.602 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002214/0.5548, allocations: 56.44 kB / 402 MB, free: 4.547 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.771e-05/0.5549, allocations: 20 kB / 402.1 MB, free: 4.527 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003456/0.5552, allocations: 212.6 kB / 402.3 MB, free: 4.32 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5552, allocations: 0 / 402.3 MB, free: 4.32 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001236/0.5565, allocations: 152 kB / 402.4 MB, free: 4.172 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.002816/0.5593, allocations: 1.469 MB / 403.9 MB, free: 2.664 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002078/0.5614, allocations: 0.9219 MB / 404.8 MB, free: 1.699 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.5615, allocations: 0 / 404.8 MB, free: 1.699 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001581/0.5631, allocations: 0.7661 MB / 405.6 MB, free: 0.8945 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006686/0.5638, allocations: 57.41 kB / 405.6 MB, free: 0.8398 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003629/0.5674, allocations: 1.083 MB / 406.7 MB, free: 15.71 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005946/0.5681, allocations: 0.8867 MB / 407.6 MB, free: 14.8 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003882/0.5685, allocations: 175.4 kB / 407.8 MB, free: 14.63 MB / 362.7 MB Notification: Performance of SimCode: time 9.52e-07/0.5685, allocations: 0 / 407.8 MB, free: 14.63 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.303/3.872, allocations: 15.3 MB / 423.1 MB, free: 108.4 MB / 362.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