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.173/2.173, allocations: 234.9 MB / 250.5 MB, free: 9.543 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004408/0.000441, allocations: 8 kB / 314.3 MB, free: 9.602 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2794/0.2799, allocations: 54.87 MB / 369.2 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.09142/0.3713, allocations: 67.53 MB / 436.7 MB, free: 7.004 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.09676/0.4681, allocations: 15.41 MB / 452.1 MB, free: 7.547 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01601/0.4842, allocations: 335.2 kB / 452.5 MB, free: 7.219 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01057/0.4948, allocations: 3.511 MB / 456 MB, free: 3.691 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03269/0.5276, allocations: 9.775 MB / 465.7 MB, free: 9.891 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004412/0.532, allocations: 0.7957 MB / 466.5 MB, free: 9.094 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.3154/0.8474, allocations: 19.1 MB / 485.6 MB, free: 10.55 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01163/0.8591, allocations: 7.798 MB / 493.4 MB, free: 9.891 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003462/0.8626, allocations: 2.003 MB / 495.4 MB, free: 9.887 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004321/0.867, allocations: 2.671 MB / 498.1 MB, free: 9.879 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001478/0.8685, allocations: 290.7 kB / 498.4 MB, free: 9.879 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00314/0.8716, allocations: 1.048 MB / 499.4 MB, free: 9.875 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003625/0.8753, allocations: 3.081 MB / 0.4907 GB, free: 9.875 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001921/0.8772, allocations: 1.642 MB / 0.4923 GB, free: 9.844 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01238/0.8896, allocations: 10.97 MB / 0.5031 GB, free: 4.797 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.3e-06/0.8897, allocations: 3.094 kB / 0.5031 GB, free: 4.797 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.624e-06/0.8897, allocations: 1.75 kB / 0.5031 GB, free: 4.797 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000346/0.8901, allocations: 0 / 0.5031 GB, free: 4.797 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: 3109 * Number of variables: 3109 Notification: Performance of Generate backend data structure: time 0.01756/0.9076, allocations: 7.763 MB / 0.5107 GB, free: 15.19 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.108e-05/0.9077, allocations: 8.031 kB / 0.5107 GB, free: 15.18 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06809/0.9758, allocations: 11.53 MB / 0.5219 GB, free: 4.531 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01389/0.9897, allocations: 5.365 MB / 0.5272 GB, free: 0.7188 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005078/0.9903, allocations: 454.4 kB / 0.5276 GB, free: 488 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002517/0.9928, allocations: 0.5863 MB / 0.5282 GB, free: 96 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04615/1.039, allocations: 20.6 MB / 0.5483 GB, free: 0.5195 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003105/1.039, allocations: 65.25 kB / 0.5483 GB, free: 500 kB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002151/1.042, allocations: 279.8 kB / 0.5486 GB, free: 424 kB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00876/1.05, allocations: 4.291 MB / 0.5528 GB, free: 12.89 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04547/1.096, allocations: 18.13 MB / 0.5705 GB, free: 344 kB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1342/1.23, allocations: 75.11 MB / 0.6439 GB, free: 11.13 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02466/1.255, allocations: 8.132 MB / 0.6518 GB, free: 2.766 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003943/1.255, allocations: 65.45 kB / 0.6519 GB, free: 2.715 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.121e-05/1.255, allocations: 80.42 kB / 0.6519 GB, free: 2.629 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=450): time 1.107e-05/1.255, allocations: 0 / 0.6519 GB, free: 2.629 MB / 0.5105 GB Notification: Performance of matching and sorting (n=497): time 0.3993/1.655, allocations: 42.72 MB / 0.6937 GB, free: 179.9 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.821e-05/1.655, allocations: 223 kB / 0.6939 GB, free: 179.7 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01203/1.667, allocations: 6.721 MB / 0.7004 GB, free: 174 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0009039/1.668, allocations: 96.05 kB / 0.7005 GB, free: 173.9 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003681/1.671, allocations: 5.516 MB / 0.7059 GB, free: 169 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002235/1.674, allocations: 1.812 MB / 0.7077 GB, free: 167.4 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001008/1.675, allocations: 221.2 kB / 0.7079 GB, free: 167.2 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0006995/1.675, allocations: 0.793 MB / 0.7087 GB, free: 166.5 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00934/1.685, allocations: 4.935 MB / 0.7135 GB, free: 162.3 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01246/1.697, allocations: 11.09 MB / 0.7243 GB, free: 148.5 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01254/1.71, allocations: 7.352 MB / 0.7315 GB, free: 141.2 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00014/1.71, allocations: 60 kB / 0.7315 GB, free: 141.1 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1481) (initialization): time 0.03566/1.746, allocations: 17.05 MB / 0.7482 GB, free: 124 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001625/1.746, allocations: 99.83 kB / 0.7483 GB, free: 123.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002252/1.746, allocations: 216.2 kB / 0.7485 GB, free: 123.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005978/1.752, allocations: 1.844 MB / 0.7503 GB, free: 121.9 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01059/1.763, allocations: 2.585 MB / 0.7528 GB, free: 119.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02071/1.784, allocations: 15.04 MB / 0.7675 GB, free: 103.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01007/1.794, allocations: 0.6689 MB / 0.7682 GB, free: 103 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002045/1.796, allocations: 0.6259 MB / 0.7688 GB, free: 102.4 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 972 * 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 (1357): * Single equations (assignments): 1344 * 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.009231/1.805, allocations: 4.176 MB / 0.7729 GB, free: 98.22 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001614/1.807, allocations: 0.6131 MB / 0.7735 GB, free: 97.6 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02143/1.828, allocations: 9.844 MB / 0.7831 GB, free: 87.7 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001412/1.828, allocations: 89.39 kB / 0.7832 GB, free: 87.62 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.038e-05/1.828, allocations: 12 kB / 0.7832 GB, free: 87.61 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.047e-05/1.828, allocations: 19.92 kB / 0.7832 GB, free: 87.59 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04943/1.878, allocations: 21.92 MB / 0.8046 GB, free: 65.49 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.089e-05/1.878, allocations: 8 kB / 0.8046 GB, free: 65.48 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004837/1.883, allocations: 0.7878 MB / 0.8054 GB, free: 64.69 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005475/1.888, allocations: 1.501 MB / 0.8068 GB, free: 63.18 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001071/1.889, allocations: 95.59 kB / 0.8069 GB, free: 63.09 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01945/1.909, allocations: 14.05 MB / 0.8207 GB, free: 48.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-05/1.909, allocations: 15.94 kB / 0.8207 GB, free: 48.48 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02831/1.937, allocations: 15.73 MB / 0.836 GB, free: 32.53 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003934/1.941, allocations: 1.406 MB / 0.8374 GB, free: 31.09 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001441/1.943, allocations: 91.81 kB / 0.8375 GB, free: 31.01 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004293/1.947, allocations: 315.6 kB / 0.8378 GB, free: 30.7 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00126/1.948, allocations: 302.1 kB / 0.8381 GB, free: 30.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007251/1.949, allocations: 124 kB / 0.8382 GB, free: 30.28 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.009045/1.958, allocations: 4.213 MB / 0.8423 GB, free: 26.08 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.219e-06/1.958, allocations: 0 / 0.8423 GB, free: 26.08 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01199/1.97, allocations: 2.068 MB / 0.8443 GB, free: 24.02 MB / 0.5105 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 (381): * Single equations (assignments): 368 * 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.001357/1.972, allocations: 260.8 kB / 0.8446 GB, free: 23.76 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.2905/2.262, allocations: 12.19 MB / 0.8565 GB, free: 186.9 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.237e-05/2.262, allocations: 6.422 kB / 0.8565 GB, free: 186.9 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01026/2.272, allocations: 4.966 MB / 0.8613 GB, free: 186.2 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004688/2.277, allocations: 0.7271 MB / 0.8621 GB, free: 185.9 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04639/2.324, allocations: 24.98 MB / 0.8865 GB, free: 173.4 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01271/2.336, allocations: 6.269 MB / 0.8926 GB, free: 171 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00313/2.34, allocations: 0.5292 MB / 0.8931 GB, free: 170.4 MB / 0.5105 GB Notification: Performance of SimCode: time 2.102e-06/2.34, allocations: 0 / 0.8931 GB, free: 170.4 MB / 0.5105 GB Notification: Performance of Templates: time 0.6052/2.945, allocations: 258.2 MB / 1.145 GB, free: 90.16 MB / 0.5105 GB