Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") Notification: Performance of loadModel(Modelica): time 1.748/1.748, allocations: 171.2 MB / 187.3 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003632/0.0003634, allocations: 8 kB / 233.8 MB, free: 3.074 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08662/0.08701, allocations: 38.76 MB / 272.5 MB, free: 12.23 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.389/0.4761, allocations: 86.65 MB / 359.2 MB, free: 3.676 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003431/0.4765, allocations: 92.83 kB / 359.3 MB, free: 3.629 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6985/1.175, allocations: 106.8 MB / 466.1 MB, free: 70.39 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.885e-06/1.175, allocations: 0 / 466.1 MB, free: 70.39 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003831/1.175, allocations: 105.3 kB / 466.2 MB, free: 70.39 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.02425/1.2, allocations: 5.73 MB / 472 MB, free: 68.03 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.423e-05/1.2, allocations: 10.34 kB / 472 MB, free: 68.03 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04975/1.25, allocations: 6.892 MB / 478.9 MB, free: 67.65 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02436/1.274, allocations: 6.819 MB / 485.7 MB, free: 66.82 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005099/1.275, allocations: 410.2 kB / 486.1 MB, free: 66.81 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002813/1.277, allocations: 0.5364 MB / 486.6 MB, free: 66.8 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03644/1.314, allocations: 12.45 MB / 499.1 MB, free: 60.16 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004517/1.314, allocations: 67.41 kB / 499.1 MB, free: 60.1 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002619/1.317, allocations: 259.2 kB / 499.4 MB, free: 59.88 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002432/1.319, allocations: 1.126 MB / 0.4888 GB, free: 58.93 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02916/1.349, allocations: 9.978 MB / 0.4985 GB, free: 49.25 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08567/1.434, allocations: 56.49 MB / 0.5537 GB, free: 7.258 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.018/1.452, allocations: 4.146 MB / 0.5577 GB, free: 2.969 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2906/1.743, allocations: 9.478 MB / 0.567 GB, free: 78.74 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.427e-05/1.743, allocations: 54.98 kB / 0.567 GB, free: 78.7 MB / 362.7 MB Notification: Performance of pre-optimization done (n=191): time 6.392e-06/1.743, allocations: 0 / 0.567 GB, free: 78.7 MB / 362.7 MB Notification: Performance of matching and sorting (n=218): time 0.09668/1.84, allocations: 19.78 MB / 0.5864 GB, free: 75.16 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.679e-05/1.84, allocations: 203.9 kB / 0.5866 GB, free: 74.93 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01207/1.852, allocations: 4.763 MB / 0.5912 GB, free: 74.53 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005456/1.853, allocations: 60.11 kB / 0.5913 GB, free: 74.5 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003485/1.856, allocations: 3.62 MB / 0.5948 GB, free: 72.13 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001412/1.858, allocations: 0.8269 MB / 0.5956 GB, free: 71.52 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009035/1.859, allocations: 135.6 kB / 0.5957 GB, free: 71.42 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0005998/1.859, allocations: 0.5891 MB / 0.5963 GB, free: 70.99 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006077/1.865, allocations: 2.245 MB / 0.5985 GB, free: 70.25 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008831/1.874, allocations: 6.205 MB / 0.6046 GB, free: 64.24 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008647/1.883, allocations: 3.666 MB / 0.6081 GB, free: 63.01 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001808/1.883, allocations: 40.97 kB / 0.6082 GB, free: 63.01 MB / 362.7 MB Notification: Performance of matching and sorting (n=857) (initialization): time 0.02501/1.908, allocations: 8.76 MB / 0.6167 GB, free: 59.98 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001172/1.908, allocations: 67.72 kB / 0.6168 GB, free: 59.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002677/1.909, allocations: 140.7 kB / 0.6169 GB, free: 59.98 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004613/1.913, allocations: 0.9353 MB / 0.6179 GB, free: 59.81 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009412/1.923, allocations: 1.508 MB / 0.6193 GB, free: 59.63 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01402/1.937, allocations: 7.611 MB / 0.6268 GB, free: 54.87 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00772/1.945, allocations: 359.6 kB / 0.6271 GB, free: 54.74 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001593/1.946, allocations: 400.6 kB / 0.6275 GB, free: 54.69 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.007792/1.954, allocations: 2.561 MB / 0.63 GB, free: 53.28 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001134/1.955, allocations: 426.5 kB / 0.6304 GB, free: 52.86 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01143/1.967, allocations: 3.591 MB / 0.6339 GB, free: 49.89 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.909e-05/1.967, allocations: 25.02 kB / 0.6339 GB, free: 49.87 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.914e-05/1.967, allocations: 12 kB / 0.6339 GB, free: 49.86 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-05/1.967, allocations: 6.984 kB / 0.6339 GB, free: 49.86 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02785/1.995, allocations: 9.262 MB / 0.643 GB, free: 42.31 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.961e-05/1.995, allocations: 0 / 0.643 GB, free: 42.31 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003325/1.998, allocations: 351 kB / 0.6433 GB, free: 42.03 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003919/2.002, allocations: 0.6861 MB / 0.644 GB, free: 41.54 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005047/2.003, allocations: 35.94 kB / 0.644 GB, free: 41.51 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01201/2.015, allocations: 6.752 MB / 0.6506 GB, free: 35.21 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/2.015, allocations: 3.797 kB / 0.6506 GB, free: 35.21 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01502/2.03, allocations: 6.213 MB / 0.6567 GB, free: 29.78 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002761/2.033, allocations: 0.7423 MB / 0.6574 GB, free: 29.07 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001572/2.034, allocations: 32 kB / 0.6574 GB, free: 29.04 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003691/2.038, allocations: 109.2 kB / 0.6575 GB, free: 28.96 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007316/2.039, allocations: 134.8 kB / 0.6577 GB, free: 28.88 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002154/2.039, allocations: 55.38 kB / 0.6577 GB, free: 28.83 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.007874/2.047, allocations: 2.999 MB / 0.6607 GB, free: 26.37 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.082e-06/2.047, allocations: 4 kB / 0.6607 GB, free: 26.37 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.008468/2.055, allocations: 1.189 MB / 0.6618 GB, free: 25.18 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.0008019/2.056, allocations: 187 kB / 0.662 GB, free: 25.01 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01372/2.07, allocations: 5.715 MB / 0.6676 GB, free: 19.97 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.083e-06/2.07, allocations: 0 / 0.6676 GB, free: 19.97 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005158/2.075, allocations: 1.991 MB / 0.6695 GB, free: 18.19 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004411/2.08, allocations: 0.5314 MB / 0.67 GB, free: 17.74 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03252/2.112, allocations: 14.02 MB / 0.6837 GB, free: 4.949 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009696/2.122, allocations: 4.113 MB / 0.6878 GB, free: 1.875 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001918/2.124, allocations: 335.3 kB / 0.6881 GB, free: 1.559 MB / 362.7 MB Notification: Performance of SimCode: time 1.343e-06/2.124, allocations: 0 / 0.6881 GB, free: 1.559 MB / 362.7 MB Notification: Performance of Templates: time 0.4991/2.623, allocations: 111.8 MB / 0.7972 GB, free: 23.57 MB / 378.7 MB