Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gc1.actuatedRevolute_b.phi|gc1.actuatedRevolute_b.w|gc2.actuatedRevolute_b.phi|gc2.actuatedRevolute_b.w",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2") Notification: Performance of loadModel(ModelicaTest): time 2.141/2.141, allocations: 234.9 MB / 250.5 MB, free: 9.559 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004315/0.0004318, allocations: 12 kB / 314.3 MB, free: 9.602 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2757/0.2761, allocations: 54.87 MB / 369.2 MB, free: 10.74 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2): time 0.4436/0.7198, allocations: 127.1 MB / 496.3 MB, free: 120 kB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.0584/0.7783, allocations: 27.54 MB / 0.5115 GB, free: 13.5 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02604/0.8044, allocations: 0.6248 MB / 0.5122 GB, free: 13.41 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01972/0.8241, allocations: 6.702 MB / 0.5187 GB, free: 9.41 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.05846/0.8826, allocations: 18.12 MB / 0.5364 GB, free: 3.332 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007789/0.8905, allocations: 1.4 MB / 0.5378 GB, free: 2.496 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.07674/0.9672, allocations: 37.19 MB / 0.5741 GB, free: 3.461 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02636/0.9936, allocations: 14.43 MB / 0.5882 GB, free: 7.457 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00786/1.002, allocations: 3.633 MB / 0.5917 GB, free: 3.812 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009013/1.011, allocations: 4.766 MB / 0.5964 GB, free: 15.03 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002686/1.013, allocations: 0.5117 MB / 0.5969 GB, free: 14.52 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005131/1.019, allocations: 1.21 MB / 0.5981 GB, free: 13.31 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.008798/1.027, allocations: 5.549 MB / 0.6035 GB, free: 7.746 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005445/1.033, allocations: 2.891 MB / 0.6063 GB, free: 4.84 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0289/1.062, allocations: 19.39 MB / 0.6252 GB, free: 1.395 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.963e-06/1.062, allocations: 0 / 0.6252 GB, free: 1.395 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.133e-06/1.062, allocations: 0 / 0.6252 GB, free: 1.395 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0005629/1.062, allocations: 0 / 0.6252 GB, free: 1.395 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5457 * Number of variables: 5457 Notification: Performance of Generate backend data structure: time 0.03617/1.099, allocations: 13.77 MB / 0.6387 GB, free: 3.52 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.165e-05/1.099, allocations: 12.03 kB / 0.6387 GB, free: 3.508 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1302/1.229, allocations: 21.23 MB / 0.6594 GB, free: 14.23 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02621/1.255, allocations: 9.899 MB / 0.6691 GB, free: 4.25 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001046/1.256, allocations: 0.7897 MB / 0.6699 GB, free: 3.457 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004468/1.261, allocations: 1.089 MB / 0.6709 GB, free: 2.367 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.6618/1.923, allocations: 37.24 MB / 0.7073 GB, free: 189.3 MB / 0.5262 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004617/1.923, allocations: 110.2 kB / 0.7074 GB, free: 189.2 MB / 0.5262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003411/1.926, allocations: 498.9 kB / 0.7079 GB, free: 188.8 MB / 0.5262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0123/1.939, allocations: 7.565 MB / 0.7153 GB, free: 181.3 MB / 0.5262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07304/2.012, allocations: 33.25 MB / 0.7477 GB, free: 148.1 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1914/2.203, allocations: 131.1 MB / 0.8757 GB, free: 15.16 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.6336/2.837, allocations: 15.92 MB / 0.8913 GB, free: 180.9 MB / 0.5263 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07967/2.917, allocations: 35.94 MB / 0.9264 GB, free: 168.3 MB / 0.5263 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.884e-05/2.917, allocations: 106.4 kB / 0.9265 GB, free: 168.2 MB / 0.5263 GB Notification: Performance of pre-optimization done (n=747): time 1.515e-05/2.917, allocations: 0 / 0.9265 GB, free: 168.2 MB / 0.5263 GB Notification: Performance of matching and sorting (n=829): time 0.2847/3.202, allocations: 85.56 MB / 1.01 GB, free: 100.8 MB / 0.5263 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001155/3.202, allocations: 316.6 kB / 1.01 GB, free: 100.4 MB / 0.5263 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01917/3.221, allocations: 11.09 MB / 1.021 GB, free: 89.4 MB / 0.5263 GB Notification: Performance of collectPreVariables (initialization): time 0.001365/3.222, allocations: 137.5 kB / 1.021 GB, free: 89.26 MB / 0.5263 GB Notification: Performance of collectInitialEqns (initialization): time 0.005815/3.228, allocations: 9.443 MB / 1.031 GB, free: 79.81 MB / 0.5263 GB Notification: Performance of collectInitialBindings (initialization): time 0.003542/3.232, allocations: 2.996 MB / 1.033 GB, free: 76.84 MB / 0.5263 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001743/3.233, allocations: 356 kB / 1.034 GB, free: 76.5 MB / 0.5263 GB Notification: Performance of setup shared object (initialization): time 0.001217/3.235, allocations: 1.104 MB / 1.035 GB, free: 75.38 MB / 0.5263 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01611/3.251, allocations: 8.444 MB / 1.043 GB, free: 66.93 MB / 0.5263 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02109/3.272, allocations: 18.01 MB / 1.061 GB, free: 44.44 MB / 0.5263 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02141/3.293, allocations: 12.28 MB / 1.073 GB, free: 32.14 MB / 0.5263 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000248/3.294, allocations: 96 kB / 1.073 GB, free: 32.05 MB / 0.5263 GB Notification: Performance of matching and sorting (n=2395) (initialization): time 0.3629/3.657, allocations: 27.92 MB / 1.1 GB, free: 154.4 MB / 0.5263 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002653/3.657, allocations: 147.5 kB / 1.1 GB, free: 154.4 MB / 0.5263 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000408/3.657, allocations: 328.8 kB / 1.1 GB, free: 154.4 MB / 0.5263 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0105/3.668, allocations: 2.707 MB / 1.103 GB, free: 154 MB / 0.5263 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01966/3.688, allocations: 4.305 MB / 1.107 GB, free: 153.5 MB / 0.5263 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02917/3.717, allocations: 16.22 MB / 1.123 GB, free: 145.6 MB / 0.5263 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01625/3.733, allocations: 1.103 MB / 1.124 GB, free: 145.3 MB / 0.5263 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003312/3.736, allocations: 0.9947 MB / 1.125 GB, free: 145.2 MB / 0.5263 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1500 * Number of states: 0 () * Number of discrete variables: 90 (torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],fixedFrame3.color_x[3],fixedFrame3.color_x[2],fixedFrame3.color_x[1],fixedFrame2.color_x[3],fixedFrame2.color_x[2],fixedFrame2.color_x[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],bodyCylinder3.color[3],bodyCylinder3.color[2],bodyCylinder3.color[1],bodyCylinder3.body.sphereColor[3],bodyCylinder3.body.sphereColor[2],bodyCylinder3.body.sphereColor[1],bodyCylinder2.color[3],bodyCylinder2.color[2],bodyCylinder2.color[1],bodyCylinder2.body.sphereColor[3],bodyCylinder2.body.sphereColor[2],bodyCylinder2.body.sphereColor[1],bodyCylinder1.color[3],bodyCylinder1.color[2],bodyCylinder1.color[1],bodyCylinder1.body.sphereColor[3],bodyCylinder1.body.sphereColor[2],bodyCylinder1.body.sphereColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],gc2.fixedTranslation2.color[3],gc2.fixedTranslation2.color[2],gc2.fixedTranslation2.color[1],gc2.fixedTranslation1.color[3],gc2.fixedTranslation1.color[2],gc2.fixedTranslation1.color[1],gc2.actuatedRevolute_b.cylinderColor[3],gc2.actuatedRevolute_b.cylinderColor[2],gc2.actuatedRevolute_b.cylinderColor[1],gc2.actuatedRevolute_a.cylinderColor[3],gc2.actuatedRevolute_a.cylinderColor[2],gc2.actuatedRevolute_a.cylinderColor[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],gc1.fixedTranslation2.color[3],gc1.fixedTranslation2.color[2],gc1.fixedTranslation2.color[1],gc1.fixedTranslation1.color[3],gc1.fixedTranslation1.color[2],gc1.fixedTranslation1.color[1],gc1.actuatedRevolute_b.cylinderColor[3],gc1.actuatedRevolute_b.cylinderColor[2],gc1.actuatedRevolute_b.cylinderColor[1],gc1.actuatedRevolute_a.cylinderColor[3],gc1.actuatedRevolute_a.cylinderColor[2],gc1.actuatedRevolute_a.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2199): * Single equations (assignments): 2182 * Array equations: 15 * 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 {(3,77.8%) 36,(3,77.8%) 36} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0162/3.753, allocations: 7.169 MB / 1.132 GB, free: 142.2 MB / 0.5263 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002489/3.755, allocations: 1.008 MB / 1.133 GB, free: 142.2 MB / 0.5263 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03764/3.793, allocations: 16.5 MB / 1.149 GB, free: 128.7 MB / 0.5263 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002268/3.793, allocations: 166.1 kB / 1.149 GB, free: 128.5 MB / 0.5263 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.062e-05/3.793, allocations: 12.66 kB / 1.149 GB, free: 128.5 MB / 0.5263 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001474/3.793, allocations: 33.84 kB / 1.15 GB, free: 128.5 MB / 0.5263 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07972/3.873, allocations: 35.72 MB / 1.184 GB, free: 94.76 MB / 0.5263 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.495e-05/3.873, allocations: 8 kB / 1.184 GB, free: 94.75 MB / 0.5263 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008691/3.882, allocations: 1.436 MB / 1.186 GB, free: 93.31 MB / 0.5263 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008578/3.891, allocations: 2.079 MB / 1.188 GB, free: 91.23 MB / 0.5263 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001591/3.892, allocations: 130.4 kB / 1.188 GB, free: 91.11 MB / 0.5263 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02373/3.916, allocations: 14.8 MB / 1.202 GB, free: 76.15 MB / 0.5263 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.011e-06/3.916, allocations: 11.89 kB / 1.202 GB, free: 76.14 MB / 0.5263 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04778/3.964, allocations: 25.91 MB / 1.228 GB, free: 50.48 MB / 0.5263 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006578/3.97, allocations: 2.311 MB / 1.23 GB, free: 48.14 MB / 0.5263 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003001/3.973, allocations: 124 kB / 1.23 GB, free: 48.02 MB / 0.5263 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007447/3.981, allocations: 0.5534 MB / 1.231 GB, free: 47.46 MB / 0.5263 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002135/3.983, allocations: 440.4 kB / 1.231 GB, free: 47.03 MB / 0.5263 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008686/3.984, allocations: 194.8 kB / 1.231 GB, free: 46.84 MB / 0.5263 GB Notification: Performance of sorting global known variables: time 0.01362/3.998, allocations: 6.951 MB / 1.238 GB, free: 39.93 MB / 0.5263 GB Notification: Performance of sort global known variables: time 1.169e-06/3.998, allocations: 0 / 1.238 GB, free: 39.93 MB / 0.5263 GB Notification: Performance of remove unused functions: time 0.01774/4.015, allocations: 3.482 MB / 1.241 GB, free: 36.46 MB / 0.5263 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 4 (gc1.actuatedRevolute_b.phi,gc1.actuatedRevolute_b.w,gc2.actuatedRevolute_b.phi,gc2.actuatedRevolute_b.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 (655): * Single equations (assignments): 638 * Array equations: 15 * 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%) 32,(1,100.0%) 32} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001834/4.017, allocations: 328 kB / 1.242 GB, free: 36.13 MB / 0.5263 GB Notification: Performance of simCode: created initialization part: time 0.03682/4.054, allocations: 20.1 MB / 1.261 GB, free: 16.06 MB / 0.5263 GB Notification: Performance of simCode: created event and clocks part: time 1.135e-05/4.054, allocations: 0 / 1.261 GB, free: 16.06 MB / 0.5263 GB Notification: Performance of simCode: created simulation system equations: time 0.0154/4.07, allocations: 7.896 MB / 1.269 GB, free: 8.125 MB / 0.5263 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.2976/4.367, allocations: 1.239 MB / 1.27 GB, free: 175.4 MB / 0.5263 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08313/4.45, allocations: 42.93 MB / 1.312 GB, free: 157.8 MB / 0.5263 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02272/4.473, allocations: 10.59 MB / 1.323 GB, free: 152.9 MB / 0.5263 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005829/4.479, allocations: 0.876 MB / 1.323 GB, free: 152.1 MB / 0.5263 GB Notification: Performance of SimCode: time 1.852e-06/4.479, allocations: 0 / 1.323 GB, free: 152.1 MB / 0.5263 GB Notification: Performance of Templates: time 0.8408/5.32, allocations: 322.8 MB / 1.639 GB, free: 14.77 MB / 0.5419 GB