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.Joints.GearConstraint.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Joints.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.2_cpp_ModelicaTest.MultiBody.Joints.GearConstraint") Notification: Performance of loadModel(ModelicaTest): time 2.107/2.107, allocations: 235.1 MB / 243 MB, free: 9.59 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.601e-05/1.607e-05, allocations: 4 kB / 303.2 MB, free: 13.29 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2742/0.2743, allocations: 54.85 MB / 358 MB, free: 14.93 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1582/0.4325, allocations: 103.3 MB / 461.4 MB, free: 7.434 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002139/0.4328, allocations: 75.95 kB / 461.5 MB, free: 7.359 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.777/1.21, allocations: 160 MB / 0.6069 GB, free: 7.281 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.986e-06/1.21, allocations: 4 kB / 0.6069 GB, free: 7.277 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0004269/1.21, allocations: 156 kB / 0.607 GB, free: 7.125 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: 3109 * Number of variables: 3109 Notification: Performance of Generate backend data structure: time 0.02498/1.235, allocations: 7.484 MB / 0.6143 GB, free: 15.55 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.573e-05/1.235, allocations: 12.03 kB / 0.6143 GB, free: 15.54 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0539/1.289, allocations: 10.06 MB / 0.6241 GB, free: 5.457 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.5738/1.863, allocations: 8.4 MB / 0.6323 GB, free: 63.81 MB / 458.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005393/1.864, allocations: 270.9 kB / 0.6326 GB, free: 63.81 MB / 458.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0036/1.867, allocations: 493.8 kB / 0.6331 GB, free: 63.81 MB / 458.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02724/1.895, allocations: 13.1 MB / 0.6459 GB, free: 63.77 MB / 458.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04033/1.935, allocations: 18.79 MB / 0.6642 GB, free: 59.83 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003735/1.935, allocations: 92.48 kB / 0.6643 GB, free: 59.83 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002337/1.938, allocations: 45.03 kB / 0.6644 GB, free: 59.83 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003067/1.941, allocations: 2.105 MB / 0.6664 GB, free: 59.81 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1134/2.054, allocations: 81.03 MB / 0.7455 GB, free: 9.297 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01097/2.065, allocations: 8.072 MB / 0.7534 GB, free: 4.941 MB / 458.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007269/2.073, allocations: 4.979 MB / 0.7583 GB, free: 0.918 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002542/2.073, allocations: 68.91 kB / 0.7583 GB, free: 0.8711 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.141e-05/2.073, allocations: 77.22 kB / 0.7584 GB, free: 0.7852 MB / 458.8 MB Notification: Performance of pre-optimization done (n=452): time 1.068e-05/2.073, allocations: 0 / 0.7584 GB, free: 0.7852 MB / 458.8 MB Notification: Performance of matching and sorting (n=499): time 0.1196/2.193, allocations: 37.67 MB / 0.7952 GB, free: 3.719 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001711/2.193, allocations: 225.5 kB / 0.7954 GB, free: 3.457 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01522/2.208, allocations: 5.151 MB / 0.8005 GB, free: 15.13 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.001461/2.21, allocations: 25.7 kB / 0.8005 GB, free: 15.1 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.0116/2.221, allocations: 5.726 MB / 0.8061 GB, free: 9.938 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.005354/2.227, allocations: 1.76 MB / 0.8078 GB, free: 8.348 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0019/2.229, allocations: 0 / 0.8078 GB, free: 8.348 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.002133/2.231, allocations: 0.824 MB / 0.8086 GB, free: 7.656 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02251/2.253, allocations: 4.645 MB / 0.8131 GB, free: 3.477 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3241/2.577, allocations: 11.43 MB / 0.8243 GB, free: 96.09 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01479/2.592, allocations: 7.241 MB / 0.8314 GB, free: 96.03 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004468/2.593, allocations: 64.25 kB / 0.8314 GB, free: 96.03 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1557) (initialization): time 0.03756/2.63, allocations: 15.68 MB / 0.8467 GB, free: 95.38 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002422/2.631, allocations: 111 kB / 0.8468 GB, free: 95.38 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003172/2.631, allocations: 228.1 kB / 0.8471 GB, free: 95.38 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00595/2.637, allocations: 1.714 MB / 0.8487 GB, free: 95.34 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01168/2.649, allocations: 2.726 MB / 0.8514 GB, free: 95.11 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01854/2.667, allocations: 13.18 MB / 0.8643 GB, free: 89.99 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01058/2.678, allocations: 474.8 kB / 0.8647 GB, free: 89.99 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002872/2.681, allocations: 0.6637 MB / 0.8654 GB, free: 89.99 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1048 * Number of states: 0 () * Number of discrete variables: 48 (fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame2.color_x[3],fixedFrame2.color_x[2],fixedFrame2.color_x[1],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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1433): * Single equations (assignments): 1420 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 42,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004275/2.685, allocations: 0.6769 MB / 0.866 GB, free: 89.64 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001344/2.686, allocations: 0.5898 MB / 0.8666 GB, free: 89.64 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02002/2.706, allocations: 9.134 MB / 0.8755 GB, free: 89.3 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000172/2.707, allocations: 92.59 kB / 0.8756 GB, free: 89.3 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.452e-05/2.707, allocations: 10.56 kB / 0.8756 GB, free: 89.3 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.663e-05/2.707, allocations: 21.52 kB / 0.8756 GB, free: 89.3 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04468/2.752, allocations: 19.7 MB / 0.8949 GB, free: 84.88 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.383e-05/2.752, allocations: 14.47 kB / 0.8949 GB, free: 84.88 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005012/2.757, allocations: 0.7908 MB / 0.8957 GB, free: 84.82 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00523/2.762, allocations: 1.34 MB / 0.897 GB, free: 84.51 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008163/2.763, allocations: 29.34 kB / 0.897 GB, free: 84.51 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01712/2.78, allocations: 12.13 MB / 0.9088 GB, free: 76.64 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.6e-05/2.78, allocations: 19.78 kB / 0.9089 GB, free: 76.63 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0274/2.807, allocations: 16.58 MB / 0.9251 GB, free: 66.39 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003951/2.811, allocations: 1.331 MB / 0.9264 GB, free: 65.15 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001601/2.813, allocations: 19.33 kB / 0.9264 GB, free: 65.14 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004323/2.817, allocations: 242 kB / 0.9266 GB, free: 65.01 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001256/2.819, allocations: 304.5 kB / 0.9269 GB, free: 64.82 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004695/2.819, allocations: 123.9 kB / 0.927 GB, free: 64.7 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.00708/2.826, allocations: 3.415 MB / 0.9303 GB, free: 61.75 MB / 0.4949 GB Notification: Performance of sort global known variables: time 1.203e-06/2.826, allocations: 4 kB / 0.9303 GB, free: 61.75 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.0131/2.839, allocations: 1.748 MB / 0.9321 GB, free: 60 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 50 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (383): * Single equations (assignments): 370 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 39,(1,100.0%) 2,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001168/2.841, allocations: 186 kB / 0.9322 GB, free: 59.84 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.0202/2.861, allocations: 11.45 MB / 0.9434 GB, free: 49.4 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.298e-05/2.861, allocations: 0 / 0.9434 GB, free: 49.4 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.008108/2.869, allocations: 4.68 MB / 0.948 GB, free: 45.11 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004149/2.873, allocations: 0.5568 MB / 0.9485 GB, free: 44.64 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03945/2.913, allocations: 18.04 MB / 0.9661 GB, free: 28.43 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01151/2.924, allocations: 6.265 MB / 0.9723 GB, free: 23.8 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002906/2.927, allocations: 0.5241 MB / 0.9728 GB, free: 23.3 MB / 0.4949 GB Notification: Performance of SimCode: time 1.808e-06/2.927, allocations: 0 / 0.9728 GB, free: 23.3 MB / 0.4949 GB Notification: Performance of Templates: time 0.9388/3.866, allocations: 253.7 MB / 1.221 GB, free: 131.8 MB / 0.5418 GB