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 2.079/2.079, allocations: 194.9 MB / 211.2 MB, free: 9.047 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.323e-05/4.324e-05, allocations: 0 / 258.8 MB, free: 9.406 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3206/0.3207, allocations: 44.51 MB / 303.3 MB, free: 12.66 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004362/0.3251, allocations: 2.758 MB / 306 MB, free: 10.45 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001532/0.3267, allocations: 0.6855 MB / 306.7 MB, free: 9.879 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001973/0.3269, allocations: 9.094 kB / 306.7 MB, free: 9.879 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001212/0.327, allocations: 52.16 kB / 306.8 MB, free: 9.832 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000399/0.3275, allocations: 148.5 kB / 306.9 MB, free: 9.691 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002744/0.3277, allocations: 77.28 kB / 307 MB, free: 9.625 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004784/0.3282, allocations: 272.7 kB / 307.3 MB, free: 9.434 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002002/0.3285, allocations: 66.05 kB / 307.3 MB, free: 9.391 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002615/0.3287, allocations: 140 kB / 307.5 MB, free: 9.324 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003004/0.329, allocations: 163.9 kB / 307.6 MB, free: 9.223 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.033e-05/0.3291, allocations: 17.22 kB / 307.7 MB, free: 9.223 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.816e-05/0.3292, allocations: 17.22 kB / 307.7 MB, free: 9.223 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.568e-05/0.3293, allocations: 70.05 kB / 307.7 MB, free: 9.164 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000118/0.3294, allocations: 39.53 kB / 307.8 MB, free: 9.164 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004789/0.3299, allocations: 344.7 kB / 308.1 MB, free: 8.91 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.995e-06/0.3299, allocations: 0 / 308.1 MB, free: 8.91 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.33, allocations: 0 / 308.1 MB, free: 8.91 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.134e-05/0.33, allocations: 3.938 kB / 308.1 MB, free: 8.906 MB / 250.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.00139/0.3314, allocations: 0.6213 MB / 308.7 MB, free: 8.266 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.671e-05/0.3314, allocations: 16.03 kB / 308.8 MB, free: 8.25 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000122/0.3316, allocations: 47.53 kB / 308.8 MB, free: 8.203 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004926/0.3321, allocations: 302.2 kB / 309.1 MB, free: 7.867 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.623e-05/0.3321, allocations: 20.66 kB / 309.1 MB, free: 7.848 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.246e-05/0.3322, allocations: 32 kB / 309.2 MB, free: 7.816 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001481/0.3337, allocations: 358.7 kB / 309.5 MB, free: 7.449 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.603e-05/0.3337, allocations: 0 / 309.5 MB, free: 7.449 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.443e-05/0.3338, allocations: 16 kB / 309.5 MB, free: 7.434 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.54e-05/0.3338, allocations: 8 kB / 309.5 MB, free: 7.426 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009678/0.3348, allocations: 282.4 kB / 309.8 MB, free: 7.145 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002977/0.3378, allocations: 1.43 MB / 311.2 MB, free: 5.613 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007032/0.3385, allocations: 218.5 kB / 311.4 MB, free: 5.391 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.413e-05/0.3386, allocations: 11.98 kB / 311.5 MB, free: 5.379 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.979e-05/0.3386, allocations: 38.5 kB / 311.5 MB, free: 5.332 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 2.174e-06/0.3386, allocations: 3.938 kB / 311.5 MB, free: 5.328 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.002508/0.3412, allocations: 0.7162 MB / 312.2 MB, free: 4.543 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.582e-05/0.3412, allocations: 55.41 kB / 312.3 MB, free: 4.477 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004296/0.3417, allocations: 267.7 kB / 312.5 MB, free: 4.215 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.933e-05/0.3417, allocations: 33.7 kB / 312.6 MB, free: 4.176 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001902/0.3419, allocations: 258.6 kB / 312.8 MB, free: 3.918 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.121e-05/0.342, allocations: 74.86 kB / 312.9 MB, free: 3.844 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.306e-05/0.342, allocations: 8 kB / 312.9 MB, free: 3.836 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001368/0.3422, allocations: 318.8 kB / 313.2 MB, free: 3.516 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000378/0.3426, allocations: 91.95 kB / 313.3 MB, free: 3.426 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003786/0.343, allocations: 116.2 kB / 313.4 MB, free: 3.297 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003636/0.3434, allocations: 103.8 kB / 313.5 MB, free: 3.195 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.045e-06/0.3434, allocations: 0 / 313.5 MB, free: 3.195 MB / 250.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001241/0.3446, allocations: 347.8 kB / 313.9 MB, free: 2.84 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.304e-05/0.3447, allocations: 10.03 kB / 313.9 MB, free: 2.832 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.732e-06/0.3447, allocations: 0 / 313.9 MB, free: 2.832 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006167/0.3453, allocations: 114.5 kB / 314 MB, free: 2.711 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003101/0.3456, allocations: 39.91 kB / 314 MB, free: 2.672 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005019/0.3507, allocations: 4.477 MB / 318.5 MB, free: 13.79 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004115/0.3511, allocations: 35.77 kB / 318.5 MB, free: 13.75 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.415e-05/0.3512, allocations: 12 kB / 318.5 MB, free: 13.74 MB / 266.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.0002421/0.3514, allocations: 145.8 kB / 318.7 MB, free: 13.59 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.682e-05/0.3515, allocations: 31.62 kB / 318.7 MB, free: 13.56 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.923e-05/0.3516, allocations: 39.17 kB / 318.7 MB, free: 13.51 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.3516, allocations: 4 kB / 318.8 MB, free: 13.5 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/0.3517, allocations: 0 / 318.8 MB, free: 13.5 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.418e-06/0.3517, allocations: 7.938 kB / 318.8 MB, free: 13.5 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005898/0.3523, allocations: 373.3 kB / 319.1 MB, free: 13.08 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.3523, allocations: 4 kB / 319.1 MB, free: 13.08 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002148/0.3525, allocations: 23.97 kB / 319.2 MB, free: 13.05 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000528/0.3531, allocations: 114.5 kB / 319.3 MB, free: 12.93 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.409e-05/0.3531, allocations: 4 kB / 319.3 MB, free: 12.93 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005112/0.3582, allocations: 4.473 MB / 323.7 MB, free: 8.062 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.3583, allocations: 0 / 323.7 MB, free: 8.062 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001078/0.3593, allocations: 418.1 kB / 324.1 MB, free: 7.629 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002078/0.3596, allocations: 132.6 kB / 324.3 MB, free: 7.48 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.961e-05/0.3597, allocations: 7.938 kB / 324.3 MB, free: 7.473 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003956/0.3601, allocations: 27.98 kB / 324.3 MB, free: 7.445 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001146/0.3602, allocations: 23.95 kB / 324.3 MB, free: 7.422 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.944e-05/0.3602, allocations: 8 kB / 324.3 MB, free: 7.414 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003269/0.3606, allocations: 215.1 kB / 324.6 MB, free: 7.203 MB / 266.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.3606, allocations: 0 / 324.6 MB, free: 7.203 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0009129/0.3615, allocations: 115.7 kB / 324.7 MB, free: 7.09 MB / 266.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.0001687/0.3617, allocations: 115.6 kB / 324.8 MB, free: 6.969 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001382/0.3631, allocations: 0.57 MB / 325.3 MB, free: 6.359 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.122e-05/0.3631, allocations: 4 kB / 325.4 MB, free: 6.355 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008317/0.364, allocations: 495.9 kB / 325.8 MB, free: 5.832 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004918/0.3645, allocations: 53.75 kB / 325.9 MB, free: 5.781 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001684/0.3662, allocations: 0.7741 MB / 326.7 MB, free: 4.98 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004584/0.3666, allocations: 0.8067 MB / 327.5 MB, free: 4.145 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001023/0.3668, allocations: 23.44 kB / 327.5 MB, free: 4.121 MB / 266.7 MB Notification: Performance of SimCode: time 9.02e-07/0.3668, allocations: 0 / 327.5 MB, free: 4.121 MB / 266.7 MB Notification: Performance of Templates: time 0.01509/0.3819, allocations: 7.964 MB / 335.5 MB, free: 12.16 MB / 282.7 MB