Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingRectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Capacitor1.v|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier") Notification: Performance of loadModel(Modelica): time 1.588/1.588, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.557e-05/3.569e-05, allocations: 7.938 kB / 225 MB, free: 2.723 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2493/0.2493, allocations: 38.77 MB / 263.8 MB, free: 9.875 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1041/0.3534, allocations: 68.61 MB / 332.4 MB, free: 5.168 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002315/0.3537, allocations: 75.95 kB / 332.4 MB, free: 5.094 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01628/0.37, allocations: 3.957 MB / 336.4 MB, free: 1.113 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.477e-06/0.37, allocations: 4 kB / 336.4 MB, free: 1.109 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.743e-05/0.3701, allocations: 4 kB / 336.4 MB, free: 1.105 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.0008274/0.3709, allocations: 486.2 kB / 336.9 MB, free: 0.5859 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.682e-05/0.371, allocations: 12.03 kB / 336.9 MB, free: 0.5742 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.998e-05/0.3711, allocations: 31.7 kB / 336.9 MB, free: 0.543 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000355/0.3714, allocations: 227.4 kB / 337.1 MB, free: 284 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.05e-05/0.3715, allocations: 20.38 kB / 337.2 MB, free: 264 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.624e-05/0.3716, allocations: 27.95 kB / 337.2 MB, free: 236 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005024/0.3721, allocations: 213 kB / 337.4 MB, free: 8 kB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.613e-05/0.3721, allocations: 0 / 337.4 MB, free: 8 kB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.374e-05/0.3721, allocations: 8 kB / 337.4 MB, free: 0 / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.319e-05/0.3722, allocations: 4.047 kB / 337.4 MB, free: 15.99 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003909/0.3726, allocations: 136.8 kB / 337.5 MB, free: 15.86 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001852/0.3745, allocations: 0.8671 MB / 338.4 MB, free: 14.93 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003925/0.3749, allocations: 146.6 kB / 338.5 MB, free: 14.78 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000271/0.3752, allocations: 92.84 kB / 338.6 MB, free: 14.68 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.867e-05/0.3752, allocations: 3.984 kB / 338.6 MB, free: 14.68 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.398e-05/0.3753, allocations: 34.56 kB / 338.7 MB, free: 14.64 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 5.106e-06/0.3753, allocations: 0 / 338.7 MB, free: 14.64 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.0007032/0.376, allocations: 202.4 kB / 338.9 MB, free: 14.43 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.421e-05/0.3761, allocations: 51.41 kB / 338.9 MB, free: 14.37 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002256/0.3763, allocations: 166.2 kB / 339.1 MB, free: 14.2 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.368e-05/0.3764, allocations: 33.7 kB / 339.1 MB, free: 14.16 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001455/0.3765, allocations: 214.4 kB / 339.3 MB, free: 13.95 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.97e-05/0.3766, allocations: 59.11 kB / 339.4 MB, free: 13.89 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.528e-05/0.3766, allocations: 4 kB / 339.4 MB, free: 13.88 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001644/0.3768, allocations: 326.8 kB / 339.7 MB, free: 13.55 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001316/0.377, allocations: 40 kB / 339.7 MB, free: 13.52 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000176/0.3771, allocations: 90.72 kB / 339.8 MB, free: 13.41 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000168/0.3773, allocations: 53.48 kB / 339.9 MB, free: 13.36 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.428e-06/0.3773, allocations: 4 kB / 339.9 MB, free: 13.36 MB / 298.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006375/0.378, allocations: 230.8 kB / 340.1 MB, free: 13.12 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.08e-05/0.378, allocations: 4.781 kB / 340.1 MB, free: 13.12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.4e-06/0.3781, allocations: 4 kB / 340.1 MB, free: 13.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001584/0.3796, allocations: 216.7 kB / 340.3 MB, free: 12.9 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002411/0.3799, allocations: 47.84 kB / 340.4 MB, free: 12.86 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007183/0.3807, allocations: 0.603 MB / 341 MB, free: 12.23 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002048/0.3809, allocations: 23.86 kB / 341 MB, free: 12.2 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.783e-05/0.3809, allocations: 16.06 kB / 341 MB, free: 12.19 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.0001298/0.3811, allocations: 112.9 kB / 341.1 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.528e-05/0.3811, allocations: 15.81 kB / 341.2 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005935/0.3818, allocations: 215.4 kB / 341.4 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.853e-06/0.3818, allocations: 0 / 341.4 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.074e-06/0.3818, allocations: 3.953 kB / 341.4 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.004e-05/0.3818, allocations: 3.984 kB / 341.4 MB, free: 11.83 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001273/0.3831, allocations: 0.5955 MB / 342 MB, free: 11.18 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.743e-06/0.3831, allocations: 0 / 342 MB, free: 11.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002268/0.3834, allocations: 31.97 kB / 342 MB, free: 11.14 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001443/0.3848, allocations: 220.7 kB / 342.2 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.137e-05/0.3849, allocations: 0 / 342.2 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000687/0.3856, allocations: 0.6187 MB / 342.8 MB, free: 10.28 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.799e-06/0.3856, allocations: 0 / 342.8 MB, free: 10.28 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008322/0.3864, allocations: 395 kB / 343.2 MB, free: 9.863 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000151/0.3866, allocations: 112.8 kB / 343.3 MB, free: 9.734 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.973e-05/0.3867, allocations: 4 kB / 343.3 MB, free: 9.73 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002323/0.3869, allocations: 16 kB / 343.3 MB, free: 9.715 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.77e-05/0.387, allocations: 15.98 kB / 343.4 MB, free: 9.699 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.1e-05/0.387, allocations: 4 kB / 343.4 MB, free: 9.695 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000165/0.3872, allocations: 133.2 kB / 343.5 MB, free: 9.566 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.94e-07/0.3872, allocations: 4 kB / 343.5 MB, free: 9.562 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004646/0.3877, allocations: 59.84 kB / 343.6 MB, free: 9.504 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.0002164/0.3879, allocations: 127.1 kB / 343.7 MB, free: 9.371 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004753/0.3884, allocations: 143.8 kB / 343.8 MB, free: 9.23 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.393e-06/0.3884, allocations: 0 / 343.8 MB, free: 9.23 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002219/0.3887, allocations: 75.95 kB / 343.9 MB, free: 9.156 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003441/0.389, allocations: 28.08 kB / 343.9 MB, free: 9.129 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001046/0.3901, allocations: 409.7 kB / 344.3 MB, free: 8.699 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000468/0.3906, allocations: 0.7557 MB / 345.1 MB, free: 7.914 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.508e-05/0.3906, allocations: 11.44 kB / 345.1 MB, free: 7.902 MB / 298.7 MB Notification: Performance of SimCode: time 1.931e-06/0.3907, allocations: 4 kB / 345.1 MB, free: 7.898 MB / 298.7 MB Notification: Performance of Templates: time 0.006605/0.3973, allocations: 3.083 MB / 348.2 MB, free: 4.816 MB / 298.7 MB