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.Parts.Rotor1D.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.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.2_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint") Notification: Performance of loadModel(ModelicaTest): time 2.106/2.106, allocations: 234.9 MB / 250.5 MB, free: 9.543 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004395/0.0004396, allocations: 12 kB / 314.4 MB, free: 9.543 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2766/0.2771, allocations: 54.86 MB / 369.3 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.156/0.4332, allocations: 102.5 MB / 471.8 MB, free: 4.062 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002897/0.4335, allocations: 87.95 kB / 471.9 MB, free: 3.977 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6012/1.035, allocations: 106.5 MB / 0.5648 GB, free: 6.656 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.181e-06/1.035, allocations: 7.938 kB / 0.5648 GB, free: 6.648 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002984/1.035, allocations: 112 kB / 0.5649 GB, free: 6.539 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: 1843 * Number of variables: 1843 Notification: Performance of Generate backend data structure: time 0.01666/1.052, allocations: 5.725 MB / 0.5705 GB, free: 0.7383 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.719e-05/1.052, allocations: 8.031 kB / 0.5705 GB, free: 0.7305 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04066/1.092, allocations: 6.927 MB / 0.5773 GB, free: 9.785 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0364/1.129, allocations: 6.918 MB / 0.584 GB, free: 2.809 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008542/1.13, allocations: 402.7 kB / 0.5844 GB, free: 2.414 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00343/1.133, allocations: 0.5348 MB / 0.5849 GB, free: 1.879 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05536/1.189, allocations: 12.78 MB / 0.5974 GB, free: 3.945 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004404/1.189, allocations: 71.25 kB / 0.5975 GB, free: 3.875 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002176/1.191, allocations: 263.9 kB / 0.5977 GB, free: 3.617 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00367/1.195, allocations: 1.125 MB / 0.5988 GB, free: 2.492 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04586/1.241, allocations: 10.47 MB / 0.6091 GB, free: 8 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4226/1.664, allocations: 57.09 MB / 0.6648 GB, free: 63.57 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02538/1.689, allocations: 4.411 MB / 0.6691 GB, free: 62.9 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03392/1.723, allocations: 9.974 MB / 0.6789 GB, free: 61.35 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.249e-05/1.723, allocations: 59.98 kB / 0.6789 GB, free: 61.31 MB / 474.7 MB Notification: Performance of pre-optimization done (n=192): time 5.924e-06/1.723, allocations: 0 / 0.6789 GB, free: 61.31 MB / 474.7 MB Notification: Performance of matching and sorting (n=218): time 0.0625/1.786, allocations: 18.96 MB / 0.6974 GB, free: 57.34 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.041e-05/1.786, allocations: 207.9 kB / 0.6976 GB, free: 57.12 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007633/1.793, allocations: 4.221 MB / 0.7018 GB, free: 56.75 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003792/1.794, allocations: 55.86 kB / 0.7018 GB, free: 56.71 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002298/1.796, allocations: 3.625 MB / 0.7054 GB, free: 54.8 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009134/1.797, allocations: 0.8417 MB / 0.7062 GB, free: 54.33 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004309/1.798, allocations: 130.2 kB / 0.7063 GB, free: 54.33 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003763/1.798, allocations: 0.5812 MB / 0.7069 GB, free: 54 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004393/1.802, allocations: 2.256 MB / 0.7091 GB, free: 53.99 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00659/1.809, allocations: 6.193 MB / 0.7151 GB, free: 48.57 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006864/1.816, allocations: 3.673 MB / 0.7187 GB, free: 47.35 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001043/1.816, allocations: 37.41 kB / 0.7187 GB, free: 47.35 MB / 474.7 MB Notification: Performance of matching and sorting (n=857) (initialization): time 0.0198/1.836, allocations: 8.78 MB / 0.7273 GB, free: 44.86 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001051/1.836, allocations: 73.47 kB / 0.7274 GB, free: 44.86 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001528/1.836, allocations: 139.8 kB / 0.7275 GB, free: 44.86 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003077/1.839, allocations: 0.9294 MB / 0.7284 GB, free: 44.69 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006261/1.846, allocations: 1.513 MB / 0.7299 GB, free: 44.51 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01117/1.857, allocations: 7.605 MB / 0.7373 GB, free: 39.77 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006216/1.863, allocations: 355.5 kB / 0.7377 GB, free: 39.64 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008541/1.864, allocations: 396.4 kB / 0.738 GB, free: 39.59 MB / 474.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.005086/1.869, allocations: 2.561 MB / 0.7405 GB, free: 38.39 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000893/1.87, allocations: 433.6 kB / 0.741 GB, free: 38.16 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008071/1.878, allocations: 3.617 MB / 0.7445 GB, free: 36.63 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.111e-05/1.878, allocations: 26.91 kB / 0.7445 GB, free: 36.61 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.537e-05/1.878, allocations: 11.95 kB / 0.7445 GB, free: 36.59 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-05/1.878, allocations: 9.656 kB / 0.7445 GB, free: 36.59 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01999/1.898, allocations: 9.294 MB / 0.7536 GB, free: 29.03 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.676e-05/1.898, allocations: 1.188 kB / 0.7536 GB, free: 29.03 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002093/1.9, allocations: 347.2 kB / 0.7539 GB, free: 28.75 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002737/1.903, allocations: 0.6875 MB / 0.7546 GB, free: 28.27 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002214/1.903, allocations: 39.95 kB / 0.7547 GB, free: 28.23 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009496/1.913, allocations: 6.743 MB / 0.7612 GB, free: 21.97 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.424e-06/1.913, allocations: 0 / 0.7612 GB, free: 21.97 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01107/1.924, allocations: 6.385 MB / 0.7675 GB, free: 16.36 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002014/1.926, allocations: 0.7348 MB / 0.7682 GB, free: 15.65 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000607/1.927, allocations: 38.39 kB / 0.7682 GB, free: 15.62 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002121/1.929, allocations: 109.8 kB / 0.7683 GB, free: 15.55 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003933/1.929, allocations: 134 kB / 0.7685 GB, free: 15.46 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001949/1.929, allocations: 55.8 kB / 0.7685 GB, free: 15.41 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.005363/1.935, allocations: 2.994 MB / 0.7714 GB, free: 12.95 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.053e-06/1.935, allocations: 4 kB / 0.7714 GB, free: 12.95 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007178/1.942, allocations: 1.187 MB / 0.7726 GB, free: 11.77 MB / 474.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.0005102/1.943, allocations: 178.7 kB / 0.7728 GB, free: 11.6 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01075/1.953, allocations: 5.76 MB / 0.7784 GB, free: 6.562 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.07e-06/1.953, allocations: 0 / 0.7784 GB, free: 6.562 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003685/1.957, allocations: 2.003 MB / 0.7804 GB, free: 4.789 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003009/1.96, allocations: 0.5205 MB / 0.7809 GB, free: 4.355 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02651/1.987, allocations: 13.99 MB / 0.7945 GB, free: 7.645 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007502/1.994, allocations: 4.106 MB / 0.7985 GB, free: 4.57 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001511/1.996, allocations: 334 kB / 0.7989 GB, free: 4.258 MB / 490.7 MB Notification: Performance of SimCode: time 1.683e-06/1.996, allocations: 4 kB / 0.7989 GB, free: 4.254 MB / 490.7 MB Notification: Performance of Templates: time 0.5084/2.504, allocations: 111.9 MB / 0.9081 GB, free: 120.2 MB / 0.5105 GB