Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadModel(Modelica): time 2.552/2.552, allocations: 224.7 MB / 241.1 MB, free: 1.691 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.084e-05/3.077e-05, allocations: 4 kB / 294.6 MB, free: 11.43 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1127, allocations: 50.42 MB / 345 MB, free: 8.957 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003305/0.116, allocations: 1.917 MB / 346.9 MB, free: 7.027 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002235/0.1183, allocations: 0.8707 MB / 347.8 MB, free: 6.148 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002599/0.1187, allocations: 7.938 kB / 347.8 MB, free: 6.141 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001606/0.1188, allocations: 31.77 kB / 347.8 MB, free: 6.109 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005982/0.1194, allocations: 131.6 kB / 347.9 MB, free: 5.98 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000485/0.1199, allocations: 127.8 kB / 348.1 MB, free: 5.855 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004701/0.1204, allocations: 219.5 kB / 348.3 MB, free: 5.641 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002009/0.1206, allocations: 56.22 kB / 348.3 MB, free: 5.586 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003531/0.121, allocations: 163.6 kB / 348.5 MB, free: 5.426 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003972/0.1214, allocations: 203.5 kB / 348.7 MB, free: 5.227 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003182/0.1218, allocations: 75.94 kB / 348.8 MB, free: 5.152 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001022/0.1219, allocations: 24 kB / 348.8 MB, free: 5.129 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001586/0.1221, allocations: 87.72 kB / 348.9 MB, free: 5.043 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001163/0.1222, allocations: 28 kB / 348.9 MB, free: 5.016 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006252/0.1228, allocations: 359.3 kB / 349.2 MB, free: 4.664 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.838e-06/0.1228, allocations: 0 / 349.2 MB, free: 4.664 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.356e-06/0.1229, allocations: 0 / 349.2 MB, free: 4.664 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.255e-05/0.1229, allocations: 0 / 349.2 MB, free: 4.664 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001669/0.1246, allocations: 0.5914 MB / 349.8 MB, free: 4.027 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.86e-05/0.1246, allocations: 8.031 kB / 349.8 MB, free: 4.02 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005154/0.1252, allocations: 59.56 kB / 349.9 MB, free: 3.961 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006793/0.1259, allocations: 310.2 kB / 350.2 MB, free: 3.617 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001749/0.1261, allocations: 92.05 kB / 350.3 MB, free: 3.512 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001047/0.1262, allocations: 32 kB / 350.3 MB, free: 3.48 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001326/0.1275, allocations: 412.9 kB / 350.7 MB, free: 3.07 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.382e-05/0.1276, allocations: 0 / 350.7 MB, free: 3.07 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.315e-05/0.1277, allocations: 15.94 kB / 350.7 MB, free: 3.055 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.707e-05/0.1277, allocations: 15.89 kB / 350.8 MB, free: 3.039 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001777/0.1295, allocations: 486.3 kB / 351.2 MB, free: 2.559 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002893/0.1324, allocations: 0.9853 MB / 352.2 MB, free: 1.516 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001506/0.134, allocations: 404.4 kB / 352.6 MB, free: 1.113 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.558e-05/0.1341, allocations: 12.42 kB / 352.6 MB, free: 1.102 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.453e-05/0.1342, allocations: 43.19 kB / 352.7 MB, free: 1.051 MB / 282.7 MB Notification: Performance of pre-optimization done (n=49): time 3.646e-06/0.1342, allocations: 3.938 kB / 352.7 MB, free: 1.047 MB / 282.7 MB Notification: Performance of matching and sorting (n=55): time 0.009418/0.1436, allocations: 2.199 MB / 354.9 MB, free: 14.75 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.528e-05/0.1437, allocations: 85.67 kB / 355 MB, free: 14.64 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005002/0.1443, allocations: 238.2 kB / 355.2 MB, free: 14.4 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001086/0.1444, allocations: 41.69 kB / 355.2 MB, free: 14.36 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001425/0.1445, allocations: 191.6 kB / 355.4 MB, free: 14.17 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000275/0.1448, allocations: 185.3 kB / 355.6 MB, free: 13.98 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.748e-05/0.1449, allocations: 12 kB / 355.6 MB, free: 13.97 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.145, allocations: 330.8 kB / 355.9 MB, free: 13.64 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008238/0.1459, allocations: 201 kB / 356.1 MB, free: 13.44 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008576/0.1468, allocations: 248.6 kB / 356.4 MB, free: 13.2 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007939/0.1476, allocations: 198.2 kB / 356.6 MB, free: 13 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.048e-06/0.1476, allocations: 4 kB / 356.6 MB, free: 13 MB / 298.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002233/0.1499, allocations: 0.6058 MB / 357.2 MB, free: 12.38 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.156e-05/0.1499, allocations: 4 kB / 357.2 MB, free: 12.38 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/0.15, allocations: 3.938 kB / 357.2 MB, free: 12.37 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001261/0.1512, allocations: 262.8 kB / 357.4 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006394/0.1519, allocations: 75.89 kB / 357.5 MB, free: 12.04 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006527/0.1585, allocations: 2.745 MB / 360.3 MB, free: 9.168 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006289/0.1591, allocations: 36 kB / 360.3 MB, free: 9.133 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.552e-05/0.1592, allocations: 23.98 kB / 360.3 MB, free: 9.109 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (33): * Single equations (assignments): 32 * 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 25} Notification: Performance of prepare postOptimizeDAE: time 0.0003105/0.1596, allocations: 157.8 kB / 360.5 MB, free: 8.945 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001227/0.1597, allocations: 35.56 kB / 360.5 MB, free: 8.91 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000169/0.1599, allocations: 59.25 kB / 360.6 MB, free: 8.848 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.024e-05/0.1599, allocations: 4 kB / 360.6 MB, free: 8.844 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.1599, allocations: 0 / 360.6 MB, free: 8.844 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.01e-05/0.1599, allocations: 3.984 kB / 360.6 MB, free: 8.84 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003894/0.1639, allocations: 1.288 MB / 361.9 MB, free: 7.488 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.415e-06/0.1639, allocations: 0 / 361.9 MB, free: 7.488 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006772/0.1646, allocations: 63.95 kB / 361.9 MB, free: 7.426 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001154/0.1658, allocations: 244.6 kB / 362.2 MB, free: 7.184 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.628e-05/0.1659, allocations: 19.98 kB / 362.2 MB, free: 7.164 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006251/0.1722, allocations: 2.651 MB / 364.8 MB, free: 4.395 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.09e-06/0.1722, allocations: 3.984 kB / 364.8 MB, free: 4.391 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003363/0.1756, allocations: 0.9862 MB / 365.8 MB, free: 3.383 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003322/0.176, allocations: 148.7 kB / 366 MB, free: 3.219 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001164/0.1761, allocations: 19.94 kB / 366 MB, free: 3.199 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006084/0.1767, allocations: 36.05 kB / 366 MB, free: 3.164 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002711/0.177, allocations: 76.28 kB / 366.1 MB, free: 3.09 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.926e-05/0.1771, allocations: 16 kB / 366.1 MB, free: 3.074 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0005033/0.1776, allocations: 196.6 kB / 366.3 MB, free: 2.883 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.41e-07/0.1776, allocations: 0 / 366.3 MB, free: 2.883 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.00149/0.1792, allocations: 156 kB / 366.5 MB, free: 2.73 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (31): * Single equations (assignments): 30 * 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.0003788/0.1796, allocations: 143.2 kB / 366.6 MB, free: 2.582 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002491/0.1821, allocations: 0.715 MB / 367.3 MB, free: 1.848 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/0.1821, allocations: 0 / 367.3 MB, free: 1.848 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001472/0.1836, allocations: 475.7 kB / 367.8 MB, free: 1.371 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004993/0.1842, allocations: 32.42 kB / 367.8 MB, free: 1.336 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002578/0.1868, allocations: 0.9701 MB / 368.8 MB, free: 336 kB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005734/0.1874, allocations: 0.8048 MB / 369.6 MB, free: 15.49 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002678/0.1877, allocations: 35.41 kB / 369.6 MB, free: 15.46 MB / 314.7 MB Notification: Performance of SimCode: time 9.72e-07/0.1877, allocations: 0 / 369.6 MB, free: 15.46 MB / 314.7 MB Notification: Performance of Templates: time 0.0145/0.2022, allocations: 5.759 MB / 375.4 MB, free: 9.695 MB / 314.7 MB