Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Joints.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.GearConstraint") Notification: Performance of loadModel(ModelicaTest): time 1.908/1.908, allocations: 209.4 MB / 217.3 MB, free: 4.156 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.228e-05/2.235e-05, allocations: 4 kB / 271.3 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3319/0.3319, allocations: 48.68 MB / 320 MB, free: 14.31 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1436/0.4756, allocations: 96.09 MB / 416.1 MB, free: 248 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002375/0.4759, allocations: 75.95 kB / 416.2 MB, free: 172 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7468/1.223, allocations: 160 MB / 0.5627 GB, free: 12.33 MB / 394.7 MB Notification: Performance of FrontEnd: time 5.416e-06/1.223, allocations: 0 / 0.5627 GB, free: 12.33 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004277/1.223, allocations: 163.9 kB / 0.5628 GB, free: 12.17 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3108 * Number of variables: 3108 Notification: Performance of Generate backend data structure: time 0.02407/1.247, allocations: 7.5 MB / 0.5701 GB, free: 4.582 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.298e-05/1.247, allocations: 12.03 kB / 0.5701 GB, free: 4.57 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05412/1.301, allocations: 10.05 MB / 0.58 GB, free: 10.49 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0258/1.327, allocations: 8.401 MB / 0.5882 GB, free: 1.996 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005616/1.328, allocations: 272 kB / 0.5884 GB, free: 1.73 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003726/1.332, allocations: 491.9 kB / 0.5889 GB, free: 1.25 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.5216/1.853, allocations: 13.1 MB / 0.6017 GB, free: 58.73 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04126/1.895, allocations: 18.78 MB / 0.62 GB, free: 54.8 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004463/1.895, allocations: 96.3 kB / 0.6201 GB, free: 54.8 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003159/1.898, allocations: 43.34 kB / 0.6202 GB, free: 54.8 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003404/1.902, allocations: 2.094 MB / 0.6222 GB, free: 54.79 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1065/2.008, allocations: 80.94 MB / 0.7012 GB, free: 3.426 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01254/2.021, allocations: 8.078 MB / 0.7091 GB, free: 13.88 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009234/2.03, allocations: 4.989 MB / 0.714 GB, free: 9.27 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002832/2.03, allocations: 67.28 kB / 0.7141 GB, free: 9.219 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.81e-05/2.03, allocations: 80.28 kB / 0.7141 GB, free: 9.137 MB / 426.8 MB Notification: Performance of pre-optimization done (n=452): time 1.02e-05/2.031, allocations: 0 / 0.7141 GB, free: 9.137 MB / 426.8 MB Notification: Performance of matching and sorting (n=499): time 0.1015/2.132, allocations: 36.52 MB / 0.7498 GB, free: 9.145 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001717/2.132, allocations: 233.8 kB / 0.75 GB, free: 8.875 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01147/2.144, allocations: 5.142 MB / 0.7551 GB, free: 4.414 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008196/2.145, allocations: 29.64 kB / 0.7551 GB, free: 4.379 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.2666/2.411, allocations: 5.712 MB / 0.7607 GB, free: 101 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002396/2.414, allocations: 1.767 MB / 0.7624 GB, free: 100.7 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000941/2.415, allocations: 0.5938 kB / 0.7624 GB, free: 100.7 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.0008754/2.416, allocations: 0.8255 MB / 0.7632 GB, free: 100.4 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009488/2.425, allocations: 4.649 MB / 0.7677 GB, free: 100.3 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01271/2.438, allocations: 11.14 MB / 0.7786 GB, free: 91.98 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01298/2.451, allocations: 7.239 MB / 0.7857 GB, free: 91.92 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001906/2.451, allocations: 65.97 kB / 0.7857 GB, free: 91.92 MB / 458.8 MB Notification: Performance of matching and sorting (n=1556) (initialization): time 0.03675/2.488, allocations: 15.67 MB / 0.8011 GB, free: 90.89 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001657/2.488, allocations: 103 kB / 0.8012 GB, free: 90.89 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002522/2.488, allocations: 230.7 kB / 0.8014 GB, free: 90.89 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006054/2.494, allocations: 1.709 MB / 0.803 GB, free: 90.86 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0116/2.506, allocations: 2.727 MB / 0.8057 GB, free: 90.63 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01837/2.524, allocations: 13.18 MB / 0.8186 GB, free: 85.37 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01054/2.535, allocations: 468 kB / 0.819 GB, free: 85.36 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002375/2.537, allocations: 0.6637 MB / 0.8197 GB, free: 85.27 MB / 458.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1047 * Number of states: 0 () * Number of discrete variables: 48 (fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame2.color_x[3],fixedFrame2.color_x[2],fixedFrame2.color_x[1],fixed.color[3],fixed.color[2],fixed.color[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.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],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],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]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1432): * Single equations (assignments): 1419 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 42,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002299/2.54, allocations: 0.6878 MB / 0.8203 GB, free: 84.8 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001229/2.541, allocations: 0.5868 MB / 0.8209 GB, free: 84.48 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01945/2.56, allocations: 9.131 MB / 0.8298 GB, free: 81.23 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000148/2.561, allocations: 96.08 kB / 0.8299 GB, free: 81.22 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.838e-05/2.561, allocations: 14.06 kB / 0.8299 GB, free: 81.22 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.221e-05/2.561, allocations: 22.98 kB / 0.83 GB, free: 81.22 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04473/2.605, allocations: 19.7 MB / 0.8492 GB, free: 71.59 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.736e-05/2.606, allocations: 12 kB / 0.8492 GB, free: 71.57 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004614/2.61, allocations: 0.7965 MB / 0.85 GB, free: 70.94 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004861/2.615, allocations: 1.339 MB / 0.8513 GB, free: 69.97 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007807/2.616, allocations: 27.75 kB / 0.8513 GB, free: 69.95 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01549/2.631, allocations: 12.12 MB / 0.8632 GB, free: 58.54 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.47e-05/2.632, allocations: 15.94 kB / 0.8632 GB, free: 58.53 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02533/2.657, allocations: 16.59 MB / 0.8794 GB, free: 43.02 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003668/2.661, allocations: 1.337 MB / 0.8807 GB, free: 41.77 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001115/2.662, allocations: 19.52 kB / 0.8807 GB, free: 41.75 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003759/2.665, allocations: 236.8 kB / 0.8809 GB, free: 41.62 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009151/2.666, allocations: 305 kB / 0.8812 GB, free: 41.42 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004544/2.667, allocations: 134.2 kB / 0.8813 GB, free: 41.3 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.005921/2.673, allocations: 3.416 MB / 0.8847 GB, free: 38.35 MB / 458.8 MB Notification: Performance of sort global known variables: time 1.167e-06/2.673, allocations: 3.938 kB / 0.8847 GB, free: 38.34 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.01164/2.685, allocations: 1.746 MB / 0.8864 GB, free: 36.6 MB / 458.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 50 * Number of states: 4 (gearConstraint.actuatedRevolute_b.phi,gearConstraint.actuatedRevolute_b.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 (383): * Single equations (assignments): 370 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 39,(1,100.0%) 2,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008535/2.685, allocations: 181.2 kB / 0.8866 GB, free: 36.42 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.01923/2.705, allocations: 11.44 MB / 0.8977 GB, free: 25.95 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 1.318e-05/2.705, allocations: 4 kB / 0.8977 GB, free: 25.95 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.007927/2.713, allocations: 4.668 MB / 0.9023 GB, free: 21.67 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003536/2.716, allocations: 0.5405 MB / 0.9028 GB, free: 21.2 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03901/2.755, allocations: 18.06 MB / 0.9205 GB, free: 4.98 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3218/3.077, allocations: 6.363 MB / 0.9267 GB, free: 88.02 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003133/3.08, allocations: 0.5224 MB / 0.9272 GB, free: 88.01 MB / 458.8 MB Notification: Performance of SimCode: time 2.783e-06/3.08, allocations: 0 / 0.9272 GB, free: 88.01 MB / 458.8 MB Notification: Performance of Templates: time 0.6163/3.697, allocations: 253.6 MB / 1.175 GB, free: 91.63 MB / 490.8 MB