Running command: translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gc1.actuatedRevolute_b.phi|gc1.actuatedRevolute_b.w|gc2.actuatedRevolute_b.phi|gc2.actuatedRevolute_b.w",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2") Notification: Performance of loadModel(ModelicaTest): time 2.235/2.235, allocations: 235 MB / 247.2 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.146e-05/4.186e-05, allocations: 4 kB / 304.9 MB, free: 5.164 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4019/0.402, allocations: 54.85 MB / 359.8 MB, free: 2.723 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.157/0.559, allocations: 103.2 MB / 463 MB, free: 9.562 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002605/0.5593, allocations: 79.95 kB / 463.1 MB, free: 9.484 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.623/2.182, allocations: 284.9 MB / 0.7305 GB, free: 40.93 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.29e-06/2.182, allocations: 0 / 0.7305 GB, free: 40.93 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.000801/2.183, allocations: 272.8 kB / 0.7307 GB, free: 40.93 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5457 * Number of variables: 5457 Notification: Performance of Generate backend data structure: time 0.07299/2.256, allocations: 13.2 MB / 0.7436 GB, free: 35.76 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.513e-05/2.256, allocations: 10.38 kB / 0.7436 GB, free: 35.76 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1441/2.401, allocations: 18.53 MB / 0.7617 GB, free: 34.75 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04195/2.442, allocations: 14.89 MB / 0.7763 GB, free: 33.23 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001181/2.444, allocations: 1.103 MB / 0.7773 GB, free: 33.2 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006627/2.45, allocations: 1.46 MB / 0.7788 GB, free: 33.19 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09156/2.542, allocations: 36.04 MB / 0.814 GB, free: 27.02 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007736/2.543, allocations: 134.4 kB / 0.8141 GB, free: 27 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006131/2.549, allocations: 0.674 MB / 0.8147 GB, free: 26.61 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006236/2.555, allocations: 3.712 MB / 0.8184 GB, free: 24.89 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07546/2.631, allocations: 32.08 MB / 0.8497 GB, free: 12.5 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7039/3.335, allocations: 140.4 MB / 0.9868 GB, free: 30.51 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.05162/3.386, allocations: 15.54 MB / 1.002 GB, free: 28.64 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01991/3.406, allocations: 9.572 MB / 1.011 GB, free: 28.57 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09182/3.498, allocations: 35.74 MB / 1.046 GB, free: 15.29 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.155e-05/3.498, allocations: 98.97 kB / 1.046 GB, free: 15.2 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=747): time 1.342e-05/3.498, allocations: 0 / 1.046 GB, free: 15.2 MB / 0.5417 GB Notification: Performance of matching and sorting (n=829): time 0.6266/4.125, allocations: 71.6 MB / 1.116 GB, free: 104.2 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000119/4.125, allocations: 306 kB / 1.117 GB, free: 103.9 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0214/4.147, allocations: 9.274 MB / 1.126 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.001492/4.148, allocations: 140.3 kB / 1.126 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.007266/4.155, allocations: 9.827 MB / 1.135 GB, free: 97.88 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.00386/4.159, allocations: 2.988 MB / 1.138 GB, free: 96.1 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001823/4.161, allocations: 357.5 kB / 1.139 GB, free: 96.1 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.001326/4.162, allocations: 1.101 MB / 1.14 GB, free: 95.76 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0172/4.18, allocations: 8.121 MB / 1.148 GB, free: 95.72 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02326/4.203, allocations: 17.56 MB / 1.165 GB, free: 83.7 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02308/4.226, allocations: 12.08 MB / 1.177 GB, free: 83.48 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003176/4.226, allocations: 95.66 kB / 1.177 GB, free: 83.48 MB / 0.5417 GB Notification: Performance of matching and sorting (n=2401) (initialization): time 0.06345/4.29, allocations: 26.56 MB / 1.203 GB, free: 75.1 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002589/4.29, allocations: 145.8 kB / 1.203 GB, free: 75.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004066/4.291, allocations: 331.6 kB / 1.203 GB, free: 75.1 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008593/4.299, allocations: 2.408 MB / 1.205 GB, free: 74.66 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02054/4.32, allocations: 4.28 MB / 1.21 GB, free: 74.18 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02506/4.345, allocations: 14.38 MB / 1.224 GB, free: 66.83 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01855/4.364, allocations: 1.093 MB / 1.225 GB, free: 66.18 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003784/4.367, allocations: 0.9907 MB / 1.226 GB, free: 65.21 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1510 * Number of states: 0 () * Number of discrete variables: 90 (torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],fixedFrame3.color_x[3],fixedFrame3.color_x[2],fixedFrame3.color_x[1],fixedFrame2.color_x[3],fixedFrame2.color_x[2],fixedFrame2.color_x[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],bodyCylinder3.color[3],bodyCylinder3.color[2],bodyCylinder3.color[1],bodyCylinder3.body.sphereColor[3],bodyCylinder3.body.sphereColor[2],bodyCylinder3.body.sphereColor[1],bodyCylinder2.color[3],bodyCylinder2.color[2],bodyCylinder2.color[1],bodyCylinder2.body.sphereColor[3],bodyCylinder2.body.sphereColor[2],bodyCylinder2.body.sphereColor[1],bodyCylinder1.color[3],bodyCylinder1.color[2],bodyCylinder1.color[1],bodyCylinder1.body.sphereColor[3],bodyCylinder1.body.sphereColor[2],bodyCylinder1.body.sphereColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],gc2.fixedTranslation2.color[3],gc2.fixedTranslation2.color[2],gc2.fixedTranslation2.color[1],gc2.fixedTranslation1.color[3],gc2.fixedTranslation1.color[2],gc2.fixedTranslation1.color[1],gc2.actuatedRevolute_b.cylinderColor[3],gc2.actuatedRevolute_b.cylinderColor[2],gc2.actuatedRevolute_b.cylinderColor[1],gc2.actuatedRevolute_a.cylinderColor[3],gc2.actuatedRevolute_a.cylinderColor[2],gc2.actuatedRevolute_a.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],gc1.fixedTranslation2.color[3],gc1.fixedTranslation2.color[2],gc1.fixedTranslation2.color[1],gc1.fixedTranslation1.color[3],gc1.fixedTranslation1.color[2],gc1.fixedTranslation1.color[1],gc1.actuatedRevolute_b.cylinderColor[3],gc1.actuatedRevolute_b.cylinderColor[2],gc1.actuatedRevolute_b.cylinderColor[1],gc1.actuatedRevolute_a.cylinderColor[3],gc1.actuatedRevolute_a.cylinderColor[2],gc1.actuatedRevolute_a.cylinderColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2205): * Single equations (assignments): 2188 * Array equations: 15 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,77.8%) 36,(3,77.8%) 36} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005753/4.373, allocations: 1.411 MB / 1.227 GB, free: 63.8 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002492/4.376, allocations: 1.01 MB / 1.228 GB, free: 62.78 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03499/4.411, allocations: 15.81 MB / 1.243 GB, free: 49.43 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002223/4.411, allocations: 160.8 kB / 1.244 GB, free: 49.29 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.852e-05/4.411, allocations: 12 kB / 1.244 GB, free: 49.28 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001384/4.411, allocations: 32.95 kB / 1.244 GB, free: 49.28 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1128/4.524, allocations: 34.7 MB / 1.278 GB, free: 20.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001265/4.524, allocations: 12.38 kB / 1.278 GB, free: 20.39 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01753/4.542, allocations: 1.397 MB / 1.279 GB, free: 19.3 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01399/4.556, allocations: 1.769 MB / 1.281 GB, free: 18.05 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002617/4.558, allocations: 129.2 kB / 1.281 GB, free: 17.93 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.43/4.989, allocations: 12.9 MB / 1.293 GB, free: 92.71 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.201e-05/4.989, allocations: 7.5 kB / 1.293 GB, free: 92.71 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05269/5.041, allocations: 26.47 MB / 1.319 GB, free: 89.89 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007211/5.049, allocations: 2.25 MB / 1.321 GB, free: 89.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00326/5.052, allocations: 122.2 kB / 1.321 GB, free: 89.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008713/5.061, allocations: 0.5346 MB / 1.322 GB, free: 89.8 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002098/5.063, allocations: 438.2 kB / 1.322 GB, free: 89.79 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009144/5.064, allocations: 196.9 kB / 1.323 GB, free: 89.79 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.01549/5.079, allocations: 6.408 MB / 1.329 GB, free: 89.45 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.169e-06/5.079, allocations: 0 / 1.329 GB, free: 89.45 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.02017/5.099, allocations: 3.442 MB / 1.332 GB, free: 89.45 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 4 (gc1.actuatedRevolute_b.phi,gc1.actuatedRevolute_b.w,gc2.actuatedRevolute_b.phi,gc2.actuatedRevolute_b.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (655): * Single equations (assignments): 638 * Array equations: 15 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 32,(1,100.0%) 32} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001747/5.101, allocations: 314.6 kB / 1.333 GB, free: 89.36 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.03804/5.139, allocations: 19 MB / 1.351 GB, free: 88.99 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.124e-05/5.139, allocations: 3.188 kB / 1.351 GB, free: 88.99 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.01574/5.155, allocations: 7.56 MB / 1.358 GB, free: 87.02 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00844/5.164, allocations: 1.26 MB / 1.36 GB, free: 86.48 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06966/5.233, allocations: 29.28 MB / 1.388 GB, free: 76.39 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02618/5.259, allocations: 10.57 MB / 1.399 GB, free: 69.74 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.02351/5.283, allocations: 6.665 MB / 1.405 GB, free: 65.75 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005178/5.288, allocations: 0.7246 MB / 1.406 GB, free: 65.06 MB / 0.5417 GB Notification: Performance of SimCode: time 1.89e-06/5.288, allocations: 3.781 kB / 1.406 GB, free: 65.06 MB / 0.5417 GB Notification: Performance of Templates: time 0.691/5.979, allocations: 99.15 MB / 1.503 GB, free: 93.41 MB / 0.5417 GB