Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") Notification: Performance of loadModel(Modelica): time 1.589/1.589, allocations: 171.2 MB / 184.2 MB, free: 12.09 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.031e-05/3.053e-05, allocations: 4 kB / 228.8 MB, free: 15.45 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2095/0.2095, allocations: 38.77 MB / 267.6 MB, free: 9.465 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1279/0.3375, allocations: 86.56 MB / 354.2 MB, free: 2.77 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002741/0.3378, allocations: 83.95 kB / 354.2 MB, free: 2.688 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5377/0.8755, allocations: 106.1 MB / 460.4 MB, free: 2.199 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.828e-06/0.8756, allocations: 4 kB / 460.4 MB, free: 2.195 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0003506/0.876, allocations: 111.9 kB / 460.5 MB, free: 2.086 MB / 314.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.0175/0.8935, allocations: 5.258 MB / 465.7 MB, free: 12.76 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.952e-05/0.8935, allocations: 8.031 kB / 465.7 MB, free: 12.75 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03808/0.9316, allocations: 6.893 MB / 472.6 MB, free: 5.84 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02164/0.9533, allocations: 6.797 MB / 479.4 MB, free: 14.98 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005859/0.954, allocations: 402.7 kB / 479.8 MB, free: 14.59 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002383/0.9564, allocations: 0.5387 MB / 480.4 MB, free: 14.05 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03328/0.9897, allocations: 12.28 MB / 492.6 MB, free: 0.625 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003546/0.9901, allocations: 79.33 kB / 492.7 MB, free: 0.5469 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001963/0.992, allocations: 259.9 kB / 493 MB, free: 300 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.2098/1.202, allocations: 1.12 MB / 494.1 MB, free: 54.93 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02438/1.226, allocations: 9.793 MB / 0.4921 GB, free: 54.88 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08247/1.309, allocations: 56.5 MB / 0.5473 GB, free: 20.4 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01294/1.322, allocations: 4.094 MB / 0.5513 GB, free: 18.76 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003847/1.326, allocations: 2.258 MB / 0.5535 GB, free: 17.78 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01952/1.345, allocations: 9.5 MB / 0.5627 GB, free: 13.18 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.86e-05/1.345, allocations: 51.38 kB / 0.5628 GB, free: 13.12 MB / 346.7 MB Notification: Performance of pre-optimization done (n=191): time 6.346e-06/1.345, allocations: 3.906 kB / 0.5628 GB, free: 13.12 MB / 346.7 MB Notification: Performance of matching and sorting (n=218): time 0.05781/1.403, allocations: 16.5 MB / 0.5789 GB, free: 5.688 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.753e-05/1.403, allocations: 205 kB / 0.5791 GB, free: 5.449 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0126/1.416, allocations: 4.19 MB / 0.5832 GB, free: 1.801 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005246/1.417, allocations: 57.7 kB / 0.5832 GB, free: 1.738 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005368/1.422, allocations: 3.62 MB / 0.5868 GB, free: 14.45 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001941/1.424, allocations: 0.8334 MB / 0.5876 GB, free: 13.72 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009019/1.425, allocations: 128 kB / 0.5877 GB, free: 13.6 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0008797/1.426, allocations: 0.5859 MB / 0.5883 GB, free: 13.08 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008502/1.434, allocations: 2.18 MB / 0.5904 GB, free: 11.11 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01667/1.451, allocations: 6.118 MB / 0.5964 GB, free: 3.465 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009175/1.46, allocations: 3.627 MB / 0.5999 GB, free: 0.5625 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001377/1.46, allocations: 40 kB / 0.6 GB, free: 0.5234 MB / 362.7 MB Notification: Performance of matching and sorting (n=857) (initialization): time 0.0247/1.485, allocations: 8.741 MB / 0.6085 GB, free: 9.289 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001355/1.485, allocations: 70.16 kB / 0.6086 GB, free: 9.227 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001968/1.486, allocations: 140 kB / 0.6087 GB, free: 9.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00354/1.489, allocations: 0.9402 MB / 0.6096 GB, free: 8.348 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006795/1.496, allocations: 1.506 MB / 0.6111 GB, free: 7.039 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01329/1.509, allocations: 7.412 MB / 0.6183 GB, free: 132 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008725/1.518, allocations: 430 kB / 0.6187 GB, free: 0 / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004354/1.522, allocations: 0.5657 MB / 0.6193 GB, free: 0 / 378.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 () * 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.2171/1.74, allocations: 0.6188 MB / 0.6199 GB, free: 79.1 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001057/1.741, allocations: 430.9 kB / 0.6203 GB, free: 79.1 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008447/1.749, allocations: 3.514 MB / 0.6237 GB, free: 78.95 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.981e-05/1.749, allocations: 25.03 kB / 0.6238 GB, free: 78.95 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.663e-05/1.749, allocations: 6.469 kB / 0.6238 GB, free: 78.95 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.327e-05/1.749, allocations: 13.84 kB / 0.6238 GB, free: 78.95 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02074/1.77, allocations: 9.191 MB / 0.6328 GB, free: 78.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.772e-05/1.77, allocations: 0 / 0.6328 GB, free: 78.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002107/1.772, allocations: 345.1 kB / 0.6331 GB, free: 78.43 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003049/1.775, allocations: 0.6854 MB / 0.6338 GB, free: 78.42 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002767/1.776, allocations: 34.84 kB / 0.6338 GB, free: 78.42 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009827/1.785, allocations: 6.555 MB / 0.6402 GB, free: 75.82 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.48e-06/1.785, allocations: 2.781 kB / 0.6402 GB, free: 75.82 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01153/1.797, allocations: 6.216 MB / 0.6463 GB, free: 75.2 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002254/1.799, allocations: 0.737 MB / 0.647 GB, free: 75.1 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001076/1.8, allocations: 43.28 kB / 0.647 GB, free: 75.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002846/1.803, allocations: 107.1 kB / 0.6471 GB, free: 75.1 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005362/1.804, allocations: 131.9 kB / 0.6473 GB, free: 75.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002127/1.804, allocations: 58.98 kB / 0.6473 GB, free: 75.1 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.006661/1.811, allocations: 2.953 MB / 0.6502 GB, free: 74.9 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.123e-06/1.811, allocations: 3.469 kB / 0.6502 GB, free: 74.9 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.007802/1.819, allocations: 1.186 MB / 0.6514 GB, free: 74.9 MB / 378.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 () * 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.0006581/1.819, allocations: 183.2 kB / 0.6515 GB, free: 74.81 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01114/1.831, allocations: 5.601 MB / 0.657 GB, free: 74.52 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.264e-06/1.831, allocations: 0 / 0.657 GB, free: 74.52 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004036/1.835, allocations: 1.938 MB / 0.6589 GB, free: 73.73 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003704/1.838, allocations: 0.5287 MB / 0.6594 GB, free: 73.51 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02324/1.862, allocations: 9.873 MB / 0.6691 GB, free: 69.84 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007812/1.869, allocations: 4.115 MB / 0.6731 GB, free: 68.38 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001448/1.871, allocations: 332.2 kB / 0.6734 GB, free: 68.37 MB / 378.7 MB Notification: Performance of SimCode: time 1.918e-06/1.871, allocations: 0 / 0.6734 GB, free: 68.37 MB / 378.7 MB Notification: Performance of Templates: time 0.3703/2.241, allocations: 111.8 MB / 0.7825 GB, free: 80.53 MB / 378.7 MB