Running command: translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint4") Notification: Performance of loadModel(ModelicaTest): time 2.25/2.25, allocations: 270 MB / 282.7 MB, free: 1.852 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.027e-05/3.04e-05, allocations: 4 kB / 347 MB, free: 3.23 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3181/0.3181, allocations: 61.86 MB / 408.8 MB, free: 10.8 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4584/0.7766, allocations: 126.3 MB / 0.5226 GB, free: 108.5 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002515/0.7769, allocations: 82.3 kB / 0.5227 GB, free: 108.5 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.141/1.918, allocations: 262.1 MB / 0.7786 GB, free: 45.88 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.581e-06/1.918, allocations: 3.562 kB / 0.7786 GB, free: 45.88 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.001079/1.919, allocations: 305 kB / 0.7789 GB, free: 45.87 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4241 * Number of variables: 4241 Notification: Performance of Generate backend data structure: time 0.06063/1.98, allocations: 15.56 MB / 0.7941 GB, free: 40.98 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.196e-05/1.98, allocations: 9.75 kB / 0.7941 GB, free: 40.98 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09053/2.07, allocations: 16.86 MB / 0.8106 GB, free: 40.02 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05466/2.125, allocations: 20.71 MB / 0.8308 GB, free: 38.05 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008932/2.126, allocations: 1.008 MB / 0.8318 GB, free: 38.02 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00471/2.131, allocations: 1.392 MB / 0.8332 GB, free: 38 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07232/2.203, allocations: 28.91 MB / 0.8614 GB, free: 18.97 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007389/2.204, allocations: 172.3 kB / 0.8616 GB, free: 18.87 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002967/2.207, allocations: 0.6099 MB / 0.8622 GB, free: 18.31 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003675/2.21, allocations: 2.302 MB / 0.8644 GB, free: 16.38 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07851/2.289, allocations: 23.65 MB / 0.8875 GB, free: 0 / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5589/2.848, allocations: 127.3 MB / 1.012 GB, free: 42.95 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.05787/2.906, allocations: 14.58 MB / 1.026 GB, free: 42.86 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01503/2.921, allocations: 9.519 MB / 1.035 GB, free: 42.81 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003077/2.924, allocations: 2.113 MB / 1.037 GB, free: 41.1 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.572e-05/2.924, allocations: 92.05 kB / 1.038 GB, free: 41.05 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=541): time 1.273e-05/2.924, allocations: 0 / 1.038 GB, free: 41.05 MB / 0.5886 GB Notification: Performance of matching and sorting (n=744): time 0.4387/3.363, allocations: 99.45 MB / 1.135 GB, free: 14.74 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002557/3.363, allocations: 342.2 kB / 1.135 GB, free: 14.35 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01942/3.382, allocations: 9.505 MB / 1.144 GB, free: 6.098 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0016/3.384, allocations: 144.7 kB / 1.144 GB, free: 5.953 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.4/3.784, allocations: 7.936 MB / 1.152 GB, free: 128.2 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.004296/3.788, allocations: 2.689 MB / 1.155 GB, free: 128 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001924/3.79, allocations: 286.1 kB / 1.155 GB, free: 128 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.001017/3.791, allocations: 0.9006 MB / 1.156 GB, free: 127.6 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01669/3.808, allocations: 8.366 MB / 1.164 GB, free: 127.6 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02089/3.829, allocations: 15.03 MB / 1.179 GB, free: 119.2 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02099/3.85, allocations: 11.16 MB / 1.19 GB, free: 119.1 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002141/3.85, allocations: 64.41 kB / 1.19 GB, free: 119.1 MB / 0.6042 GB Notification: Performance of matching and sorting (n=1825) (initialization): time 0.08181/3.932, allocations: 31.4 MB / 1.22 GB, free: 118.4 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001931/3.932, allocations: 103.7 kB / 1.22 GB, free: 118.4 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002704/3.933, allocations: 230.3 kB / 1.221 GB, free: 118.4 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03857/3.971, allocations: 10.43 MB / 1.231 GB, free: 117.5 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01594/3.987, allocations: 3.169 MB / 1.234 GB, free: 117.3 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1004/4.088, allocations: 52 MB / 1.285 GB, free: 91.1 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01523/4.103, allocations: 0.9462 MB / 1.286 GB, free: 90.36 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002377/4.105, allocations: 0.7962 MB / 1.286 GB, free: 89.63 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1051 * Number of states: 0 () * Number of discrete variables: 160 (cyl4.color[3],cyl4.color[2],cyl4.color[1],cyl4.body.sphereColor[3],cyl4.body.sphereColor[2],cyl4.body.sphereColor[1],cyl3.color[3],cyl3.color[2],cyl3.color[1],cyl3.body.sphereColor[3],cyl3.body.sphereColor[2],cyl3.body.sphereColor[1],absoluteSensor_1D.arrow.arrowLine.twoHeadedArrow,absoluteSensor_1D.arrow.headAtOrigin,absoluteSensor_1D.arrowColor[3],absoluteSensor_1D.arrowColor[2],absoluteSensor_1D.arrowColor[1],absoluteSensor_MBS.arrow.arrowLine.twoHeadedArrow,absoluteSensor_MBS.arrow.headAtOrigin,absoluteSensor_MBS.arrowColor[3],absoluteSensor_MBS.arrowColor[2],absoluteSensor_MBS.arrowColor[1],inertia2.cylinderColor[3],inertia2.cylinderColor[2],inertia2.cylinderColor[1],inertia1.cylinderColor[3],inertia1.cylinderColor[2],inertia1.cylinderColor[1],fixedTranslation8.color[3],fixedTranslation8.color[2],fixedTranslation8.color[1],torque3.connectionLineColor[3],torque3.connectionLineColor[2],torque3.connectionLineColor[1],torque3.torqueArrow.arrowLine.twoHeadedArrow,torque3.torqueArrow.headAtOrigin,torque3.torqueColor[3],torque3.torqueColor[2],torque3.torqueColor[1],fixedTranslation7.color[3],fixedTranslation7.color[2],fixedTranslation7.color[1],bodyShape2.color[3],bodyShape2.color[2],bodyShape2.color[1],bodyShape2.body.sphereColor[3],bodyShape2.body.sphereColor[2],bodyShape2.body.sphereColor[1],bodyShape2.frameTranslation.color[3],bodyShape2.frameTranslation.color[2],bodyShape2.frameTranslation.color[1],fixedRotation2.color[3],fixedRotation2.color[2],fixedRotation2.color[1],fixedTranslation5.color[3],fixedTranslation5.color[2],fixedTranslation5.color[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],bodyBox3.color[3],bodyBox3.color[2],bodyBox3.color[1],bodyBox3.body.sphereColor[3],bodyBox3.body.sphereColor[2],bodyBox3.body.sphereColor[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],freeMotion2.arrowColor[3],freeMotion2.arrowColor[2],freeMotion2.arrowColor[1],fixedTranslation4.color[3],fixedTranslation4.color[2],fixedTranslation4.color[1],torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueArrow.arrowLine.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque2.torqueColor[3],torque2.torqueColor[2],torque2.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],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],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],bodyShape1.color[3],bodyShape1.color[2],bodyShape1.color[1],bodyShape1.body.sphereColor[3],bodyShape1.body.sphereColor[2],bodyShape1.body.sphereColor[1],bodyShape1.frameTranslation.color[3],bodyShape1.frameTranslation.color[2],bodyShape1.frameTranslation.color[1],fixedRotation1.color[3],fixedRotation1.color[2],fixedRotation1.color[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],freeMotion1.arrowColor[3],freeMotion1.arrowColor[2],freeMotion1.arrowColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1575): * Single equations (assignments): 1567 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 4 {(2,100.0%),(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(10,78.0%) 102,(10,90.0%) 122} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003135/4.109, allocations: 1.166 MB / 1.288 GB, free: 88.58 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002475/4.111, allocations: 1.103 MB / 1.289 GB, free: 87.46 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05819/4.169, allocations: 25.66 MB / 1.314 GB, free: 67.42 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.97e-05/4.169, allocations: 72 kB / 1.314 GB, free: 67.35 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.447e-05/4.169, allocations: 44 kB / 1.314 GB, free: 67.31 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000133/4.17, allocations: 38.48 kB / 1.314 GB, free: 67.31 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4852/4.655, allocations: 51.36 MB / 1.364 GB, free: 105.7 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.249e-05/4.655, allocations: 6.719 kB / 1.364 GB, free: 105.7 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007752/4.663, allocations: 1.163 MB / 1.365 GB, free: 105.7 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0387/4.701, allocations: 9.29 MB / 1.374 GB, free: 105.6 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001833/4.703, allocations: 152 kB / 1.374 GB, free: 105.6 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.09561/4.799, allocations: 48.93 MB / 1.422 GB, free: 102.8 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.084e-06/4.799, allocations: 2.656 kB / 1.422 GB, free: 102.8 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0812/4.88, allocations: 36.08 MB / 1.457 GB, free: 93.23 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003255/4.884, allocations: 1.061 MB / 1.458 GB, free: 93.07 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003591/4.887, allocations: 144.5 kB / 1.459 GB, free: 92.98 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009164/4.896, allocations: 0.5296 MB / 1.459 GB, free: 92.88 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002539/4.899, allocations: 0.4931 MB / 1.46 GB, free: 92.81 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009986/4.9, allocations: 180.7 kB / 1.46 GB, free: 92.76 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.01504/4.915, allocations: 6.853 MB / 1.466 GB, free: 90.45 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.094e-06/4.915, allocations: 0 / 1.466 GB, free: 90.45 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0179/4.933, allocations: 3.784 MB / 1.47 GB, free: 90.08 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 32 (freeMotion1.r_rel_a[1],freeMotion1.r_rel_a[2],freeMotion1.r_rel_a[3],freeMotion1.v_rel_a[1],freeMotion1.v_rel_a[2],freeMotion1.v_rel_a[3],freeMotion1.phi[1],freeMotion1.phi[2],freeMotion1.phi[3],freeMotion1.phi_d[1],freeMotion1.phi_d[2],freeMotion1.phi_d[3],revolute1.phi,revolute1.w,gearConstraint.actuatedRevolute_b.phi,gearConstraint.actuatedRevolute_b.w,freeMotion2.r_rel_a[1],freeMotion2.r_rel_a[2],freeMotion2.r_rel_a[3],freeMotion2.v_rel_a[1],freeMotion2.v_rel_a[2],freeMotion2.v_rel_a[3],freeMotion2.phi[1],freeMotion2.phi[2],freeMotion2.phi[3],freeMotion2.phi_d[1],freeMotion2.phi_d[2],freeMotion2.phi_d[3],revolute2.phi,revolute2.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 (544): * Single equations (assignments): 538 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(9,97.5%) 111,(12,66.0%) 86} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002118/4.935, allocations: 371 kB / 1.471 GB, free: 89.89 MB / 0.6042 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Mechanics/MultiBody/Joints/FreeMotion.mo:92:3-94:41:writable] Warning: Variable freeMotion1.phi_d[1] has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Mechanics/MultiBody/Joints/FreeMotion.mo:92:3-94:41:writable] Warning: Variable freeMotion1.phi_d[2] has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Mechanics/MultiBody/Joints/FreeMotion.mo:92:3-94:41:writable] Warning: Variable freeMotion2.phi_d[1] has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Mechanics/MultiBody/Joints/FreeMotion.mo:92:3-94:41:writable] Warning: Variable freeMotion2.phi_d[2] has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. Notification: Performance of simCode: created initialization part: time 0.04318/4.978, allocations: 21.58 MB / 1.492 GB, free: 82.1 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 6.587e-06/4.978, allocations: 1.469 kB / 1.492 GB, free: 82.1 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.02191/5, allocations: 10.24 MB / 1.502 GB, free: 75.7 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01042/5.011, allocations: 1.794 MB / 1.503 GB, free: 74.29 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06966/5.08, allocations: 32.05 MB / 1.535 GB, free: 46.59 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.021/5.101, allocations: 9.803 MB / 1.544 GB, free: 39.61 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004843/5.106, allocations: 0.8045 MB / 1.545 GB, free: 38.88 MB / 0.6042 GB Notification: Performance of SimCode: time 1.668e-06/5.106, allocations: 2.297 kB / 1.545 GB, free: 38.88 MB / 0.6042 GB Notification: Performance of Templates: time 1.346/6.453, allocations: 458.2 MB / 1.992 GB, free: 38.54 MB / 0.6355 GB