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.103/2.103, allocations: 234.9 MB / 250.5 MB, free: 9.457 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004382/0.0004383, allocations: 19.98 kB / 314.4 MB, free: 9.461 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2748/0.2753, allocations: 54.86 MB / 369.3 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.158/0.4334, allocations: 103.3 MB / 472.6 MB, free: 3.223 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002852/0.4337, allocations: 83.95 kB / 472.7 MB, free: 3.141 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.496/1.929, allocations: 284.6 MB / 0.7395 GB, free: 41.64 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.502e-06/1.929, allocations: 0 / 0.7395 GB, free: 41.64 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0007314/1.93, allocations: 286.8 kB / 0.7398 GB, free: 41.37 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: 5457 * Number of variables: 5457 Notification: Performance of Generate backend data structure: time 0.04255/1.973, allocations: 14.1 MB / 0.7535 GB, free: 30.41 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.045e-05/1.973, allocations: 8.031 kB / 0.7536 GB, free: 30.4 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09315/2.066, allocations: 18.51 MB / 0.7716 GB, free: 11.91 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03993/2.106, allocations: 14.95 MB / 0.7862 GB, free: 12.88 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001591/2.108, allocations: 1.099 MB / 0.7873 GB, free: 11.77 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007148/2.115, allocations: 1.472 MB / 0.7887 GB, free: 10.3 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.7428/2.858, allocations: 36.55 MB / 0.8244 GB, free: 50.48 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008486/2.858, allocations: 131.1 kB / 0.8246 GB, free: 50.48 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006143/2.865, allocations: 0.6684 MB / 0.8252 GB, free: 50.48 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006187/2.871, allocations: 3.715 MB / 0.8288 GB, free: 50.44 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08169/2.953, allocations: 33.1 MB / 0.8612 GB, free: 50.32 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2221/3.175, allocations: 140.4 MB / 0.9982 GB, free: 8.707 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.699/3.874, allocations: 16.11 MB / 1.014 GB, free: 102.6 MB / 0.5263 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0789/3.953, allocations: 35.74 MB / 1.049 GB, free: 100.2 MB / 0.5263 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.611e-05/3.953, allocations: 101.8 kB / 1.049 GB, free: 100.2 MB / 0.5263 GB Notification: Performance of pre-optimization done (n=747): time 1.484e-05/3.953, allocations: 2.281 kB / 1.049 GB, free: 100.2 MB / 0.5263 GB Notification: Performance of matching and sorting (n=829): time 0.2937/4.247, allocations: 83.23 MB / 1.13 GB, free: 68.78 MB / 0.5263 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001219/4.247, allocations: 311.5 kB / 1.131 GB, free: 68.42 MB / 0.5263 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02122/4.268, allocations: 9.357 MB / 1.14 GB, free: 60.59 MB / 0.5263 GB Notification: Performance of collectPreVariables (initialization): time 0.001477/4.27, allocations: 140.9 kB / 1.14 GB, free: 60.45 MB / 0.5263 GB Notification: Performance of collectInitialEqns (initialization): time 0.006553/4.276, allocations: 9.487 MB / 1.149 GB, free: 51.92 MB / 0.5263 GB Notification: Performance of collectInitialBindings (initialization): time 0.003804/4.28, allocations: 2.986 MB / 1.152 GB, free: 49.27 MB / 0.5263 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002449/4.282, allocations: 359.8 kB / 1.152 GB, free: 48.93 MB / 0.5263 GB Notification: Performance of setup shared object (initialization): time 0.001697/4.284, allocations: 1.107 MB / 1.153 GB, free: 48.03 MB / 0.5263 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01714/4.301, allocations: 8.329 MB / 1.162 GB, free: 40.93 MB / 0.5263 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02318/4.325, allocations: 17.87 MB / 1.179 GB, free: 20.37 MB / 0.5263 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02252/4.347, allocations: 12.18 MB / 1.191 GB, free: 9.934 MB / 0.5263 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002544/4.347, allocations: 96 kB / 1.191 GB, free: 9.84 MB / 0.5263 GB Notification: Performance of matching and sorting (n=2401) (initialization): time 0.4495/4.797, allocations: 27.56 MB / 1.218 GB, free: 95.84 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002736/4.797, allocations: 147.9 kB / 1.218 GB, free: 95.84 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004865/4.798, allocations: 330.8 kB / 1.218 GB, free: 95.84 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009031/4.807, allocations: 2.406 MB / 1.221 GB, free: 95.81 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02012/4.827, allocations: 4.287 MB / 1.225 GB, free: 95.81 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02593/4.853, allocations: 14.83 MB / 1.239 GB, free: 93.11 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01781/4.871, allocations: 1.09 MB / 1.24 GB, free: 93.11 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003677/4.875, allocations: 0.9965 MB / 1.241 GB, free: 93.11 MB / 0.5419 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.0175/4.892, allocations: 7.176 MB / 1.248 GB, free: 92.88 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0026/4.895, allocations: 1.01 MB / 1.249 GB, free: 92.88 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03732/4.932, allocations: 16.06 MB / 1.265 GB, free: 92.44 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002402/4.932, allocations: 171.8 kB / 1.265 GB, free: 92.44 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.367e-05/4.932, allocations: 11.66 kB / 1.265 GB, free: 92.44 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001498/4.933, allocations: 36.47 kB / 1.265 GB, free: 92.44 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08654/5.019, allocations: 34.96 MB / 1.299 GB, free: 80.06 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.97e-05/5.019, allocations: 9.219 kB / 1.299 GB, free: 80.06 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009295/5.029, allocations: 1.399 MB / 1.301 GB, free: 79.96 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007884/5.036, allocations: 1.785 MB / 1.303 GB, free: 79.59 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001672/5.038, allocations: 134.6 kB / 1.303 GB, free: 79.5 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02385/5.062, allocations: 13.36 MB / 1.316 GB, free: 72.56 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.138e-05/5.062, allocations: 15.34 kB / 1.316 GB, free: 72.56 MB / 0.5419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04833/5.11, allocations: 26.85 MB / 1.342 GB, free: 53.12 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0068/5.117, allocations: 2.254 MB / 1.344 GB, free: 51.04 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003104/5.12, allocations: 123.5 kB / 1.344 GB, free: 50.92 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008138/5.129, allocations: 0.5375 MB / 1.345 GB, free: 50.58 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002095/5.131, allocations: 444.2 kB / 1.345 GB, free: 50.3 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001182/5.132, allocations: 194.5 kB / 1.345 GB, free: 50.12 MB / 0.5419 GB Notification: Performance of sorting global known variables: time 0.01495/5.147, allocations: 6.496 MB / 1.352 GB, free: 44.84 MB / 0.5419 GB Notification: Performance of sort global known variables: time 1.455e-06/5.147, allocations: 0 / 1.352 GB, free: 44.84 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.01982/5.167, allocations: 3.438 MB / 1.355 GB, free: 41.42 MB / 0.5419 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.001841/5.169, allocations: 317.8 kB / 1.355 GB, free: 41.12 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.03676/5.205, allocations: 19.88 MB / 1.375 GB, free: 23.65 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 1.045e-05/5.206, allocations: 4 kB / 1.375 GB, free: 23.65 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 0.01515/5.221, allocations: 7.787 MB / 1.382 GB, free: 16.77 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007554/5.228, allocations: 1.244 MB / 1.384 GB, free: 15.72 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4292/5.658, allocations: 42.66 MB / 1.425 GB, free: 115.2 MB / 0.5575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02636/5.684, allocations: 10.59 MB / 1.436 GB, free: 114.2 MB / 0.5575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005815/5.69, allocations: 0.8719 MB / 1.437 GB, free: 114.2 MB / 0.5575 GB Notification: Performance of SimCode: time 1.838e-06/5.69, allocations: 0 / 1.437 GB, free: 114.2 MB / 0.5575 GB Notification: Performance of Templates: time 0.8094/6.499, allocations: 321.4 MB / 1.75 GB, free: 21.19 MB / 0.5575 GB