Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadModel(Modelica): time 2.167/2.167, allocations: 224.7 MB / 241.1 MB, free: 1.648 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.612e-05/2.61e-05, allocations: 4 kB / 294.6 MB, free: 11.39 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1141/0.1142, allocations: 50.41 MB / 345 MB, free: 8.934 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003473/0.1177, allocations: 1.863 MB / 346.8 MB, free: 7.059 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002199/0.12, allocations: 0.8201 MB / 347.7 MB, free: 6.23 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000284/0.1203, allocations: 7.938 kB / 347.7 MB, free: 6.223 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001605/0.1205, allocations: 31.77 kB / 347.7 MB, free: 6.191 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005855/0.1211, allocations: 119.6 kB / 347.8 MB, free: 6.074 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004808/0.1216, allocations: 135.7 kB / 347.9 MB, free: 5.941 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004583/0.122, allocations: 191.6 kB / 348.1 MB, free: 5.754 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000158/0.1222, allocations: 39.81 kB / 348.2 MB, free: 5.715 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000251/0.1225, allocations: 135.7 kB / 348.3 MB, free: 5.582 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003609/0.1229, allocations: 183.4 kB / 348.5 MB, free: 5.402 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003147/0.1232, allocations: 87.88 kB / 348.6 MB, free: 5.316 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 8.889e-05/0.1233, allocations: 24 kB / 348.6 MB, free: 5.293 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001604/0.1235, allocations: 75.73 kB / 348.7 MB, free: 5.219 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000101/0.1236, allocations: 24 kB / 348.7 MB, free: 5.195 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005939/0.1242, allocations: 319.5 kB / 349 MB, free: 4.883 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.616e-06/0.1242, allocations: 0 / 349 MB, free: 4.883 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.605e-06/0.1242, allocations: 0 / 349 MB, free: 4.883 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.539e-05/0.1243, allocations: 0 / 349 MB, free: 4.883 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001537/0.1258, allocations: 0.5538 MB / 349.6 MB, free: 4.281 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.994e-05/0.1259, allocations: 8.031 kB / 349.6 MB, free: 4.273 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005335/0.1264, allocations: 51.56 kB / 349.6 MB, free: 4.223 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007126/0.1271, allocations: 298.5 kB / 349.9 MB, free: 3.891 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001784/0.1273, allocations: 87.95 kB / 350 MB, free: 3.793 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.288e-05/0.1274, allocations: 24 kB / 350 MB, free: 3.77 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001167/0.1286, allocations: 377.3 kB / 350.4 MB, free: 3.387 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.695e-05/0.1287, allocations: 0 / 350.4 MB, free: 3.387 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.892e-05/0.1288, allocations: 16 kB / 350.4 MB, free: 3.371 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.651e-05/0.1288, allocations: 15.89 kB / 350.4 MB, free: 3.355 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001532/0.1303, allocations: 417.9 kB / 350.8 MB, free: 2.945 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003483/0.1339, allocations: 1.253 MB / 352.1 MB, free: 1.625 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001209/0.1351, allocations: 363 kB / 352.4 MB, free: 1.262 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.024e-05/0.1352, allocations: 4 kB / 352.4 MB, free: 1.258 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.956e-05/0.1353, allocations: 38.56 kB / 352.5 MB, free: 1.211 MB / 282.7 MB Notification: Performance of pre-optimization done (n=43): time 3.346e-06/0.1353, allocations: 0 / 352.5 MB, free: 1.211 MB / 282.7 MB Notification: Performance of matching and sorting (n=45): time 0.008556/0.1439, allocations: 1.938 MB / 354.4 MB, free: 15.16 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.936e-05/0.144, allocations: 88.86 kB / 354.5 MB, free: 15.05 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004714/0.1445, allocations: 221.3 kB / 354.7 MB, free: 14.83 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.798e-05/0.1446, allocations: 37.69 kB / 354.7 MB, free: 14.79 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001605/0.1447, allocations: 203 kB / 354.9 MB, free: 14.58 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000203/0.145, allocations: 142.1 kB / 355.1 MB, free: 14.44 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.192e-05/0.145, allocations: 12 kB / 355.1 MB, free: 14.43 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001648/0.1452, allocations: 334.8 kB / 355.4 MB, free: 14.09 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006869/0.1459, allocations: 164.8 kB / 355.6 MB, free: 13.93 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007326/0.1466, allocations: 233.9 kB / 355.8 MB, free: 13.69 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00069/0.1473, allocations: 164.7 kB / 356 MB, free: 13.53 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.1474, allocations: 0 / 356 MB, free: 13.53 MB / 298.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001952/0.1493, allocations: 0.5474 MB / 356.5 MB, free: 12.97 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.853e-05/0.1494, allocations: 8 kB / 356.5 MB, free: 12.96 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.171e-05/0.1494, allocations: 4.125 kB / 356.5 MB, free: 12.96 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001248/0.1507, allocations: 253.5 kB / 356.8 MB, free: 12.71 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004955/0.1512, allocations: 51.91 kB / 356.8 MB, free: 12.66 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006477/0.1577, allocations: 2.7 MB / 359.5 MB, free: 9.828 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005121/0.1583, allocations: 32.05 kB / 359.6 MB, free: 9.797 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.914e-05/0.1584, allocations: 23.98 kB / 359.6 MB, free: 9.773 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: 7 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * 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: 0 * Non-linear torn systems: 1 {2 24} Notification: Performance of prepare postOptimizeDAE: time 0.000273/0.1587, allocations: 145.8 kB / 359.7 MB, free: 9.621 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001026/0.1588, allocations: 27.67 kB / 359.8 MB, free: 9.594 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001653/0.159, allocations: 46.97 kB / 359.8 MB, free: 9.547 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.375e-06/0.159, allocations: 4 kB / 359.8 MB, free: 9.543 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.125e-05/0.159, allocations: 4 kB / 359.8 MB, free: 9.539 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.238e-06/0.159, allocations: 7.984 kB / 359.8 MB, free: 9.531 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003132/0.1622, allocations: 1.097 MB / 360.9 MB, free: 8.375 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.368e-06/0.1622, allocations: 4 kB / 360.9 MB, free: 8.371 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004482/0.1627, allocations: 55.89 kB / 361 MB, free: 8.316 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001151/0.1638, allocations: 232.7 kB / 361.2 MB, free: 8.086 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.684e-05/0.1639, allocations: 8 kB / 361.2 MB, free: 8.078 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006065/0.17, allocations: 2.652 MB / 363.9 MB, free: 5.305 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.382e-06/0.1701, allocations: 7.969 kB / 363.9 MB, free: 5.297 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002686/0.1728, allocations: 0.8254 MB / 364.7 MB, free: 4.449 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002849/0.1731, allocations: 140.8 kB / 364.8 MB, free: 4.293 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.745e-05/0.1732, allocations: 11.94 kB / 364.8 MB, free: 4.281 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000472/0.1737, allocations: 39.98 kB / 364.9 MB, free: 4.242 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002671/0.174, allocations: 67.88 kB / 364.9 MB, free: 4.176 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.357e-05/0.1741, allocations: 15.98 kB / 365 MB, free: 4.16 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003364/0.1744, allocations: 176.3 kB / 365.1 MB, free: 3.988 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.1744, allocations: 0 / 365.1 MB, free: 3.988 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000908/0.1753, allocations: 144 kB / 365.3 MB, free: 3.848 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * 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: 0 * Non-linear torn systems: 1 {2 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.000362/0.1757, allocations: 147.9 kB / 365.4 MB, free: 3.691 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002189/0.1779, allocations: 0.6252 MB / 366 MB, free: 3.051 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.741e-06/0.178, allocations: 0 / 366 MB, free: 3.051 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001323/0.1793, allocations: 429.5 kB / 366.5 MB, free: 2.617 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004629/0.1798, allocations: 32.11 kB / 366.5 MB, free: 2.586 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00224/0.1821, allocations: 0.8487 MB / 367.3 MB, free: 1.703 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004958/0.1826, allocations: 0.7803 MB / 368.1 MB, free: 0.8984 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002179/0.1828, allocations: 39.34 kB / 368.2 MB, free: 0.8594 MB / 298.7 MB Notification: Performance of SimCode: time 1.162e-06/0.1829, allocations: 0 / 368.2 MB, free: 0.8594 MB / 298.7 MB Notification: Performance of Templates: time 0.01332/0.1962, allocations: 5.056 MB / 373.2 MB, free: 11.8 MB / 314.7 MB