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.681/1.681, allocations: 171.1 MB / 186.7 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003534/0.0003535, allocations: 8 kB / 233.2 MB, free: 3.016 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06959/0.06997, allocations: 38.77 MB / 272 MB, free: 12.17 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3112/0.3813, allocations: 86.65 MB / 358.7 MB, free: 3.582 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000279/0.3816, allocations: 87.45 kB / 358.7 MB, free: 3.535 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5807/0.9623, allocations: 106 MB / 464.8 MB, free: 70.42 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.062e-06/0.9624, allocations: 0 / 464.8 MB, free: 70.42 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003396/0.9627, allocations: 109.9 kB / 464.9 MB, free: 70.42 MB / 346.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.01734/0.9801, allocations: 5.729 MB / 470.6 MB, free: 68.06 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.797e-05/0.9801, allocations: 6.812 kB / 470.6 MB, free: 68.06 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03377/1.014, allocations: 6.89 MB / 477.5 MB, free: 67.68 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0232/1.037, allocations: 6.827 MB / 484.3 MB, free: 66.84 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004562/1.038, allocations: 409.7 kB / 484.7 MB, free: 66.83 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002216/1.04, allocations: 0.5382 MB / 485.3 MB, free: 66.82 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02864/1.069, allocations: 12.4 MB / 497.7 MB, free: 60.38 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002856/1.069, allocations: 81.69 kB / 497.8 MB, free: 60.34 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001599/1.071, allocations: 251.6 kB / 498 MB, free: 60.19 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001722/1.072, allocations: 1.126 MB / 499.1 MB, free: 59.27 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02328/1.096, allocations: 9.987 MB / 0.4972 GB, free: 49.96 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06761/1.163, allocations: 56.49 MB / 0.5524 GB, free: 7.969 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0141/1.177, allocations: 4.152 MB / 0.5564 GB, free: 3.672 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2289/1.406, allocations: 9.483 MB / 0.5657 GB, free: 78.59 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.938e-05/1.406, allocations: 54.22 kB / 0.5657 GB, free: 78.55 MB / 362.7 MB Notification: Performance of pre-optimization done (n=191): time 6.884e-06/1.406, allocations: 1.219 kB / 0.5657 GB, free: 78.55 MB / 362.7 MB Notification: Performance of matching and sorting (n=218): time 0.06839/1.475, allocations: 19.35 MB / 0.5846 GB, free: 75.02 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.98e-05/1.475, allocations: 207.9 kB / 0.5848 GB, free: 74.8 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00853/1.483, allocations: 4.231 MB / 0.5889 GB, free: 74.42 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003759/1.484, allocations: 62.98 kB / 0.589 GB, free: 74.39 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002577/1.486, allocations: 3.619 MB / 0.5925 GB, free: 72.41 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009739/1.487, allocations: 0.8287 MB / 0.5933 GB, free: 71.84 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005506/1.488, allocations: 129.7 kB / 0.5935 GB, free: 71.74 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003869/1.488, allocations: 0.585 MB / 0.594 GB, free: 71.31 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004505/1.493, allocations: 2.247 MB / 0.5962 GB, free: 70.57 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00708/1.5, allocations: 6.181 MB / 0.6023 GB, free: 64.56 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006704/1.507, allocations: 3.661 MB / 0.6058 GB, free: 63.33 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001062/1.507, allocations: 38.78 kB / 0.6059 GB, free: 63.33 MB / 362.7 MB Notification: Performance of matching and sorting (n=857) (initialization): time 0.01929/1.526, allocations: 8.761 MB / 0.6144 GB, free: 60.3 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001035/1.526, allocations: 67.75 kB / 0.6145 GB, free: 60.3 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001517/1.527, allocations: 144.6 kB / 0.6146 GB, free: 60.3 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003142/1.53, allocations: 0.9438 MB / 0.6156 GB, free: 60.12 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005992/1.536, allocations: 1.501 MB / 0.617 GB, free: 59.95 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01095/1.547, allocations: 7.606 MB / 0.6245 GB, free: 55.18 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00633/1.553, allocations: 356.8 kB / 0.6248 GB, free: 55.06 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00123/1.554, allocations: 396.3 kB / 0.6252 GB, free: 55.01 MB / 362.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.006044/1.56, allocations: 2.571 MB / 0.6277 GB, free: 53.8 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009438/1.561, allocations: 429.2 kB / 0.6281 GB, free: 53.57 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008264/1.57, allocations: 3.589 MB / 0.6316 GB, free: 51.1 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.006e-05/1.57, allocations: 27.14 kB / 0.6316 GB, free: 51.07 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.936e-05/1.57, allocations: 11.33 kB / 0.6316 GB, free: 51.07 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.932e-05/1.57, allocations: 6.562 kB / 0.6316 GB, free: 51.07 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02357/1.593, allocations: 9.261 MB / 0.6407 GB, free: 43.52 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.009e-05/1.594, allocations: 4 kB / 0.6407 GB, free: 43.52 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002252/1.596, allocations: 347.6 kB / 0.641 GB, free: 43.24 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002925/1.599, allocations: 0.6957 MB / 0.6417 GB, free: 42.75 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003966/1.599, allocations: 36.94 kB / 0.6417 GB, free: 42.71 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009834/1.609, allocations: 6.742 MB / 0.6483 GB, free: 36.43 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.65e-06/1.609, allocations: 7.938 kB / 0.6483 GB, free: 36.42 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01172/1.621, allocations: 6.323 MB / 0.6545 GB, free: 30.84 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002284/1.623, allocations: 0.7498 MB / 0.6552 GB, free: 30.13 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001002/1.624, allocations: 33.09 kB / 0.6553 GB, free: 30.1 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002576/1.627, allocations: 113.1 kB / 0.6554 GB, free: 30.02 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005773/1.627, allocations: 132.8 kB / 0.6555 GB, free: 29.94 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000202/1.628, allocations: 56.75 kB / 0.6556 GB, free: 29.89 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.006946/1.635, allocations: 2.999 MB / 0.6585 GB, free: 27.43 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.278e-06/1.635, allocations: 4 kB / 0.6585 GB, free: 27.42 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.007917/1.643, allocations: 1.181 MB / 0.6596 GB, free: 26.25 MB / 362.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.0006577/1.643, allocations: 177.6 kB / 0.6598 GB, free: 26.08 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01092/1.654, allocations: 5.719 MB / 0.6654 GB, free: 21.04 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.399e-06/1.654, allocations: 3.938 kB / 0.6654 GB, free: 21.03 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003949/1.658, allocations: 1.986 MB / 0.6673 GB, free: 19.26 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003381/1.662, allocations: 0.5326 MB / 0.6679 GB, free: 18.81 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02672/1.688, allocations: 13.98 MB / 0.6815 GB, free: 6.055 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00905/1.697, allocations: 4.116 MB / 0.6855 GB, free: 2.977 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001465/1.699, allocations: 333.9 kB / 0.6859 GB, free: 2.664 MB / 362.7 MB Notification: Performance of SimCode: time 1.796e-06/1.699, allocations: 0 / 0.6859 GB, free: 2.664 MB / 362.7 MB Notification: Performance of Templates: time 0.378/2.077, allocations: 111.8 MB / 0.795 GB, free: 25.91 MB / 378.7 MB