Running command: translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") Notification: Performance of loadModel(ModelicaTest): time 2.428/2.428, allocations: 269 MB / 284.1 MB, free: 3.629 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.748e-05/3.743e-05, allocations: 7.984 kB / 349 MB, free: 10.75 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1398/0.1398, allocations: 61.9 MB / 410.9 MB, free: 12.86 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003414/0.1433, allocations: 1.51 MB / 412.4 MB, free: 11.33 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001169/0.1445, allocations: 415.2 kB / 412.8 MB, free: 10.92 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001171/0.1447, allocations: 4 kB / 412.8 MB, free: 10.92 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 5.825e-05/0.1448, allocations: 15.86 kB / 412.9 MB, free: 10.9 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001917/0.145, allocations: 39.89 kB / 412.9 MB, free: 10.86 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001912/0.1452, allocations: 23.98 kB / 412.9 MB, free: 10.84 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002442/0.1454, allocations: 87.77 kB / 413 MB, free: 10.75 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001641/0.1456, allocations: 32.28 kB / 413 MB, free: 10.72 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001577/0.1458, allocations: 43.86 kB / 413.1 MB, free: 10.68 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001572/0.146, allocations: 47.81 kB / 413.1 MB, free: 10.63 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.904e-05/0.146, allocations: 4 kB / 413.1 MB, free: 10.62 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 3.465e-05/0.1461, allocations: 8 kB / 413.1 MB, free: 10.62 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 3.591e-05/0.1461, allocations: 15.92 kB / 413.2 MB, free: 10.6 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 5.276e-05/0.1462, allocations: 16 kB / 413.2 MB, free: 10.59 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002288/0.1464, allocations: 104 kB / 413.3 MB, free: 10.48 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.1465, allocations: 0 / 413.3 MB, free: 10.48 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.476e-06/0.1465, allocations: 3.938 kB / 413.3 MB, free: 10.48 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.021e-05/0.1465, allocations: 0 / 413.3 MB, free: 10.48 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0008401/0.1474, allocations: 399.1 kB / 413.7 MB, free: 10.04 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.256e-05/0.1474, allocations: 8.031 kB / 413.7 MB, free: 10.04 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.469e-05/0.1475, allocations: 15.81 kB / 413.7 MB, free: 10.02 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003442/0.1479, allocations: 210.8 kB / 413.9 MB, free: 9.773 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.677e-05/0.1479, allocations: 12 kB / 413.9 MB, free: 9.762 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.788e-05/0.148, allocations: 19.95 kB / 413.9 MB, free: 9.742 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00052/0.1485, allocations: 125.6 kB / 414.1 MB, free: 9.613 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.124e-05/0.1486, allocations: 0 / 414.1 MB, free: 9.613 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.971e-05/0.1486, allocations: 4 kB / 414.1 MB, free: 9.609 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.159e-05/0.1486, allocations: 4 kB / 414.1 MB, free: 9.605 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004321/0.1491, allocations: 91.94 kB / 414.1 MB, free: 9.516 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00134/0.1504, allocations: 468.2 kB / 414.6 MB, free: 9.008 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004569/0.1509, allocations: 126.5 kB / 414.7 MB, free: 8.875 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.09e-05/0.151, allocations: 3.953 kB / 414.7 MB, free: 8.871 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.282e-05/0.151, allocations: 34.55 kB / 414.8 MB, free: 8.828 MB / 346.7 MB Notification: Performance of pre-optimization done (n=13): time 6.111e-06/0.151, allocations: 0 / 414.8 MB, free: 8.828 MB / 346.7 MB Notification: Performance of matching and sorting (n=19): time 0.002891/0.154, allocations: 0.8101 MB / 415.6 MB, free: 7.922 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.016e-05/0.154, allocations: 59.36 kB / 415.6 MB, free: 7.852 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001961/0.1543, allocations: 131.7 kB / 415.8 MB, free: 7.719 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.203e-05/0.1543, allocations: 25.7 kB / 415.8 MB, free: 7.688 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001201/0.1544, allocations: 178.7 kB / 416 MB, free: 7.512 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.609e-05/0.1545, allocations: 71 kB / 416 MB, free: 7.441 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.454e-05/0.1546, allocations: 0 / 416 MB, free: 7.441 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001662/0.1548, allocations: 318.8 kB / 416.3 MB, free: 7.121 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002307/0.155, allocations: 48.34 kB / 416.4 MB, free: 7.074 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000273/0.1553, allocations: 87.03 kB / 416.5 MB, free: 6.98 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002557/0.1556, allocations: 52 kB / 416.5 MB, free: 6.93 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.1556, allocations: 0 / 416.5 MB, free: 6.93 MB / 346.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0008155/0.1564, allocations: 210.2 kB / 416.7 MB, free: 6.715 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.399e-05/0.1565, allocations: 8 kB / 416.7 MB, free: 6.707 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.1565, allocations: 0 / 416.7 MB, free: 6.707 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002873/0.1568, allocations: 40.83 kB / 416.8 MB, free: 6.664 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003688/0.1572, allocations: 31.98 kB / 416.8 MB, free: 6.633 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00249/0.1597, allocations: 1.577 MB / 418.4 MB, free: 4.918 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00021/0.1599, allocations: 20.03 kB / 418.4 MB, free: 4.898 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.763e-05/0.16, allocations: 8 kB / 418.4 MB, free: 4.891 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001968/0.1602, allocations: 125.8 kB / 418.5 MB, free: 4.758 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.992e-05/0.1603, allocations: 15.84 kB / 418.6 MB, free: 4.742 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.046e-05/0.1603, allocations: 13.19 kB / 418.6 MB, free: 4.734 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.843e-06/0.1604, allocations: 4 kB / 418.6 MB, free: 4.73 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/0.1604, allocations: 0 / 418.6 MB, free: 4.73 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.724e-06/0.1604, allocations: 3.984 kB / 418.6 MB, free: 4.727 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001585/0.162, allocations: 0.5583 MB / 419.1 MB, free: 4.105 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.01e-06/0.162, allocations: 0 / 419.1 MB, free: 4.105 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004138/0.1625, allocations: 43.94 kB / 419.2 MB, free: 4.062 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002312/0.1627, allocations: 28.84 kB / 419.2 MB, free: 4.031 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.537e-05/0.1628, allocations: 4 kB / 419.2 MB, free: 4.027 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001998/0.1648, allocations: 1.386 MB / 420.6 MB, free: 2.5 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.522e-06/0.1648, allocations: 7.969 kB / 420.6 MB, free: 2.492 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00106/0.1659, allocations: 355.1 kB / 420.9 MB, free: 2.117 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.4e-05/0.166, allocations: 88.95 kB / 421 MB, free: 2.012 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.73e-05/0.1661, allocations: 8 kB / 421 MB, free: 2.004 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002392/0.1663, allocations: 15.94 kB / 421.1 MB, free: 1.988 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.783e-05/0.1664, allocations: 11.98 kB / 421.1 MB, free: 1.977 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.372e-05/0.1665, allocations: 4 kB / 421.1 MB, free: 1.973 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001299/0.1666, allocations: 110.1 kB / 421.2 MB, free: 1.867 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.1666, allocations: 4 kB / 421.2 MB, free: 1.863 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000757/0.1674, allocations: 44 kB / 421.2 MB, free: 1.82 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001788/0.1676, allocations: 103.2 kB / 421.3 MB, free: 1.711 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0009185/0.1685, allocations: 258.5 kB / 421.6 MB, free: 1.445 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.1685, allocations: 0 / 421.6 MB, free: 1.445 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005215/0.1691, allocations: 198.6 kB / 421.8 MB, free: 1.238 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004448/0.1695, allocations: 15.95 kB / 421.8 MB, free: 1.223 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001481/0.171, allocations: 0.5387 MB / 422.3 MB, free: 0.6484 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3875/0.5585, allocations: 0.7171 MB / 423 MB, free: 12.44 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.377e-05/0.5587, allocations: 17.52 kB / 423.1 MB, free: 12.43 MB / 346.7 MB Notification: Performance of SimCode: time 1.522e-06/0.5587, allocations: 0 / 423.1 MB, free: 12.43 MB / 346.7 MB Notification: Performance of Templates: time 0.00682/0.5655, allocations: 2.319 MB / 425.4 MB, free: 12.41 MB / 346.7 MB