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_trunk_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2") Notification: Performance of loadModel(ModelicaTest): time 2.352/2.352, allocations: 269 MB / 284.1 MB, free: 3.641 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.121e-05/3.135e-05, allocations: 8 kB / 349 MB, free: 10.77 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1265/0.1266, allocations: 61.89 MB / 410.9 MB, free: 12.88 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2): time 0.5797/0.7063, allocations: 126.4 MB / 0.5247 GB, free: 9.02 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.07878/0.7851, allocations: 25.67 MB / 0.5498 GB, free: 15.27 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.03099/0.8162, allocations: 0.6741 MB / 0.5505 GB, free: 14.59 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.02492/0.8412, allocations: 6.809 MB / 0.5571 GB, free: 7.75 MB / 474.7 MB Notification: Performance of NFTyping.typeBindings: time 0.07026/0.9115, allocations: 18.04 MB / 0.5747 GB, free: 5.668 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01005/0.9216, allocations: 1.358 MB / 0.576 GB, free: 4.309 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.6951/1.617, allocations: 95.17 MB / 0.669 GB, free: 29.61 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02319/1.64, allocations: 12.79 MB / 0.6815 GB, free: 20.5 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006572/1.647, allocations: 2.762 MB / 0.6842 GB, free: 18.63 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008295/1.655, allocations: 4.23 MB / 0.6883 GB, free: 15.52 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0053/1.66, allocations: 1.058 MB / 0.6893 GB, free: 14.64 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 0.003377/1.664, allocations: 344 kB / 0.6897 GB, free: 14.3 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.007506/1.671, allocations: 5.173 MB / 0.6947 GB, free: 10.55 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.004459/1.676, allocations: 0.8477 MB / 0.6955 GB, free: 9.699 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.02583/1.702, allocations: 18.82 MB / 0.7139 GB, free: 9.34 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/1.702, allocations: 0 / 0.7139 GB, free: 9.34 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.617e-06/1.702, allocations: 0 / 0.7139 GB, free: 9.34 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0008833/1.703, allocations: 0 / 0.7139 GB, free: 9.34 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5288 * Number of variables: 5288 Notification: Performance of Generate backend data structure: time 0.0532/1.756, allocations: 12.66 MB / 0.7263 GB, free: 13.7 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.923e-05/1.756, allocations: 8.031 kB / 0.7263 GB, free: 13.7 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2735/2.03, allocations: 28.53 MB / 0.7542 GB, free: 2.828 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03104/2.061, allocations: 9.112 MB / 0.7631 GB, free: 12.41 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001182/2.062, allocations: 0.7723 MB / 0.7638 GB, free: 11.98 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006507/2.068, allocations: 1.07 MB / 0.7649 GB, free: 11.28 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1026/2.171, allocations: 36.02 MB / 0.8 GB, free: 416 kB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007454/2.172, allocations: 112.9 kB / 0.8001 GB, free: 356 kB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005225/2.177, allocations: 484.1 kB / 0.8006 GB, free: 228 kB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.02252/2.2, allocations: 7.558 MB / 0.808 GB, free: 9.992 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.104/2.304, allocations: 32.38 MB / 0.8396 GB, free: 1.141 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.02/3.323, allocations: 127.9 MB / 0.9645 GB, free: 154.6 MB / 0.6199 GB Notification: Performance of preOpt comSubExp (simulation): time 0.05491/3.378, allocations: 15.35 MB / 0.9795 GB, free: 138.9 MB / 0.6199 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09043/3.469, allocations: 34.74 MB / 1.013 GB, free: 104.3 MB / 0.6199 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.748e-05/3.469, allocations: 110.9 kB / 1.014 GB, free: 104.1 MB / 0.6199 GB Notification: Performance of pre-optimization done (n=705): time 1.36e-05/3.469, allocations: 3.984 kB / 1.014 GB, free: 104.1 MB / 0.6199 GB Notification: Performance of matching and sorting (n=787): time 0.3699/3.839, allocations: 82.42 MB / 1.094 GB, free: 21.58 MB / 0.6199 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001359/3.839, allocations: 304.3 kB / 1.094 GB, free: 21.22 MB / 0.6199 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02306/3.862, allocations: 9.742 MB / 1.104 GB, free: 11.51 MB / 0.6199 GB Notification: Performance of collectPreVariables (initialization): time 0.001867/3.864, allocations: 132.4 kB / 1.104 GB, free: 11.38 MB / 0.6199 GB Notification: Performance of collectInitialEqns (initialization): time 0.007221/3.871, allocations: 9.22 MB / 1.113 GB, free: 2.152 MB / 0.6199 GB Notification: Performance of collectInitialBindings (initialization): time 0.7236/4.595, allocations: 2.844 MB / 1.116 GB, free: 237.9 MB / 0.62 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003795/4.599, allocations: 347.7 kB / 1.116 GB, free: 237.9 MB / 0.62 GB Notification: Performance of setup shared object (initialization): time 0.002603/4.602, allocations: 1.079 MB / 1.117 GB, free: 237.5 MB / 0.62 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0248/4.626, allocations: 8.113 MB / 1.125 GB, free: 237.1 MB / 0.62 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03222/4.659, allocations: 17.39 MB / 1.142 GB, free: 222.1 MB / 0.62 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02906/4.688, allocations: 11.85 MB / 1.154 GB, free: 217.6 MB / 0.62 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0007194/4.689, allocations: 93.53 kB / 1.154 GB, free: 217.6 MB / 0.62 GB Notification: Performance of matching and sorting (n=2322) (initialization): time 0.07872/4.767, allocations: 27.04 MB / 1.18 GB, free: 207.1 MB / 0.62 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004559/4.768, allocations: 142.5 kB / 1.18 GB, free: 207 MB / 0.62 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006518/4.769, allocations: 324 kB / 1.181 GB, free: 206.6 MB / 0.62 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01309/4.782, allocations: 2.714 MB / 1.183 GB, free: 204.6 MB / 0.62 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03774/4.819, allocations: 4.16 MB / 1.187 GB, free: 201 MB / 0.62 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04412/4.864, allocations: 16.2 MB / 1.203 GB, free: 186.9 MB / 0.62 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.04138/4.905, allocations: 1.082 MB / 1.204 GB, free: 186.1 MB / 0.62 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004572/4.91, allocations: 0.9648 MB / 1.205 GB, free: 185.1 MB / 0.62 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1469 * Number of states: 0 () * Number of discrete variables: 97 (torque2.torqueArrow.arrowLine.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,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.groundColor[3],world.groundColor[2],world.groundColor[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 (2126): * Single equations (assignments): 2109 * 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.01865/4.928, allocations: 6.908 MB / 1.212 GB, free: 179.3 MB / 0.62 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003259/4.932, allocations: 0.9834 MB / 1.213 GB, free: 178.8 MB / 0.62 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04738/4.979, allocations: 15.75 MB / 1.228 GB, free: 164.9 MB / 0.62 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002772/4.979, allocations: 162.7 kB / 1.228 GB, free: 164.7 MB / 0.62 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.591e-05/4.98, allocations: 19.98 kB / 1.228 GB, free: 164.7 MB / 0.62 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001597/4.98, allocations: 31.88 kB / 1.228 GB, free: 164.7 MB / 0.62 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1192/5.099, allocations: 34.29 MB / 1.262 GB, free: 130.3 MB / 0.62 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001017/5.099, allocations: 8 kB / 1.262 GB, free: 130.3 MB / 0.62 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01307/5.112, allocations: 1.35 MB / 1.263 GB, free: 129 MB / 0.62 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01131/5.124, allocations: 2.068 MB / 1.265 GB, free: 126.9 MB / 0.62 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001925/5.126, allocations: 130.6 kB / 1.265 GB, free: 126.8 MB / 0.62 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0306/5.156, allocations: 14.79 MB / 1.28 GB, free: 111.8 MB / 0.62 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.177e-06/5.156, allocations: 11.94 kB / 1.28 GB, free: 111.8 MB / 0.62 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06068/5.217, allocations: 26.25 MB / 1.305 GB, free: 85.38 MB / 0.62 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003065/5.22, allocations: 1.004 MB / 1.306 GB, free: 84.34 MB / 0.62 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004489/5.225, allocations: 122.1 kB / 1.307 GB, free: 84.22 MB / 0.62 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01062/5.235, allocations: 0.5247 MB / 1.307 GB, free: 83.7 MB / 0.62 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002423/5.238, allocations: 413.7 kB / 1.307 GB, free: 83.29 MB / 0.62 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001397/5.239, allocations: 185.8 kB / 1.308 GB, free: 83.11 MB / 0.62 GB Notification: Performance of sorting global known variables: time 0.01584/5.255, allocations: 6.801 MB / 1.314 GB, free: 76.34 MB / 0.62 GB Notification: Performance of sort global known variables: time 1.042e-06/5.255, allocations: 0 / 1.314 GB, free: 76.34 MB / 0.62 GB Notification: Performance of remove unused functions: time 0.02001/5.275, allocations: 3.38 MB / 1.318 GB, free: 72.98 MB / 0.62 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 (611): * Single equations (assignments): 594 * 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.002368/5.277, allocations: 322 kB / 1.318 GB, free: 72.66 MB / 0.62 GB Notification: Performance of simCode: created initialization part: time 0.04464/5.322, allocations: 19.27 MB / 1.337 GB, free: 53.4 MB / 0.62 GB Notification: Performance of simCode: created event and clocks part: time 1.414e-05/5.322, allocations: 3.938 kB / 1.337 GB, free: 53.39 MB / 0.62 GB Notification: Performance of simCode: created simulation system equations: time 0.01895/5.341, allocations: 7.54 MB / 1.344 GB, free: 45.82 MB / 0.62 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009998/5.351, allocations: 1.252 MB / 1.345 GB, free: 44.57 MB / 0.62 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.504/5.855, allocations: 41.45 MB / 1.386 GB, free: 208.4 MB / 0.62 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02577/5.881, allocations: 10.3 MB / 1.396 GB, free: 206.3 MB / 0.62 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008503/5.89, allocations: 0.835 MB / 1.397 GB, free: 206.2 MB / 0.62 GB Notification: Performance of SimCode: time 1.643e-06/5.89, allocations: 4 kB / 1.397 GB, free: 206.2 MB / 0.62 GB Notification: Performance of Templates: time 1.027/6.917, allocations: 312.9 MB / 1.702 GB, free: 111.9 MB / 0.62 GB