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.Parts.Rotor1D.GearConstraint2.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.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.139/2.139, allocations: 235 MB / 248.1 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.393e-05/3.429e-05, allocations: 4 kB / 309.7 MB, free: 1.332 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3173/0.3174, allocations: 54.86 MB / 364.5 MB, free: 5.551 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1569/0.4744, allocations: 103.2 MB / 467.8 MB, free: 9.215 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002766/0.4747, allocations: 84.53 kB / 467.9 MB, free: 9.133 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.53/2.004, allocations: 284.9 MB / 0.7351 GB, free: 42.32 MB / 474.7 MB Notification: Performance of FrontEnd: time 4.676e-06/2.004, allocations: 0 / 0.7351 GB, free: 42.32 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0007416/2.005, allocations: 284 kB / 0.7354 GB, free: 42.32 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.04004/2.045, allocations: 13.18 MB / 0.7483 GB, free: 37.16 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/2.045, allocations: 13.22 kB / 0.7483 GB, free: 37.16 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09548/2.141, allocations: 18.53 MB / 0.7664 GB, free: 36.16 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04129/2.182, allocations: 14.89 MB / 0.7809 GB, free: 34.64 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001232/2.183, allocations: 1.096 MB / 0.782 GB, free: 34.61 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00666/2.19, allocations: 1.46 MB / 0.7834 GB, free: 34.59 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08878/2.279, allocations: 36.22 MB / 0.8188 GB, free: 27.93 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000706/2.28, allocations: 134.3 kB / 0.8189 GB, free: 27.91 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005575/2.285, allocations: 0.6693 MB / 0.8196 GB, free: 27.53 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005454/2.291, allocations: 3.716 MB / 0.8232 GB, free: 24.69 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07548/2.366, allocations: 32.54 MB / 0.855 GB, free: 11.8 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6102/2.976, allocations: 140.4 MB / 0.9921 GB, free: 30.63 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04607/3.023, allocations: 15.61 MB / 1.007 GB, free: 28.74 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0166/3.039, allocations: 9.564 MB / 1.017 GB, free: 28.68 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07796/3.117, allocations: 35.73 MB / 1.052 GB, free: 15.41 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.967e-05/3.117, allocations: 104.1 kB / 1.052 GB, free: 15.32 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=747): time 1.28e-05/3.117, allocations: 0 / 1.052 GB, free: 15.32 MB / 0.5417 GB Notification: Performance of matching and sorting (n=829): time 0.5664/3.684, allocations: 70.03 MB / 1.12 GB, free: 105.8 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001166/3.684, allocations: 304.5 kB / 1.12 GB, free: 105.5 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02163/3.706, allocations: 9.268 MB / 1.129 GB, free: 104.7 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.001435/3.707, allocations: 139.4 kB / 1.13 GB, free: 104.7 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.006451/3.714, allocations: 9.483 MB / 1.139 GB, free: 99.4 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.003847/3.717, allocations: 2.991 MB / 1.142 GB, free: 97.62 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002191/3.72, allocations: 361.3 kB / 1.142 GB, free: 97.62 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.001658/3.721, allocations: 1.107 MB / 1.143 GB, free: 97.27 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01693/3.738, allocations: 8.118 MB / 1.151 GB, free: 97.23 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02235/3.761, allocations: 17.67 MB / 1.168 GB, free: 85.16 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02334/3.784, allocations: 12.08 MB / 1.18 GB, free: 82.93 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003296/3.784, allocations: 96.41 kB / 1.18 GB, free: 82.93 MB / 0.5417 GB Notification: Performance of matching and sorting (n=2401) (initialization): time 0.06303/3.848, allocations: 27.15 MB / 1.207 GB, free: 73.98 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002759/3.848, allocations: 146.6 kB / 1.207 GB, free: 73.98 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004088/3.848, allocations: 332.8 kB / 1.207 GB, free: 73.98 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009014/3.857, allocations: 2.406 MB / 1.21 GB, free: 73.55 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0213/3.879, allocations: 4.28 MB / 1.214 GB, free: 73.07 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02463/3.903, allocations: 14.38 MB / 1.228 GB, free: 62.45 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01798/3.921, allocations: 1.096 MB / 1.229 GB, free: 61.56 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00377/3.925, allocations: 0.9917 MB / 1.23 GB, free: 60.59 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 () * 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.006076/3.931, allocations: 1.418 MB / 1.231 GB, free: 59.17 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003062/3.934, allocations: 1.01 MB / 1.232 GB, free: 58.15 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03511/3.969, allocations: 15.79 MB / 1.248 GB, free: 44.82 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002458/3.97, allocations: 163.3 kB / 1.248 GB, free: 44.68 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.497e-05/3.97, allocations: 13.06 kB / 1.248 GB, free: 44.66 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001514/3.97, allocations: 38.78 kB / 1.248 GB, free: 44.66 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08298/4.053, allocations: 34.71 MB / 1.282 GB, free: 15.77 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.384e-05/4.053, allocations: 4 kB / 1.282 GB, free: 15.77 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009322/4.062, allocations: 1.398 MB / 1.283 GB, free: 14.67 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.3477/4.41, allocations: 1.976 MB / 1.285 GB, free: 95.75 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001665/4.412, allocations: 133.5 kB / 1.285 GB, free: 95.75 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02563/4.438, allocations: 12.9 MB / 1.298 GB, free: 93.07 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.267e-05/4.438, allocations: 10.06 kB / 1.298 GB, free: 93.07 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05226/4.49, allocations: 26.45 MB / 1.324 GB, free: 90.25 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007302/4.497, allocations: 2.258 MB / 1.326 GB, free: 90.16 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003805/4.501, allocations: 126.8 kB / 1.326 GB, free: 90.16 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008475/4.51, allocations: 0.5389 MB / 1.326 GB, free: 90.16 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002243/4.512, allocations: 442.2 kB / 1.327 GB, free: 90.14 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001449/4.513, allocations: 191.5 kB / 1.327 GB, free: 90.14 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.01583/4.529, allocations: 6.411 MB / 1.333 GB, free: 89.81 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.178e-06/4.529, allocations: 0 / 1.333 GB, free: 89.81 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.02127/4.551, allocations: 3.438 MB / 1.337 GB, free: 89.81 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 () * 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.00191/4.552, allocations: 309.1 kB / 1.337 GB, free: 89.73 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.03807/4.591, allocations: 19.53 MB / 1.356 GB, free: 87.95 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.161e-05/4.591, allocations: 0 / 1.356 GB, free: 87.95 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.01541/4.606, allocations: 7.642 MB / 1.363 GB, free: 85.04 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008638/4.615, allocations: 1.255 MB / 1.365 GB, free: 84.51 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0772/4.692, allocations: 31.03 MB / 1.395 GB, free: 72.27 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02575/4.718, allocations: 10.59 MB / 1.405 GB, free: 64.63 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006047/4.724, allocations: 0.8667 MB / 1.406 GB, free: 63.81 MB / 0.5417 GB Notification: Performance of SimCode: time 2.016e-06/4.724, allocations: 0 / 1.406 GB, free: 63.81 MB / 0.5417 GB Notification: Performance of Templates: time 1.217/5.941, allocations: 321.4 MB / 1.72 GB, free: 129.4 MB / 0.5886 GB