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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.955/1.955, allocations: 209.4 MB / 217.3 MB, free: 4.156 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.905e-05/1.908e-05, allocations: 4 kB / 271.3 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2619/0.2619, allocations: 48.7 MB / 320 MB, free: 14.37 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1434/0.4054, allocations: 95.31 MB / 415.3 MB, free: 1.078 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002803/0.4057, allocations: 83.95 kB / 415.4 MB, free: 0.9961 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.371/1.777, allocations: 277.4 MB / 0.6766 GB, free: 36.46 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.604e-06/1.777, allocations: 0 / 0.6766 GB, free: 36.46 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006751/1.777, allocations: 276.1 kB / 0.6768 GB, free: 36.45 MB / 410.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.04082/1.818, allocations: 13.18 MB / 0.6897 GB, free: 30.86 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.662e-05/1.818, allocations: 12.03 kB / 0.6897 GB, free: 30.84 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09158/1.91, allocations: 18.45 MB / 0.7077 GB, free: 17.15 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03849/1.948, allocations: 14.84 MB / 0.7222 GB, free: 2.742 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007253/1.949, allocations: 476 kB / 0.7227 GB, free: 2.277 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00607/1.955, allocations: 0.8535 MB / 0.7235 GB, free: 1.426 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0553/2.011, allocations: 23.57 MB / 0.7465 GB, free: 9.859 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3602/2.371, allocations: 32.63 MB / 0.7784 GB, free: 52.73 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000773/2.372, allocations: 132.1 kB / 0.7785 GB, free: 52.73 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00543/2.377, allocations: 60.97 kB / 0.7786 GB, free: 52.73 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006267/2.383, allocations: 3.716 MB / 0.7822 GB, free: 52.71 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2066/2.59, allocations: 134.4 MB / 0.9134 GB, free: 6.723 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3081/2.898, allocations: 14.31 MB / 0.9274 GB, free: 91.77 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01621/2.914, allocations: 9.19 MB / 0.9364 GB, free: 91.71 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001817/2.916, allocations: 1.298 MB / 0.9376 GB, free: 90.57 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.85e-05/2.916, allocations: 112.6 kB / 0.9377 GB, free: 90.53 MB / 474.7 MB Notification: Performance of pre-optimization done (n=808): time 1.764e-05/2.916, allocations: 0 / 0.9377 GB, free: 90.53 MB / 474.7 MB Notification: Performance of matching and sorting (n=882): time 0.1971/3.114, allocations: 77.09 MB / 1.013 GB, free: 73.38 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000114/3.114, allocations: 309 kB / 1.013 GB, free: 73.02 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01714/3.131, allocations: 8.321 MB / 1.021 GB, free: 65.93 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001401/3.132, allocations: 29.7 kB / 1.021 GB, free: 65.9 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006327/3.139, allocations: 9.62 MB / 1.031 GB, free: 57.19 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003811/3.143, allocations: 3.076 MB / 1.034 GB, free: 54.4 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001769/3.144, allocations: 3.562 kB / 1.034 GB, free: 54.4 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.00199/3.146, allocations: 1.15 MB / 1.035 GB, free: 53.48 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01538/3.162, allocations: 7.892 MB / 1.043 GB, free: 46.39 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02148/3.183, allocations: 18.07 MB / 1.06 GB, free: 24.89 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02213/3.205, allocations: 12.05 MB / 1.072 GB, free: 15.27 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003245/3.206, allocations: 100 kB / 1.072 GB, free: 15.17 MB / 474.7 MB Notification: Performance of matching and sorting (n=2533) (initialization): time 0.06216/3.268, allocations: 25.62 MB / 1.097 GB, free: 9.379 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006479/3.269, allocations: 243.7 kB / 1.097 GB, free: 9.363 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001475/3.27, allocations: 0.5258 MB / 1.098 GB, free: 9.363 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.3195/3.59, allocations: 2.465 MB / 1.1 GB, free: 90.55 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02039/3.61, allocations: 4.521 MB / 1.105 GB, free: 90.55 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02331/3.634, allocations: 13.71 MB / 1.118 GB, free: 87.98 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0179/3.651, allocations: 0.7621 MB / 1.119 GB, free: 87.98 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004285/3.656, allocations: 1.058 MB / 1.12 GB, free: 87.98 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1634 * 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 (2337): * Single equations (assignments): 2320 * 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.006642/3.662, allocations: 1.027 MB / 1.121 GB, free: 87.65 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00289/3.665, allocations: 0.9857 MB / 1.122 GB, free: 87.65 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0389/3.704, allocations: 16.7 MB / 1.138 GB, free: 87.13 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002778/3.705, allocations: 170.3 kB / 1.138 GB, free: 87.13 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.576e-05/3.705, allocations: 17.7 kB / 1.138 GB, free: 87.12 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001605/3.705, allocations: 35.97 kB / 1.138 GB, free: 87.12 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08757/3.792, allocations: 35.07 MB / 1.173 GB, free: 79.5 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.479e-05/3.793, allocations: 16.98 kB / 1.173 GB, free: 79.5 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009746/3.802, allocations: 1.49 MB / 1.174 GB, free: 79.45 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007932/3.81, allocations: 1.758 MB / 1.176 GB, free: 79.09 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001606/3.812, allocations: 37.08 kB / 1.176 GB, free: 79.09 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02157/3.834, allocations: 12.14 MB / 1.188 GB, free: 72.76 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.1e-05/3.834, allocations: 23.42 kB / 1.188 GB, free: 72.76 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04715/3.881, allocations: 28.8 MB / 1.216 GB, free: 49.28 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007025/3.888, allocations: 2.248 MB / 1.218 GB, free: 47.41 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00298/3.891, allocations: 22.91 kB / 1.218 GB, free: 47.39 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008126/3.899, allocations: 440.6 kB / 1.219 GB, free: 47.16 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0023/3.901, allocations: 499.7 kB / 1.219 GB, free: 46.86 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001385/3.903, allocations: 214.7 kB / 1.219 GB, free: 46.66 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.01378/3.917, allocations: 5.543 MB / 1.225 GB, free: 41.9 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.294e-06/3.917, allocations: 3.281 kB / 1.225 GB, free: 41.9 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.03111/3.948, allocations: 2.977 MB / 1.228 GB, free: 38.93 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * 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 (704): * Single equations (assignments): 687 * 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.002444/3.95, allocations: 218.1 kB / 1.228 GB, free: 38.79 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.05839/4.009, allocations: 19.11 MB / 1.246 GB, free: 21.5 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.712e-05/4.009, allocations: 0 / 1.246 GB, free: 21.5 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02707/4.036, allocations: 7.902 MB / 1.254 GB, free: 14.38 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009942/4.046, allocations: 0.9451 MB / 1.255 GB, free: 13.58 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3883/4.434, allocations: 31.63 MB / 1.286 GB, free: 99.21 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02653/4.461, allocations: 10.59 MB / 1.296 GB, free: 98.13 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006097/4.467, allocations: 0.8732 MB / 1.297 GB, free: 98.12 MB / 0.4948 GB Notification: Performance of SimCode: time 2.078e-06/4.467, allocations: 0 / 1.297 GB, free: 98.12 MB / 0.4948 GB Notification: Performance of Templates: time 0.8013/5.268, allocations: 315.8 MB / 1.605 GB, free: 12.65 MB / 0.5105 GB