Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia2.phi|inertia2.w|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D") Notification: Performance of loadModel(Modelica): time 2.034/2.034, allocations: 224.7 MB / 241.1 MB, free: 1.676 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.694e-05/2.691e-05, allocations: 0 / 294.6 MB, free: 11.37 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.111, allocations: 50.41 MB / 345 MB, free: 8.918 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.08373/0.1948, allocations: 54.19 MB / 399.2 MB, free: 2.578 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.3457/0.5406, allocations: 12.08 MB / 411.2 MB, free: 2.891 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01612/0.5568, allocations: 293.3 kB / 411.5 MB, free: 2.891 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01141/0.5682, allocations: 2.815 MB / 414.4 MB, free: 2.887 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03357/0.6019, allocations: 7.734 MB / 422.1 MB, free: 1.363 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005286/0.6072, allocations: 0.6872 MB / 422.8 MB, free: 1.16 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.05869/0.6659, allocations: 24.09 MB / 446.9 MB, free: 7.621 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01235/0.6783, allocations: 5.768 MB / 452.6 MB, free: 3.48 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002663/0.6811, allocations: 0.9173 MB / 453.5 MB, free: 2.777 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003798/0.6849, allocations: 1.534 MB / 455.1 MB, free: 1.484 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003526/0.6885, allocations: 0.9091 MB / 456 MB, free: 0.7305 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001403/0.6899, allocations: 151.9 kB / 456.1 MB, free: 0.582 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003086/0.693, allocations: 1.737 MB / 457.9 MB, free: 15.12 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001732/0.6948, allocations: 316 kB / 458.2 MB, free: 14.81 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01182/0.7067, allocations: 6.93 MB / 465.1 MB, free: 8.766 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.7067, allocations: 0 / 465.1 MB, free: 8.766 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.975e-06/0.7068, allocations: 4 kB / 465.1 MB, free: 8.762 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.000302/0.7071, allocations: 0 / 465.1 MB, free: 8.762 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1750 * Number of variables: 1750 Notification: Performance of Generate backend data structure: time 0.04877/0.7559, allocations: 5.827 MB / 470.9 MB, free: 3.316 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.116e-05/0.7559, allocations: 12.03 kB / 471 MB, free: 3.305 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1802/0.9361, allocations: 10.52 MB / 481.5 MB, free: 9.168 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01202/0.9482, allocations: 3.261 MB / 484.7 MB, free: 6.652 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004065/0.9487, allocations: 298.2 kB / 485 MB, free: 6.492 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002518/0.9512, allocations: 407.2 kB / 485.4 MB, free: 6.23 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.048/0.9992, allocations: 13.33 MB / 498.8 MB, free: 8.445 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002622/0.9996, allocations: 43.59 kB / 498.8 MB, free: 8.402 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002114/1.002, allocations: 184.6 kB / 499 MB, free: 8.258 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00844/1.01, allocations: 2.195 MB / 0.4894 GB, free: 6.074 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04796/1.058, allocations: 12.76 MB / 0.5019 GB, free: 9.297 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1065/1.165, allocations: 49.16 MB / 0.5499 GB, free: 7.172 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0489/1.214, allocations: 6.582 MB / 0.5563 GB, free: 456 kB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00173/1.215, allocations: 420 kB / 0.5567 GB, free: 15.99 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.082e-05/1.216, allocations: 59.81 kB / 0.5568 GB, free: 15.93 MB / 474.7 MB Notification: Performance of pre-optimization done (n=214): time 9.488e-06/1.216, allocations: 7.984 kB / 0.5568 GB, free: 15.92 MB / 474.7 MB Notification: Performance of matching and sorting (n=252): time 0.4987/1.714, allocations: 37.05 MB / 0.593 GB, free: 171.2 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001076/1.714, allocations: 205.4 kB / 0.5932 GB, free: 171 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009568/1.724, allocations: 4.068 MB / 0.5971 GB, free: 169.5 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001194/1.725, allocations: 61.36 kB / 0.5972 GB, free: 169.4 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002931/1.728, allocations: 3.372 MB / 0.6005 GB, free: 166.8 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002177/1.73, allocations: 0.949 MB / 0.6014 GB, free: 166.1 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001261/1.732, allocations: 129.8 kB / 0.6015 GB, free: 166 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005986/1.732, allocations: 0.5959 MB / 0.6021 GB, free: 165.5 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01007/1.743, allocations: 4.252 MB / 0.6063 GB, free: 164.2 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0121/1.755, allocations: 8.111 MB / 0.6142 GB, free: 155.1 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01258/1.767, allocations: 5.746 MB / 0.6198 GB, free: 149.5 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001108/1.767, allocations: 40 kB / 0.6199 GB, free: 149.5 MB / 474.7 MB Notification: Performance of matching and sorting (n=880) (initialization): time 0.04054/1.808, allocations: 14.44 MB / 0.634 GB, free: 135 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.918e-05/1.808, allocations: 67.94 kB / 0.634 GB, free: 134.9 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001732/1.808, allocations: 136 kB / 0.6342 GB, free: 134.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0123/1.821, allocations: 2.514 MB / 0.6366 GB, free: 132.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01241/1.833, allocations: 1.758 MB / 0.6383 GB, free: 130.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03351/1.867, allocations: 16.46 MB / 0.6544 GB, free: 113.7 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01037/1.877, allocations: 476.8 kB / 0.6549 GB, free: 113.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002028/1.879, allocations: 0.489 MB / 0.6553 GB, free: 112.7 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 618 * Number of states: 0 () * Number of discrete variables: 36 (sensor2.torqueColor[3],sensor2.torqueColor[2],sensor2.torqueColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],inertia2.cylinderColor[3],inertia2.cylinderColor[2],inertia2.cylinderColor[1],inertia1.cylinderColor[3],inertia1.cylinderColor[2],inertia1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (807): * Single equations (assignments): 801 * Array equations: 3 * 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: 3 {(3,100.0%) 15,(4,100.0%) 21,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007174/1.886, allocations: 2.351 MB / 0.6576 GB, free: 110.3 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001629/1.888, allocations: 394.8 kB / 0.658 GB, free: 110 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02934/1.917, allocations: 9.669 MB / 0.6675 GB, free: 100.3 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.189e-05/1.918, allocations: 30.42 kB / 0.6675 GB, free: 100.2 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.784e-05/1.918, allocations: 12 kB / 0.6675 GB, free: 100.2 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.553e-05/1.918, allocations: 12.8 kB / 0.6675 GB, free: 100.2 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05071/1.968, allocations: 18.12 MB / 0.6852 GB, free: 82.06 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-05/1.969, allocations: 0 / 0.6852 GB, free: 82.06 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00626/1.975, allocations: 0.5966 MB / 0.6858 GB, free: 81.46 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01163/1.986, allocations: 2.27 MB / 0.688 GB, free: 79.18 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001121/1.988, allocations: 127.7 kB / 0.6881 GB, free: 79.05 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02992/2.018, allocations: 15.01 MB / 0.7028 GB, free: 63.66 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.519e-06/2.018, allocations: 0 / 0.7028 GB, free: 63.66 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0374/2.055, allocations: 15.39 MB / 0.7178 GB, free: 48.11 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001418/2.057, allocations: 471.7 kB / 0.7183 GB, free: 47.63 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002324/2.059, allocations: 44 kB / 0.7183 GB, free: 47.59 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006655/2.066, allocations: 231.7 kB / 0.7185 GB, free: 47.36 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001547/2.067, allocations: 250.2 kB / 0.7188 GB, free: 47.11 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007782/2.068, allocations: 152.4 kB / 0.7189 GB, free: 46.96 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.006953/2.075, allocations: 2.874 MB / 0.7217 GB, free: 44.09 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.122e-06/2.075, allocations: 0 / 0.7217 GB, free: 44.09 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009605/2.085, allocations: 1.436 MB / 0.7231 GB, free: 42.66 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (inertia1.phi,inertia1.w,revolute1.phi,revolute1.w,revolute2.phi,revolute2.w,revolute3.phi,revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (199): * Single equations (assignments): 193 * Array equations: 3 * 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: 3 {(3,100.0%) 12,(4,100.0%) 18,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001571/2.086, allocations: 215.2 kB / 0.7233 GB, free: 42.45 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02402/2.11, allocations: 10.38 MB / 0.7334 GB, free: 32.05 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.616e-06/2.11, allocations: 0 / 0.7334 GB, free: 32.05 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01121/2.122, allocations: 4.622 MB / 0.738 GB, free: 27.39 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004367/2.126, allocations: 449.2 kB / 0.7384 GB, free: 26.95 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03589/2.162, allocations: 15.76 MB / 0.7538 GB, free: 11.16 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3136/2.476, allocations: 3.853 MB / 0.7575 GB, free: 161.9 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004821/2.481, allocations: 0.5851 MB / 0.7581 GB, free: 161.9 MB / 474.7 MB Notification: Performance of SimCode: time 1.944e-06/2.481, allocations: 0 / 0.7581 GB, free: 161.9 MB / 474.7 MB Notification: Performance of Templates: time 0.2474/2.728, allocations: 140.2 MB / 0.895 GB, free: 44.62 MB / 474.7 MB