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_3.2.2_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") Notification: Performance of loadModel(Modelica): time 1.844/1.844, allocations: 195 MB / 203.2 MB, free: 13.78 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.847e-05/1.854e-05, allocations: 4 kB / 249.6 MB, free: 15.3 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2541/0.2542, allocations: 44.51 MB / 294.1 MB, free: 14.36 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1552/0.4094, allocations: 72.4 MB / 366.5 MB, free: 9.598 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00025/0.4097, allocations: 63.97 kB / 366.6 MB, free: 9.535 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02397/0.4337, allocations: 6.112 MB / 372.7 MB, free: 3.375 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.341e-06/0.4338, allocations: 0 / 372.7 MB, free: 3.375 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.791e-05/0.4338, allocations: 8 kB / 372.7 MB, free: 3.367 MB / 314.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.001143/0.435, allocations: 0.6074 MB / 373.3 MB, free: 2.715 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.656e-05/0.435, allocations: 8.031 kB / 373.3 MB, free: 2.707 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001417/0.4352, allocations: 55.33 kB / 373.4 MB, free: 2.652 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005351/0.4357, allocations: 298.7 kB / 373.6 MB, free: 2.32 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.521e-05/0.4358, allocations: 12 kB / 373.7 MB, free: 2.309 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.617e-05/0.4359, allocations: 16 kB / 373.7 MB, free: 2.293 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006044/0.4365, allocations: 217.5 kB / 373.9 MB, free: 2.082 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006683/0.4372, allocations: 291.1 kB / 374.2 MB, free: 1.777 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.568e-05/0.4372, allocations: 0 / 374.2 MB, free: 1.777 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.349e-05/0.4373, allocations: 0 / 374.2 MB, free: 1.777 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.322e-05/0.4373, allocations: 11.94 kB / 374.2 MB, free: 1.766 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002814/0.4401, allocations: 1.369 MB / 375.6 MB, free: 320 kB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000473/0.4406, allocations: 194.4 kB / 375.7 MB, free: 116 kB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001987/0.4408, allocations: 84.86 kB / 375.8 MB, free: 28 kB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.99e-05/0.4409, allocations: 7.891 kB / 375.8 MB, free: 20 kB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.377e-05/0.441, allocations: 42.56 kB / 375.9 MB, free: 15.97 MB / 330.7 MB Notification: Performance of pre-optimization done (n=24): time 3.842e-06/0.441, allocations: 0 / 375.9 MB, free: 15.97 MB / 330.7 MB Notification: Performance of matching and sorting (n=24): time 0.0007052/0.4417, allocations: 236.2 kB / 376.1 MB, free: 15.72 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.41e-05/0.4418, allocations: 55.41 kB / 376.2 MB, free: 15.66 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003882/0.4422, allocations: 245 kB / 376.4 MB, free: 15.41 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.822e-05/0.4422, allocations: 29.69 kB / 376.4 MB, free: 15.38 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001914/0.4424, allocations: 258.8 kB / 376.7 MB, free: 15.12 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.647e-05/0.4425, allocations: 78.91 kB / 376.8 MB, free: 15.04 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.57e-05/0.4425, allocations: 0 / 376.8 MB, free: 15.04 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001617/0.4427, allocations: 322.8 kB / 377.1 MB, free: 14.72 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001646/0.4429, allocations: 56 kB / 377.1 MB, free: 14.66 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002055/0.4431, allocations: 104.2 kB / 377.2 MB, free: 14.55 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001903/0.4433, allocations: 67.92 kB / 377.3 MB, free: 14.48 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.608e-06/0.4433, allocations: 0 / 377.3 MB, free: 14.48 MB / 330.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008491/0.4442, allocations: 283.8 kB / 377.6 MB, free: 14.19 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.501e-05/0.4442, allocations: 10.03 kB / 377.6 MB, free: 14.18 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.225e-06/0.4442, allocations: 0 / 377.6 MB, free: 14.18 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005512/0.4448, allocations: 114.6 kB / 377.7 MB, free: 14.06 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002461/0.4451, allocations: 39.91 kB / 377.7 MB, free: 14.02 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004848/0.4499, allocations: 4.263 MB / 382 MB, free: 9.402 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003236/0.4503, allocations: 23.86 kB / 382 MB, free: 9.379 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.468e-05/0.4504, allocations: 8 kB / 382 MB, free: 9.371 MB / 330.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.0001429/0.4505, allocations: 108.7 kB / 382.1 MB, free: 9.258 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.901e-05/0.4506, allocations: 31.62 kB / 382.2 MB, free: 9.227 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.547e-05/0.4507, allocations: 34.16 kB / 382.2 MB, free: 9.191 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.631e-06/0.4507, allocations: 8 kB / 382.2 MB, free: 9.184 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.846e-06/0.4507, allocations: 0 / 382.2 MB, free: 9.184 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.145e-06/0.4508, allocations: 3.984 kB / 382.2 MB, free: 9.18 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005212/0.4513, allocations: 325.8 kB / 382.5 MB, free: 8.824 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.962e-06/0.4513, allocations: 0 / 382.5 MB, free: 8.824 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001668/0.4515, allocations: 24.05 kB / 382.6 MB, free: 8.801 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004731/0.452, allocations: 122.8 kB / 382.7 MB, free: 8.672 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.107e-05/0.452, allocations: 0 / 382.7 MB, free: 8.672 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004684/0.4567, allocations: 4.267 MB / 386.9 MB, free: 4.062 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.03e-06/0.4568, allocations: 3.938 kB / 386.9 MB, free: 4.059 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006615/0.4574, allocations: 350.4 kB / 387.3 MB, free: 3.691 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001993/0.4576, allocations: 128.6 kB / 387.4 MB, free: 3.547 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.824e-05/0.4577, allocations: 3.953 kB / 387.4 MB, free: 3.543 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002982/0.458, allocations: 23.98 kB / 387.4 MB, free: 3.52 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001032/0.4581, allocations: 31.89 kB / 387.5 MB, free: 3.488 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.593e-05/0.4582, allocations: 4 kB / 387.5 MB, free: 3.484 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002683/0.4585, allocations: 192.6 kB / 387.7 MB, free: 3.297 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.74e-07/0.4585, allocations: 0 / 387.7 MB, free: 3.297 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009101/0.4594, allocations: 103.7 kB / 387.8 MB, free: 3.195 MB / 330.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.0001632/0.4596, allocations: 103.2 kB / 387.9 MB, free: 3.086 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000885/0.4605, allocations: 0.4933 MB / 388.4 MB, free: 2.562 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.4605, allocations: 3.938 kB / 388.4 MB, free: 2.559 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005725/0.4611, allocations: 445.1 kB / 388.8 MB, free: 2.094 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000411/0.4615, allocations: 32.84 kB / 388.8 MB, free: 2.062 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001128/0.4626, allocations: 420 kB / 389.2 MB, free: 1.625 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005249/0.4632, allocations: 0.8147 MB / 390.1 MB, free: 0.7812 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.838e-05/0.4633, allocations: 19.42 kB / 390.1 MB, free: 0.7617 MB / 330.7 MB Notification: Performance of SimCode: time 1.934e-06/0.4633, allocations: 0 / 390.1 MB, free: 0.7617 MB / 330.7 MB Notification: Performance of Templates: time 0.01279/0.4761, allocations: 7.77 MB / 397.8 MB, free: 8.992 MB / 346.7 MB