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/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.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.096/2.096, allocations: 234.9 MB / 250.5 MB, free: 9.535 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004329/0.0004331, allocations: 16 kB / 314.4 MB, free: 9.539 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.271/0.2714, allocations: 54.85 MB / 369.3 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.185/0.4565, allocations: 104.1 MB / 473.4 MB, free: 2.457 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002626/0.4568, allocations: 75.97 kB / 473.4 MB, free: 2.383 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8282/1.285, allocations: 163.4 MB / 0.6219 GB, free: 11.79 MB / 458.7 MB Notification: Performance of FrontEnd: time 5.539e-06/1.285, allocations: 0 / 0.6219 GB, free: 11.79 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000442/1.285, allocations: 159.9 kB / 0.622 GB, free: 11.63 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: 3109 * Number of variables: 3109 Notification: Performance of Generate backend data structure: time 0.02725/1.313, allocations: 7.991 MB / 0.6298 GB, free: 3.543 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.135e-05/1.313, allocations: 8.031 kB / 0.6298 GB, free: 3.535 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.6063/1.919, allocations: 10.04 MB / 0.6396 GB, free: 58.94 MB / 458.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02453/1.944, allocations: 8.447 MB / 0.6479 GB, free: 58.59 MB / 458.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007419/1.945, allocations: 0.6206 MB / 0.6485 GB, free: 58.57 MB / 458.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003893/1.948, allocations: 0.828 MB / 0.6493 GB, free: 58.56 MB / 458.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04934/1.998, allocations: 20.53 MB / 0.6694 GB, free: 54.58 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004695/1.998, allocations: 86.78 kB / 0.6694 GB, free: 54.57 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003482/2.002, allocations: 400.7 kB / 0.6698 GB, free: 54.57 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003614/2.005, allocations: 2.099 MB / 0.6719 GB, free: 54.55 MB / 458.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04257/2.048, allocations: 18.07 MB / 0.6895 GB, free: 54.48 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1161/2.164, allocations: 85.07 MB / 0.7726 GB, free: 7.113 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02302/2.187, allocations: 8.051 MB / 0.7805 GB, free: 48 kB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004014/2.188, allocations: 70.28 kB / 0.7805 GB, free: 0 / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001043/2.188, allocations: 77.52 kB / 0.7806 GB, free: 15.91 MB / 490.8 MB Notification: Performance of pre-optimization done (n=450): time 9.324e-06/2.188, allocations: 0 / 0.7806 GB, free: 15.91 MB / 490.8 MB Notification: Performance of matching and sorting (n=501): time 0.4444/2.632, allocations: 44.57 MB / 0.8241 GB, free: 97.84 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.858e-05/2.632, allocations: 237.5 kB / 0.8244 GB, free: 97.61 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01303/2.645, allocations: 5.727 MB / 0.8299 GB, free: 97.11 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.0008722/2.646, allocations: 92.23 kB / 0.83 GB, free: 97.08 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.004092/2.65, allocations: 5.513 MB / 0.8354 GB, free: 94.52 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.002414/2.653, allocations: 1.826 MB / 0.8372 GB, free: 93.44 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001237/2.654, allocations: 219.4 kB / 0.8374 GB, free: 93.44 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.0008815/2.655, allocations: 0.803 MB / 0.8382 GB, free: 93.11 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009914/2.665, allocations: 4.915 MB / 0.843 GB, free: 93.08 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01361/2.679, allocations: 11.04 MB / 0.8538 GB, free: 85.3 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01385/2.692, allocations: 7.345 MB / 0.861 GB, free: 85.25 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001956/2.693, allocations: 60.41 kB / 0.861 GB, free: 85.25 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1487) (initialization): time 0.03951/2.732, allocations: 16.96 MB / 0.8776 GB, free: 84.05 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.000166/2.732, allocations: 96.69 kB / 0.8777 GB, free: 84.05 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002655/2.733, allocations: 215 kB / 0.8779 GB, free: 84.05 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006232/2.739, allocations: 1.715 MB / 0.8795 GB, free: 83.73 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01132/2.75, allocations: 2.598 MB / 0.8821 GB, free: 83.43 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02097/2.771, allocations: 14.38 MB / 0.8961 GB, free: 74.36 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01132/2.783, allocations: 0.6621 MB / 0.8968 GB, free: 74.16 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002241/2.785, allocations: 0.6325 MB / 0.8974 GB, free: 74.07 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 976 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1363): * Single equations (assignments): 1350 * 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.01018/2.795, allocations: 4.201 MB / 0.9015 GB, free: 72.19 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001595/2.797, allocations: 0.616 MB / 0.9021 GB, free: 71.85 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02159/2.818, allocations: 9.716 MB / 0.9116 GB, free: 68.21 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001532/2.819, allocations: 96.77 kB / 0.9117 GB, free: 68.2 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.198e-05/2.819, allocations: 14.81 kB / 0.9117 GB, free: 68.2 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.332e-05/2.819, allocations: 21.56 kB / 0.9117 GB, free: 68.2 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04934/2.868, allocations: 21.7 MB / 0.9329 GB, free: 56.98 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.642e-05/2.868, allocations: 8 kB / 0.9329 GB, free: 56.98 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00478/2.873, allocations: 0.7957 MB / 0.9337 GB, free: 56.35 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004913/2.878, allocations: 1.371 MB / 0.935 GB, free: 55.38 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009367/2.879, allocations: 87.94 kB / 0.9351 GB, free: 55.29 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01761/2.897, allocations: 13.25 MB / 0.948 GB, free: 42.88 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.375e-05/2.897, allocations: 15.94 kB / 0.9481 GB, free: 42.87 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0292/2.926, allocations: 17.31 MB / 0.965 GB, free: 26.95 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004196/2.93, allocations: 1.386 MB / 0.9663 GB, free: 25.66 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001842/2.932, allocations: 91.69 kB / 0.9664 GB, free: 25.57 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004741/2.937, allocations: 313.4 kB / 0.9667 GB, free: 25.38 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001311/2.938, allocations: 294.9 kB / 0.967 GB, free: 25.2 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007622/2.939, allocations: 130.1 kB / 0.9671 GB, free: 25.07 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.009087/2.948, allocations: 3.989 MB / 0.971 GB, free: 21.82 MB / 0.4949 GB Notification: Performance of sort global known variables: time 1.331e-06/2.948, allocations: 0 / 0.971 GB, free: 21.82 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01282/2.961, allocations: 2.039 MB / 0.973 GB, free: 19.79 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 48 * 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 (385): * Single equations (assignments): 372 * 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.001238/2.962, allocations: 254.5 kB / 0.9732 GB, free: 19.54 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.02232/2.984, allocations: 12.16 MB / 0.9851 GB, free: 8.777 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.321e-05/2.984, allocations: 4 kB / 0.9851 GB, free: 8.773 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.009071/2.994, allocations: 4.937 MB / 0.9899 GB, free: 4.336 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005117/2.999, allocations: 0.7295 MB / 0.9906 GB, free: 3.711 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3569/3.356, allocations: 25.29 MB / 1.015 GB, free: 98.23 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01471/3.37, allocations: 6.275 MB / 1.021 GB, free: 97.31 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00315/3.374, allocations: 0.5284 MB / 1.022 GB, free: 97.3 MB / 0.5105 GB Notification: Performance of SimCode: time 1.863e-06/3.374, allocations: 0 / 1.022 GB, free: 97.3 MB / 0.5105 GB Notification: Performance of Templates: time 0.6567/4.03, allocations: 257.8 MB / 1.274 GB, free: 97.57 MB / 0.5262 GB