Running command: translateModel(ModelicaTest.MultiBody.Joints.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.GearConstraint") Notification: Performance of loadModel(ModelicaTest): time 2.426/2.426, allocations: 269 MB / 284.1 MB, free: 3.656 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.231e-05/3.231e-05, allocations: 4 kB / 349 MB, free: 10.78 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1305/0.1306, allocations: 61.89 MB / 410.9 MB, free: 12.88 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.4419/0.5726, allocations: 67.27 MB / 478.2 MB, free: 3.234 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.04575/0.6184, allocations: 14.39 MB / 492.6 MB, free: 5.75 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01828/0.6367, allocations: 359.1 kB / 492.9 MB, free: 5.398 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01378/0.6505, allocations: 3.577 MB / 496.5 MB, free: 1.805 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03748/0.6881, allocations: 9.681 MB / 0.4943 GB, free: 8.098 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005737/0.6938, allocations: 0.7723 MB / 0.4951 GB, free: 7.324 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.122/0.8159, allocations: 47.95 MB / 0.5419 GB, free: 7.34 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01453/0.8305, allocations: 6.895 MB / 0.5486 GB, free: 412 kB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00386/0.8344, allocations: 1.527 MB / 0.5501 GB, free: 14.87 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00527/0.8397, allocations: 2.373 MB / 0.5524 GB, free: 12.49 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003734/0.8435, allocations: 0.9559 MB / 0.5534 GB, free: 11.54 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001888/0.8454, allocations: 215.9 kB / 0.5536 GB, free: 11.32 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00488/0.8504, allocations: 2.883 MB / 0.5564 GB, free: 8.434 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002478/0.8529, allocations: 488 kB / 0.5569 GB, free: 7.957 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01673/0.8697, allocations: 10.69 MB / 0.5673 GB, free: 13.24 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.8697, allocations: 0 / 0.5673 GB, free: 13.24 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.615e-06/0.8697, allocations: 0 / 0.5673 GB, free: 13.24 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0004737/0.8702, allocations: 0 / 0.5673 GB, free: 13.24 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3026 * Number of variables: 3026 Notification: Performance of Generate backend data structure: time 0.02324/0.8935, allocations: 7.282 MB / 0.5744 GB, free: 5.879 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.909e-05/0.8935, allocations: 8.031 kB / 0.5744 GB, free: 5.871 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1406/1.034, allocations: 15.16 MB / 0.5892 GB, free: 6.672 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01675/1.051, allocations: 4.994 MB / 0.5941 GB, free: 1.594 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006342/1.052, allocations: 439.2 kB / 0.5945 GB, free: 1.164 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003212/1.055, allocations: 0.5698 MB / 0.5951 GB, free: 0.5938 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.7093/1.764, allocations: 20.03 MB / 0.6146 GB, free: 161 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004518/1.765, allocations: 66.73 kB / 0.6147 GB, free: 161 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003102/1.768, allocations: 275 kB / 0.615 GB, free: 161 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01331/1.781, allocations: 4.235 MB / 0.6191 GB, free: 160.7 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05454/1.836, allocations: 17.69 MB / 0.6364 GB, free: 155.1 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1281/1.964, allocations: 73.6 MB / 0.7083 GB, free: 88.47 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02641/1.99, allocations: 7.904 MB / 0.716 GB, free: 80.32 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005636/1.991, allocations: 61.14 kB / 0.716 GB, free: 80.27 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.586e-05/1.991, allocations: 73.08 kB / 0.7161 GB, free: 80.19 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=429): time 9.448e-06/1.991, allocations: 0 / 0.7161 GB, free: 80.19 MB / 0.5105 GB Notification: Performance of matching and sorting (n=476): time 0.1614/2.153, allocations: 41.63 MB / 0.7568 GB, free: 38.29 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001009/2.153, allocations: 226.8 kB / 0.757 GB, free: 38.03 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01253/2.165, allocations: 5.943 MB / 0.7628 GB, free: 32.09 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001132/2.166, allocations: 87.67 kB / 0.7629 GB, free: 32 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004075/2.17, allocations: 5.409 MB / 0.7681 GB, free: 26.59 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.003297/2.174, allocations: 1.723 MB / 0.7698 GB, free: 24.88 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001476/2.175, allocations: 216 kB / 0.77 GB, free: 24.67 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.001052/2.176, allocations: 0.7896 MB / 0.7708 GB, free: 23.88 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01177/2.188, allocations: 4.78 MB / 0.7755 GB, free: 19.09 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01531/2.204, allocations: 10.79 MB / 0.786 GB, free: 5.363 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01632/2.22, allocations: 7.136 MB / 0.793 GB, free: 14.21 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002182/2.22, allocations: 60 kB / 0.793 GB, free: 14.16 MB / 0.5262 GB Notification: Performance of matching and sorting (n=1446) (initialization): time 0.4098/2.63, allocations: 16.62 MB / 0.8093 GB, free: 149 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 0.000222/2.63, allocations: 95.36 kB / 0.8093 GB, free: 149 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004989/2.631, allocations: 209.5 kB / 0.8095 GB, free: 149 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009369/2.64, allocations: 1.858 MB / 0.8114 GB, free: 149 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01695/2.657, allocations: 2.51 MB / 0.8138 GB, free: 149 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0289/2.686, allocations: 15.13 MB / 0.8286 GB, free: 141.6 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01159/2.698, allocations: 0.6559 MB / 0.8292 GB, free: 141.4 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002627/2.7, allocations: 0.6133 MB / 0.8298 GB, free: 141.3 MB / 0.5262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 958 * Number of states: 0 () * Number of discrete variables: 53 (torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame2.color_x[3],fixedFrame2.color_x[2],fixedFrame2.color_x[1],fixed.color[3],fixed.color[2],fixed.color[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],cyl2.color[3],cyl2.color[2],cyl2.color[1],cyl2.body.sphereColor[3],cyl2.body.sphereColor[2],cyl2.body.sphereColor[1],cyl1.color[3],cyl1.color[2],cyl1.color[1],cyl1.body.sphereColor[3],cyl1.body.sphereColor[2],cyl1.body.sphereColor[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],gearConstraint.fixedTranslation2.color[3],gearConstraint.fixedTranslation2.color[2],gearConstraint.fixedTranslation2.color[1],gearConstraint.fixedTranslation1.color[3],gearConstraint.fixedTranslation1.color[2],gearConstraint.fixedTranslation1.color[1],gearConstraint.actuatedRevolute_b.cylinderColor[3],gearConstraint.actuatedRevolute_b.cylinderColor[2],gearConstraint.actuatedRevolute_b.cylinderColor[1],gearConstraint.actuatedRevolute_a.cylinderColor[3],gearConstraint.actuatedRevolute_a.cylinderColor[2],gearConstraint.actuatedRevolute_a.cylinderColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1322): * Single equations (assignments): 1309 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 42,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01126/2.712, allocations: 4.041 MB / 0.8338 GB, free: 139.8 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001591/2.713, allocations: 0.6036 MB / 0.8344 GB, free: 139.8 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02626/2.74, allocations: 9.449 MB / 0.8436 GB, free: 136.3 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001771/2.74, allocations: 89.05 kB / 0.8437 GB, free: 136.3 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.931e-05/2.74, allocations: 9.875 kB / 0.8437 GB, free: 136.3 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.677e-05/2.74, allocations: 28.3 kB / 0.8437 GB, free: 136.3 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05626/2.796, allocations: 21.22 MB / 0.8644 GB, free: 128.7 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.944e-05/2.796, allocations: 11.75 kB / 0.8644 GB, free: 128.7 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006913/2.803, allocations: 0.7492 MB / 0.8652 GB, free: 128.6 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007345/2.811, allocations: 1.501 MB / 0.8666 GB, free: 128.3 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001092/2.812, allocations: 91.36 kB / 0.8667 GB, free: 128.2 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02329/2.835, allocations: 14.07 MB / 0.8805 GB, free: 116.8 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.256e-05/2.835, allocations: 15.94 kB / 0.8805 GB, free: 116.8 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03457/2.87, allocations: 16.91 MB / 0.897 GB, free: 99.65 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001771/2.872, allocations: 0.6342 MB / 0.8976 GB, free: 99.04 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002129/2.874, allocations: 88.69 kB / 0.8977 GB, free: 98.96 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005853/2.88, allocations: 301 kB / 0.898 GB, free: 98.66 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001468/2.881, allocations: 292.7 kB / 0.8983 GB, free: 98.38 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006205/2.882, allocations: 121.6 kB / 0.8984 GB, free: 98.27 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 0.008962/2.891, allocations: 4.145 MB / 0.9024 GB, free: 94.13 MB / 0.5262 GB Notification: Performance of sort global known variables: time 7.72e-07/2.891, allocations: 0 / 0.9024 GB, free: 94.13 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.01197/2.903, allocations: 2.016 MB / 0.9044 GB, free: 92.12 MB / 0.5262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 48 * Number of states: 4 (gearConstraint.actuatedRevolute_b.phi,gearConstraint.actuatedRevolute_b.w,inertia1.phi,inertia1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (359): * Single equations (assignments): 346 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 39,(1,100.0%) 2,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001551/2.904, allocations: 256.1 kB / 0.9046 GB, free: 91.88 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.02542/2.93, allocations: 11.81 MB / 0.9162 GB, free: 80.1 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 1.478e-05/2.93, allocations: 4 kB / 0.9162 GB, free: 80.09 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.01119/2.941, allocations: 4.791 MB / 0.9209 GB, free: 75.25 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005912/2.947, allocations: 0.7281 MB / 0.9216 GB, free: 74.52 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05055/2.998, allocations: 24.21 MB / 0.9452 GB, free: 50.13 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01201/3.01, allocations: 6.134 MB / 0.9512 GB, free: 43.96 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003783/3.014, allocations: 0.5072 MB / 0.9517 GB, free: 43.45 MB / 0.5262 GB Notification: Performance of SimCode: time 1.173e-06/3.014, allocations: 0 / 0.9517 GB, free: 43.45 MB / 0.5262 GB Notification: Performance of Templates: time 0.7884/3.802, allocations: 251.7 MB / 1.197 GB, free: 12.5 MB / 0.5574 GB