Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.299/2.299, allocations: 234.9 MB / 251.1 MB, free: 9.551 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005918/0.0005919, allocations: 12 kB / 314.9 MB, free: 9.602 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3349/0.3356, allocations: 54.86 MB / 369.8 MB, free: 10.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1842/0.5198, allocations: 104.1 MB / 473.9 MB, free: 2.477 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003051/0.5202, allocations: 79.97 kB / 474 MB, free: 2.398 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9454/1.466, allocations: 164.2 MB / 0.6232 GB, free: 11.01 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.996e-06/1.466, allocations: 0 / 0.6232 GB, free: 11.01 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0006108/1.466, allocations: 159.9 kB / 0.6233 GB, free: 10.85 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.03458/1.501, allocations: 7.988 MB / 0.6311 GB, free: 2.77 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.861e-05/1.501, allocations: 8.031 kB / 0.6311 GB, free: 2.762 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.7285/2.23, allocations: 10.05 MB / 0.6409 GB, free: 59.52 MB / 458.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03199/2.262, allocations: 8.442 MB / 0.6492 GB, free: 59.16 MB / 458.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001104/2.263, allocations: 0.6207 MB / 0.6498 GB, free: 59.14 MB / 458.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006321/2.269, allocations: 0.8211 MB / 0.6506 GB, free: 59.14 MB / 458.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07767/2.347, allocations: 20.6 MB / 0.6707 GB, free: 55.16 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006703/2.348, allocations: 87.89 kB / 0.6708 GB, free: 55.15 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004637/2.352, allocations: 398.6 kB / 0.6712 GB, free: 55.15 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004551/2.357, allocations: 2.1 MB / 0.6732 GB, free: 55.13 MB / 458.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05217/2.409, allocations: 18.07 MB / 0.6909 GB, free: 55.06 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1489/2.558, allocations: 85.07 MB / 0.7739 GB, free: 6.891 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03013/2.588, allocations: 8.046 MB / 0.7818 GB, free: 15.82 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006092/2.589, allocations: 60.89 kB / 0.7819 GB, free: 15.78 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.462e-05/2.589, allocations: 84.88 kB / 0.7819 GB, free: 15.69 MB / 490.8 MB Notification: Performance of pre-optimization done (n=450): time 9.959e-06/2.589, allocations: 3.5 kB / 0.7819 GB, free: 15.69 MB / 490.8 MB Notification: Performance of matching and sorting (n=501): time 0.5529/3.142, allocations: 44.65 MB / 0.8256 GB, free: 96.17 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001187/3.142, allocations: 227.2 kB / 0.8258 GB, free: 95.95 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01584/3.158, allocations: 6.429 MB / 0.832 GB, free: 95.41 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.001164/3.159, allocations: 91.64 kB / 0.8321 GB, free: 95.38 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.005064/3.164, allocations: 5.512 MB / 0.8375 GB, free: 92.82 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.003099/3.167, allocations: 1.815 MB / 0.8393 GB, free: 91.75 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001853/3.169, allocations: 220.3 kB / 0.8395 GB, free: 91.75 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.001091/3.17, allocations: 0.8097 MB / 0.8403 GB, free: 91.41 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01255/3.183, allocations: 4.919 MB / 0.8451 GB, free: 91.39 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01696/3.2, allocations: 11.09 MB / 0.8559 GB, free: 83.61 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01727/3.217, allocations: 7.345 MB / 0.8631 GB, free: 83.55 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002748/3.218, allocations: 62.59 kB / 0.8632 GB, free: 83.55 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1487) (initialization): time 0.04686/3.264, allocations: 16.94 MB / 0.8797 GB, free: 82.2 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001941/3.265, allocations: 96.72 kB / 0.8798 GB, free: 82.2 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003719/3.265, allocations: 213.2 kB / 0.88 GB, free: 82.2 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007751/3.273, allocations: 1.699 MB / 0.8817 GB, free: 81.88 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01703/3.29, allocations: 2.604 MB / 0.8842 GB, free: 81.57 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02545/3.315, allocations: 14.37 MB / 0.8982 GB, free: 72.51 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01272/3.328, allocations: 0.66 MB / 0.8989 GB, free: 72.31 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002833/3.331, allocations: 0.6279 MB / 0.8995 GB, free: 72.23 MB / 0.4949 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 () * Number of clocked 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.01302/3.344, allocations: 4.193 MB / 0.9036 GB, free: 70.35 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002219/3.346, allocations: 0.6198 MB / 0.9042 GB, free: 70 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02897/3.375, allocations: 9.698 MB / 0.9137 GB, free: 66.37 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001774/3.376, allocations: 97.28 kB / 0.9137 GB, free: 66.36 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.984e-05/3.376, allocations: 14.81 kB / 0.9138 GB, free: 66.36 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000104/3.376, allocations: 19.64 kB / 0.9138 GB, free: 66.36 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06453/3.44, allocations: 21.69 MB / 0.935 GB, free: 55.17 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.069e-05/3.44, allocations: 18.27 kB / 0.935 GB, free: 55.16 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0075/3.448, allocations: 0.7897 MB / 0.9357 GB, free: 54.53 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006724/3.455, allocations: 1.344 MB / 0.9371 GB, free: 53.57 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001172/3.456, allocations: 87.14 kB / 0.9371 GB, free: 53.49 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02223/3.478, allocations: 13.25 MB / 0.9501 GB, free: 41.07 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.227e-05/3.478, allocations: 19.69 kB / 0.9501 GB, free: 41.06 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03749/3.516, allocations: 15.52 MB / 0.9653 GB, free: 27.25 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005244/3.521, allocations: 1.384 MB / 0.9666 GB, free: 25.95 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002943/3.524, allocations: 87.89 kB / 0.9667 GB, free: 25.87 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006847/3.531, allocations: 308.1 kB / 0.967 GB, free: 25.68 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001653/3.533, allocations: 305.4 kB / 0.9673 GB, free: 25.48 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008599/3.534, allocations: 129.4 kB / 0.9674 GB, free: 25.36 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.01069/3.544, allocations: 3.983 MB / 0.9713 GB, free: 22.11 MB / 0.4949 GB Notification: Performance of sort global known variables: time 4.31e-07/3.544, allocations: 0 / 0.9713 GB, free: 22.11 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01437/3.559, allocations: 2.041 MB / 0.9733 GB, free: 20.08 MB / 0.4949 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 () * 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.001717/3.56, allocations: 249.6 kB / 0.9735 GB, free: 19.84 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.02838/3.589, allocations: 12.18 MB / 0.9854 GB, free: 9.07 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.459e-05/3.589, allocations: 0 / 0.9854 GB, free: 9.07 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.01202/3.601, allocations: 4.939 MB / 0.9902 GB, free: 4.637 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00663/3.608, allocations: 0.7346 MB / 0.991 GB, free: 4.004 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5543/4.162, allocations: 25.24 MB / 1.016 GB, free: 94.81 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01721/4.179, allocations: 6.286 MB / 1.022 GB, free: 93.89 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004451/4.184, allocations: 0.5287 MB / 1.022 GB, free: 93.89 MB / 0.5105 GB Notification: Performance of SimCode: time 2.755e-06/4.184, allocations: 0 / 1.022 GB, free: 93.89 MB / 0.5105 GB Notification: Performance of Templates: time 0.8677/5.052, allocations: 257.8 MB / 1.274 GB, free: 95.66 MB / 0.5262 GB