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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.808/1.808, allocations: 209.3 MB / 224.8 MB, free: 348 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004429/0.000443, allocations: 16 kB / 282.6 MB, free: 9.605 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2878/0.2882, allocations: 48.7 MB / 331.3 MB, free: 6.52 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1466/0.4349, allocations: 96.85 MB / 428.1 MB, free: 13.56 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000254/0.4351, allocations: 79.95 kB / 428.2 MB, free: 13.48 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8393/1.274, allocations: 163.3 MB / 0.5777 GB, free: 17.4 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.16e-06/1.274, allocations: 0 / 0.5777 GB, free: 17.4 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003929/1.275, allocations: 159.9 kB / 0.5778 GB, free: 17.25 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.02336/1.298, allocations: 8.003 MB / 0.5857 GB, free: 9.148 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.884e-05/1.298, allocations: 8.031 kB / 0.5857 GB, free: 9.141 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04985/1.348, allocations: 10.05 MB / 0.5955 GB, free: 15.06 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02688/1.375, allocations: 8.428 MB / 0.6037 GB, free: 6.543 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009488/1.376, allocations: 0.6256 MB / 0.6043 GB, free: 5.914 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003951/1.38, allocations: 0.8238 MB / 0.6051 GB, free: 5.09 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5672/1.947, allocations: 20.52 MB / 0.6252 GB, free: 61.74 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004228/1.948, allocations: 86.22 kB / 0.6252 GB, free: 61.74 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002827/1.951, allocations: 396.5 kB / 0.6256 GB, free: 61.74 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003702/1.954, allocations: 2.105 MB / 0.6277 GB, free: 61.72 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04294/1.997, allocations: 18.07 MB / 0.6453 GB, free: 61.65 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1128/2.11, allocations: 84.99 MB / 0.7283 GB, free: 9.539 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02186/2.132, allocations: 8.053 MB / 0.7362 GB, free: 6.156 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003276/2.132, allocations: 68.48 kB / 0.7363 GB, free: 6.145 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.165e-05/2.132, allocations: 80.48 kB / 0.7363 GB, free: 6.074 MB / 426.8 MB Notification: Performance of pre-optimization done (n=450): time 9.63e-06/2.132, allocations: 0 / 0.7363 GB, free: 6.074 MB / 426.8 MB Notification: Performance of matching and sorting (n=501): time 0.1383/2.271, allocations: 44.23 MB / 0.7795 GB, free: 7.633 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001788/2.271, allocations: 229.5 kB / 0.7797 GB, free: 7.367 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0124/2.283, allocations: 5.731 MB / 0.7853 GB, free: 2.551 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0009046/2.284, allocations: 93.7 kB / 0.7854 GB, free: 2.453 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.005542/2.29, allocations: 5.512 MB / 0.7908 GB, free: 13.5 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002811/2.293, allocations: 1.822 MB / 0.7926 GB, free: 11.89 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001184/2.294, allocations: 223.8 kB / 0.7928 GB, free: 11.67 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.001016/2.295, allocations: 0.7945 MB / 0.7936 GB, free: 11 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01106/2.306, allocations: 4.915 MB / 0.7984 GB, free: 6.812 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2814/2.587, allocations: 11.04 MB / 0.8092 GB, free: 103.4 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01411/2.602, allocations: 7.334 MB / 0.8163 GB, free: 103.4 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002594/2.602, allocations: 62.12 kB / 0.8164 GB, free: 103.4 MB / 474.8 MB Notification: Performance of matching and sorting (n=1486) (initialization): time 0.04041/2.642, allocations: 16.95 MB / 0.8329 GB, free: 102.3 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.000181/2.643, allocations: 98.03 kB / 0.833 GB, free: 102.3 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002794/2.643, allocations: 212.8 kB / 0.8332 GB, free: 102.3 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006127/2.649, allocations: 1.726 MB / 0.8349 GB, free: 102.3 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01128/2.66, allocations: 2.595 MB / 0.8375 GB, free: 102.1 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02069/2.681, allocations: 14.37 MB / 0.8515 GB, free: 96.62 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01083/2.692, allocations: 0.6579 MB / 0.8521 GB, free: 96.62 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002313/2.694, allocations: 0.6416 MB / 0.8528 GB, free: 96.62 MB / 474.8 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.00996/2.704, allocations: 4.192 MB / 0.8569 GB, free: 95.64 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001351/2.706, allocations: 0.6136 MB / 0.8575 GB, free: 95.64 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02078/2.726, allocations: 9.723 MB / 0.8669 GB, free: 92.01 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001459/2.727, allocations: 94.39 kB / 0.867 GB, free: 92 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.664e-05/2.727, allocations: 12.47 kB / 0.867 GB, free: 92 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.191e-05/2.727, allocations: 22.8 kB / 0.8671 GB, free: 92 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04863/2.775, allocations: 21.72 MB / 0.8883 GB, free: 84.15 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.844e-05/2.775, allocations: 11.41 kB / 0.8883 GB, free: 84.15 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005385/2.781, allocations: 0.7873 MB / 0.8891 GB, free: 84.09 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005469/2.786, allocations: 1.365 MB / 0.8904 GB, free: 83.78 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008875/2.787, allocations: 92.48 kB / 0.8905 GB, free: 83.73 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0188/2.806, allocations: 13.26 MB / 0.9034 GB, free: 72.97 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.308e-05/2.806, allocations: 15.94 kB / 0.9034 GB, free: 72.96 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02704/2.833, allocations: 17.31 MB / 0.9204 GB, free: 57.21 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003961/2.837, allocations: 1.389 MB / 0.9217 GB, free: 55.92 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001283/2.839, allocations: 82.39 kB / 0.9218 GB, free: 55.84 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003773/2.842, allocations: 310.6 kB / 0.9221 GB, free: 55.64 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008392/2.843, allocations: 302.6 kB / 0.9224 GB, free: 55.45 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000466/2.844, allocations: 134.1 kB / 0.9225 GB, free: 55.32 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.007275/2.851, allocations: 3.995 MB / 0.9264 GB, free: 52.06 MB / 474.8 MB Notification: Performance of sort global known variables: time 1.106e-06/2.851, allocations: 0 / 0.9264 GB, free: 52.06 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.01201/2.863, allocations: 2.037 MB / 0.9284 GB, free: 50.04 MB / 474.8 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.001113/2.864, allocations: 257.3 kB / 0.9286 GB, free: 49.8 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.02157/2.886, allocations: 12.16 MB / 0.9405 GB, free: 38.97 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 1.14e-05/2.886, allocations: 0 / 0.9405 GB, free: 38.97 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.008944/2.895, allocations: 4.939 MB / 0.9453 GB, free: 34.53 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004404/2.899, allocations: 0.7364 MB / 0.946 GB, free: 33.91 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04416/2.943, allocations: 24.91 MB / 0.9704 GB, free: 11.05 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2826/3.226, allocations: 6.475 MB / 0.9767 GB, free: 100.4 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003411/3.23, allocations: 0.5287 MB / 0.9772 GB, free: 100.4 MB / 474.8 MB Notification: Performance of SimCode: time 1.543e-06/3.23, allocations: 1.031 kB / 0.9772 GB, free: 100.4 MB / 474.8 MB Notification: Performance of Templates: time 0.6585/3.888, allocations: 257.7 MB / 1.229 GB, free: 87.73 MB / 490.8 MB