Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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.2_cpp_ModelicaTest.MultiBody.Joints.GearConstraint") Notification: Performance of loadModel(ModelicaTest): time 2.134/2.134, allocations: 235 MB / 248.1 MB, free: 14.35 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.955e-05/2.961e-05, allocations: 4 kB / 309.7 MB, free: 1.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3703/0.3704, allocations: 54.86 MB / 364.5 MB, free: 5.547 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1563/0.5266, allocations: 104 MB / 468.5 MB, free: 8.43 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002206/0.5269, allocations: 75.95 kB / 468.6 MB, free: 8.355 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8317/1.359, allocations: 163.5 MB / 0.6174 GB, free: 74.93 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.494e-06/1.359, allocations: 0 / 0.6174 GB, free: 74.93 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000407/1.359, allocations: 159.9 kB / 0.6175 GB, free: 74.77 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3109 * Number of variables: 3109 Notification: Performance of Generate backend data structure: time 0.02371/1.383, allocations: 7.503 MB / 0.6248 GB, free: 67.18 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/1.383, allocations: 12.03 kB / 0.6248 GB, free: 67.17 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0507/1.434, allocations: 10.05 MB / 0.6347 GB, free: 57.09 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02353/1.457, allocations: 8.416 MB / 0.6429 GB, free: 48.59 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007309/1.458, allocations: 0.6178 MB / 0.6435 GB, free: 47.96 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003962/1.462, allocations: 0.8238 MB / 0.6443 GB, free: 47.14 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04827/1.51, allocations: 20.36 MB / 0.6642 GB, free: 25.31 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004789/1.511, allocations: 87.22 kB / 0.6642 GB, free: 25.23 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003544/1.514, allocations: 395.8 kB / 0.6646 GB, free: 24.84 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003302/1.518, allocations: 2.105 MB / 0.6667 GB, free: 22.73 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04027/1.558, allocations: 17.77 MB / 0.684 GB, free: 4.93 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4169/1.975, allocations: 85.06 MB / 0.7671 GB, free: 33.22 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02126/1.996, allocations: 7.976 MB / 0.7749 GB, free: 31.95 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008905/2.005, allocations: 5.078 MB / 0.7798 GB, free: 31.9 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003132/2.006, allocations: 69.75 kB / 0.7799 GB, free: 31.89 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.542e-05/2.006, allocations: 76.28 kB / 0.78 GB, free: 31.85 MB / 474.7 MB Notification: Performance of pre-optimization done (n=450): time 1.07e-05/2.006, allocations: 0 / 0.78 GB, free: 31.85 MB / 474.7 MB Notification: Performance of matching and sorting (n=501): time 0.1222/2.128, allocations: 37.64 MB / 0.8167 GB, free: 20.73 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001054/2.128, allocations: 235.8 kB / 0.817 GB, free: 20.5 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01239/2.14, allocations: 5.672 MB / 0.8225 GB, free: 18.55 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008577/2.141, allocations: 94.8 kB / 0.8226 GB, free: 18.46 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00391/2.145, allocations: 5.519 MB / 0.828 GB, free: 14.25 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002305/2.148, allocations: 1.814 MB / 0.8298 GB, free: 12.91 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001252/2.149, allocations: 223.7 kB / 0.83 GB, free: 12.74 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0008794/2.15, allocations: 0.7986 MB / 0.8308 GB, free: 12.22 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01042/2.16, allocations: 4.803 MB / 0.8354 GB, free: 10.59 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01434/2.175, allocations: 10.94 MB / 0.8461 GB, free: 15.21 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01575/2.19, allocations: 7.304 MB / 0.8533 GB, free: 9.234 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002188/2.191, allocations: 64 kB / 0.8533 GB, free: 9.172 MB / 490.7 MB Notification: Performance of matching and sorting (n=1487) (initialization): time 0.04581/2.236, allocations: 16.87 MB / 0.8698 GB, free: 11.24 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001976/2.237, allocations: 103.1 kB / 0.8699 GB, free: 11.14 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003417/2.237, allocations: 212 kB / 0.8701 GB, free: 10.94 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006413/2.244, allocations: 1.708 MB / 0.8718 GB, free: 9.609 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01266/2.256, allocations: 2.605 MB / 0.8743 GB, free: 7.371 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02625/2.283, allocations: 14.11 MB / 0.8881 GB, free: 10.49 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01113/2.294, allocations: 0.6597 MB / 0.8887 GB, free: 9.941 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002646/2.296, allocations: 0.6325 MB / 0.8894 GB, free: 9.324 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 976 * 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 (1363): * Single equations (assignments): 1350 * 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.003766/2.3, allocations: 0.9228 MB / 0.8903 GB, free: 8.406 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001708/2.302, allocations: 0.6278 MB / 0.8909 GB, free: 7.773 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3337/2.636, allocations: 9.603 MB / 0.9003 GB, free: 124.4 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001761/2.636, allocations: 91.09 kB / 0.9003 GB, free: 124.4 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.331e-05/2.636, allocations: 8.875 kB / 0.9003 GB, free: 124.4 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.554e-05/2.636, allocations: 24.17 kB / 0.9004 GB, free: 124.4 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05477/2.691, allocations: 21.57 MB / 0.9214 GB, free: 123.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.956e-05/2.691, allocations: 15.62 kB / 0.9215 GB, free: 123.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005572/2.696, allocations: 0.7945 MB / 0.9222 GB, free: 123.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005502/2.702, allocations: 1.36 MB / 0.9236 GB, free: 123.2 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009592/2.703, allocations: 100.7 kB / 0.9237 GB, free: 123.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01813/2.721, allocations: 12.87 MB / 0.9362 GB, free: 118 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.544e-05/2.721, allocations: 18.02 kB / 0.9362 GB, free: 118 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02975/2.751, allocations: 17.12 MB / 0.953 GB, free: 111.3 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004274/2.755, allocations: 1.389 MB / 0.9543 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001822/2.757, allocations: 84.64 kB / 0.9544 GB, free: 110.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004953/2.762, allocations: 314.2 kB / 0.9547 GB, free: 110.8 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001388/2.764, allocations: 299.2 kB / 0.955 GB, free: 110.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005384/2.764, allocations: 132.7 kB / 0.9551 GB, free: 110.7 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.00931/2.773, allocations: 3.93 MB / 0.9589 GB, free: 109.3 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.149e-06/2.773, allocations: 0 / 0.9589 GB, free: 109.3 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01254/2.786, allocations: 2.043 MB / 0.9609 GB, free: 109.1 MB / 0.5105 GB 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 () * 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.001211/2.787, allocations: 246.9 kB / 0.9612 GB, free: 109 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02306/2.81, allocations: 11.99 MB / 0.9729 GB, free: 104.9 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.188e-05/2.81, allocations: 0 / 0.9729 GB, free: 104.9 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.009819/2.82, allocations: 4.865 MB / 0.9776 GB, free: 102.8 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005028/2.825, allocations: 0.7266 MB / 0.9783 GB, free: 102.5 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0438/2.869, allocations: 18.32 MB / 0.9962 GB, free: 90.21 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01466/2.884, allocations: 6.28 MB / 1.002 GB, free: 85.58 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003127/2.887, allocations: 0.5239 MB / 1.003 GB, free: 85.08 MB / 0.5105 GB Notification: Performance of SimCode: time 1.838e-06/2.887, allocations: 6 kB / 1.003 GB, free: 85.08 MB / 0.5105 GB Notification: Performance of Templates: time 0.6491/3.536, allocations: 257.8 MB / 1.255 GB, free: 1.496 MB / 0.5105 GB