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.781/1.781, allocations: 209.3 MB / 224.8 MB, free: 200 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004356/0.0004357, allocations: 8 kB / 282.6 MB, free: 9.586 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2821/0.2825, allocations: 48.7 MB / 331.3 MB, free: 6.508 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1409/0.4235, allocations: 96.06 MB / 427.3 MB, free: 14.34 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002723/0.4238, allocations: 79.95 kB / 427.4 MB, free: 14.27 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.427/1.85, allocations: 283.8 MB / 0.6946 GB, free: 39.42 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.447e-06/1.85, allocations: 0 / 0.6946 GB, free: 39.42 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0006983/1.851, allocations: 285 kB / 0.6948 GB, free: 39.41 MB / 426.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.04526/1.896, allocations: 14.1 MB / 0.7086 GB, free: 33.8 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.09e-05/1.897, allocations: 14.72 kB / 0.7086 GB, free: 33.79 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09496/1.992, allocations: 18.44 MB / 0.7266 GB, free: 32.73 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04064/2.032, allocations: 14.89 MB / 0.7412 GB, free: 26.44 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001308/2.034, allocations: 1.1 MB / 0.7423 GB, free: 25.82 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007087/2.041, allocations: 1.46 MB / 0.7437 GB, free: 24.87 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09182/2.133, allocations: 35.82 MB / 0.7787 GB, free: 5.77 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009006/2.133, allocations: 134.7 kB / 0.7788 GB, free: 5.637 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006751/2.14, allocations: 0.6762 MB / 0.7795 GB, free: 5.066 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007609/2.148, allocations: 3.72 MB / 0.7831 GB, free: 1.355 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3797/2.528, allocations: 32.1 MB / 0.8144 GB, free: 58.29 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2182/2.746, allocations: 139.2 MB / 0.9503 GB, free: 13.7 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.08857/2.834, allocations: 15.25 MB / 0.9652 GB, free: 7.77 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3782/3.213, allocations: 34.82 MB / 0.9992 GB, free: 99.97 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.598e-05/3.213, allocations: 100.8 kB / 0.9993 GB, free: 99.92 MB / 490.7 MB Notification: Performance of pre-optimization done (n=745): time 1.409e-05/3.213, allocations: 2.719 kB / 0.9993 GB, free: 99.92 MB / 490.7 MB Notification: Performance of matching and sorting (n=827): time 0.2883/3.501, allocations: 80.3 MB / 1.078 GB, free: 73.33 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001117/3.501, allocations: 308 kB / 1.078 GB, free: 72.97 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02047/3.522, allocations: 9.369 MB / 1.087 GB, free: 65.33 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001431/3.523, allocations: 140 kB / 1.087 GB, free: 65.19 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006372/3.53, allocations: 9.474 MB / 1.097 GB, free: 56.7 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003687/3.533, allocations: 2.993 MB / 1.099 GB, free: 54.05 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002123/3.536, allocations: 354.3 kB / 1.1 GB, free: 53.7 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.001818/3.537, allocations: 1.107 MB / 1.101 GB, free: 52.81 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01675/3.554, allocations: 8.211 MB / 1.109 GB, free: 45.81 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02248/3.577, allocations: 17.78 MB / 1.126 GB, free: 25.33 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02288/3.6, allocations: 12.06 MB / 1.138 GB, free: 15.09 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002867/3.6, allocations: 95.94 kB / 1.138 GB, free: 15 MB / 490.7 MB Notification: Performance of matching and sorting (n=2399) (initialization): time 0.3831/3.983, allocations: 27.34 MB / 1.165 GB, free: 77.38 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002743/3.983, allocations: 150 kB / 1.165 GB, free: 77.38 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005129/3.984, allocations: 337.2 kB / 1.165 GB, free: 77.37 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009609/3.994, allocations: 2.405 MB / 1.168 GB, free: 77.34 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0195/4.013, allocations: 4.269 MB / 1.172 GB, free: 77.34 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0265/4.04, allocations: 14.84 MB / 1.186 GB, free: 74.62 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01699/4.057, allocations: 1.076 MB / 1.187 GB, free: 74.62 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003571/4.06, allocations: 0.9992 MB / 1.188 GB, free: 74.62 MB / 490.7 MB 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 () * Number of clocked 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.0173/4.078, allocations: 7.176 MB / 1.195 GB, free: 73.98 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002503/4.08, allocations: 1.013 MB / 1.196 GB, free: 73.98 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03814/4.118, allocations: 15.81 MB / 1.212 GB, free: 73.54 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002611/4.119, allocations: 160.3 kB / 1.212 GB, free: 73.54 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.416e-05/4.119, allocations: 16.12 kB / 1.212 GB, free: 73.54 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001363/4.119, allocations: 34.69 kB / 1.212 GB, free: 73.54 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08354/4.202, allocations: 34.78 MB / 1.246 GB, free: 61.94 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.807e-05/4.203, allocations: 6.625 kB / 1.246 GB, free: 61.94 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009414/4.212, allocations: 1.396 MB / 1.247 GB, free: 61.84 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007974/4.22, allocations: 1.773 MB / 1.249 GB, free: 61.48 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001476/4.221, allocations: 132.9 kB / 1.249 GB, free: 61.39 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02197/4.243, allocations: 13.37 MB / 1.262 GB, free: 49.66 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.362e-06/4.244, allocations: 7.938 kB / 1.262 GB, free: 49.65 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06516/4.309, allocations: 26.7 MB / 1.288 GB, free: 26.24 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01318/4.322, allocations: 2.247 MB / 1.291 GB, free: 24.16 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005719/4.328, allocations: 128.1 kB / 1.291 GB, free: 24.04 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01512/4.343, allocations: 0.5336 MB / 1.291 GB, free: 23.7 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003589/4.347, allocations: 435.7 kB / 1.292 GB, free: 23.43 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002154/4.349, allocations: 194.4 kB / 1.292 GB, free: 23.25 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.02179/4.371, allocations: 6.499 MB / 1.298 GB, free: 17.97 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.512e-06/4.371, allocations: 0 / 1.298 GB, free: 17.97 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01955/4.39, allocations: 3.435 MB / 1.301 GB, free: 14.55 MB / 490.7 MB 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 (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.002021/4.392, allocations: 317 kB / 1.302 GB, free: 14.25 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.05814/4.45, allocations: 20.28 MB / 1.322 GB, free: 14.43 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.379e-05/4.45, allocations: 4 kB / 1.322 GB, free: 14.43 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01786/4.468, allocations: 7.746 MB / 1.329 GB, free: 7.586 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007819/4.476, allocations: 1.254 MB / 1.33 GB, free: 6.527 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4221/4.898, allocations: 42.77 MB / 1.372 GB, free: 83.5 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02675/4.925, allocations: 10.59 MB / 1.382 GB, free: 82.41 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00589/4.931, allocations: 0.8661 MB / 1.383 GB, free: 82.41 MB / 0.4948 GB Notification: Performance of SimCode: time 2.107e-06/4.931, allocations: 0 / 1.383 GB, free: 82.41 MB / 0.4948 GB Notification: Performance of Templates: time 0.7893/5.72, allocations: 320.7 MB / 1.696 GB, free: 14.89 MB / 0.5417 GB