Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") Notification: Performance of loadModel(Modelica): time 1.764/1.764, allocations: 171.1 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004816/0.0004818, allocations: 11.98 kB / 233.8 MB, free: 2.395 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.102, allocations: 38.77 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4475/0.5496, allocations: 86.65 MB / 359.3 MB, free: 2.914 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003161/0.55, allocations: 87.95 kB / 359.4 MB, free: 2.867 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6947/1.245, allocations: 106.8 MB / 466.2 MB, free: 70.98 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.596e-06/1.245, allocations: 0 / 466.2 MB, free: 70.98 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0004696/1.245, allocations: 108.9 kB / 466.3 MB, free: 70.97 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.02965/1.275, allocations: 5.726 MB / 472 MB, free: 68.62 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.174e-05/1.275, allocations: 10.12 kB / 472 MB, free: 68.62 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05156/1.327, allocations: 6.893 MB / 478.9 MB, free: 68.24 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0253/1.352, allocations: 6.819 MB / 485.8 MB, free: 67.36 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000564/1.353, allocations: 406.3 kB / 486.2 MB, free: 67.26 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004009/1.357, allocations: 0.5336 MB / 486.7 MB, free: 67.1 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04657/1.403, allocations: 12.41 MB / 499.1 MB, free: 59.95 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005383/1.404, allocations: 67.41 kB / 499.2 MB, free: 59.88 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003605/1.407, allocations: 256.7 kB / 499.4 MB, free: 59.66 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00378/1.411, allocations: 1.132 MB / 0.4888 GB, free: 58.71 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04544/1.457, allocations: 9.984 MB / 0.4986 GB, free: 48.74 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09149/1.548, allocations: 56.49 MB / 0.5537 GB, free: 6.746 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01833/1.567, allocations: 4.153 MB / 0.5578 GB, free: 2.445 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2823/1.849, allocations: 9.478 MB / 0.567 GB, free: 79.48 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.131e-05/1.849, allocations: 53.69 kB / 0.5671 GB, free: 79.45 MB / 362.7 MB Notification: Performance of pre-optimization done (n=191): time 6.463e-06/1.849, allocations: 0 / 0.5671 GB, free: 79.45 MB / 362.7 MB Notification: Performance of matching and sorting (n=218): time 0.09033/1.94, allocations: 19.79 MB / 0.5864 GB, free: 75.9 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001007/1.94, allocations: 199.4 kB / 0.5866 GB, free: 75.68 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01028/1.95, allocations: 4.768 MB / 0.5913 GB, free: 75.25 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004979/1.951, allocations: 56.3 kB / 0.5913 GB, free: 75.19 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003311/1.954, allocations: 3.767 MB / 0.595 GB, free: 72.48 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001233/1.955, allocations: 0.825 MB / 0.5958 GB, free: 71.88 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007842/1.956, allocations: 133.2 kB / 0.5959 GB, free: 71.78 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0004379/1.956, allocations: 0.5766 MB / 0.5965 GB, free: 71.36 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005765/1.962, allocations: 2.246 MB / 0.5987 GB, free: 70.62 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008335/1.971, allocations: 6.181 MB / 0.6047 GB, free: 64.6 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008419/1.979, allocations: 3.662 MB / 0.6083 GB, free: 63.38 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001292/1.979, allocations: 39.94 kB / 0.6083 GB, free: 63.38 MB / 362.7 MB Notification: Performance of matching and sorting (n=857) (initialization): time 0.02983/2.009, allocations: 8.939 MB / 0.6171 GB, free: 60.18 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001944/2.009, allocations: 65.75 kB / 0.6171 GB, free: 60.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003753/2.01, allocations: 140 kB / 0.6173 GB, free: 60.18 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006977/2.017, allocations: 0.9422 MB / 0.6182 GB, free: 60 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01429/2.031, allocations: 1.504 MB / 0.6196 GB, free: 59.82 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02154/2.053, allocations: 7.609 MB / 0.6271 GB, free: 55.06 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01181/2.065, allocations: 357.4 kB / 0.6274 GB, free: 54.93 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002169/2.067, allocations: 396.9 kB / 0.6278 GB, free: 54.88 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.01039/2.077, allocations: 2.565 MB / 0.6303 GB, free: 52.9 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001669/2.079, allocations: 434 kB / 0.6307 GB, free: 52.48 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01709/2.096, allocations: 3.586 MB / 0.6342 GB, free: 49.52 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.584e-05/2.096, allocations: 25.25 kB / 0.6342 GB, free: 49.49 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-05/2.096, allocations: 11.75 kB / 0.6343 GB, free: 49.48 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.291e-05/2.097, allocations: 7.359 kB / 0.6343 GB, free: 49.48 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04012/2.137, allocations: 9.272 MB / 0.6433 GB, free: 41.93 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.883e-05/2.137, allocations: 0 / 0.6433 GB, free: 41.93 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003444/2.14, allocations: 338.3 kB / 0.6436 GB, free: 41.66 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004022/2.144, allocations: 0.6912 MB / 0.6443 GB, free: 41.16 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005492/2.145, allocations: 36 kB / 0.6443 GB, free: 41.13 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01236/2.157, allocations: 6.754 MB / 0.6509 GB, free: 34.83 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/2.157, allocations: 0 / 0.6509 GB, free: 34.83 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0156/2.173, allocations: 6.207 MB / 0.657 GB, free: 29.4 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002883/2.176, allocations: 0.7426 MB / 0.6577 GB, free: 28.69 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001523/2.177, allocations: 32 kB / 0.6578 GB, free: 28.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003662/2.181, allocations: 105.4 kB / 0.6579 GB, free: 28.59 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000738/2.182, allocations: 140 kB / 0.658 GB, free: 28.5 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00021/2.182, allocations: 56.94 kB / 0.658 GB, free: 28.45 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.007711/2.19, allocations: 3 MB / 0.661 GB, free: 25.99 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.61e-07/2.19, allocations: 0 / 0.661 GB, free: 25.99 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.008141/2.198, allocations: 1.186 MB / 0.6621 GB, free: 24.81 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.0007786/2.199, allocations: 184.4 kB / 0.6623 GB, free: 24.64 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01362/2.213, allocations: 5.72 MB / 0.6679 GB, free: 19.6 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.903e-06/2.213, allocations: 0 / 0.6679 GB, free: 19.6 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00504/2.218, allocations: 1.989 MB / 0.6698 GB, free: 17.82 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004339/2.222, allocations: 0.5242 MB / 0.6704 GB, free: 17.38 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0304/2.253, allocations: 13.43 MB / 0.6835 GB, free: 5.074 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009069/2.262, allocations: 4.119 MB / 0.6875 GB, free: 1.98 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.009507/2.271, allocations: 2.087 MB / 0.6895 GB, free: 15.9 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001777/2.273, allocations: 287.4 kB / 0.6898 GB, free: 15.62 MB / 378.7 MB Notification: Performance of SimCode: time 1.212e-06/2.273, allocations: 0 / 0.6898 GB, free: 15.62 MB / 378.7 MB Notification: Performance of Templates: time 0.4062/2.679, allocations: 41.01 MB / 0.7298 GB, free: 82.3 MB / 378.7 MB