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_ModelicaTest.MultiBody.Joints.GearConstraint") Notification: Performance of loadModel(ModelicaTest): time 1.947/1.947, allocations: 209.3 MB / 223.8 MB, free: 448 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.512e-05/3.535e-05, allocations: 8 kB / 276.2 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3501/0.3502, allocations: 48.69 MB / 324.9 MB, free: 3.367 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.1285/0.4787, allocations: 64.95 MB / 389.8 MB, free: 14.4 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0502/0.529, allocations: 13.92 MB / 403.7 MB, free: 456 kB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01875/0.5478, allocations: 347.2 kB / 404.1 MB, free: 108 kB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01619/0.5641, allocations: 3.511 MB / 407.6 MB, free: 12.58 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03692/0.6011, allocations: 9.37 MB / 417 MB, free: 3.184 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005779/0.6069, allocations: 0.7762 MB / 417.7 MB, free: 2.406 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.05277/0.6597, allocations: 17.59 MB / 435.3 MB, free: 0.8086 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01463/0.6744, allocations: 6.943 MB / 442.3 MB, free: 9.824 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00396/0.6784, allocations: 1.566 MB / 443.8 MB, free: 8.254 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005347/0.6839, allocations: 2.466 MB / 446.3 MB, free: 5.781 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003785/0.6877, allocations: 0.991 MB / 447.3 MB, free: 4.789 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001987/0.6897, allocations: 220 kB / 447.5 MB, free: 4.574 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004997/0.6948, allocations: 2.961 MB / 450.5 MB, free: 1.605 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002673/0.6975, allocations: 500 kB / 451 MB, free: 1.117 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01814/0.7157, allocations: 11.01 MB / 462 MB, free: 6.078 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.7157, allocations: 0 / 462 MB, free: 6.078 MB / 394.7 MB Notification: Performance of FrontEnd: time 6.812e-06/0.7158, allocations: 4 kB / 462 MB, free: 6.074 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0005167/0.7163, allocations: 4 kB / 462 MB, free: 6.07 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.02479/0.7411, allocations: 7.471 MB / 469.4 MB, free: 14.51 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.017e-05/0.7412, allocations: 8.031 kB / 469.5 MB, free: 14.5 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.6529/1.394, allocations: 15.2 MB / 484.7 MB, free: 123.5 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01749/1.412, allocations: 5.374 MB / 490 MB, free: 121.4 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007325/1.412, allocations: 455.2 kB / 490.5 MB, free: 121.3 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003313/1.416, allocations: 0.5854 MB / 491.1 MB, free: 121.1 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0541/1.47, allocations: 20.55 MB / 0.4996 GB, free: 112.4 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004199/1.47, allocations: 66.44 kB / 0.4997 GB, free: 112.3 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002847/1.473, allocations: 282.4 kB / 0.5 GB, free: 112.2 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01042/1.484, allocations: 4.295 MB / 0.5041 GB, free: 110.3 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05116/1.535, allocations: 18.12 MB / 0.5218 GB, free: 92.2 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1326/1.668, allocations: 75.05 MB / 0.5951 GB, free: 15.81 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02722/1.695, allocations: 8.132 MB / 0.6031 GB, free: 7.441 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000631/1.695, allocations: 76.62 kB / 0.6031 GB, free: 7.383 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.101e-05/1.696, allocations: 73.19 kB / 0.6032 GB, free: 7.301 MB / 410.8 MB Notification: Performance of pre-optimization done (n=450): time 9.548e-06/1.696, allocations: 3.938 kB / 0.6032 GB, free: 7.297 MB / 410.8 MB Notification: Performance of matching and sorting (n=497): time 0.4652/2.161, allocations: 42.71 MB / 0.6449 GB, free: 138.2 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001293/2.161, allocations: 235.6 kB / 0.6451 GB, free: 138 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01683/2.178, allocations: 6.023 MB / 0.651 GB, free: 136.1 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001178/2.179, allocations: 92.66 kB / 0.6511 GB, free: 136 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.005401/2.185, allocations: 5.681 MB / 0.6567 GB, free: 132.5 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.003217/2.188, allocations: 1.804 MB / 0.6584 GB, free: 131.1 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001549/2.189, allocations: 223.1 kB / 0.6586 GB, free: 131 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 0.001025/2.19, allocations: 0.7918 MB / 0.6594 GB, free: 130.5 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01349/2.204, allocations: 4.94 MB / 0.6642 GB, free: 128.8 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.018/2.222, allocations: 11.04 MB / 0.675 GB, free: 119 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01652/2.239, allocations: 7.347 MB / 0.6822 GB, free: 116.1 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002058/2.239, allocations: 61.25 kB / 0.6822 GB, free: 116.1 MB / 442.8 MB Notification: Performance of matching and sorting (n=1480) (initialization): time 0.04873/2.288, allocations: 17.25 MB / 0.6991 GB, free: 109.3 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001533/2.288, allocations: 96 kB / 0.6992 GB, free: 109.2 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003447/2.288, allocations: 216 kB / 0.6994 GB, free: 109 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008169/2.296, allocations: 1.861 MB / 0.7012 GB, free: 107.6 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0163/2.313, allocations: 2.583 MB / 0.7037 GB, free: 105.3 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02533/2.338, allocations: 15.03 MB / 0.7184 GB, free: 89.8 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0121/2.35, allocations: 0.6723 MB / 0.7191 GB, free: 89.13 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002352/2.353, allocations: 0.6267 MB / 0.7197 GB, free: 88.5 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.01082/2.363, allocations: 4.129 MB / 0.7237 GB, free: 84.36 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002061/2.366, allocations: 0.6125 MB / 0.7243 GB, free: 83.75 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02786/2.393, allocations: 9.837 MB / 0.7339 GB, free: 73.86 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001678/2.394, allocations: 91.92 kB / 0.734 GB, free: 73.77 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.929e-05/2.394, allocations: 8 kB / 0.734 GB, free: 73.76 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001015/2.394, allocations: 27.91 kB / 0.734 GB, free: 73.73 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06188/2.456, allocations: 21.92 MB / 0.7554 GB, free: 51.65 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.547e-05/2.456, allocations: 15.94 kB / 0.7555 GB, free: 51.63 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00742/2.463, allocations: 0.784 MB / 0.7562 GB, free: 50.85 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007453/2.471, allocations: 1.505 MB / 0.7577 GB, free: 49.33 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001177/2.472, allocations: 90.09 kB / 0.7578 GB, free: 49.25 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02353/2.496, allocations: 14.05 MB / 0.7715 GB, free: 34.66 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-05/2.496, allocations: 15.94 kB / 0.7715 GB, free: 34.65 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03839/2.534, allocations: 17.52 MB / 0.7886 GB, free: 16.56 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005419/2.54, allocations: 1.415 MB / 0.79 GB, free: 15.12 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002717/2.542, allocations: 82.34 kB / 0.7901 GB, free: 15.04 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006696/2.549, allocations: 311.6 kB / 0.7904 GB, free: 14.74 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001925/2.551, allocations: 306.8 kB / 0.7907 GB, free: 14.44 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006667/2.552, allocations: 134.7 kB / 0.7908 GB, free: 14.31 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.0107/2.562, allocations: 4.225 MB / 0.7949 GB, free: 10.09 MB / 442.8 MB Notification: Performance of sort global known variables: time 8.62e-07/2.562, allocations: 0 / 0.7949 GB, free: 10.09 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.01267/2.575, allocations: 2.065 MB / 0.7969 GB, free: 8.035 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.00173/2.577, allocations: 260 kB / 0.7972 GB, free: 7.773 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.323/2.9, allocations: 12.19 MB / 0.8091 GB, free: 128.7 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 1.515e-05/2.9, allocations: 1.781 kB / 0.8091 GB, free: 128.7 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01379/2.914, allocations: 4.964 MB / 0.814 GB, free: 126.6 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006949/2.921, allocations: 0.7293 MB / 0.8147 GB, free: 126.3 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0575/2.978, allocations: 23.95 MB / 0.8381 GB, free: 114.4 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01409/2.993, allocations: 6.259 MB / 0.8442 GB, free: 112.4 MB / 442.8 MB Notification: Performance of simCode: alias equations: time 0.02367/3.016, allocations: 4.104 MB / 0.8482 GB, free: 111.2 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008525/3.025, allocations: 453.1 kB / 0.8486 GB, free: 110.8 MB / 442.8 MB Notification: Performance of SimCode: time 1.493e-06/3.025, allocations: 0 / 0.8486 GB, free: 110.8 MB / 442.8 MB Notification: Performance of Templates: time 0.2463/3.271, allocations: 70.94 MB / 0.9179 GB, free: 40.91 MB / 442.8 MB