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_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2") Notification: Performance of loadModel(ModelicaTest): time 2.106/2.106, allocations: 209.3 MB / 224.4 MB, free: 0.5156 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.66e-05/2.654e-05, allocations: 4 kB / 276.2 MB, free: 15.86 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3443/0.3443, allocations: 48.7 MB / 324.9 MB, free: 2.895 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2): time 0.1878/0.5322, allocations: 122.2 MB / 447 MB, free: 5.152 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.07588/0.6081, allocations: 24.79 MB / 471.8 MB, free: 12.29 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.03231/0.6405, allocations: 0.643 MB / 472.4 MB, free: 11.64 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.02396/0.6645, allocations: 6.689 MB / 479.1 MB, free: 4.922 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.4162/1.081, allocations: 17.43 MB / 496.6 MB, free: 3.242 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01024/1.091, allocations: 1.348 MB / 497.9 MB, free: 3.227 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0989/1.19, allocations: 34.46 MB / 0.5199 GB, free: 12.24 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02799/1.218, allocations: 12.87 MB / 0.5325 GB, free: 4.812 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008293/1.226, allocations: 2.829 MB / 0.5352 GB, free: 2.91 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01108/1.238, allocations: 4.375 MB / 0.5395 GB, free: 15.69 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006743/1.244, allocations: 1.111 MB / 0.5406 GB, free: 14.75 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003949/1.248, allocations: 356 kB / 0.5409 GB, free: 14.4 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.009994/1.258, allocations: 5.317 MB / 0.5461 GB, free: 10.55 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005496/1.264, allocations: 0.875 MB / 0.547 GB, free: 9.676 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.03135/1.295, allocations: 19.44 MB / 0.5659 GB, free: 8.762 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.9e-06/1.296, allocations: 0 / 0.5659 GB, free: 8.762 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.747e-06/1.296, allocations: 0 / 0.5659 GB, free: 8.762 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0008827/1.296, allocations: 0 / 0.5659 GB, free: 8.762 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.04584/1.342, allocations: 13.17 MB / 0.5788 GB, free: 12.66 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.245e-05/1.342, allocations: 8.031 kB / 0.5788 GB, free: 12.66 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.297/1.639, allocations: 28.56 MB / 0.6067 GB, free: 1.746 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04361/1.683, allocations: 9.903 MB / 0.6164 GB, free: 10.8 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001563/1.685, allocations: 0.7859 MB / 0.6171 GB, free: 10.37 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007827/1.693, allocations: 1.054 MB / 0.6182 GB, free: 9.68 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1133/1.806, allocations: 36.58 MB / 0.6539 GB, free: 14.44 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008135/1.807, allocations: 112.9 kB / 0.654 GB, free: 14.38 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006453/1.813, allocations: 498.9 kB / 0.6545 GB, free: 14.25 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.04959/1.863, allocations: 7.569 MB / 0.6619 GB, free: 8.051 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.7032/2.566, allocations: 32.38 MB / 0.6935 GB, free: 211.3 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2475/2.814, allocations: 129.9 MB / 0.8204 GB, free: 98.8 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.05437/2.868, allocations: 15.39 MB / 0.8354 GB, free: 83.09 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09395/2.962, allocations: 34.97 MB / 0.8696 GB, free: 48.19 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.927e-05/2.962, allocations: 103.2 kB / 0.8697 GB, free: 48.08 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=745): time 1.369e-05/2.962, allocations: 0 / 0.8697 GB, free: 48.08 MB / 0.5262 GB Notification: Performance of matching and sorting (n=827): time 0.946/3.908, allocations: 82.59 MB / 0.9503 GB, free: 190.7 MB / 0.5263 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001318/3.908, allocations: 314.3 kB / 0.9506 GB, free: 190.4 MB / 0.5263 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02356/3.932, allocations: 9.946 MB / 0.9603 GB, free: 186.9 MB / 0.5263 GB Notification: Performance of collectPreVariables (initialization): time 0.001948/3.934, allocations: 138.7 kB / 0.9605 GB, free: 186.8 MB / 0.5263 GB Notification: Performance of collectInitialEqns (initialization): time 0.007448/3.941, allocations: 9.443 MB / 0.9697 GB, free: 179.4 MB / 0.5263 GB Notification: Performance of collectInitialBindings (initialization): time 0.004791/3.946, allocations: 2.989 MB / 0.9726 GB, free: 177.2 MB / 0.5263 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003008/3.949, allocations: 353 kB / 0.9729 GB, free: 176.9 MB / 0.5263 GB Notification: Performance of setup shared object (initialization): time 0.001831/3.951, allocations: 1.103 MB / 0.974 GB, free: 176.3 MB / 0.5263 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02061/3.972, allocations: 8.332 MB / 0.9821 GB, free: 173.5 MB / 0.5263 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02654/3.998, allocations: 17.83 MB / 0.9996 GB, free: 158.1 MB / 0.5263 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02729/4.026, allocations: 12.17 MB / 1.011 GB, free: 151.3 MB / 0.5263 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003132/4.026, allocations: 98.38 kB / 1.012 GB, free: 151.2 MB / 0.5263 GB Notification: Performance of matching and sorting (n=2393) (initialization): time 0.07537/4.102, allocations: 27.72 MB / 1.039 GB, free: 126.1 MB / 0.5263 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002347/4.102, allocations: 148 kB / 1.039 GB, free: 126 MB / 0.5263 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004814/4.102, allocations: 328 kB / 1.039 GB, free: 125.7 MB / 0.5263 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0126/4.115, allocations: 2.718 MB / 1.042 GB, free: 122.9 MB / 0.5263 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02795/4.143, allocations: 4.289 MB / 1.046 GB, free: 118.6 MB / 0.5263 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03341/4.176, allocations: 16.22 MB / 1.062 GB, free: 102.2 MB / 0.5263 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02043/4.197, allocations: 1.114 MB / 1.063 GB, free: 101.1 MB / 0.5263 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003963/4.201, allocations: 0.9902 MB / 1.064 GB, free: 100.1 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.01902/4.22, allocations: 7.074 MB / 1.071 GB, free: 92.97 MB / 0.5263 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003862/4.224, allocations: 1.018 MB / 1.072 GB, free: 91.94 MB / 0.5263 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05064/4.275, allocations: 16.24 MB / 1.088 GB, free: 75.63 MB / 0.5263 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002876/4.275, allocations: 170.1 kB / 1.088 GB, free: 75.46 MB / 0.5263 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.793e-05/4.275, allocations: 16 kB / 1.088 GB, free: 75.45 MB / 0.5263 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000185/4.275, allocations: 36.91 kB / 1.088 GB, free: 75.41 MB / 0.5263 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.43/4.705, allocations: 35.49 MB / 1.122 GB, free: 177.2 MB / 0.5263 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001085/4.705, allocations: 14.62 kB / 1.122 GB, free: 177.2 MB / 0.5263 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01453/4.72, allocations: 1.431 MB / 1.124 GB, free: 177.2 MB / 0.5263 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01281/4.733, allocations: 2.07 MB / 1.126 GB, free: 177.2 MB / 0.5263 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002066/4.735, allocations: 134.6 kB / 1.126 GB, free: 177.2 MB / 0.5263 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03354/4.768, allocations: 14.82 MB / 1.14 GB, free: 172.6 MB / 0.5263 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.789e-06/4.769, allocations: 11.08 kB / 1.14 GB, free: 172.6 MB / 0.5263 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06492/4.833, allocations: 27.31 MB / 1.167 GB, free: 161.4 MB / 0.5263 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008449/4.842, allocations: 2.306 MB / 1.169 GB, free: 160.8 MB / 0.5263 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004424/4.846, allocations: 129.3 kB / 1.17 GB, free: 160.7 MB / 0.5263 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01126/4.858, allocations: 0.5475 MB / 1.17 GB, free: 160.6 MB / 0.5263 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002735/4.86, allocations: 448.2 kB / 1.17 GB, free: 160.6 MB / 0.5263 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001353/4.862, allocations: 187.9 kB / 1.171 GB, free: 160.5 MB / 0.5263 GB Notification: Performance of sorting global known variables: time 0.01698/4.879, allocations: 6.954 MB / 1.177 GB, free: 158.3 MB / 0.5263 GB Notification: Performance of sort global known variables: time 1.162e-06/4.879, allocations: 0 / 1.177 GB, free: 158.3 MB / 0.5263 GB Notification: Performance of remove unused functions: time 0.02091/4.9, allocations: 3.476 MB / 1.181 GB, free: 157.9 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.002565/4.902, allocations: 324.8 kB / 1.181 GB, free: 157.7 MB / 0.5263 GB Notification: Performance of simCode: created initialization part: time 0.0463/4.949, allocations: 19.91 MB / 1.201 GB, free: 148.7 MB / 0.5263 GB Notification: Performance of simCode: created event and clocks part: time 1.194e-05/4.949, allocations: 0 / 1.201 GB, free: 148.7 MB / 0.5263 GB Notification: Performance of simCode: created simulation system equations: time 0.02012/4.969, allocations: 7.862 MB / 1.208 GB, free: 141.8 MB / 0.5263 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01064/4.98, allocations: 1.263 MB / 1.21 GB, free: 140.7 MB / 0.5263 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09766/5.077, allocations: 42.72 MB / 1.251 GB, free: 100.9 MB / 0.5263 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02502/5.102, allocations: 10.59 MB / 1.262 GB, free: 90.31 MB / 0.5263 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008304/5.111, allocations: 0.8704 MB / 1.262 GB, free: 89.44 MB / 0.5263 GB Notification: Performance of SimCode: time 2.454e-06/5.111, allocations: 4 kB / 1.262 GB, free: 89.44 MB / 0.5263 GB Notification: Performance of Templates: time 1.234/6.345, allocations: 322.1 MB / 1.577 GB, free: 135 MB / 0.5263 GB