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.Parts.Rotor1D.GearConstraint2.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.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.1_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2") Notification: Performance of loadModel(ModelicaTest): time 1.797/1.797, allocations: 209.3 MB / 222.4 MB, free: 7.727 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.134e-05/3.148e-05, allocations: 8 kB / 277.8 MB, free: 15.3 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08343/0.08348, allocations: 48.69 MB / 326.5 MB, free: 14.52 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3598/0.4434, allocations: 95.97 MB / 422.5 MB, free: 11.91 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002616/0.4437, allocations: 84.38 kB / 422.6 MB, free: 11.86 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.201/1.645, allocations: 284.2 MB / 0.6902 GB, free: 4.938 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.245e-06/1.645, allocations: 0 / 0.6902 GB, free: 4.938 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0007858/1.646, allocations: 279.9 kB / 0.6905 GB, free: 4.664 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5455 * Number of variables: 5455 Notification: Performance of Generate backend data structure: time 0.6041/2.25, allocations: 13.18 MB / 0.7034 GB, free: 33.99 MB / 442.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.7e-05/2.25, allocations: 9.156 kB / 0.7034 GB, free: 33.99 MB / 442.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1/2.35, allocations: 18.45 MB / 0.7214 GB, free: 32.98 MB / 442.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04254/2.393, allocations: 14.85 MB / 0.7359 GB, free: 31.95 MB / 442.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001399/2.394, allocations: 1.108 MB / 0.737 GB, free: 31.92 MB / 442.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007138/2.401, allocations: 1.452 MB / 0.7384 GB, free: 31.91 MB / 442.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09093/2.492, allocations: 35.49 MB / 0.773 GB, free: 26.25 MB / 442.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000911/2.493, allocations: 131.7 kB / 0.7732 GB, free: 26.23 MB / 442.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00674/2.5, allocations: 0.6633 MB / 0.7738 GB, free: 26.23 MB / 442.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006367/2.506, allocations: 3.717 MB / 0.7774 GB, free: 26.21 MB / 442.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07544/2.582, allocations: 31.53 MB / 0.8082 GB, free: 12.09 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8595/3.442, allocations: 139.2 MB / 0.9442 GB, free: 21.41 MB / 0.495 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04379/3.485, allocations: 15.07 MB / 0.9589 GB, free: 19.52 MB / 0.495 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01606/3.501, allocations: 9.329 MB / 0.968 GB, free: 19.45 MB / 0.495 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07709/3.579, allocations: 34.75 MB / 1.002 GB, free: 16.64 MB / 0.495 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.584e-05/3.579, allocations: 99.67 kB / 1.002 GB, free: 16.59 MB / 0.495 GB Notification: Performance of pre-optimization done (n=745): time 1.431e-05/3.579, allocations: 1.125 kB / 1.002 GB, free: 16.59 MB / 0.495 GB Notification: Performance of matching and sorting (n=827): time 0.2535/3.832, allocations: 67.75 MB / 1.068 GB, free: 0 / 0.5107 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.42/4.252, allocations: 309.8 kB / 1.068 GB, free: 105.6 MB / 0.5107 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0217/4.274, allocations: 9.268 MB / 1.078 GB, free: 105.1 MB / 0.5107 GB Notification: Performance of collectPreVariables (initialization): time 0.001383/4.276, allocations: 138.5 kB / 1.078 GB, free: 105 MB / 0.5107 GB Notification: Performance of collectInitialEqns (initialization): time 0.007161/4.283, allocations: 9.486 MB / 1.087 GB, free: 100.8 MB / 0.5107 GB Notification: Performance of collectInitialBindings (initialization): time 0.00407/4.287, allocations: 2.984 MB / 1.09 GB, free: 98.98 MB / 0.5107 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002114/4.289, allocations: 363 kB / 1.09 GB, free: 98.98 MB / 0.5107 GB Notification: Performance of setup shared object (initialization): time 0.001567/4.291, allocations: 1.103 MB / 1.091 GB, free: 98.63 MB / 0.5107 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01672/4.307, allocations: 8.007 MB / 1.099 GB, free: 98.59 MB / 0.5107 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02196/4.329, allocations: 17.57 MB / 1.116 GB, free: 86.5 MB / 0.5107 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02289/4.352, allocations: 11.96 MB / 1.128 GB, free: 86.36 MB / 0.5107 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003056/4.353, allocations: 96.19 kB / 1.128 GB, free: 86.36 MB / 0.5107 GB Notification: Performance of matching and sorting (n=2399) (initialization): time 0.06227/4.415, allocations: 26.93 MB / 1.154 GB, free: 82.93 MB / 0.5107 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002798/4.415, allocations: 148.3 kB / 1.154 GB, free: 82.93 MB / 0.5107 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004449/4.416, allocations: 332.3 kB / 1.155 GB, free: 82.93 MB / 0.5107 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009144/4.425, allocations: 2.402 MB / 1.157 GB, free: 82.5 MB / 0.5107 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02086/4.446, allocations: 4.271 MB / 1.161 GB, free: 82.01 MB / 0.5107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0254/4.471, allocations: 14.37 MB / 1.175 GB, free: 74.67 MB / 0.5107 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01794/4.489, allocations: 1.084 MB / 1.176 GB, free: 74.36 MB / 0.5107 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003608/4.493, allocations: 0.9966 MB / 1.177 GB, free: 74.22 MB / 0.5107 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1513 * 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 (2203): * Single equations (assignments): 2186 * 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.005225/4.498, allocations: 1.414 MB / 1.179 GB, free: 73.08 MB / 0.5107 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002489/4.501, allocations: 1.008 MB / 1.18 GB, free: 72.52 MB / 0.5107 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03641/4.537, allocations: 15.54 MB / 1.195 GB, free: 66.48 MB / 0.5107 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002295/4.537, allocations: 165.5 kB / 1.195 GB, free: 66.33 MB / 0.5107 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-05/4.537, allocations: 12 kB / 1.195 GB, free: 66.32 MB / 0.5107 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000138/4.537, allocations: 41.47 kB / 1.195 GB, free: 66.31 MB / 0.5107 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07857/4.616, allocations: 34.53 MB / 1.229 GB, free: 37.52 MB / 0.5107 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.535e-05/4.616, allocations: 8 kB / 1.229 GB, free: 37.52 MB / 0.5107 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009058/4.625, allocations: 1.398 MB / 1.23 GB, free: 36.42 MB / 0.5107 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007374/4.633, allocations: 1.771 MB / 1.232 GB, free: 35.17 MB / 0.5107 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001537/4.634, allocations: 129.8 kB / 1.232 GB, free: 35.05 MB / 0.5107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3434/4.978, allocations: 12.9 MB / 1.245 GB, free: 87.37 MB / 0.5107 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.265e-05/4.978, allocations: 10.91 kB / 1.245 GB, free: 87.37 MB / 0.5107 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05297/5.031, allocations: 26.31 MB / 1.27 GB, free: 84.58 MB / 0.5107 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006963/5.038, allocations: 2.25 MB / 1.273 GB, free: 84.48 MB / 0.5107 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0032/5.041, allocations: 122.5 kB / 1.273 GB, free: 84.48 MB / 0.5107 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008067/5.049, allocations: 0.5318 MB / 1.273 GB, free: 84.48 MB / 0.5107 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002102/5.051, allocations: 448.2 kB / 1.274 GB, free: 84.47 MB / 0.5107 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001306/5.052, allocations: 190.4 kB / 1.274 GB, free: 84.47 MB / 0.5107 GB Notification: Performance of sorting global known variables: time 0.01575/5.068, allocations: 6.408 MB / 1.28 GB, free: 84.14 MB / 0.5107 GB Notification: Performance of sort global known variables: time 1.358e-06/5.068, allocations: 0 / 1.28 GB, free: 84.14 MB / 0.5107 GB Notification: Performance of remove unused functions: time 0.01927/5.088, allocations: 3.427 MB / 1.283 GB, free: 84.14 MB / 0.5107 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 (653): * Single equations (assignments): 636 * 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.001734/5.089, allocations: 315.9 kB / 1.284 GB, free: 84.05 MB / 0.5107 GB Notification: Performance of simCode: created initialization part: time 0.03763/5.127, allocations: 19.35 MB / 1.303 GB, free: 83.63 MB / 0.5107 GB Notification: Performance of simCode: created event and clocks part: time 1.233e-05/5.127, allocations: 2.219 kB / 1.303 GB, free: 83.63 MB / 0.5107 GB Notification: Performance of simCode: created simulation system equations: time 0.01613/5.143, allocations: 7.595 MB / 1.31 GB, free: 83.33 MB / 0.5107 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008887/5.152, allocations: 1.253 MB / 1.311 GB, free: 83.28 MB / 0.5107 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07636/5.228, allocations: 30.96 MB / 1.341 GB, free: 73.39 MB / 0.5107 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02559/5.254, allocations: 10.59 MB / 1.352 GB, free: 70.45 MB / 0.5107 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005792/5.26, allocations: 0.8649 MB / 1.353 GB, free: 69.71 MB / 0.5107 GB Notification: Performance of SimCode: time 2.18e-06/5.26, allocations: 2.406 kB / 1.353 GB, free: 69.71 MB / 0.5107 GB Notification: Performance of Templates: time 1.111/6.371, allocations: 320.7 MB / 1.666 GB, free: 114.8 MB / 0.5419 GB