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_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") Notification: Performance of loadModel(Modelica): time 2.164/2.164, allocations: 224.7 MB / 241.1 MB, free: 1.676 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.615e-05/3.596e-05, allocations: 4 kB / 294.6 MB, free: 11.39 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1175, allocations: 50.41 MB / 345 MB, free: 8.941 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004769/0.1223, allocations: 2.742 MB / 347.7 MB, free: 6.184 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001843/0.1242, allocations: 0.6627 MB / 348.4 MB, free: 5.516 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003469/0.1246, allocations: 12 kB / 348.4 MB, free: 5.504 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00015/0.1248, allocations: 51.59 kB / 348.4 MB, free: 5.453 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005211/0.1253, allocations: 151.5 kB / 348.6 MB, free: 5.305 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003502/0.1257, allocations: 71.91 kB / 348.7 MB, free: 5.234 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007396/0.1264, allocations: 267.2 kB / 348.9 MB, free: 4.973 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002392/0.1267, allocations: 69.59 kB / 349 MB, free: 4.902 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000365/0.1271, allocations: 143.6 kB / 349.1 MB, free: 4.762 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003335/0.1274, allocations: 159.4 kB / 349.3 MB, free: 4.605 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.286e-05/0.1275, allocations: 16 kB / 349.3 MB, free: 4.59 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 8.602e-05/0.1276, allocations: 20 kB / 349.3 MB, free: 4.57 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 8.324e-05/0.1277, allocations: 63.67 kB / 349.4 MB, free: 4.508 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001354/0.1279, allocations: 40 kB / 349.4 MB, free: 4.469 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005249/0.1284, allocations: 351 kB / 349.8 MB, free: 4.125 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.1284, allocations: 0 / 349.8 MB, free: 4.125 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.226e-06/0.1284, allocations: 0 / 349.8 MB, free: 4.125 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.771e-05/0.1285, allocations: 3.938 kB / 349.8 MB, free: 4.121 MB / 282.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.001558/0.13, allocations: 0.6198 MB / 350.4 MB, free: 3.453 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.315e-05/0.1301, allocations: 8.031 kB / 350.4 MB, free: 3.445 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001812/0.1303, allocations: 51.39 kB / 350.4 MB, free: 3.395 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005858/0.1309, allocations: 298.2 kB / 350.7 MB, free: 3.062 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.983e-05/0.131, allocations: 28.59 kB / 350.8 MB, free: 3.035 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.802e-05/0.131, allocations: 36 kB / 350.8 MB, free: 3 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001051/0.1321, allocations: 350.7 kB / 351.1 MB, free: 2.645 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.09e-05/0.1322, allocations: 4 kB / 351.1 MB, free: 2.641 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.496e-05/0.1322, allocations: 12 kB / 351.2 MB, free: 2.629 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.746e-05/0.1323, allocations: 8 kB / 351.2 MB, free: 2.621 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009724/0.1332, allocations: 286.4 kB / 351.4 MB, free: 2.336 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003391/0.1367, allocations: 1.426 MB / 352.9 MB, free: 0.8086 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007229/0.1374, allocations: 226.4 kB / 353.1 MB, free: 0.5781 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.939e-05/0.1375, allocations: 3.984 kB / 353.1 MB, free: 0.5742 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.234e-05/0.1376, allocations: 42.55 kB / 353.1 MB, free: 0.5234 MB / 282.7 MB Notification: Performance of pre-optimization done (n=24): time 3.616e-06/0.1376, allocations: 4 kB / 353.1 MB, free: 0.5195 MB / 282.7 MB Notification: Performance of matching and sorting (n=24): time 0.002712/0.1403, allocations: 0.7086 MB / 353.9 MB, free: 15.74 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.545e-05/0.1404, allocations: 51.41 kB / 353.9 MB, free: 15.68 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000484/0.1409, allocations: 275.6 kB / 354.2 MB, free: 15.41 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.633e-05/0.141, allocations: 29.7 kB / 354.2 MB, free: 15.38 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001971/0.1412, allocations: 258.6 kB / 354.5 MB, free: 15.12 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.473e-05/0.1413, allocations: 70.92 kB / 354.5 MB, free: 15.05 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.146e-05/0.1413, allocations: 8 kB / 354.5 MB, free: 15.04 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001389/0.1415, allocations: 322.8 kB / 354.8 MB, free: 14.71 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003817/0.1419, allocations: 83.95 kB / 354.9 MB, free: 14.63 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004024/0.1423, allocations: 124.2 kB / 355 MB, free: 14.5 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003841/0.1427, allocations: 95.84 kB / 355.1 MB, free: 14.4 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.669e-06/0.1427, allocations: 0 / 355.1 MB, free: 14.4 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001321/0.144, allocations: 351.8 kB / 355.5 MB, free: 14.04 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.126e-05/0.1441, allocations: 8.016 kB / 355.5 MB, free: 14.04 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.255e-05/0.1441, allocations: 8 kB / 355.5 MB, free: 14.03 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006728/0.1448, allocations: 114.5 kB / 355.6 MB, free: 13.91 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003465/0.1452, allocations: 35.91 kB / 355.6 MB, free: 13.87 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005631/0.1508, allocations: 4.48 MB / 360.1 MB, free: 8.988 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004212/0.1513, allocations: 27.86 kB / 360.2 MB, free: 8.961 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.78e-05/0.1513, allocations: 12 kB / 360.2 MB, free: 8.949 MB / 298.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.0002469/0.1516, allocations: 145.9 kB / 360.3 MB, free: 8.797 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.144e-05/0.1517, allocations: 35.56 kB / 360.3 MB, free: 8.762 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.67e-05/0.1518, allocations: 47.06 kB / 360.4 MB, free: 8.711 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.858e-06/0.1518, allocations: 0 / 360.4 MB, free: 8.711 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.1518, allocations: 0 / 360.4 MB, free: 8.711 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/0.1519, allocations: 3.984 kB / 360.4 MB, free: 8.707 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006047/0.1525, allocations: 373.3 kB / 360.8 MB, free: 8.293 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.999e-06/0.1525, allocations: 0 / 360.8 MB, free: 8.293 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002466/0.1527, allocations: 27.97 kB / 360.8 MB, free: 8.266 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005652/0.1533, allocations: 114.5 kB / 360.9 MB, free: 8.145 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.58e-05/0.1534, allocations: 128 / 360.9 MB, free: 8.145 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005609/0.159, allocations: 4.488 MB / 365.4 MB, free: 3.258 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.159, allocations: 0 / 365.4 MB, free: 3.258 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001619/0.1607, allocations: 415.4 kB / 365.8 MB, free: 2.828 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003319/0.1611, allocations: 132.6 kB / 365.9 MB, free: 2.68 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001014/0.1612, allocations: 0 / 365.9 MB, free: 2.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006097/0.1618, allocations: 28.31 kB / 365.9 MB, free: 2.652 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002177/0.1621, allocations: 31.95 kB / 366 MB, free: 2.621 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.383e-05/0.1621, allocations: 8 kB / 366 MB, free: 2.613 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000498/0.1626, allocations: 215.1 kB / 366.2 MB, free: 2.402 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.41e-07/0.1627, allocations: 0 / 366.2 MB, free: 2.402 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001603/0.1643, allocations: 115.7 kB / 366.3 MB, free: 2.289 MB / 298.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.0002319/0.1646, allocations: 111.2 kB / 366.4 MB, free: 2.168 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002232/0.1668, allocations: 0.5817 MB / 367 MB, free: 1.547 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 8.997e-06/0.1669, allocations: 0 / 367 MB, free: 1.547 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001664/0.1685, allocations: 490.9 kB / 367.5 MB, free: 1.031 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008249/0.1694, allocations: 53.12 kB / 367.5 MB, free: 0.9805 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003369/0.1728, allocations: 0.7845 MB / 368.3 MB, free: 172 kB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001187/0.1741, allocations: 0.8028 MB / 369.1 MB, free: 15.34 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001803/0.1743, allocations: 19.44 kB / 369.1 MB, free: 15.32 MB / 314.7 MB Notification: Performance of SimCode: time 1.462e-06/0.1743, allocations: 0 / 369.1 MB, free: 15.32 MB / 314.7 MB Notification: Performance of Templates: time 0.02287/0.1972, allocations: 7.966 MB / 377.1 MB, free: 7.352 MB / 314.7 MB