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_3.2.1_cpp_ModelicaTest.MultiBody.Joints.GearConstraint") Notification: Performance of loadModel(ModelicaTest): time 2.046/2.046, allocations: 209.3 MB / 224.4 MB, free: 0.5117 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.136e-05/3.123e-05, allocations: 4 kB / 276.1 MB, free: 15.86 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3594/0.3594, allocations: 48.7 MB / 324.8 MB, free: 2.902 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.1027/0.4622, allocations: 64.95 MB / 389.8 MB, free: 14.47 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.08556/0.5478, allocations: 13.92 MB / 403.7 MB, free: 0.5156 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0209/0.5688, allocations: 347.2 kB / 404.1 MB, free: 180 kB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01886/0.5877, allocations: 3.512 MB / 407.6 MB, free: 12.64 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.05495/0.6428, allocations: 9.369 MB / 416.9 MB, free: 3.254 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008195/0.651, allocations: 0.7802 MB / 417.7 MB, free: 2.473 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0762/0.7273, allocations: 17.58 MB / 435.3 MB, free: 0.8828 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02358/0.7509, allocations: 6.957 MB / 442.2 MB, free: 9.887 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005938/0.757, allocations: 1.57 MB / 443.8 MB, free: 8.312 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008586/0.7656, allocations: 2.462 MB / 446.3 MB, free: 5.844 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005918/0.7716, allocations: 0.9988 MB / 447.3 MB, free: 4.844 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002974/0.7747, allocations: 220 kB / 447.5 MB, free: 4.629 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.006933/0.7816, allocations: 2.957 MB / 450.5 MB, free: 1.664 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003615/0.7853, allocations: 500 kB / 450.9 MB, free: 1.176 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02489/0.8103, allocations: 11.02 MB / 462 MB, free: 6.133 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.037e-06/0.8104, allocations: 0 / 462 MB, free: 6.133 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.516e-06/0.8104, allocations: 3.938 kB / 462 MB, free: 6.129 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000498/0.8109, allocations: 0 / 462 MB, free: 6.129 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3108 * Number of variables: 3108 Notification: Performance of Generate backend data structure: time 0.02644/0.8374, allocations: 7.471 MB / 469.4 MB, free: 14.57 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.268e-05/0.8374, allocations: 11.97 kB / 469.4 MB, free: 14.56 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.7025/1.54, allocations: 15.2 MB / 484.6 MB, free: 123 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01794/1.558, allocations: 5.37 MB / 490 MB, free: 120.9 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005519/1.558, allocations: 455.4 kB / 490.5 MB, free: 120.8 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002997/1.562, allocations: 0.5935 MB / 491 MB, free: 120.7 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05335/1.615, allocations: 20.54 MB / 0.4996 GB, free: 111.9 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003434/1.615, allocations: 74.59 kB / 0.4997 GB, free: 111.9 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002345/1.618, allocations: 279.8 kB / 0.4999 GB, free: 111.7 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0101/1.628, allocations: 4.285 MB / 0.5041 GB, free: 110.4 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04928/1.677, allocations: 18.13 MB / 0.5218 GB, free: 92.26 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1284/1.806, allocations: 75.03 MB / 0.5951 GB, free: 15.91 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02689/1.833, allocations: 8.139 MB / 0.603 GB, free: 7.527 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006104/1.833, allocations: 73.67 kB / 0.6031 GB, free: 7.469 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.027e-05/1.833, allocations: 81.12 kB / 0.6032 GB, free: 7.379 MB / 410.8 MB Notification: Performance of pre-optimization done (n=450): time 9.648e-06/1.833, allocations: 0 / 0.6032 GB, free: 7.379 MB / 410.8 MB Notification: Performance of matching and sorting (n=497): time 0.5752/2.408, allocations: 42.7 MB / 0.6449 GB, free: 137.8 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000198/2.409, allocations: 235.4 kB / 0.6451 GB, free: 137.6 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02387/2.433, allocations: 6.027 MB / 0.651 GB, free: 135.7 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001562/2.434, allocations: 93.47 kB / 0.6511 GB, free: 135.6 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.007792/2.442, allocations: 5.508 MB / 0.6565 GB, free: 132.1 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.00439/2.447, allocations: 1.81 MB / 0.6582 GB, free: 130.8 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00252/2.449, allocations: 220.4 kB / 0.6585 GB, free: 130.6 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 0.001743/2.451, allocations: 0.8007 MB / 0.6592 GB, free: 130.1 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02032/2.471, allocations: 4.937 MB / 0.6641 GB, free: 128.4 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02615/2.498, allocations: 11.03 MB / 0.6748 GB, free: 118.6 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02504/2.523, allocations: 7.351 MB / 0.682 GB, free: 115.8 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002916/2.523, allocations: 64.44 kB / 0.6821 GB, free: 115.8 MB / 442.8 MB Notification: Performance of matching and sorting (n=1480) (initialization): time 0.06766/2.591, allocations: 17.05 MB / 0.6987 GB, free: 109.4 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002669/2.591, allocations: 99.12 kB / 0.6988 GB, free: 109.4 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006411/2.592, allocations: 216.3 kB / 0.699 GB, free: 109.3 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01201/2.604, allocations: 1.863 MB / 0.7008 GB, free: 107.9 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0228/2.627, allocations: 2.58 MB / 0.7034 GB, free: 105.6 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03573/2.662, allocations: 15.02 MB / 0.718 GB, free: 90.29 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01761/2.68, allocations: 0.6743 MB / 0.7187 GB, free: 89.62 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00249/2.683, allocations: 0.626 MB / 0.7193 GB, free: 88.99 MB / 442.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 971 * Number of states: 0 () * Number of discrete variables: 48 (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.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 (1356): * Single equations (assignments): 1343 * 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.0114/2.694, allocations: 4.129 MB / 0.7233 GB, free: 84.85 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001985/2.696, allocations: 0.6208 MB / 0.7239 GB, free: 84.22 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02902/2.725, allocations: 9.835 MB / 0.7335 GB, free: 74.34 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000178/2.725, allocations: 93.62 kB / 0.7336 GB, free: 74.25 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.039e-05/2.725, allocations: 8 kB / 0.7336 GB, free: 74.24 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001069/2.726, allocations: 23.91 kB / 0.7337 GB, free: 74.21 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06175/2.787, allocations: 21.92 MB / 0.7551 GB, free: 52.14 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.217e-05/2.787, allocations: 12 kB / 0.7551 GB, free: 52.12 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007472/2.795, allocations: 0.7878 MB / 0.7558 GB, free: 51.34 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007551/2.803, allocations: 1.513 MB / 0.7573 GB, free: 49.81 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00124/2.804, allocations: 85.47 kB / 0.7574 GB, free: 49.73 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02458/2.828, allocations: 14.06 MB / 0.7711 GB, free: 35.14 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-05/2.828, allocations: 23.81 kB / 0.7712 GB, free: 35.12 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0395/2.868, allocations: 17.52 MB / 0.7883 GB, free: 17.04 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005356/2.873, allocations: 1.418 MB / 0.7896 GB, free: 15.59 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002817/2.876, allocations: 80.94 kB / 0.7897 GB, free: 15.52 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006688/2.883, allocations: 316.6 kB / 0.79 GB, free: 15.21 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001691/2.885, allocations: 303.4 kB / 0.7903 GB, free: 14.91 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009955/2.886, allocations: 129.5 kB / 0.7904 GB, free: 14.79 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.01011/2.896, allocations: 4.213 MB / 0.7946 GB, free: 10.58 MB / 442.8 MB Notification: Performance of sort global known variables: time 1.102e-06/2.896, allocations: 0 / 0.7946 GB, free: 10.58 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.01314/2.909, allocations: 2.067 MB / 0.7966 GB, free: 8.523 MB / 442.8 MB 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 (381): * Single equations (assignments): 368 * 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.001759/2.911, allocations: 261.6 kB / 0.7968 GB, free: 8.262 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.3269/3.238, allocations: 12.19 MB / 0.8087 GB, free: 128.9 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-05/3.238, allocations: 2.375 kB / 0.8087 GB, free: 128.9 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01412/3.252, allocations: 4.97 MB / 0.8136 GB, free: 126.9 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007054/3.259, allocations: 0.7262 MB / 0.8143 GB, free: 126.6 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0626/3.322, allocations: 24.91 MB / 0.8386 GB, free: 114.2 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01428/3.336, allocations: 6.265 MB / 0.8447 GB, free: 112.1 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004444/3.341, allocations: 0.5328 MB / 0.8453 GB, free: 112.1 MB / 442.8 MB Notification: Performance of SimCode: time 1.603e-06/3.341, allocations: 3.938 kB / 0.8453 GB, free: 112.1 MB / 442.8 MB Notification: Performance of Templates: time 0.7748/4.116, allocations: 258 MB / 1.097 GB, free: 28.82 MB / 458.8 MB