Running command: translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch") Notification: Performance of loadModel(Modelica): time 2.165/2.165, allocations: 224.7 MB / 241.1 MB, free: 1.691 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.481e-05/2.473e-05, allocations: 0 / 294.6 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1063, allocations: 50.41 MB / 345 MB, free: 8.953 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003112/0.1095, allocations: 1.741 MB / 346.7 MB, free: 7.199 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001505/0.1111, allocations: 0.5847 MB / 347.3 MB, free: 6.609 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001461/0.1112, allocations: 4 kB / 347.3 MB, free: 6.605 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001238/0.1114, allocations: 19.84 kB / 347.3 MB, free: 6.586 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002676/0.1117, allocations: 71.78 kB / 347.4 MB, free: 6.516 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003401/0.112, allocations: 79.77 kB / 347.5 MB, free: 6.438 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003121/0.1123, allocations: 128.2 kB / 347.6 MB, free: 6.312 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001264/0.1125, allocations: 32.05 kB / 347.6 MB, free: 6.281 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002347/0.1127, allocations: 83.81 kB / 347.7 MB, free: 6.199 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002333/0.113, allocations: 107.6 kB / 347.8 MB, free: 6.094 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001745/0.1132, allocations: 47.95 kB / 347.9 MB, free: 6.047 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.015e-05/0.1132, allocations: 12 kB / 347.9 MB, free: 6.035 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.678e-05/0.1133, allocations: 43.83 kB / 347.9 MB, free: 5.992 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.121e-05/0.1134, allocations: 20 kB / 347.9 MB, free: 5.973 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003468/0.1138, allocations: 191.8 kB / 348.1 MB, free: 5.785 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.1138, allocations: 0 / 348.1 MB, free: 5.785 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.215e-06/0.1138, allocations: 0 / 348.1 MB, free: 5.785 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.06e-05/0.1138, allocations: 0 / 348.1 MB, free: 5.785 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0013/0.1151, allocations: 0.5161 MB / 348.6 MB, free: 5.215 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.731e-05/0.1152, allocations: 12.03 kB / 348.6 MB, free: 5.203 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.244e-05/0.1153, allocations: 31.61 kB / 348.7 MB, free: 5.172 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004112/0.1157, allocations: 230.7 kB / 348.9 MB, free: 4.906 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.233e-05/0.1158, allocations: 12 kB / 348.9 MB, free: 4.895 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.025e-05/0.1158, allocations: 23.91 kB / 348.9 MB, free: 4.871 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007742/0.1166, allocations: 243.1 kB / 349.2 MB, free: 4.621 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.444e-05/0.1167, allocations: 7.984 kB / 349.2 MB, free: 4.613 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.362e-05/0.1167, allocations: 4 kB / 349.2 MB, free: 4.609 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.141e-05/0.1167, allocations: 4 kB / 349.2 MB, free: 4.605 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008606/0.1176, allocations: 219.7 kB / 349.4 MB, free: 4.391 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0016/0.1192, allocations: 0.6759 MB / 350.1 MB, free: 3.66 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009731/0.1202, allocations: 213.3 kB / 350.3 MB, free: 3.445 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.402e-05/0.1203, allocations: 0 / 350.3 MB, free: 3.445 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006076/0.1209, allocations: 179.5 kB / 350.5 MB, free: 3.258 MB / 282.7 MB Notification: Performance of pre-optimization done (n=24): time 2.265e-06/0.1209, allocations: 0 / 350.5 MB, free: 3.258 MB / 282.7 MB Notification: Performance of matching and sorting (n=26): time 0.004175/0.1251, allocations: 1.205 MB / 351.7 MB, free: 1.941 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.944e-05/0.1252, allocations: 59.39 kB / 351.7 MB, free: 1.871 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002647/0.1255, allocations: 174.2 kB / 351.9 MB, free: 1.691 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.085e-05/0.1256, allocations: 33.7 kB / 351.9 MB, free: 1.652 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001452/0.1257, allocations: 198.7 kB / 352.1 MB, free: 1.453 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001062/0.1258, allocations: 82.84 kB / 352.2 MB, free: 1.371 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.138e-05/0.1259, allocations: 4 kB / 352.2 MB, free: 1.367 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001448/0.126, allocations: 330.8 kB / 352.5 MB, free: 1.035 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000487/0.1265, allocations: 112.2 kB / 352.6 MB, free: 0.9219 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005081/0.1271, allocations: 152.2 kB / 352.8 MB, free: 0.7617 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005412/0.1276, allocations: 139.1 kB / 352.9 MB, free: 0.6211 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.1276, allocations: 0 / 352.9 MB, free: 0.6211 MB / 282.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001476/0.1291, allocations: 414.2 kB / 353.3 MB, free: 208 kB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.114e-05/0.1292, allocations: 29.7 kB / 353.4 MB, free: 172 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.1292, allocations: 0 / 353.4 MB, free: 172 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003561/0.1296, allocations: 72.8 kB / 353.4 MB, free: 96 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004042/0.13, allocations: 55.94 kB / 353.5 MB, free: 40 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007891/0.1308, allocations: 0.6108 MB / 354.1 MB, free: 15.4 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000549/0.1314, allocations: 55.98 kB / 354.2 MB, free: 15.35 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.019e-05/0.1315, allocations: 8 kB / 354.2 MB, free: 15.34 MB / 298.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: 11 ($whenCondition1,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,$PRE.signalEngagement.T_start,signalEngagement.T_start,$PRE.signalEngagement.count,signalEngagement.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * 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: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0002146/0.1317, allocations: 142.8 kB / 354.3 MB, free: 15.19 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.018e-05/0.1318, allocations: 15.81 kB / 354.3 MB, free: 15.18 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.877e-05/0.1319, allocations: 29.86 kB / 354.3 MB, free: 15.14 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.13e-05/0.1319, allocations: 4 kB / 354.3 MB, free: 15.14 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.254e-06/0.1319, allocations: 3.938 kB / 354.4 MB, free: 15.13 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.017e-05/0.1319, allocations: 11.92 kB / 354.4 MB, free: 15.12 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001863/0.1338, allocations: 0.6865 MB / 355 MB, free: 14.38 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/0.1338, allocations: 7.938 kB / 355.1 MB, free: 14.37 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004239/0.1343, allocations: 47.97 kB / 355.1 MB, free: 14.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003026/0.1346, allocations: 68.75 kB / 355.2 MB, free: 14.25 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.48e-05/0.1347, allocations: 4 kB / 355.2 MB, free: 14.25 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000694/0.1354, allocations: 0.6186 MB / 355.8 MB, free: 13.6 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.1354, allocations: 0 / 355.8 MB, free: 13.6 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001802/0.1372, allocations: 0.5223 MB / 356.3 MB, free: 13.06 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001872/0.1374, allocations: 108.9 kB / 356.4 MB, free: 12.94 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.362e-05/0.1375, allocations: 11.98 kB / 356.4 MB, free: 12.93 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004502/0.138, allocations: 39.97 kB / 356.5 MB, free: 12.89 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001493/0.1382, allocations: 31.94 kB / 356.5 MB, free: 12.86 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.17e-05/0.1382, allocations: 12 kB / 356.5 MB, free: 12.84 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000196/0.1384, allocations: 139.2 kB / 356.7 MB, free: 12.71 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.1384, allocations: 0 / 356.7 MB, free: 12.71 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005199/0.139, allocations: 68 kB / 356.7 MB, free: 12.64 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (inertiaOut.phi,inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel) * Number of discrete variables: 7 ($whenCondition1,oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,signalEngagement.T_start,signalEngagement.count) * Number of discrete states: 3 (signalEngagement.count,oneWayClutch.stuck,oneWayClutch.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.000323/0.1393, allocations: 138.2 kB / 356.9 MB, free: 12.5 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001451/0.1408, allocations: 332.1 kB / 357.2 MB, free: 12.16 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.1408, allocations: 0 / 357.2 MB, free: 12.16 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006318/0.1415, allocations: 147.8 kB / 357.3 MB, free: 12.02 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005171/0.142, allocations: 40.17 kB / 357.4 MB, free: 11.98 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002186/0.1442, allocations: 0.8137 MB / 358.2 MB, free: 11.14 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003968/0.1446, allocations: 0.7481 MB / 358.9 MB, free: 10.36 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001248/0.1448, allocations: 19.44 kB / 358.9 MB, free: 10.34 MB / 298.7 MB Notification: Performance of SimCode: time 8.22e-07/0.1448, allocations: 3.938 kB / 358.9 MB, free: 10.34 MB / 298.7 MB Notification: Performance of Templates: time 0.009236/0.154, allocations: 3.672 MB / 362.6 MB, free: 6.672 MB / 298.7 MB