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.755/1.755, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.079e-05/4.082e-05, allocations: 7.438 kB / 225.1 MB, free: 2.691 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.258/0.2581, allocations: 38.77 MB / 263.8 MB, free: 9.762 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1233/0.3815, allocations: 69.37 MB / 333.2 MB, free: 4.293 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002702/0.3818, allocations: 71.95 kB / 333.3 MB, free: 4.223 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04162/0.4234, allocations: 8.37 MB / 341.7 MB, free: 11.82 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.045e-06/0.4235, allocations: 0 / 341.7 MB, free: 11.82 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001307/0.4236, allocations: 12 kB / 341.7 MB, free: 11.81 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.002353/0.426, allocations: 0.7557 MB / 342.4 MB, free: 11.01 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.421e-05/0.4261, allocations: 12.03 kB / 342.4 MB, free: 11 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002483/0.4263, allocations: 115.6 kB / 342.5 MB, free: 10.88 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001889/0.4265, allocations: 71.11 kB / 342.6 MB, free: 10.8 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007151/0.4273, allocations: 367.4 kB / 343 MB, free: 10.4 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.411e-05/0.4273, allocations: 41.31 kB / 343 MB, free: 10.36 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001228/0.4275, allocations: 55.91 kB / 343.1 MB, free: 10.31 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001337/0.4288, allocations: 0.5357 MB / 343.6 MB, free: 9.746 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.352e-05/0.4289, allocations: 3.938 kB / 343.6 MB, free: 9.742 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.548e-05/0.4289, allocations: 24 kB / 343.6 MB, free: 9.719 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.593e-05/0.429, allocations: 15.95 kB / 343.6 MB, free: 9.703 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001185/0.4302, allocations: 414.5 kB / 344.1 MB, free: 9.297 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005101/0.4353, allocations: 2.118 MB / 346.2 MB, free: 7.094 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002143/0.4375, allocations: 0.5934 MB / 346.8 MB, free: 6.469 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001446/0.439, allocations: 393.8 kB / 347.1 MB, free: 6.078 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.232e-05/0.4391, allocations: 8.562 kB / 347.2 MB, free: 6.07 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.272e-05/0.4392, allocations: 39.12 kB / 347.2 MB, free: 6.023 MB / 298.7 MB Notification: Performance of pre-optimization done (n=60): time 5.149e-06/0.4392, allocations: 0 / 347.2 MB, free: 6.023 MB / 298.7 MB Notification: Performance of matching and sorting (n=61): time 0.006614/0.4458, allocations: 1.252 MB / 348.4 MB, free: 4.703 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.101e-05/0.446, allocations: 59.97 kB / 348.5 MB, free: 4.633 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006435/0.4466, allocations: 318.9 kB / 348.8 MB, free: 4.316 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.637e-05/0.4467, allocations: 37.7 kB / 348.9 MB, free: 4.273 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002017/0.447, allocations: 283.5 kB / 349.1 MB, free: 3.996 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002289/0.4472, allocations: 201 kB / 349.3 MB, free: 3.797 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.934e-05/0.4473, allocations: 8 kB / 349.3 MB, free: 3.789 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.4474, allocations: 338.8 kB / 349.7 MB, free: 3.449 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004558/0.4479, allocations: 145.1 kB / 349.8 MB, free: 3.309 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004853/0.4484, allocations: 190.8 kB / 350 MB, free: 3.117 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004692/0.4489, allocations: 159.2 kB / 350.2 MB, free: 2.961 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.4489, allocations: 0 / 350.2 MB, free: 2.961 MB / 298.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001757/0.4506, allocations: 0.6036 MB / 350.8 MB, free: 2.34 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.361e-05/0.4507, allocations: 4 kB / 350.8 MB, free: 2.336 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.167e-05/0.4507, allocations: 3.953 kB / 350.8 MB, free: 2.332 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001209/0.4519, allocations: 255.2 kB / 351 MB, free: 2.07 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005753/0.4525, allocations: 71.89 kB / 351.1 MB, free: 2 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009272/0.4618, allocations: 6.765 MB / 357.8 MB, free: 10.7 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005479/0.4624, allocations: 20.62 kB / 357.9 MB, free: 10.68 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.919e-05/0.4625, allocations: 19.98 kB / 357.9 MB, free: 10.66 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.00019/0.4627, allocations: 141 kB / 358 MB, free: 10.52 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001258/0.4628, allocations: 51.34 kB / 358.1 MB, free: 10.46 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001768/0.463, allocations: 65.03 kB / 358.1 MB, free: 10.4 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.696e-06/0.463, allocations: 4 kB / 358.1 MB, free: 10.39 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.367e-05/0.463, allocations: 4 kB / 358.1 MB, free: 10.39 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.046e-05/0.4631, allocations: 15.81 kB / 358.2 MB, free: 10.38 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003138/0.4662, allocations: 1.31 MB / 359.5 MB, free: 8.992 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/0.4662, allocations: 3.938 kB / 359.5 MB, free: 8.988 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005374/0.4668, allocations: 51.97 kB / 359.5 MB, free: 8.938 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001138/0.4679, allocations: 259.2 kB / 359.8 MB, free: 8.672 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.502e-05/0.468, allocations: 12 kB / 359.8 MB, free: 8.66 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009008/0.477, allocations: 6.757 MB / 366.5 MB, free: 1.363 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.185e-06/0.4771, allocations: 0 / 366.5 MB, free: 1.363 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002492/0.4796, allocations: 0.9705 MB / 367.5 MB, free: 376 kB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003352/0.4799, allocations: 164.4 kB / 367.7 MB, free: 192 kB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001032/0.4801, allocations: 12 kB / 367.7 MB, free: 180 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004726/0.4805, allocations: 19.98 kB / 367.7 MB, free: 160 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002079/0.4808, allocations: 56.53 kB / 367.8 MB, free: 104 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.663e-05/0.4808, allocations: 12 kB / 367.8 MB, free: 92 kB / 314.7 MB Notification: Performance of sorting global known variables: time 0.2402/0.7211, allocations: 260.8 kB / 368 MB, free: 90.7 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.172e-06/0.7211, allocations: 0.5625 kB / 368 MB, free: 90.7 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001559/0.7227, allocations: 176.6 kB / 368.2 MB, free: 90.7 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.003187/0.7259, allocations: 1.534 MB / 369.7 MB, free: 90.01 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002011/0.7279, allocations: 0.9535 MB / 370.7 MB, free: 89.59 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.728, allocations: 0 / 370.7 MB, free: 89.59 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001394/0.7294, allocations: 0.7831 MB / 371.5 MB, free: 89.16 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006891/0.7301, allocations: 72.45 kB / 371.5 MB, free: 89.16 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003472/0.7336, allocations: 1.177 MB / 372.7 MB, free: 88.78 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004132/0.734, allocations: 0.8985 MB / 373.6 MB, free: 88.07 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003106/0.7344, allocations: 175.7 kB / 373.8 MB, free: 88.06 MB / 314.7 MB Notification: Performance of SimCode: time 1.222e-06/0.7344, allocations: 0 / 373.8 MB, free: 88.06 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.051/3.785, allocations: 15.85 MB / 389.6 MB, free: 78.25 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