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_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D") Notification: Performance of loadModel(Modelica): time 1.957/1.957, allocations: 194.9 MB / 211.2 MB, free: 9.125 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.956e-05/2.953e-05, allocations: 4 kB / 258.8 MB, free: 9.484 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3046/0.3047, allocations: 44.51 MB / 303.3 MB, free: 12.7 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.08048/0.3852, allocations: 52.32 MB / 355.6 MB, free: 9.344 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.03351/0.4188, allocations: 11.76 MB / 367.4 MB, free: 13.55 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01287/0.4317, allocations: 279.4 kB / 367.6 MB, free: 13.28 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009922/0.4417, allocations: 2.765 MB / 370.4 MB, free: 10.5 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02819/0.4699, allocations: 7.491 MB / 377.9 MB, free: 2.988 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004833/0.4748, allocations: 0.6904 MB / 378.6 MB, free: 2.297 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.02674/0.5016, allocations: 9.054 MB / 387.6 MB, free: 9.234 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01228/0.5139, allocations: 5.765 MB / 393.4 MB, free: 3.418 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002372/0.5164, allocations: 0.9311 MB / 394.3 MB, free: 2.484 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003531/0.52, allocations: 1.535 MB / 395.9 MB, free: 0.9453 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003164/0.5232, allocations: 0.948 MB / 396.8 MB, free: 15.99 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001509/0.5247, allocations: 152 kB / 397 MB, free: 15.84 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00305/0.5278, allocations: 1.745 MB / 398.7 MB, free: 14.1 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001644/0.5295, allocations: 316 kB / 399 MB, free: 13.79 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01108/0.5406, allocations: 6.975 MB / 406 MB, free: 6.797 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.5407, allocations: 0 / 406 MB, free: 6.797 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.366e-06/0.5407, allocations: 0 / 406 MB, free: 6.797 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003281/0.541, allocations: 0 / 406 MB, free: 6.797 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: 1752 * Number of variables: 1752 Notification: Performance of Generate backend data structure: time 0.04301/0.5841, allocations: 6.799 MB / 412.8 MB, free: 15.93 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.431e-05/0.5841, allocations: 15.97 kB / 412.8 MB, free: 15.91 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1794/0.7635, allocations: 10.52 MB / 423.3 MB, free: 5.367 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01218/0.7757, allocations: 3.372 MB / 426.7 MB, free: 1.938 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004007/0.7762, allocations: 299.8 kB / 427 MB, free: 1.645 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002485/0.7787, allocations: 407.8 kB / 427.4 MB, free: 1.246 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2974/1.076, allocations: 12.52 MB / 439.9 MB, free: 103.1 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002424/1.076, allocations: 51.58 kB / 440 MB, free: 103.1 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001863/1.078, allocations: 190.5 kB / 440.2 MB, free: 103 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00486/1.083, allocations: 1.911 MB / 442.1 MB, free: 102.3 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03606/1.119, allocations: 11.35 MB / 453.4 MB, free: 91.02 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08528/1.205, allocations: 47.25 MB / 0.4889 GB, free: 43.13 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03322/1.238, allocations: 5.894 MB / 0.4947 GB, free: 37.09 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002104/1.24, allocations: 443 kB / 0.4951 GB, free: 36.62 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.447e-05/1.24, allocations: 59.92 kB / 0.4952 GB, free: 36.55 MB / 362.7 MB Notification: Performance of pre-optimization done (n=217): time 7.344e-06/1.24, allocations: 0 / 0.4952 GB, free: 36.55 MB / 362.7 MB Notification: Performance of matching and sorting (n=255): time 0.1586/1.399, allocations: 32.86 MB / 0.5273 GB, free: 3.434 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.27e-05/1.399, allocations: 209.9 kB / 0.5275 GB, free: 3.188 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009134/1.408, allocations: 4.068 MB / 0.5314 GB, free: 15.1 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009769/1.409, allocations: 65.7 kB / 0.5315 GB, free: 15.03 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003916/1.413, allocations: 3.367 MB / 0.5348 GB, free: 11.67 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002167/1.415, allocations: 0.9632 MB / 0.5357 GB, free: 10.71 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001031/1.416, allocations: 131.9 kB / 0.5359 GB, free: 10.59 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0006879/1.417, allocations: 0.6076 MB / 0.5365 GB, free: 9.969 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01038/1.427, allocations: 3.521 MB / 0.5399 GB, free: 6.441 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01459/1.442, allocations: 7.372 MB / 0.5471 GB, free: 13.16 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01482/1.457, allocations: 4.992 MB / 0.552 GB, free: 8.168 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001516/1.457, allocations: 40 kB / 0.552 GB, free: 8.129 MB / 394.7 MB Notification: Performance of matching and sorting (n=881) (initialization): time 0.05839/1.516, allocations: 12.83 MB / 0.5645 GB, free: 11.28 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00017/1.516, allocations: 68.03 kB / 0.5646 GB, free: 11.21 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002809/1.516, allocations: 136 kB / 0.5647 GB, free: 11.08 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01757/1.534, allocations: 2.516 MB / 0.5672 GB, free: 8.555 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01173/1.546, allocations: 1.626 MB / 0.5688 GB, free: 6.926 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3094/1.855, allocations: 16.32 MB / 0.5847 GB, free: 129 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009092/1.864, allocations: 464.8 kB / 0.5851 GB, free: 128.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001784/1.866, allocations: 443.6 kB / 0.5856 GB, free: 128.9 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 616 * Number of states: 0 () * Number of discrete variables: 33 (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.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (808): * Single equations (assignments): 802 * 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 {(2,100.0%) 16,(4,100.0%) 21,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006605/1.873, allocations: 2.33 MB / 0.5878 GB, free: 127.9 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001538/1.874, allocations: 403.5 kB / 0.5882 GB, free: 127.9 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0261/1.9, allocations: 7.965 MB / 0.596 GB, free: 125.2 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.888e-05/1.9, allocations: 26.81 kB / 0.596 GB, free: 125.2 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.195e-05/1.901, allocations: 14.8 kB / 0.5961 GB, free: 125.2 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.065e-05/1.901, allocations: 14.02 kB / 0.5961 GB, free: 125.2 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04562/1.946, allocations: 15.55 MB / 0.6112 GB, free: 117.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.838e-05/1.946, allocations: 0 / 0.6112 GB, free: 117.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004946/1.951, allocations: 445.3 kB / 0.6117 GB, free: 117.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01121/1.963, allocations: 2.278 MB / 0.6139 GB, free: 115 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008335/1.963, allocations: 44 kB / 0.6139 GB, free: 115 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02894/1.992, allocations: 15.02 MB / 0.6286 GB, free: 99.73 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.5e-06/1.992, allocations: 7.938 kB / 0.6286 GB, free: 99.73 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03202/2.024, allocations: 12.6 MB / 0.6409 GB, free: 87.21 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003627/2.028, allocations: 1.009 MB / 0.6419 GB, free: 86.19 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001812/2.03, allocations: 43.94 kB / 0.6419 GB, free: 86.14 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005512/2.036, allocations: 223.7 kB / 0.6422 GB, free: 85.93 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001149/2.037, allocations: 165.2 kB / 0.6423 GB, free: 85.77 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004507/2.037, allocations: 69.94 kB / 0.6424 GB, free: 85.7 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.006518/2.044, allocations: 2.878 MB / 0.6452 GB, free: 82.82 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.032e-06/2.044, allocations: 0 / 0.6452 GB, free: 82.82 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.008558/2.052, allocations: 1.415 MB / 0.6466 GB, free: 81.41 MB / 410.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 (202): * Single equations (assignments): 196 * 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.001306/2.054, allocations: 214.6 kB / 0.6468 GB, free: 81.2 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.02223/2.076, allocations: 8.708 MB / 0.6553 GB, free: 72.53 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.165e-05/2.076, allocations: 0 / 0.6553 GB, free: 72.53 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01366/2.09, allocations: 3.803 MB / 0.659 GB, free: 68.7 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005044/2.095, allocations: 456.7 kB / 0.6594 GB, free: 68.26 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04449/2.139, allocations: 14.76 MB / 0.6738 GB, free: 53.54 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00939/2.149, allocations: 3.856 MB / 0.6776 GB, free: 49.65 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004332/2.153, allocations: 367.3 kB / 0.678 GB, free: 49.29 MB / 410.7 MB Notification: Performance of SimCode: time 1.733e-06/2.153, allocations: 0 / 0.678 GB, free: 49.29 MB / 410.7 MB Notification: Performance of Templates: time 0.5609/2.714, allocations: 134.2 MB / 0.8091 GB, free: 51.84 MB / 410.7 MB