Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint") Notification: Performance of loadModel(ModelicaTest): time 1.856/1.856, allocations: 209.2 MB / 225.4 MB, free: 0.625 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006141/0.0006142, allocations: 8 kB / 283.1 MB, free: 9.703 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3905/0.3911, allocations: 48.7 MB / 331.8 MB, free: 6.508 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1997/0.5908, allocations: 95.25 MB / 427 MB, free: 15.18 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003484/0.5912, allocations: 87.94 kB / 427.1 MB, free: 15.1 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7639/1.355, allocations: 107 MB / 0.5216 GB, free: 74.71 MB / 394.7 MB Notification: Performance of FrontEnd: time 4.248e-06/1.355, allocations: 0 / 0.5216 GB, free: 74.71 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004368/1.356, allocations: 111.9 kB / 0.5217 GB, free: 74.6 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1842 * Number of variables: 1842 Notification: Performance of Generate backend data structure: time 0.04969/1.405, allocations: 5.734 MB / 0.5273 GB, free: 68.82 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.021e-05/1.405, allocations: 8.031 kB / 0.5274 GB, free: 68.81 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06897/1.474, allocations: 6.888 MB / 0.5341 GB, free: 61.91 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02436/1.499, allocations: 6.892 MB / 0.5408 GB, free: 55.05 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004961/1.499, allocations: 404.9 kB / 0.5412 GB, free: 54.68 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002939/1.502, allocations: 0.5287 MB / 0.5417 GB, free: 54.16 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03595/1.538, allocations: 12.46 MB / 0.5539 GB, free: 40.55 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000371/1.539, allocations: 71.25 kB / 0.5539 GB, free: 40.48 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002415/1.541, allocations: 263.9 kB / 0.5542 GB, free: 40.22 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002398/1.544, allocations: 1.118 MB / 0.5553 GB, free: 39.1 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02946/1.573, allocations: 9.979 MB / 0.565 GB, free: 29.11 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09149/1.665, allocations: 56.49 MB / 0.6202 GB, free: 2.738 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3246/1.989, allocations: 4.144 MB / 0.6242 GB, free: 100.9 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02748/2.017, allocations: 9.497 MB / 0.6335 GB, free: 99.52 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.343e-05/2.017, allocations: 58.7 kB / 0.6336 GB, free: 99.47 MB / 426.7 MB Notification: Performance of pre-optimization done (n=191): time 6.061e-06/2.017, allocations: 0 / 0.6336 GB, free: 99.47 MB / 426.7 MB Notification: Performance of matching and sorting (n=218): time 0.1122/2.129, allocations: 19.78 MB / 0.6529 GB, free: 95.77 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001222/2.129, allocations: 212.4 kB / 0.6531 GB, free: 95.55 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01546/2.145, allocations: 4.76 MB / 0.6577 GB, free: 94.03 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005624/2.145, allocations: 59.67 kB / 0.6578 GB, free: 93.98 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00341/2.149, allocations: 3.616 MB / 0.6613 GB, free: 91.12 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001374/2.15, allocations: 0.8365 MB / 0.6622 GB, free: 90.51 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008121/2.151, allocations: 132.5 kB / 0.6623 GB, free: 90.41 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004426/2.152, allocations: 0.5879 MB / 0.6629 GB, free: 89.98 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005923/2.158, allocations: 2.242 MB / 0.665 GB, free: 89.24 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008949/2.167, allocations: 6.208 MB / 0.6711 GB, free: 83.22 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008766/2.175, allocations: 3.665 MB / 0.6747 GB, free: 82 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001822/2.176, allocations: 41.66 kB / 0.6747 GB, free: 82 MB / 426.7 MB Notification: Performance of matching and sorting (n=857) (initialization): time 0.02501/2.201, allocations: 8.755 MB / 0.6833 GB, free: 78.99 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001204/2.201, allocations: 66.12 kB / 0.6833 GB, free: 78.99 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002235/2.201, allocations: 138.4 kB / 0.6835 GB, free: 78.99 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004613/2.206, allocations: 0.9371 MB / 0.6844 GB, free: 78.81 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009237/2.215, allocations: 1.507 MB / 0.6859 GB, free: 78.63 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01401/2.229, allocations: 7.617 MB / 0.6933 GB, free: 72.62 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00751/2.237, allocations: 359.2 kB / 0.6936 GB, free: 72.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001542/2.238, allocations: 398.8 kB / 0.694 GB, free: 71.92 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 635 * Number of states: 0 () * Number of discrete variables: 42 (fixed.color[3],fixed.color[2],fixed.color[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],cyl2.color[3],cyl2.color[2],cyl2.color[1],cyl2.body.sphereColor[3],cyl2.body.sphereColor[2],cyl2.body.sphereColor[1],cyl1.color[3],cyl1.color[2],cyl1.color[1],cyl1.body.sphereColor[3],cyl1.body.sphereColor[2],cyl1.body.sphereColor[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],gearConstraint.fixedTranslation2.color[3],gearConstraint.fixedTranslation2.color[2],gearConstraint.fixedTranslation2.color[1],gearConstraint.fixedTranslation1.color[3],gearConstraint.fixedTranslation1.color[2],gearConstraint.fixedTranslation1.color[1],gearConstraint.actuatedRevolute_b.cylinderColor[3],gearConstraint.actuatedRevolute_b.cylinderColor[2],gearConstraint.actuatedRevolute_b.cylinderColor[1],gearConstraint.actuatedRevolute_a.cylinderColor[3],gearConstraint.actuatedRevolute_a.cylinderColor[2],gearConstraint.actuatedRevolute_a.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (795): * Single equations (assignments): 790 * Array equations: 3 * 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%) 33,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007238/2.245, allocations: 2.569 MB / 0.6965 GB, free: 69.66 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001134/2.247, allocations: 430.4 kB / 0.6969 GB, free: 69.23 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01089/2.258, allocations: 3.584 MB / 0.7004 GB, free: 66.27 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.351e-05/2.258, allocations: 28.39 kB / 0.7005 GB, free: 66.25 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.17e-05/2.258, allocations: 11.94 kB / 0.7005 GB, free: 66.24 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.151e-05/2.258, allocations: 7.125 kB / 0.7005 GB, free: 66.24 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0274/2.285, allocations: 9.264 MB / 0.7095 GB, free: 58.68 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.441e-05/2.285, allocations: 4 kB / 0.7095 GB, free: 58.68 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003277/2.289, allocations: 338.2 kB / 0.7099 GB, free: 58.41 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003948/2.293, allocations: 0.6953 MB / 0.7105 GB, free: 57.91 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005052/2.293, allocations: 48.88 kB / 0.7106 GB, free: 57.88 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01241/2.306, allocations: 6.738 MB / 0.7172 GB, free: 51.59 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.081e-06/2.306, allocations: 0 / 0.7172 GB, free: 51.59 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01608/2.322, allocations: 6.209 MB / 0.7232 GB, free: 46.16 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002902/2.325, allocations: 0.7426 MB / 0.7239 GB, free: 45.45 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001566/2.326, allocations: 32 kB / 0.724 GB, free: 45.42 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003847/2.33, allocations: 122.2 kB / 0.7241 GB, free: 45.34 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007584/2.331, allocations: 122.2 kB / 0.7242 GB, free: 45.27 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002204/2.331, allocations: 59.42 kB / 0.7243 GB, free: 45.21 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.007356/2.339, allocations: 3.005 MB / 0.7272 GB, free: 42.75 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.022e-06/2.339, allocations: 0 / 0.7272 GB, free: 42.75 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008283/2.347, allocations: 1.186 MB / 0.7284 GB, free: 41.57 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (gearConstraint.actuatedRevolute_b.phi,gearConstraint.actuatedRevolute_b.w,inertia1.phi,inertia1.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 (169): * Single equations (assignments): 164 * Array equations: 3 * 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%) 27,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008422/2.348, allocations: 178.1 kB / 0.7285 GB, free: 41.39 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01405/2.362, allocations: 5.724 MB / 0.7341 GB, free: 36.35 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.075e-06/2.362, allocations: 0 / 0.7341 GB, free: 36.35 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005334/2.367, allocations: 1.989 MB / 0.7361 GB, free: 34.57 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004571/2.372, allocations: 0.5325 MB / 0.7366 GB, free: 34.12 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03361/2.406, allocations: 14.03 MB / 0.7503 GB, free: 21.32 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01014/2.416, allocations: 4.105 MB / 0.7543 GB, free: 17.29 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002014/2.418, allocations: 339.4 kB / 0.7546 GB, free: 16.96 MB / 426.7 MB Notification: Performance of SimCode: time 1.413e-06/2.418, allocations: 0 / 0.7546 GB, free: 16.96 MB / 426.7 MB Notification: Performance of Templates: time 0.5635/2.981, allocations: 111.8 MB / 0.8638 GB, free: 60.88 MB / 442.7 MB