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.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") Notification: Performance of loadModel(Modelica): time 1.787/1.787, allocations: 171.1 MB / 186.3 MB, free: 1.418 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.075e-05/3.082e-05, allocations: 4 kB / 228.1 MB, free: 7.992 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0882/0.08826, allocations: 38.76 MB / 266.9 MB, free: 1.148 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004577/0.09289, allocations: 2.754 MB / 269.6 MB, free: 14.37 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001763/0.09469, allocations: 0.6783 MB / 270.3 MB, free: 13.69 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002683/0.09499, allocations: 8 kB / 270.3 MB, free: 13.68 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001278/0.09514, allocations: 55.59 kB / 270.4 MB, free: 13.62 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004346/0.09559, allocations: 151.5 kB / 270.5 MB, free: 13.48 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003015/0.0959, allocations: 75.91 kB / 270.6 MB, free: 13.4 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.000515/0.09643, allocations: 267.4 kB / 270.9 MB, free: 13.14 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002015/0.09665, allocations: 69.58 kB / 270.9 MB, free: 13.07 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002753/0.09694, allocations: 139.6 kB / 271.1 MB, free: 12.93 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003153/0.09727, allocations: 167.4 kB / 271.2 MB, free: 12.77 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.925e-05/0.09737, allocations: 16 kB / 271.2 MB, free: 12.75 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 6.168e-05/0.09744, allocations: 24 kB / 271.3 MB, free: 12.73 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 8.635e-05/0.09754, allocations: 59.69 kB / 271.3 MB, free: 12.67 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001152/0.09767, allocations: 40 kB / 271.4 MB, free: 12.63 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004945/0.09817, allocations: 355.2 kB / 271.7 MB, free: 12.29 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.145e-06/0.09819, allocations: 0 / 271.7 MB, free: 12.29 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.0982, allocations: 0 / 271.7 MB, free: 12.29 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.161e-05/0.09822, allocations: 0 / 271.7 MB, free: 12.29 MB / 234.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.001478/0.09971, allocations: 0.6237 MB / 272.3 MB, free: 11.61 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.908e-05/0.09977, allocations: 12.03 kB / 272.3 MB, free: 11.6 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001416/0.09992, allocations: 51.44 kB / 272.4 MB, free: 11.55 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005338/0.1005, allocations: 302.2 kB / 272.7 MB, free: 11.22 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.781e-05/0.1005, allocations: 24.61 kB / 272.7 MB, free: 11.2 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.587e-05/0.1006, allocations: 32 kB / 272.7 MB, free: 11.16 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001006/0.1016, allocations: 354.8 kB / 273.1 MB, free: 10.8 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.826e-05/0.1017, allocations: 7.938 kB / 273.1 MB, free: 10.79 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.244e-05/0.1017, allocations: 15.94 kB / 273.1 MB, free: 10.77 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.431e-05/0.1018, allocations: 8 kB / 273.1 MB, free: 10.77 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009753/0.1028, allocations: 278.4 kB / 273.4 MB, free: 10.5 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003078/0.1059, allocations: 1.434 MB / 274.8 MB, free: 8.961 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007211/0.1066, allocations: 229.7 kB / 275.1 MB, free: 8.73 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.693e-05/0.1067, allocations: 8 kB / 275.1 MB, free: 8.723 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.61e-05/0.1067, allocations: 34.56 kB / 275.1 MB, free: 8.68 MB / 234.7 MB Notification: Performance of pre-optimization done (n=24): time 3.056e-06/0.1067, allocations: 0 / 275.1 MB, free: 8.68 MB / 234.7 MB Notification: Performance of matching and sorting (n=24): time 0.002622/0.1094, allocations: 0.7101 MB / 275.8 MB, free: 7.898 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.482e-05/0.1095, allocations: 55.36 kB / 275.9 MB, free: 7.832 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004798/0.11, allocations: 275.7 kB / 276.1 MB, free: 7.559 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 3.726e-05/0.11, allocations: 29.7 kB / 276.2 MB, free: 7.523 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002168/0.1102, allocations: 266.5 kB / 276.4 MB, free: 7.262 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001263/0.1104, allocations: 82.84 kB / 276.5 MB, free: 7.18 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.093e-05/0.1104, allocations: 4 kB / 276.5 MB, free: 7.176 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.1106, allocations: 318.8 kB / 276.8 MB, free: 6.855 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003421/0.1109, allocations: 79.97 kB / 276.9 MB, free: 6.777 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003965/0.1113, allocations: 140.2 kB / 277 MB, free: 6.625 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003678/0.1117, allocations: 91.92 kB / 277.1 MB, free: 6.535 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/0.1117, allocations: 0 / 277.1 MB, free: 6.535 MB / 234.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001287/0.113, allocations: 356 kB / 277.5 MB, free: 6.172 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.224e-05/0.1131, allocations: 4.094 kB / 277.5 MB, free: 6.168 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.1131, allocations: 3.938 kB / 277.5 MB, free: 6.164 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006328/0.1137, allocations: 114.5 kB / 277.6 MB, free: 6.043 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003083/0.1141, allocations: 31.92 kB / 277.6 MB, free: 6.012 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005569/0.1197, allocations: 4.492 MB / 282.1 MB, free: 1.109 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004105/0.1201, allocations: 27.75 kB / 282.1 MB, free: 1.082 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.448e-05/0.1202, allocations: 16.05 kB / 282.2 MB, free: 1.066 MB / 234.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.0002536/0.1204, allocations: 149.8 kB / 282.3 MB, free: 0.9102 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.393e-05/0.1205, allocations: 31.62 kB / 282.3 MB, free: 0.8789 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.223e-05/0.1206, allocations: 39.17 kB / 282.4 MB, free: 0.8398 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.322e-06/0.1207, allocations: 4 kB / 282.4 MB, free: 0.8359 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.1207, allocations: 0 / 282.4 MB, free: 0.8359 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/0.1207, allocations: 3.938 kB / 282.4 MB, free: 0.832 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006397/0.1213, allocations: 381.2 kB / 282.7 MB, free: 420 kB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.1214, allocations: 3.938 kB / 282.8 MB, free: 416 kB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002286/0.1216, allocations: 27.98 kB / 282.8 MB, free: 388 kB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005526/0.1222, allocations: 110.5 kB / 282.9 MB, free: 268 kB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.623e-05/0.1222, allocations: 8 kB / 282.9 MB, free: 260 kB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005378/0.1276, allocations: 4.473 MB / 287.4 MB, free: 11.38 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.1276, allocations: 0 / 287.4 MB, free: 11.38 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001086/0.1287, allocations: 416.6 kB / 287.8 MB, free: 10.95 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001993/0.1289, allocations: 132.6 kB / 287.9 MB, free: 10.8 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.478e-05/0.129, allocations: 8 kB / 287.9 MB, free: 10.8 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003882/0.1294, allocations: 23.98 kB / 287.9 MB, free: 10.77 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001138/0.1296, allocations: 31.81 kB / 288 MB, free: 10.74 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.519e-05/0.1296, allocations: 4 kB / 288 MB, free: 10.74 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0003326/0.1299, allocations: 219.1 kB / 288.2 MB, free: 10.52 MB / 250.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.1299, allocations: 0 / 288.2 MB, free: 10.52 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0009191/0.1309, allocations: 115.8 kB / 288.3 MB, free: 10.41 MB / 250.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.0001877/0.1311, allocations: 107.2 kB / 288.4 MB, free: 10.3 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.001421/0.1325, allocations: 0.5817 MB / 289 MB, free: 9.676 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/0.1325, allocations: 0 / 289 MB, free: 9.676 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008435/0.1334, allocations: 480.1 kB / 289.5 MB, free: 9.168 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005456/0.134, allocations: 53.86 kB / 289.5 MB, free: 9.117 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001888/0.1359, allocations: 0.8065 MB / 290.3 MB, free: 8.285 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005125/0.1364, allocations: 0.8067 MB / 291.1 MB, free: 7.449 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001273/0.1365, allocations: 23.42 kB / 291.1 MB, free: 7.426 MB / 250.7 MB Notification: Performance of SimCode: time 1.193e-06/0.1366, allocations: 0 / 291.1 MB, free: 7.426 MB / 250.7 MB Notification: Performance of Templates: time 0.2333/0.3699, allocations: 7.962 MB / 299.1 MB, free: 29.52 MB / 250.7 MB