Running command: translateModel(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Ideal.v|With_Ron_Goff.v|With_Ron_Goff_Vknee.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") Notification: Performance of loadModel(Modelica): time 2.148/2.148, allocations: 225.8 MB / 239.4 MB, free: 1.262 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.845e-05/3.854e-05, allocations: 0 / 292.6 MB, free: 11.5 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09064/0.09071, allocations: 50.42 MB / 343.1 MB, free: 9.074 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3641/0.4548, allocations: 78.64 MB / 421.7 MB, free: 8.266 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002032/0.4551, allocations: 72.2 kB / 421.8 MB, free: 8.266 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02319/0.4783, allocations: 6.493 MB / 428.3 MB, free: 7.012 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.741e-06/0.4783, allocations: 0 / 428.3 MB, free: 7.012 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.666e-05/0.4784, allocations: 7.406 kB / 428.3 MB, free: 7.012 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.0008916/0.4793, allocations: 0.6119 MB / 428.9 MB, free: 6.516 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/0.4793, allocations: 7.5 kB / 428.9 MB, free: 6.516 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001017/0.4794, allocations: 49.69 kB / 429 MB, free: 6.492 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003759/0.4798, allocations: 300.6 kB / 429.2 MB, free: 6.238 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.498e-05/0.4799, allocations: 19.03 kB / 429.3 MB, free: 6.238 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.458e-05/0.4799, allocations: 32.62 kB / 429.3 MB, free: 6.238 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006191/0.4806, allocations: 338.3 kB / 429.6 MB, free: 6.117 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.444e-05/0.4806, allocations: 0 / 429.6 MB, free: 6.117 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.442e-05/0.4807, allocations: 14.97 kB / 429.6 MB, free: 6.117 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.633e-06/0.4807, allocations: 11.3 kB / 429.7 MB, free: 6.117 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005203/0.4812, allocations: 229.8 kB / 429.9 MB, free: 6.105 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00214/0.4834, allocations: 1.437 MB / 431.3 MB, free: 5.109 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003938/0.4838, allocations: 200.1 kB / 431.5 MB, free: 5.074 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001805/0.484, allocations: 93.48 kB / 431.6 MB, free: 5.066 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.921e-05/0.484, allocations: 3.875 kB / 431.6 MB, free: 5.066 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.808e-05/0.4841, allocations: 30.56 kB / 431.6 MB, free: 5.027 MB / 330.7 MB Notification: Performance of pre-optimization done (n=24): time 3.099e-06/0.4841, allocations: 0 / 431.6 MB, free: 5.027 MB / 330.7 MB Notification: Performance of matching and sorting (n=24): time 0.0005885/0.4847, allocations: 271.3 kB / 431.9 MB, free: 4.934 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.306e-05/0.4847, allocations: 55.25 kB / 432 MB, free: 4.871 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003298/0.485, allocations: 273.7 kB / 432.2 MB, free: 4.746 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.829e-05/0.4851, allocations: 29.02 kB / 432.3 MB, free: 4.715 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001308/0.4852, allocations: 202.2 kB / 432.4 MB, free: 4.578 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.239e-05/0.4853, allocations: 84.33 kB / 432.5 MB, free: 4.52 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.896e-05/0.4853, allocations: 4.125 kB / 432.5 MB, free: 4.52 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.297e-05/0.4854, allocations: 349 kB / 432.9 MB, free: 4.191 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001678/0.4856, allocations: 63.28 kB / 432.9 MB, free: 4.191 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001872/0.4858, allocations: 100.2 kB / 433 MB, free: 4.148 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001844/0.486, allocations: 76.62 kB / 433.1 MB, free: 4.133 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.5e-06/0.486, allocations: 0 / 433.1 MB, free: 4.133 MB / 330.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008204/0.4868, allocations: 335.6 kB / 433.4 MB, free: 4.012 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.4869, allocations: 3.75 kB / 433.4 MB, free: 4.012 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.687e-06/0.4869, allocations: 3.984 kB / 433.4 MB, free: 4.008 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004752/0.4874, allocations: 117.7 kB / 433.6 MB, free: 3.961 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002254/0.4876, allocations: 38.11 kB / 433.6 MB, free: 3.953 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004481/0.4921, allocations: 4.427 MB / 438 MB, free: 15.79 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003267/0.4925, allocations: 34.31 kB / 438.1 MB, free: 15.77 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.05e-05/0.4925, allocations: 14.95 kB / 438.1 MB, free: 15.77 MB / 346.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: 3 (Ideal.off,With_Ron_Goff.off,With_Ron_Goff_Vknee.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 4,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001412/0.4927, allocations: 122.3 kB / 438.2 MB, free: 15.65 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.963e-05/0.4928, allocations: 30.75 kB / 438.2 MB, free: 15.63 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.022e-05/0.4929, allocations: 37.08 kB / 438.3 MB, free: 15.62 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.864e-06/0.4929, allocations: 3.938 kB / 438.3 MB, free: 15.62 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.379e-06/0.4929, allocations: 3.938 kB / 438.3 MB, free: 15.61 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.777e-06/0.4929, allocations: 4 kB / 438.3 MB, free: 15.61 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004995/0.4934, allocations: 377.5 kB / 438.6 MB, free: 15.35 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.932e-06/0.4935, allocations: 0 / 438.6 MB, free: 15.35 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001751/0.4937, allocations: 26.86 kB / 438.7 MB, free: 15.34 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004568/0.4941, allocations: 111.6 kB / 438.8 MB, free: 15.3 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.234e-05/0.4942, allocations: 7.062 kB / 438.8 MB, free: 15.3 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004504/0.4987, allocations: 4.437 MB / 443.2 MB, free: 11.12 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.632e-06/0.4987, allocations: 0 / 443.2 MB, free: 11.12 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006147/0.4994, allocations: 368 kB / 443.6 MB, free: 10.93 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001849/0.4996, allocations: 130.5 kB / 443.7 MB, free: 10.81 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.168e-05/0.4996, allocations: 3.25 kB / 443.7 MB, free: 10.81 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002937/0.4999, allocations: 26.55 kB / 443.7 MB, free: 10.8 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.025e-05/0.5, allocations: 26.81 kB / 443.8 MB, free: 10.79 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.617e-05/0.5001, allocations: 11.61 kB / 443.8 MB, free: 10.79 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002702/0.5004, allocations: 212.4 kB / 444 MB, free: 10.7 MB / 346.7 MB Notification: Performance of sort global known variables: time 9.14e-07/0.5004, allocations: 0 / 444 MB, free: 10.7 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008782/0.5013, allocations: 111.2 kB / 444.1 MB, free: 10.68 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (Ideal.off,With_Ron_Goff.off,With_Ron_Goff_Vknee.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 4,1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001538/0.5014, allocations: 113.8 kB / 444.2 MB, free: 10.59 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0008355/0.5023, allocations: 0.5177 MB / 444.7 MB, free: 10.24 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.322e-06/0.5023, allocations: 0 / 444.7 MB, free: 10.24 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005066/0.5028, allocations: 436.5 kB / 445.1 MB, free: 9.91 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004002/0.5032, allocations: 54.56 kB / 445.2 MB, free: 9.895 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009493/0.5042, allocations: 411.9 kB / 445.6 MB, free: 9.684 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004896/0.5047, allocations: 0.8119 MB / 446.4 MB, free: 8.922 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001528/0.5049, allocations: 22.88 kB / 446.4 MB, free: 8.91 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.247e-05/0.505, allocations: 18.91 kB / 446.5 MB, free: 8.902 MB / 346.7 MB Notification: Performance of SimCode: time 2.544e-06/0.505, allocations: 4 kB / 446.5 MB, free: 8.898 MB / 346.7 MB Notification: Performance of Templates: time 0.01242/0.5174, allocations: 4.703 MB / 451.2 MB, free: 6.559 MB / 346.7 MB