Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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.962/1.962, allocations: 209.2 MB / 225.4 MB, free: 0.5391 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00044/0.0004402, allocations: 12 kB / 283.1 MB, free: 9.684 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.369/0.3694, allocations: 48.7 MB / 331.8 MB, free: 6.484 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1717/0.5412, allocations: 96.84 MB / 428.6 MB, free: 13.55 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002593/0.5415, allocations: 83.95 kB / 428.7 MB, free: 13.47 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8938/1.435, allocations: 164.2 MB / 0.579 GB, free: 16.54 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.615e-06/1.435, allocations: 4 kB / 0.579 GB, free: 16.54 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004868/1.436, allocations: 156 kB / 0.5791 GB, free: 16.38 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.03127/1.467, allocations: 7.995 MB / 0.5869 GB, free: 8.293 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.55e-05/1.467, allocations: 12.03 kB / 0.587 GB, free: 8.281 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07189/1.539, allocations: 10.05 MB / 0.5968 GB, free: 14.21 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03316/1.572, allocations: 8.437 MB / 0.605 GB, free: 5.68 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001016/1.573, allocations: 0.6256 MB / 0.6056 GB, free: 5.051 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005243/1.579, allocations: 0.8199 MB / 0.6064 GB, free: 4.23 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4308/2.01, allocations: 20.59 MB / 0.6265 GB, free: 62.93 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006935/2.01, allocations: 86.53 kB / 0.6266 GB, free: 62.93 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004618/2.015, allocations: 400.4 kB / 0.627 GB, free: 62.93 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004952/2.02, allocations: 2.094 MB / 0.629 GB, free: 62.92 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05423/2.074, allocations: 18.07 MB / 0.6467 GB, free: 62.85 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1427/2.217, allocations: 84.99 MB / 0.7297 GB, free: 10.52 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02683/2.244, allocations: 8.045 MB / 0.7375 GB, free: 7.137 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005437/2.244, allocations: 72.12 kB / 0.7376 GB, free: 7.125 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.662e-05/2.245, allocations: 74.88 kB / 0.7377 GB, free: 7.059 MB / 426.7 MB Notification: Performance of pre-optimization done (n=450): time 9.377e-06/2.245, allocations: 0 / 0.7377 GB, free: 7.059 MB / 426.7 MB Notification: Performance of matching and sorting (n=501): time 0.1803/2.425, allocations: 44.68 MB / 0.7813 GB, free: 8.469 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001712/2.425, allocations: 231 kB / 0.7815 GB, free: 8.199 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01642/2.442, allocations: 6.432 MB / 0.7878 GB, free: 2.832 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001241/2.443, allocations: 93.7 kB / 0.7879 GB, free: 2.734 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.3359/2.779, allocations: 5.505 MB / 0.7933 GB, free: 99.41 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003303/2.782, allocations: 1.816 MB / 0.7951 GB, free: 98.47 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001838/2.784, allocations: 228.2 kB / 0.7953 GB, free: 98.47 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.001333/2.785, allocations: 0.8023 MB / 0.7961 GB, free: 98.14 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01367/2.799, allocations: 4.914 MB / 0.8009 GB, free: 98.11 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01887/2.818, allocations: 11.09 MB / 0.8117 GB, free: 90.34 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01834/2.836, allocations: 7.329 MB / 0.8188 GB, free: 90.28 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000418/2.837, allocations: 65.47 kB / 0.8189 GB, free: 90.28 MB / 458.7 MB Notification: Performance of matching and sorting (n=1486) (initialization): time 0.04717/2.884, allocations: 16.93 MB / 0.8354 GB, free: 88.97 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001891/2.884, allocations: 97.66 kB / 0.8355 GB, free: 88.97 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003564/2.885, allocations: 212.3 kB / 0.8357 GB, free: 88.97 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007623/2.892, allocations: 1.702 MB / 0.8374 GB, free: 88.93 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01672/2.909, allocations: 2.597 MB / 0.8399 GB, free: 88.72 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02434/2.933, allocations: 14.36 MB / 0.854 GB, free: 80.14 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0123/2.946, allocations: 0.6623 MB / 0.8546 GB, free: 79.94 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00271/2.949, allocations: 0.6346 MB / 0.8552 GB, free: 79.86 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 975 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1362): * Single equations (assignments): 1349 * 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.01266/2.961, allocations: 4.187 MB / 0.8593 GB, free: 77.98 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001678/2.963, allocations: 0.6138 MB / 0.8599 GB, free: 77.64 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0284/2.991, allocations: 9.71 MB / 0.8694 GB, free: 74 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002099/2.992, allocations: 91.28 kB / 0.8695 GB, free: 73.99 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.533e-05/2.992, allocations: 10.84 kB / 0.8695 GB, free: 73.99 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001063/2.992, allocations: 21.22 kB / 0.8695 GB, free: 73.99 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06409/3.056, allocations: 21.7 MB / 0.8907 GB, free: 60.95 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.131e-05/3.056, allocations: 12 kB / 0.8907 GB, free: 60.94 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007496/3.064, allocations: 0.7928 MB / 0.8915 GB, free: 60.31 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006686/3.07, allocations: 1.35 MB / 0.8928 GB, free: 59.34 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001203/3.072, allocations: 87.47 kB / 0.8929 GB, free: 59.26 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02226/3.094, allocations: 13.25 MB / 0.9058 GB, free: 46.82 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.51e-05/3.094, allocations: 18.12 kB / 0.9059 GB, free: 46.81 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03633/3.13, allocations: 15.53 MB / 0.921 GB, free: 32.96 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005075/3.135, allocations: 1.394 MB / 0.9224 GB, free: 31.66 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002534/3.138, allocations: 85.17 kB / 0.9225 GB, free: 31.57 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006366/3.144, allocations: 304.7 kB / 0.9228 GB, free: 31.39 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001526/3.146, allocations: 298.1 kB / 0.923 GB, free: 31.19 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005314/3.146, allocations: 133 kB / 0.9232 GB, free: 31.07 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0115/3.158, allocations: 3.998 MB / 0.9271 GB, free: 27.8 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.012e-06/3.158, allocations: 0 / 0.9271 GB, free: 27.8 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01393/3.172, allocations: 2.028 MB / 0.929 GB, free: 25.78 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 48 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (385): * Single equations (assignments): 372 * 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.00169/3.174, allocations: 265 kB / 0.9293 GB, free: 25.53 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02798/3.202, allocations: 12.16 MB / 0.9412 GB, free: 14.71 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.635e-05/3.202, allocations: 0 / 0.9412 GB, free: 14.71 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01173/3.214, allocations: 4.939 MB / 0.946 GB, free: 10.27 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006213/3.22, allocations: 0.7345 MB / 0.9467 GB, free: 9.637 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3953/3.615, allocations: 24.96 MB / 0.9711 GB, free: 77.14 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01852/3.634, allocations: 6.292 MB / 0.9772 GB, free: 76.22 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004318/3.638, allocations: 0.5239 MB / 0.9777 GB, free: 76.21 MB / 458.7 MB Notification: Performance of SimCode: time 2.044e-06/3.638, allocations: 0 / 0.9777 GB, free: 76.21 MB / 458.7 MB Notification: Performance of Templates: time 0.8093/4.447, allocations: 257.7 MB / 1.229 GB, free: 67.5 MB / 490.7 MB