Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingRectifier,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Analog_Examples_HeatingRectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.746/1.746, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.748e-05/3.751e-05, allocations: 0 / 225.1 MB, free: 2.699 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.264/0.2641, allocations: 38.78 MB / 263.8 MB, free: 9.758 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1265/0.3906, allocations: 68.61 MB / 332.5 MB, free: 5.047 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002794/0.3909, allocations: 67.97 kB / 332.5 MB, free: 4.98 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01811/0.4091, allocations: 3.965 MB / 336.5 MB, free: 0.9922 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.804e-06/0.4091, allocations: 0 / 336.5 MB, free: 0.9922 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.108e-05/0.4091, allocations: 8 kB / 336.5 MB, free: 0.9844 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: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.0009805/0.4101, allocations: 494.2 kB / 337 MB, free: 468 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.095e-05/0.4102, allocations: 8.031 kB / 337 MB, free: 460 kB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.326e-05/0.4103, allocations: 54.55 kB / 337 MB, free: 396 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.636e-05/0.4104, allocations: 23.72 kB / 337.1 MB, free: 372 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003622/0.4108, allocations: 235.3 kB / 337.3 MB, free: 92 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.87e-05/0.4108, allocations: 24.39 kB / 337.3 MB, free: 68 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.608e-05/0.4109, allocations: 20 kB / 337.3 MB, free: 48 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006173/0.4115, allocations: 213.1 kB / 337.5 MB, free: 15.82 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.022e-05/0.4115, allocations: 4 kB / 337.5 MB, free: 15.82 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.821e-05/0.4116, allocations: 8 kB / 337.6 MB, free: 15.81 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.071e-05/0.4116, allocations: 4 kB / 337.6 MB, free: 15.8 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004309/0.4121, allocations: 144.8 kB / 337.7 MB, free: 15.66 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002086/0.4142, allocations: 0.8553 MB / 338.6 MB, free: 14.75 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004214/0.4146, allocations: 138.6 kB / 338.7 MB, free: 14.6 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000272/0.4149, allocations: 96.92 kB / 338.8 MB, free: 14.5 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.24e-05/0.415, allocations: 11.94 kB / 338.8 MB, free: 14.49 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.023e-05/0.415, allocations: 30.56 kB / 338.8 MB, free: 14.45 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 3.266e-06/0.415, allocations: 0 / 338.8 MB, free: 14.45 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.000852/0.4159, allocations: 202.4 kB / 339 MB, free: 14.25 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.414e-05/0.4159, allocations: 55.41 kB / 339.1 MB, free: 14.18 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002447/0.4162, allocations: 162.3 kB / 339.2 MB, free: 14.01 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.421e-05/0.4163, allocations: 29.7 kB / 339.3 MB, free: 13.98 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001349/0.4164, allocations: 218.4 kB / 339.5 MB, free: 13.76 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.47e-05/0.4165, allocations: 63.17 kB / 339.5 MB, free: 13.7 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.553e-05/0.4165, allocations: 4 kB / 339.5 MB, free: 13.7 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001274/0.4167, allocations: 318.8 kB / 339.9 MB, free: 13.38 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001483/0.4168, allocations: 47.98 kB / 339.9 MB, free: 13.33 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001803/0.417, allocations: 76.3 kB / 340 MB, free: 13.24 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001876/0.4172, allocations: 65.47 kB / 340 MB, free: 13.18 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.4172, allocations: 3.938 kB / 340 MB, free: 13.17 MB / 298.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006996/0.4179, allocations: 222.9 kB / 340.3 MB, free: 12.95 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.605e-05/0.418, allocations: 8.781 kB / 340.3 MB, free: 12.94 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.804e-06/0.418, allocations: 4.125 kB / 340.3 MB, free: 12.93 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002222/0.4202, allocations: 220.6 kB / 340.5 MB, free: 12.71 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003002/0.4206, allocations: 35.92 kB / 340.5 MB, free: 12.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006748/0.4212, allocations: 0.6148 MB / 341.1 MB, free: 12.04 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002469/0.4215, allocations: 19.84 kB / 341.2 MB, free: 12.02 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.419e-05/0.4216, allocations: 8 kB / 341.2 MB, free: 12.01 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001294/0.4217, allocations: 112.9 kB / 341.3 MB, free: 11.89 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.144e-05/0.4218, allocations: 19.8 kB / 341.3 MB, free: 11.88 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006293/0.4224, allocations: 223.4 kB / 341.5 MB, free: 11.65 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.235e-06/0.4224, allocations: 3.953 kB / 341.5 MB, free: 11.65 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.411e-06/0.4224, allocations: 4 kB / 341.5 MB, free: 11.64 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.491e-06/0.4225, allocations: 0 / 341.5 MB, free: 11.64 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001372/0.4238, allocations: 0.5839 MB / 342.1 MB, free: 11 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.434e-06/0.4239, allocations: 4 kB / 342.1 MB, free: 11 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002898/0.4242, allocations: 28.02 kB / 342.1 MB, free: 10.97 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00203/0.4262, allocations: 216.6 kB / 342.4 MB, free: 10.75 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.243e-05/0.4263, allocations: 4 kB / 342.4 MB, free: 10.75 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006715/0.427, allocations: 0.6265 MB / 343 MB, free: 10.1 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.793e-06/0.427, allocations: 7.922 kB / 343 MB, free: 10.09 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009559/0.428, allocations: 395 kB / 343.4 MB, free: 9.672 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001559/0.4282, allocations: 108.9 kB / 343.5 MB, free: 9.547 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.017e-05/0.4282, allocations: 11.94 kB / 343.5 MB, free: 9.535 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002676/0.4285, allocations: 8 kB / 343.5 MB, free: 9.527 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.003e-05/0.4286, allocations: 19.92 kB / 343.5 MB, free: 9.508 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.136e-05/0.4286, allocations: 4 kB / 343.5 MB, free: 9.504 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001771/0.4288, allocations: 137.2 kB / 343.7 MB, free: 9.371 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.4288, allocations: 0 / 343.7 MB, free: 9.371 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005141/0.4293, allocations: 68 kB / 343.7 MB, free: 9.305 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Capacitor1.v,HeatCapacitor1.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.001399/0.4308, allocations: 1.011 MB / 344.7 MB, free: 8.258 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005819/0.4314, allocations: 146.9 kB / 344.9 MB, free: 8.117 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.4314, allocations: 0 / 344.9 MB, free: 8.117 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002439/0.4317, allocations: 79.86 kB / 345 MB, free: 8.039 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004076/0.4321, allocations: 24.12 kB / 345 MB, free: 8.016 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001422/0.4335, allocations: 459.4 kB / 345.4 MB, free: 7.523 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003755/0.4339, allocations: 0.7556 MB / 346.2 MB, free: 6.738 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001424/0.4341, allocations: 63.41 kB / 346.2 MB, free: 6.676 MB / 298.7 MB Notification: Performance of SimCode: time 9.11e-07/0.4341, allocations: 0 / 346.2 MB, free: 6.676 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.539/2.973, allocations: 4.039 MB / 350.3 MB, free: 2.633 MB / 298.7 MB