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.837/1.837, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.528e-05/2.537e-05, allocations: 4 kB / 255.4 MB, free: 3.18 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07642/0.07647, allocations: 44.51 MB / 299.9 MB, free: 6.613 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3199/0.3964, allocations: 73.05 MB / 372.9 MB, free: 22.6 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002106/0.3967, allocations: 67.98 kB / 373 MB, free: 22.6 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02277/0.4195, allocations: 6.18 MB / 379.2 MB, free: 21.75 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.783e-06/0.4195, allocations: 1.375 kB / 379.2 MB, free: 21.75 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.646e-05/0.4195, allocations: 6.75 kB / 379.2 MB, free: 21.75 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.0009547/0.4205, allocations: 0.6142 MB / 379.8 MB, free: 21.29 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.147e-05/0.4206, allocations: 10.19 kB / 379.8 MB, free: 21.29 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001077/0.4207, allocations: 51.3 kB / 379.8 MB, free: 21.27 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000403/0.4211, allocations: 294.8 kB / 380.1 MB, free: 21.04 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.14e-05/0.4211, allocations: 22.52 kB / 380.2 MB, free: 21.04 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.23e-05/0.4212, allocations: 34.02 kB / 380.2 MB, free: 21.04 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006807/0.4219, allocations: 331.3 kB / 380.5 MB, free: 20.96 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.612e-05/0.422, allocations: 4 kB / 380.5 MB, free: 20.95 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.553e-05/0.422, allocations: 14.56 kB / 380.5 MB, free: 20.95 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.246e-05/0.422, allocations: 7.781 kB / 380.5 MB, free: 20.95 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005717/0.4226, allocations: 227.5 kB / 380.8 MB, free: 20.95 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002266/0.4249, allocations: 1.434 MB / 382.2 MB, free: 20.15 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004506/0.4254, allocations: 216.2 kB / 382.4 MB, free: 20.11 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002058/0.4256, allocations: 93.2 kB / 382.5 MB, free: 20.1 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.98e-05/0.4256, allocations: 5.203 kB / 382.5 MB, free: 20.1 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.015e-05/0.4257, allocations: 40.06 kB / 382.5 MB, free: 20.05 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 3.279e-06/0.4257, allocations: 1.188 kB / 382.5 MB, free: 20.05 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.000635/0.4263, allocations: 267.1 kB / 382.8 MB, free: 19.98 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.441e-05/0.4264, allocations: 53.12 kB / 382.8 MB, free: 19.91 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003472/0.4267, allocations: 270 kB / 383.1 MB, free: 19.81 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.785e-05/0.4268, allocations: 30.55 kB / 383.1 MB, free: 19.78 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001025/0.4269, allocations: 261.2 kB / 383.4 MB, free: 19.58 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.53e-05/0.427, allocations: 75.59 kB / 383.5 MB, free: 19.53 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.081e-05/0.427, allocations: 4.625 kB / 383.5 MB, free: 19.53 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.766e-05/0.4271, allocations: 319.5 kB / 383.8 MB, free: 19.22 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001919/0.4273, allocations: 67.75 kB / 383.9 MB, free: 19.21 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001919/0.4275, allocations: 106.6 kB / 384 MB, free: 19.18 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001967/0.4277, allocations: 67.92 kB / 384 MB, free: 19.17 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.942e-06/0.4277, allocations: 1.625 kB / 384 MB, free: 19.17 MB / 314.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008117/0.4285, allocations: 317.4 kB / 384.3 MB, free: 19.08 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/0.4286, allocations: 7.125 kB / 384.3 MB, free: 19.08 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.277e-06/0.4286, allocations: 2.016 kB / 384.3 MB, free: 19.08 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005027/0.4291, allocations: 117.8 kB / 384.5 MB, free: 19.05 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002316/0.4294, allocations: 42.22 kB / 384.5 MB, free: 19.04 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004021/0.4334, allocations: 4.425 MB / 388.9 MB, free: 31 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003449/0.4338, allocations: 42.81 kB / 389 MB, free: 30.97 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.254e-05/0.4338, allocations: 10.12 kB / 389 MB, free: 30.97 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.0001372/0.434, allocations: 115.4 kB / 389.1 MB, free: 30.87 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.771e-05/0.4341, allocations: 32.12 kB / 389.1 MB, free: 30.85 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.145e-05/0.4342, allocations: 37.84 kB / 389.2 MB, free: 30.84 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.92e-06/0.4342, allocations: 6.703 kB / 389.2 MB, free: 30.84 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.217e-06/0.4342, allocations: 0 / 389.2 MB, free: 30.84 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.6e-06/0.4342, allocations: 2.062 kB / 389.2 MB, free: 30.84 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005432/0.4348, allocations: 377.4 kB / 389.5 MB, free: 30.64 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.121e-06/0.4348, allocations: 1.375 kB / 389.5 MB, free: 30.64 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001984/0.435, allocations: 27.14 kB / 389.6 MB, free: 30.63 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004513/0.4355, allocations: 108.3 kB / 389.7 MB, free: 30.61 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.461e-05/0.4355, allocations: 6.656 kB / 389.7 MB, free: 30.61 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004545/0.4401, allocations: 4.437 MB / 394.1 MB, free: 26.55 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.799e-06/0.4401, allocations: 0 / 394.1 MB, free: 26.55 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006655/0.4408, allocations: 367.2 kB / 394.5 MB, free: 26.38 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001846/0.441, allocations: 129.4 kB / 394.6 MB, free: 26.27 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.399e-05/0.4411, allocations: 5.312 kB / 394.6 MB, free: 26.27 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003063/0.4414, allocations: 24.8 kB / 394.6 MB, free: 26.27 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001496/0.4416, allocations: 33.25 kB / 394.7 MB, free: 26.26 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.819e-05/0.4416, allocations: 9.5 kB / 394.7 MB, free: 26.25 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003022/0.4419, allocations: 215.1 kB / 394.9 MB, free: 26.17 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.598e-06/0.4419, allocations: 0 / 394.9 MB, free: 26.17 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009085/0.4428, allocations: 114.5 kB / 395 MB, free: 26.16 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.0001493/0.443, allocations: 104.4 kB / 395.1 MB, free: 26.07 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0008646/0.4439, allocations: 0.518 MB / 395.6 MB, free: 25.75 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.615e-06/0.4439, allocations: 0 / 395.6 MB, free: 25.75 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005663/0.4445, allocations: 442.6 kB / 396 MB, free: 25.42 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004643/0.445, allocations: 56.73 kB / 396.1 MB, free: 25.41 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001051/0.446, allocations: 439 kB / 396.5 MB, free: 25.2 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005106/0.4466, allocations: 0.8066 MB / 397.3 MB, free: 24.5 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.658e-05/0.4467, allocations: 23.22 kB / 397.4 MB, free: 24.49 MB / 330.7 MB Notification: Performance of SimCode: time 1.656e-06/0.4467, allocations: 0 / 397.4 MB, free: 24.49 MB / 330.7 MB Notification: Performance of Templates: time 0.0106/0.4573, allocations: 7.948 MB / 405.3 MB, free: 24.19 MB / 330.7 MB