Running command: translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint4,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion1.phi.1.|freeMotion1.phi.2.|freeMotion1.phi.3.|freeMotion1.phi_d.1.|freeMotion1.phi_d.2.|freeMotion1.phi_d.3.|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.|freeMotion2.phi.1.|freeMotion2.phi.2.|freeMotion2.phi.3.|freeMotion2.phi_d.1.|freeMotion2.phi_d.2.|freeMotion2.phi_d.3.|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.|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint4") Notification: Performance of loadModel(ModelicaTest): time 2.372/2.372, allocations: 249.5 MB / 261.6 MB, free: 2.164 MB / 202.8 MB Notification: Performance of FrontEnd - loaded program: time 3.441e-05/3.45e-05, allocations: 6.656 kB / 323.4 MB, free: 4.305 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3175/0.3176, allocations: 58.83 MB / 382.2 MB, free: 10.33 MB / 314.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2047/0.5223, allocations: 125.6 MB / 0.4959 GB, free: 14.9 MB / 442.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005155/0.5229, allocations: 87.95 kB / 0.496 GB, free: 14.81 MB / 442.8 MB Notification: Performance of FrontEnd - DAE generated: time 1.588/2.111, allocations: 277.1 MB / 0.7666 GB, free: 39.36 MB / 0.4949 GB Notification: Performance of FrontEnd: time 3.855e-06/2.111, allocations: 2.531 kB / 0.7666 GB, free: 39.36 MB / 0.4949 GB Notification: Performance of Transformations before backend: time 0.001148/2.112, allocations: 328.6 kB / 0.7669 GB, free: 39.34 MB / 0.4949 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4597 * Number of variables: 4597 Notification: Performance of Generate backend data structure: time 0.0681/2.181, allocations: 16.23 MB / 0.7828 GB, free: 34.23 MB / 0.4949 GB Notification: Performance of prepare preOptimizeDAE: time 4.564e-05/2.181, allocations: 10.38 kB / 0.7828 GB, free: 34.23 MB / 0.4949 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09045/2.271, allocations: 17.03 MB / 0.7994 GB, free: 33.23 MB / 0.4949 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06186/2.333, allocations: 22.35 MB / 0.8212 GB, free: 31.21 MB / 0.4949 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001164/2.334, allocations: 1.078 MB / 0.8223 GB, free: 31.18 MB / 0.4949 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005821/2.34, allocations: 1.477 MB / 0.8237 GB, free: 31.15 MB / 0.4949 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08682/2.427, allocations: 30.84 MB / 0.8538 GB, free: 19.68 MB / 0.4949 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001058/2.428, allocations: 180.8 kB / 0.854 GB, free: 19.57 MB / 0.4949 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005135/2.433, allocations: 0.6468 MB / 0.8547 GB, free: 18.98 MB / 0.4949 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004742/2.438, allocations: 2.554 MB / 0.8571 GB, free: 16.85 MB / 0.4949 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.09533/2.533, allocations: 25.87 MB / 0.8824 GB, free: 0 / 0.4949 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5888/3.122, allocations: 134.1 MB / 1.013 GB, free: 31.3 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.06244/3.185, allocations: 15.36 MB / 1.028 GB, free: 31.17 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01668/3.201, allocations: 10.03 MB / 1.038 GB, free: 31.12 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003794/3.205, allocations: 2.123 MB / 1.04 GB, free: 29.41 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001148/3.205, allocations: 103.6 kB / 1.04 GB, free: 29.36 MB / 0.573 GB Notification: Performance of pre-optimization done (n=614): time 1.366e-05/3.205, allocations: 0 / 1.04 GB, free: 29.36 MB / 0.573 GB Notification: Performance of matching and sorting (n=821): time 0.474/3.679, allocations: 105.4 MB / 1.143 GB, free: 2.652 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002603/3.68, allocations: 343.2 kB / 1.144 GB, free: 2.258 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.4311/4.111, allocations: 11.52 MB / 1.155 GB, free: 120.6 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.002/4.113, allocations: 157.5 kB / 1.155 GB, free: 120.6 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.008475/4.121, allocations: 9.145 MB / 1.164 GB, free: 118.3 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.004473/4.126, allocations: 2.949 MB / 1.167 GB, free: 116.5 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002795/4.129, allocations: 312.5 kB / 1.167 GB, free: 116.5 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.001909/4.131, allocations: 0.9447 MB / 1.168 GB, free: 116.1 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01932/4.15, allocations: 9.035 MB / 1.177 GB, free: 116.1 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02344/4.174, allocations: 16.2 MB / 1.193 GB, free: 107.1 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02324/4.197, allocations: 12.05 MB / 1.204 GB, free: 107 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002814/4.197, allocations: 71.94 kB / 1.204 GB, free: 107 MB / 0.5886 GB Notification: Performance of matching and sorting (n=1987) (initialization): time 0.08951/4.287, allocations: 33.82 MB / 1.238 GB, free: 103.2 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002211/4.287, allocations: 114.6 kB / 1.238 GB, free: 103.2 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003335/4.287, allocations: 246.4 kB / 1.238 GB, free: 103.2 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04026/4.328, allocations: 10.47 MB / 1.248 GB, free: 101.3 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01787/4.346, allocations: 3.494 MB / 1.251 GB, free: 101 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1029/4.448, allocations: 52.04 MB / 1.302 GB, free: 71.91 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01812/4.467, allocations: 1.036 MB / 1.303 GB, free: 71.11 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003866/4.471, allocations: 0.8568 MB / 1.304 GB, free: 70.32 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1128 * Number of states: 0 () * Number of discrete variables: 150 (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.arrowColor[3],absoluteSensor_1D.arrowColor[2],absoluteSensor_1D.arrowColor[1],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.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.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.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 (1737): * Single equations (assignments): 1729 * 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,(11,73.6%) 121} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006104/4.477, allocations: 1.243 MB / 1.305 GB, free: 69.09 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00356/4.48, allocations: 1.157 MB / 1.307 GB, free: 67.92 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07121/4.551, allocations: 28.23 MB / 1.334 GB, free: 45.8 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001099/4.552, allocations: 80 kB / 1.334 GB, free: 45.72 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.499e-05/4.552, allocations: 43.84 kB / 1.334 GB, free: 45.68 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001591/4.552, allocations: 40.22 kB / 1.334 GB, free: 45.68 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5053/5.057, allocations: 54.28 MB / 1.387 GB, free: 101.2 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001024/5.057, allocations: 3.281 kB / 1.387 GB, free: 101.2 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009613/5.067, allocations: 1.313 MB / 1.389 GB, free: 101.2 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03761/5.105, allocations: 9.296 MB / 1.398 GB, free: 101.2 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002164/5.107, allocations: 159 kB / 1.398 GB, free: 101.2 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0992/5.206, allocations: 48.97 MB / 1.446 GB, free: 95.34 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.204e-06/5.206, allocations: 7.578 kB / 1.446 GB, free: 95.34 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.08959/5.296, allocations: 38.66 MB / 1.483 GB, free: 80.83 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009821/5.306, allocations: 2.735 MB / 1.486 GB, free: 80.05 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004717/5.31, allocations: 159.7 kB / 1.486 GB, free: 79.94 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01137/5.322, allocations: 0.5702 MB / 1.487 GB, free: 79.84 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00329/5.325, allocations: 0.5436 MB / 1.487 GB, free: 79.76 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001944/5.327, allocations: 206.6 kB / 1.487 GB, free: 79.71 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.01786/5.345, allocations: 7.191 MB / 1.494 GB, free: 75.05 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.009e-06/5.345, allocations: 1.312 kB / 1.494 GB, free: 75.05 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.02158/5.367, allocations: 4.027 MB / 1.498 GB, free: 71.04 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * 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 (620): * Single equations (assignments): 614 * 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.002523/5.369, allocations: 389.5 kB / 1.499 GB, free: 70.75 MB / 0.5886 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/Mechanics/MultiBody/Joints.mo:1583:5-1585:43: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 3.2.3/Mechanics/MultiBody/Joints.mo:1583:5-1585:43: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 3.2.3/Mechanics/MultiBody/Joints.mo:1583:5-1585:43:writable] Warning: Variable freeMotion2.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 3.2.3/Mechanics/MultiBody/Joints.mo:1583:5-1585:43:writable] Warning: Variable freeMotion2.phi_d[1] has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. Notification: Performance of simCode: created initialization part: time 0.04726/5.416, allocations: 23.21 MB / 1.521 GB, free: 50.59 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.082e-05/5.417, allocations: 0 / 1.521 GB, free: 50.59 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.02391/5.44, allocations: 10.86 MB / 1.532 GB, free: 40.98 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01228/5.453, allocations: 1.81 MB / 1.534 GB, free: 39.54 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07844/5.531, allocations: 32.59 MB / 1.566 GB, free: 11.19 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3844/5.916, allocations: 10.43 MB / 1.576 GB, free: 99.17 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.02035/5.936, allocations: 4.87 MB / 1.581 GB, free: 99.06 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005513/5.942, allocations: 0.7909 MB / 1.581 GB, free: 99.06 MB / 0.5886 GB Notification: Performance of SimCode: time 1.73e-06/5.942, allocations: 0 / 1.581 GB, free: 99.06 MB / 0.5886 GB Notification: Performance of Templates: time 0.4595/6.401, allocations: 183.4 MB / 1.76 GB, free: 14.21 MB / 0.5886 GB