Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.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) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Joints.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.1_cpp_ModelicaTest.MultiBody.Joints.GearConstraint") Notification: Performance of loadModel(ModelicaTest): time 1.807/1.807, allocations: 209.3 MB / 222.4 MB, free: 7.723 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.272e-05/3.301e-05, allocations: 4 kB / 277.8 MB, free: 15.31 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0849/0.08495, allocations: 48.7 MB / 326.5 MB, free: 14.52 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3615/0.4465, allocations: 96.75 MB / 423.3 MB, free: 11.08 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002386/0.4468, allocations: 73.89 kB / 423.4 MB, free: 11.04 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.871/1.318, allocations: 163.6 MB / 0.5732 GB, free: 72.5 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.861e-06/1.318, allocations: 4 kB / 0.5732 GB, free: 72.49 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003986/1.318, allocations: 161.7 kB / 0.5733 GB, free: 72.49 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3108 * Number of variables: 3108 Notification: Performance of Generate backend data structure: time 0.02293/1.341, allocations: 7.505 MB / 0.5807 GB, free: 69.36 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.189e-05/1.341, allocations: 10.22 kB / 0.5807 GB, free: 69.36 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05139/1.393, allocations: 10.05 MB / 0.5905 GB, free: 68.76 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0245/1.417, allocations: 8.408 MB / 0.5987 GB, free: 67.58 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006924/1.418, allocations: 0.6169 MB / 0.5993 GB, free: 67.56 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003823/1.422, allocations: 0.828 MB / 0.6001 GB, free: 67.55 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.049/1.471, allocations: 20.35 MB / 0.62 GB, free: 56.45 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004076/1.471, allocations: 90.97 kB / 0.6201 GB, free: 56.36 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003423/1.475, allocations: 398.4 kB / 0.6204 GB, free: 56.03 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003341/1.478, allocations: 2.096 MB / 0.6225 GB, free: 54.28 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03862/1.517, allocations: 17.76 MB / 0.6398 GB, free: 38.16 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4041/1.921, allocations: 84.98 MB / 0.7228 GB, free: 28.95 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02269/1.944, allocations: 7.983 MB / 0.7306 GB, free: 27.69 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007979/1.952, allocations: 5.073 MB / 0.7356 GB, free: 27.64 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002864/1.952, allocations: 67.56 kB / 0.7356 GB, free: 27.64 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.957e-05/1.952, allocations: 71.22 kB / 0.7357 GB, free: 27.59 MB / 442.7 MB Notification: Performance of pre-optimization done (n=450): time 1.04e-05/1.952, allocations: 2 kB / 0.7357 GB, free: 27.59 MB / 442.7 MB Notification: Performance of matching and sorting (n=501): time 0.1206/2.073, allocations: 37.65 MB / 0.7725 GB, free: 22.28 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.961e-05/2.073, allocations: 225.5 kB / 0.7727 GB, free: 22.05 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01211/2.085, allocations: 5.681 MB / 0.7782 GB, free: 21.1 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008984/2.086, allocations: 95.3 kB / 0.7783 GB, free: 21.02 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003846/2.09, allocations: 5.507 MB / 0.7837 GB, free: 16.84 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002224/2.092, allocations: 1.822 MB / 0.7855 GB, free: 15.5 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001186/2.093, allocations: 218.3 kB / 0.7857 GB, free: 15.33 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000846/2.094, allocations: 0.8027 MB / 0.7865 GB, free: 14.81 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009708/2.104, allocations: 4.806 MB / 0.7912 GB, free: 13.18 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01322/2.117, allocations: 10.93 MB / 0.8018 GB, free: 3.438 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01394/2.131, allocations: 7.305 MB / 0.809 GB, free: 1.262 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001981/2.131, allocations: 61.44 kB / 0.809 GB, free: 1.262 MB / 442.7 MB Notification: Performance of matching and sorting (n=1486) (initialization): time 0.04114/2.172, allocations: 16.75 MB / 0.8254 GB, free: 6.523 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002005/2.173, allocations: 100.1 kB / 0.8255 GB, free: 6.426 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003421/2.173, allocations: 216 kB / 0.8257 GB, free: 6.215 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006192/2.179, allocations: 1.71 MB / 0.8274 GB, free: 4.887 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01218/2.191, allocations: 2.601 MB / 0.8299 GB, free: 2.652 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02477/2.216, allocations: 14.07 MB / 0.8436 GB, free: 5.676 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01095/2.227, allocations: 0.666 MB / 0.8443 GB, free: 5.125 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00262/2.23, allocations: 0.635 MB / 0.8449 GB, free: 4.504 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 975 * Number of states: 0 () * Number of discrete variables: 48 (fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame2.color_x[3],fixedFrame2.color_x[2],fixedFrame2.color_x[1],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 (1362): * Single equations (assignments): 1349 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 42,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003973/2.234, allocations: 0.9184 MB / 0.8458 GB, free: 3.586 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001829/2.236, allocations: 0.6092 MB / 0.8464 GB, free: 2.969 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0309/2.267, allocations: 9.995 MB / 0.8562 GB, free: 11.87 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001783/2.267, allocations: 98.36 kB / 0.8563 GB, free: 11.78 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-05/2.267, allocations: 11.09 kB / 0.8563 GB, free: 11.77 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.121e-05/2.267, allocations: 19.88 kB / 0.8563 GB, free: 11.77 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4036/2.671, allocations: 22.34 MB / 0.8781 GB, free: 113.9 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.319e-05/2.671, allocations: 10.06 kB / 0.8781 GB, free: 113.9 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005436/2.676, allocations: 0.7965 MB / 0.8789 GB, free: 113.9 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005178/2.681, allocations: 1.355 MB / 0.8802 GB, free: 113.8 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009436/2.682, allocations: 90.98 kB / 0.8803 GB, free: 113.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0195/2.702, allocations: 12.87 MB / 0.8929 GB, free: 108.7 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.751e-05/2.702, allocations: 15.81 kB / 0.8929 GB, free: 108.7 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02817/2.73, allocations: 17.14 MB / 0.9096 GB, free: 105.5 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004037/2.734, allocations: 1.384 MB / 0.911 GB, free: 105.4 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00135/2.736, allocations: 85.23 kB / 0.9111 GB, free: 105.4 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004047/2.74, allocations: 311.3 kB / 0.9114 GB, free: 105.4 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009387/2.741, allocations: 298.7 kB / 0.9116 GB, free: 105.4 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004978/2.741, allocations: 129.2 kB / 0.9118 GB, free: 105.4 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.007495/2.749, allocations: 3.941 MB / 0.9156 GB, free: 105.2 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.255e-06/2.749, allocations: 0 / 0.9156 GB, free: 105.2 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01189/2.761, allocations: 2.039 MB / 0.9176 GB, free: 105.2 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 48 * 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 (385): * Single equations (assignments): 372 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 39,(1,100.0%) 2,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009615/2.762, allocations: 257.7 kB / 0.9178 GB, free: 105.1 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02402/2.786, allocations: 11.99 MB / 0.9296 GB, free: 102.5 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.991e-05/2.786, allocations: 3.812 kB / 0.9296 GB, free: 102.5 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01516/2.801, allocations: 4.859 MB / 0.9343 GB, free: 100.4 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007816/2.809, allocations: 0.7301 MB / 0.935 GB, free: 100.1 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0663/2.875, allocations: 18.32 MB / 0.9529 GB, free: 93.3 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01916/2.894, allocations: 6.285 MB / 0.959 GB, free: 91.34 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004495/2.899, allocations: 0.5238 MB / 0.9596 GB, free: 91.32 MB / 490.7 MB Notification: Performance of SimCode: time 2.404e-06/2.899, allocations: 0 / 0.9596 GB, free: 91.32 MB / 490.7 MB Notification: Performance of Templates: time 0.6956/3.594, allocations: 257.7 MB / 1.211 GB, free: 12.87 MB / 0.4948 GB