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.1_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2") Notification: Performance of loadModel(ModelicaTest): time 1.954/1.954, allocations: 209.3 MB / 223.8 MB, free: 440 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.476e-05/3.471e-05, allocations: 8 kB / 276.2 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3566/0.3567, allocations: 48.69 MB / 324.9 MB, free: 3.367 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2): time 0.1914/0.5482, allocations: 122.2 MB / 447 MB, free: 5.039 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.07755/0.6258, allocations: 24.79 MB / 471.8 MB, free: 12.17 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.03226/0.6581, allocations: 0.6392 MB / 472.5 MB, free: 11.53 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.02369/0.6818, allocations: 6.685 MB / 479.2 MB, free: 4.816 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.4144/1.096, allocations: 17.43 MB / 496.6 MB, free: 3.348 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01049/1.107, allocations: 1.345 MB / 497.9 MB, free: 3.332 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.09573/1.203, allocations: 34.46 MB / 0.5199 GB, free: 12.27 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02733/1.23, allocations: 12.86 MB / 0.5325 GB, free: 4.805 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007773/1.238, allocations: 2.833 MB / 0.5352 GB, free: 2.902 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009855/1.248, allocations: 4.372 MB / 0.5395 GB, free: 15.68 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005923/1.254, allocations: 1.108 MB / 0.5406 GB, free: 14.75 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003677/1.257, allocations: 356 kB / 0.5409 GB, free: 14.4 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.01028/1.268, allocations: 5.319 MB / 0.5461 GB, free: 10.54 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005682/1.274, allocations: 0.8711 MB / 0.547 GB, free: 9.672 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.03024/1.304, allocations: 19.45 MB / 0.566 GB, free: 8.75 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/1.304, allocations: 3.938 kB / 0.566 GB, free: 8.746 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.216e-06/1.304, allocations: 0 / 0.566 GB, free: 8.746 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0008636/1.305, allocations: 0 / 0.566 GB, free: 8.746 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5455 * Number of variables: 5455 Notification: Performance of Generate backend data structure: time 0.04544/1.35, allocations: 13.17 MB / 0.5788 GB, free: 12.66 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.558e-05/1.35, allocations: 12.03 kB / 0.5788 GB, free: 12.64 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2739/1.624, allocations: 28.56 MB / 0.6067 GB, free: 1.738 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03286/1.657, allocations: 9.906 MB / 0.6164 GB, free: 10.79 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001147/1.658, allocations: 0.7932 MB / 0.6172 GB, free: 10.35 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006579/1.665, allocations: 1.052 MB / 0.6182 GB, free: 9.664 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.107/1.772, allocations: 36.58 MB / 0.6539 GB, free: 14.45 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007112/1.773, allocations: 112.5 kB / 0.654 GB, free: 14.39 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005562/1.778, allocations: 0.4898 MB / 0.6545 GB, free: 14.25 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.02148/1.8, allocations: 7.575 MB / 0.6619 GB, free: 8.055 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.7102/2.51, allocations: 32.38 MB / 0.6935 GB, free: 211.7 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2478/2.758, allocations: 129.9 MB / 0.8204 GB, free: 98.73 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.05471/2.813, allocations: 15.41 MB / 0.8355 GB, free: 83 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09583/2.909, allocations: 34.96 MB / 0.8696 GB, free: 48.11 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001308/2.909, allocations: 99.19 kB / 0.8697 GB, free: 48 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=745): time 1.954e-05/2.909, allocations: 4 kB / 0.8697 GB, free: 48 MB / 0.5262 GB Notification: Performance of matching and sorting (n=827): time 1.019/3.928, allocations: 82.59 MB / 0.9503 GB, free: 190.9 MB / 0.5263 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001468/3.928, allocations: 310.1 kB / 0.9506 GB, free: 190.6 MB / 0.5263 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02419/3.953, allocations: 9.956 MB / 0.9604 GB, free: 187.1 MB / 0.5263 GB Notification: Performance of collectPreVariables (initialization): time 0.002022/3.955, allocations: 140.8 kB / 0.9605 GB, free: 187 MB / 0.5263 GB Notification: Performance of collectInitialEqns (initialization): time 0.008108/3.963, allocations: 9.777 MB / 0.97 GB, free: 179.5 MB / 0.5263 GB Notification: Performance of collectInitialBindings (initialization): time 0.004976/3.968, allocations: 2.986 MB / 0.973 GB, free: 177.3 MB / 0.5263 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00285/3.971, allocations: 356.3 kB / 0.9733 GB, free: 177.1 MB / 0.5263 GB Notification: Performance of setup shared object (initialization): time 0.00192/3.973, allocations: 1.097 MB / 0.9744 GB, free: 176.4 MB / 0.5263 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02145/3.994, allocations: 8.337 MB / 0.9825 GB, free: 173.7 MB / 0.5263 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02815/4.022, allocations: 17.83 MB / 0.9999 GB, free: 158.2 MB / 0.5263 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02821/4.051, allocations: 12.17 MB / 1.012 GB, free: 151.1 MB / 0.5263 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003116/4.051, allocations: 98.44 kB / 1.012 GB, free: 151 MB / 0.5263 GB Notification: Performance of matching and sorting (n=2393) (initialization): time 0.0798/4.131, allocations: 28.05 MB / 1.039 GB, free: 125.3 MB / 0.5263 GB Notification: Performance of prepare postOptimizeDAE: time 0.000274/4.131, allocations: 144 kB / 1.039 GB, free: 125.1 MB / 0.5263 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005705/4.132, allocations: 328 kB / 1.04 GB, free: 124.8 MB / 0.5263 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01293/4.145, allocations: 2.718 MB / 1.042 GB, free: 122.1 MB / 0.5263 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0283/4.173, allocations: 4.301 MB / 1.047 GB, free: 117.8 MB / 0.5263 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0459/4.219, allocations: 16.22 MB / 1.062 GB, free: 101.3 MB / 0.5263 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0276/4.247, allocations: 1.114 MB / 1.064 GB, free: 100.2 MB / 0.5263 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004792/4.252, allocations: 0.9897 MB / 1.064 GB, free: 99.22 MB / 0.5263 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1503 * 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 (2197): * Single equations (assignments): 2180 * 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.02002/4.272, allocations: 7.075 MB / 1.071 GB, free: 92.13 MB / 0.5263 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003486/4.275, allocations: 1.014 MB / 1.072 GB, free: 91.1 MB / 0.5263 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04785/4.323, allocations: 16.25 MB / 1.088 GB, free: 74.79 MB / 0.5263 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002852/4.323, allocations: 162.5 kB / 1.088 GB, free: 74.63 MB / 0.5263 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.353e-05/4.323, allocations: 20.98 kB / 1.088 GB, free: 74.61 MB / 0.5263 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001759/4.324, allocations: 39.81 kB / 1.088 GB, free: 74.57 MB / 0.5263 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4465/4.77, allocations: 35.49 MB / 1.123 GB, free: 178.5 MB / 0.5263 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001362/4.77, allocations: 14.22 kB / 1.123 GB, free: 178.5 MB / 0.5263 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02038/4.791, allocations: 1.433 MB / 1.125 GB, free: 178.5 MB / 0.5263 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01728/4.808, allocations: 2.072 MB / 1.127 GB, free: 178.5 MB / 0.5263 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002481/4.811, allocations: 133.6 kB / 1.127 GB, free: 178.5 MB / 0.5263 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03526/4.846, allocations: 14.82 MB / 1.141 GB, free: 173.6 MB / 0.5263 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.12e-05/4.846, allocations: 8.938 kB / 1.141 GB, free: 173.6 MB / 0.5263 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06506/4.911, allocations: 27.31 MB / 1.168 GB, free: 162.3 MB / 0.5263 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008926/4.92, allocations: 2.304 MB / 1.17 GB, free: 161.7 MB / 0.5263 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005081/4.925, allocations: 125.9 kB / 1.17 GB, free: 161.6 MB / 0.5263 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0117/4.937, allocations: 0.5448 MB / 1.171 GB, free: 161.6 MB / 0.5263 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002957/4.94, allocations: 447 kB / 1.171 GB, free: 161.5 MB / 0.5263 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002251/4.942, allocations: 196.3 kB / 1.171 GB, free: 161.4 MB / 0.5263 GB Notification: Performance of sorting global known variables: time 0.01833/4.961, allocations: 6.952 MB / 1.178 GB, free: 159.2 MB / 0.5263 GB Notification: Performance of sort global known variables: time 9.32e-07/4.961, allocations: 0 / 1.178 GB, free: 159.2 MB / 0.5263 GB Notification: Performance of remove unused functions: time 0.0222/4.983, allocations: 3.472 MB / 1.182 GB, free: 158.8 MB / 0.5263 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 (653): * Single equations (assignments): 636 * 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.002797/4.986, allocations: 317.7 kB / 1.182 GB, free: 158.6 MB / 0.5263 GB Notification: Performance of simCode: created initialization part: time 0.04978/5.036, allocations: 19.92 MB / 1.201 GB, free: 148.1 MB / 0.5263 GB Notification: Performance of simCode: created event and clocks part: time 1.725e-05/5.036, allocations: 0 / 1.201 GB, free: 148.1 MB / 0.5263 GB Notification: Performance of simCode: created simulation system equations: time 0.02803/5.064, allocations: 7.856 MB / 1.209 GB, free: 141.1 MB / 0.5263 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01439/5.078, allocations: 1.26 MB / 1.21 GB, free: 140.1 MB / 0.5263 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.105/5.183, allocations: 41.04 MB / 1.25 GB, free: 101.7 MB / 0.5263 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02599/5.209, allocations: 10.56 MB / 1.261 GB, free: 91.07 MB / 0.5263 GB Notification: Performance of simCode: alias equations: time 0.03232/5.242, allocations: 6.662 MB / 1.267 GB, free: 84.39 MB / 0.5263 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006963/5.249, allocations: 0.7329 MB / 1.268 GB, free: 83.66 MB / 0.5263 GB Notification: Performance of SimCode: time 1.924e-06/5.249, allocations: 0 / 1.268 GB, free: 83.66 MB / 0.5263 GB Notification: Performance of Templates: time 0.7076/5.956, allocations: 105.1 MB / 1.37 GB, free: 150.7 MB / 0.5263 GB