Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.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.Parts.Rotor1D.GearConstraint2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gc1.actuatedRevolute_b.phi|gc1.actuatedRevolute_b.w|gc2.actuatedRevolute_b.phi|gc2.actuatedRevolute_b.w",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2") Notification: Performance of loadModel(ModelicaTest): time 2.399/2.399, allocations: 234.9 MB / 251.1 MB, free: 9.699 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004233/0.0004235, allocations: 12 kB / 314.9 MB, free: 9.75 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3591/0.3596, allocations: 54.86 MB / 369.8 MB, free: 12.81 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1828/0.5424, allocations: 103.3 MB / 473.1 MB, free: 5.359 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003309/0.5428, allocations: 91.94 kB / 473.2 MB, free: 5.27 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.665/2.208, allocations: 286 MB / 0.7414 GB, free: 51.32 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.024e-06/2.208, allocations: 0 / 0.7414 GB, free: 51.32 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0008528/2.209, allocations: 286.5 kB / 0.7417 GB, free: 51.31 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5457 * Number of variables: 5457 Notification: Performance of Generate backend data structure: time 0.05528/2.264, allocations: 14.1 MB / 0.7555 GB, free: 45.71 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.186e-05/2.264, allocations: 9.281 kB / 0.7555 GB, free: 45.71 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1528/2.417, allocations: 18.52 MB / 0.7735 GB, free: 44.65 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0491/2.466, allocations: 14.93 MB / 0.7881 GB, free: 41.56 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001256/2.467, allocations: 1.097 MB / 0.7892 GB, free: 40.95 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0084/2.476, allocations: 1.465 MB / 0.7906 GB, free: 39.99 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1043/2.58, allocations: 36.69 MB / 0.8265 GB, free: 9.988 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009135/2.581, allocations: 138.7 kB / 0.8266 GB, free: 9.852 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007497/2.589, allocations: 0.6625 MB / 0.8272 GB, free: 9.289 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007024/2.596, allocations: 3.715 MB / 0.8309 GB, free: 5.582 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1038/2.7, allocations: 33.11 MB / 0.8632 GB, free: 4.457 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6608/3.36, allocations: 140.4 MB / 1 GB, free: 28.27 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.05707/3.417, allocations: 15.78 MB / 1.016 GB, free: 22.22 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1022/3.52, allocations: 35.73 MB / 1.051 GB, free: 4.176 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001257/3.52, allocations: 105.2 kB / 1.051 GB, free: 4.066 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=747): time 1.297e-05/3.52, allocations: 0 / 1.051 GB, free: 4.066 MB / 0.5261 GB Notification: Performance of matching and sorting (n=829): time 0.8125/4.332, allocations: 84.99 MB / 1.134 GB, free: 120.6 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000149/4.333, allocations: 303.7 kB / 1.134 GB, free: 120.3 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02785/4.361, allocations: 10.52 MB / 1.144 GB, free: 119.5 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.001963/4.363, allocations: 137 kB / 1.144 GB, free: 119.4 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.008017/4.371, allocations: 9.487 MB / 1.154 GB, free: 113.9 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.004689/4.375, allocations: 2.991 MB / 1.157 GB, free: 112.1 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002575/4.378, allocations: 359.9 kB / 1.157 GB, free: 112.1 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.001759/4.38, allocations: 1.105 MB / 1.158 GB, free: 111.8 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02148/4.401, allocations: 8.335 MB / 1.166 GB, free: 109.4 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02807/4.429, allocations: 17.94 MB / 1.184 GB, free: 93.73 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02903/4.458, allocations: 12.17 MB / 1.196 GB, free: 83.51 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004654/4.459, allocations: 96 kB / 1.196 GB, free: 83.41 MB / 0.5417 GB Notification: Performance of matching and sorting (n=2401) (initialization): time 0.07707/4.536, allocations: 27.56 MB / 1.223 GB, free: 59.73 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002631/4.536, allocations: 148 kB / 1.223 GB, free: 59.59 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006625/4.537, allocations: 332 kB / 1.223 GB, free: 59.27 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0114/4.549, allocations: 2.406 MB / 1.225 GB, free: 57.41 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02778/4.576, allocations: 4.284 MB / 1.23 GB, free: 53.75 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03152/4.608, allocations: 14.84 MB / 1.244 GB, free: 40.64 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.021/4.629, allocations: 1.094 MB / 1.245 GB, free: 39.75 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004306/4.633, allocations: 0.9943 MB / 1.246 GB, free: 38.78 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1510 * Number of states: 0 () * Number of discrete variables: 90 (torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],fixedFrame3.color_x[3],fixedFrame3.color_x[2],fixedFrame3.color_x[1],fixedFrame2.color_x[3],fixedFrame2.color_x[2],fixedFrame2.color_x[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],bodyCylinder3.color[3],bodyCylinder3.color[2],bodyCylinder3.color[1],bodyCylinder3.body.sphereColor[3],bodyCylinder3.body.sphereColor[2],bodyCylinder3.body.sphereColor[1],bodyCylinder2.color[3],bodyCylinder2.color[2],bodyCylinder2.color[1],bodyCylinder2.body.sphereColor[3],bodyCylinder2.body.sphereColor[2],bodyCylinder2.body.sphereColor[1],bodyCylinder1.color[3],bodyCylinder1.color[2],bodyCylinder1.color[1],bodyCylinder1.body.sphereColor[3],bodyCylinder1.body.sphereColor[2],bodyCylinder1.body.sphereColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],gc2.fixedTranslation2.color[3],gc2.fixedTranslation2.color[2],gc2.fixedTranslation2.color[1],gc2.fixedTranslation1.color[3],gc2.fixedTranslation1.color[2],gc2.fixedTranslation1.color[1],gc2.actuatedRevolute_b.cylinderColor[3],gc2.actuatedRevolute_b.cylinderColor[2],gc2.actuatedRevolute_b.cylinderColor[1],gc2.actuatedRevolute_a.cylinderColor[3],gc2.actuatedRevolute_a.cylinderColor[2],gc2.actuatedRevolute_a.cylinderColor[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],gc1.fixedTranslation2.color[3],gc1.fixedTranslation2.color[2],gc1.fixedTranslation2.color[1],gc1.fixedTranslation1.color[3],gc1.fixedTranslation1.color[2],gc1.fixedTranslation1.color[1],gc1.actuatedRevolute_b.cylinderColor[3],gc1.actuatedRevolute_b.cylinderColor[2],gc1.actuatedRevolute_b.cylinderColor[1],gc1.actuatedRevolute_a.cylinderColor[3],gc1.actuatedRevolute_a.cylinderColor[2],gc1.actuatedRevolute_a.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2205): * Single equations (assignments): 2188 * Array equations: 15 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,77.8%) 36,(3,77.8%) 36} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.02203/4.655, allocations: 7.178 MB / 1.253 GB, free: 32.57 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003432/4.659, allocations: 1.015 MB / 1.254 GB, free: 31.55 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04964/4.709, allocations: 16.06 MB / 1.27 GB, free: 18.06 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0008249/4.709, allocations: 236.3 kB / 1.27 GB, free: 18.06 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001128/4.71, allocations: 19.66 kB / 1.27 GB, free: 18.06 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001805/4.71, allocations: 36.52 kB / 1.27 GB, free: 18.06 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5274/5.237, allocations: 34.97 MB / 1.304 GB, free: 109.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001125/5.237, allocations: 10.69 kB / 1.304 GB, free: 109.6 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01346/5.251, allocations: 1.398 MB / 1.306 GB, free: 109.6 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0103/5.261, allocations: 1.78 MB / 1.307 GB, free: 109.6 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001955/5.263, allocations: 135.6 kB / 1.307 GB, free: 109.6 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02896/5.292, allocations: 13.36 MB / 1.32 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.236e-05/5.292, allocations: 13.73 kB / 1.32 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06673/5.359, allocations: 25.3 MB / 1.345 GB, free: 100 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008972/5.368, allocations: 2.246 MB / 1.347 GB, free: 99.46 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005117/5.373, allocations: 130.8 kB / 1.347 GB, free: 99.37 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01139/5.385, allocations: 0.5397 MB / 1.348 GB, free: 99.28 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002685/5.387, allocations: 438.3 kB / 1.348 GB, free: 99.21 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001917/5.389, allocations: 191.9 kB / 1.349 GB, free: 99.17 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.01862/5.408, allocations: 6.505 MB / 1.355 GB, free: 97.09 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.013e-06/5.408, allocations: 0 / 1.355 GB, free: 97.09 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.02403/5.432, allocations: 3.433 MB / 1.358 GB, free: 96.71 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 4 (gc1.actuatedRevolute_b.phi,gc1.actuatedRevolute_b.w,gc2.actuatedRevolute_b.phi,gc2.actuatedRevolute_b.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 (655): * Single equations (assignments): 638 * Array equations: 15 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 32,(1,100.0%) 32} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002681/5.435, allocations: 315 kB / 1.359 GB, free: 96.54 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.04822/5.483, allocations: 19.87 MB / 1.378 GB, free: 81.98 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.455e-05/5.483, allocations: 2.875 kB / 1.378 GB, free: 81.98 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.02044/5.503, allocations: 7.793 MB / 1.386 GB, free: 75.12 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01121/5.515, allocations: 1.256 MB / 1.387 GB, free: 74.07 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1064/5.621, allocations: 42.77 MB / 1.429 GB, free: 35.45 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0295/5.651, allocations: 10.59 MB / 1.439 GB, free: 27.8 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008097/5.659, allocations: 0.866 MB / 1.44 GB, free: 26.97 MB / 0.5417 GB Notification: Performance of SimCode: time 1.943e-06/5.659, allocations: 0 / 1.44 GB, free: 26.97 MB / 0.5417 GB Notification: Performance of Templates: time 1.546/7.205, allocations: 321.4 MB / 1.754 GB, free: 121.4 MB / 0.5886 GB