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.Parts.Rotor1D.GearConstraint2.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.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.1_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2") Notification: Performance of loadModel(ModelicaTest): time 1.8/1.8, allocations: 209.3 MB / 224.8 MB, free: 284 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004421/0.0004422, allocations: 12 kB / 282.5 MB, free: 9.656 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2799/0.2803, allocations: 48.7 MB / 331.2 MB, free: 6.488 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2): time 0.1782/0.4586, allocations: 127 MB / 458.2 MB, free: 15.23 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.3441/0.8027, allocations: 27.47 MB / 485.7 MB, free: 220 kB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02777/0.8305, allocations: 0.627 MB / 486.3 MB, free: 220 kB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0233/0.8539, allocations: 6.907 MB / 493.2 MB, free: 15.52 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.05911/0.913, allocations: 18.13 MB / 0.4994 GB, free: 11.04 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008098/0.9212, allocations: 1.388 MB / 0.5007 GB, free: 10.68 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.07456/0.9958, allocations: 37.16 MB / 0.537 GB, free: 6.062 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02663/1.022, allocations: 14.4 MB / 0.5511 GB, free: 11.93 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008046/1.031, allocations: 3.622 MB / 0.5546 GB, free: 9.547 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008833/1.039, allocations: 4.742 MB / 0.5593 GB, free: 6.281 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002948/1.042, allocations: 0.5117 MB / 0.5598 GB, free: 5.77 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005266/1.048, allocations: 1.206 MB / 0.5609 GB, free: 4.742 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.008165/1.056, allocations: 5.539 MB / 0.5663 GB, free: 0.8867 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004797/1.061, allocations: 2.897 MB / 0.5692 GB, free: 15.67 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02826/1.089, allocations: 19.39 MB / 0.5881 GB, free: 14.84 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.3e-06/1.089, allocations: 0 / 0.5881 GB, free: 14.84 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.076e-06/1.089, allocations: 0 / 0.5881 GB, free: 14.84 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0005215/1.09, allocations: 0 / 0.5881 GB, free: 14.84 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5455 * Number of variables: 5455 Notification: Performance of Generate backend data structure: time 0.03549/1.125, allocations: 13.76 MB / 0.6015 GB, free: 2.242 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/1.125, allocations: 8.031 kB / 0.6015 GB, free: 2.234 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1267/1.252, allocations: 21.22 MB / 0.6223 GB, free: 14.68 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02619/1.278, allocations: 9.885 MB / 0.6319 GB, free: 7.273 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009688/1.279, allocations: 0.7911 MB / 0.6327 GB, free: 6.836 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004689/1.284, allocations: 1.045 MB / 0.6337 GB, free: 6.156 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.6105/1.894, allocations: 36.66 MB / 0.6695 GB, free: 204.4 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005188/1.895, allocations: 109.3 kB / 0.6696 GB, free: 204.3 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002978/1.898, allocations: 0.489 MB / 0.6701 GB, free: 204.3 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01398/1.912, allocations: 7.572 MB / 0.6775 GB, free: 204.2 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07882/1.991, allocations: 32.39 MB / 0.7091 GB, free: 190.6 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2435/2.234, allocations: 129.9 MB / 0.836 GB, free: 59.2 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04066/2.275, allocations: 15.4 MB / 0.851 GB, free: 43.48 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07144/2.347, allocations: 34.96 MB / 0.8852 GB, free: 8.598 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.098e-05/2.347, allocations: 111.2 kB / 0.8853 GB, free: 8.477 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=745): time 1.425e-05/2.347, allocations: 0 / 0.8853 GB, free: 8.477 MB / 0.5105 GB Notification: Performance of matching and sorting (n=827): time 0.7773/3.124, allocations: 82.6 MB / 0.9659 GB, free: 164 MB / 0.5107 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001097/3.124, allocations: 307 kB / 0.9662 GB, free: 163.7 MB / 0.5107 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02013/3.144, allocations: 11.09 MB / 0.977 GB, free: 153 MB / 0.5107 GB Notification: Performance of collectPreVariables (initialization): time 0.001471/3.146, allocations: 141.4 kB / 0.9772 GB, free: 152.9 MB / 0.5107 GB Notification: Performance of collectInitialEqns (initialization): time 0.006071/3.152, allocations: 9.443 MB / 0.9864 GB, free: 143.5 MB / 0.5107 GB Notification: Performance of collectInitialBindings (initialization): time 0.003875/3.156, allocations: 2.986 MB / 0.9893 GB, free: 140.5 MB / 0.5107 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002024/3.158, allocations: 357.4 kB / 0.9897 GB, free: 140.2 MB / 0.5107 GB Notification: Performance of setup shared object (initialization): time 0.001316/3.159, allocations: 1.104 MB / 0.9907 GB, free: 139 MB / 0.5107 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0164/3.176, allocations: 8.331 MB / 0.9989 GB, free: 130.7 MB / 0.5107 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02153/3.197, allocations: 17.9 MB / 1.016 GB, free: 108.4 MB / 0.5107 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02197/3.219, allocations: 12.16 MB / 1.028 GB, free: 96.16 MB / 0.5107 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002634/3.219, allocations: 96 kB / 1.028 GB, free: 96.07 MB / 0.5107 GB Notification: Performance of matching and sorting (n=2393) (initialization): time 0.05976/3.279, allocations: 27.71 MB / 1.055 GB, free: 68.32 MB / 0.5107 GB Notification: Performance of prepare postOptimizeDAE: time 0.000276/3.28, allocations: 156.2 kB / 1.056 GB, free: 68.16 MB / 0.5107 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004039/3.28, allocations: 328 kB / 1.056 GB, free: 67.84 MB / 0.5107 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009709/3.29, allocations: 2.706 MB / 1.058 GB, free: 65.13 MB / 0.5107 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01825/3.308, allocations: 4.285 MB / 1.063 GB, free: 60.84 MB / 0.5107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02717/3.335, allocations: 16.23 MB / 1.079 GB, free: 44.35 MB / 0.5107 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01607/3.351, allocations: 1.095 MB / 1.08 GB, free: 43.25 MB / 0.5107 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00328/3.355, allocations: 0.9855 MB / 1.081 GB, free: 42.27 MB / 0.5107 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1503 * 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 (2197): * Single equations (assignments): 2180 * 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.2861/3.641, allocations: 7.175 MB / 1.088 GB, free: 169.7 MB / 0.5107 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002382/3.643, allocations: 1.014 MB / 1.089 GB, free: 169.7 MB / 0.5107 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04143/3.685, allocations: 16.25 MB / 1.104 GB, free: 164.7 MB / 0.5107 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002587/3.685, allocations: 161.7 kB / 1.105 GB, free: 164.6 MB / 0.5107 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.232e-05/3.685, allocations: 13.69 kB / 1.105 GB, free: 164.6 MB / 0.5107 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001509/3.685, allocations: 33.52 kB / 1.105 GB, free: 164.6 MB / 0.5107 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08799/3.773, allocations: 35.51 MB / 1.139 GB, free: 151.9 MB / 0.5107 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.761e-05/3.773, allocations: 3.938 kB / 1.139 GB, free: 151.9 MB / 0.5107 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009695/3.783, allocations: 1.44 MB / 1.141 GB, free: 151.8 MB / 0.5107 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009426/3.792, allocations: 2.063 MB / 1.143 GB, free: 151.4 MB / 0.5107 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001679/3.794, allocations: 136.8 kB / 1.143 GB, free: 151.3 MB / 0.5107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0266/3.821, allocations: 14.82 MB / 1.157 GB, free: 141.7 MB / 0.5107 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.618e-06/3.821, allocations: 8 kB / 1.157 GB, free: 141.7 MB / 0.5107 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04995/3.871, allocations: 25.75 MB / 1.182 GB, free: 116.3 MB / 0.5107 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0068/3.878, allocations: 2.311 MB / 1.185 GB, free: 114.3 MB / 0.5107 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002891/3.881, allocations: 122.7 kB / 1.185 GB, free: 114.2 MB / 0.5107 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007938/3.889, allocations: 0.5472 MB / 1.185 GB, free: 113.6 MB / 0.5107 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002143/3.891, allocations: 439.4 kB / 1.186 GB, free: 113.2 MB / 0.5107 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001265/3.892, allocations: 194.4 kB / 1.186 GB, free: 113 MB / 0.5107 GB Notification: Performance of sorting global known variables: time 0.01422/3.906, allocations: 6.951 MB / 1.193 GB, free: 106.1 MB / 0.5107 GB Notification: Performance of sort global known variables: time 1.277e-06/3.906, allocations: 1.531 kB / 1.193 GB, free: 106.1 MB / 0.5107 GB Notification: Performance of remove unused functions: time 0.01962/3.926, allocations: 3.475 MB / 1.196 GB, free: 102.6 MB / 0.5107 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 (653): * Single equations (assignments): 636 * 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.001876/3.928, allocations: 325 kB / 1.196 GB, free: 102.3 MB / 0.5107 GB Notification: Performance of simCode: created initialization part: time 0.03691/3.965, allocations: 19.91 MB / 1.216 GB, free: 82.53 MB / 0.5107 GB Notification: Performance of simCode: created event and clocks part: time 9.955e-06/3.965, allocations: 0 / 1.216 GB, free: 82.53 MB / 0.5107 GB Notification: Performance of simCode: created simulation system equations: time 0.01571/3.981, allocations: 7.853 MB / 1.224 GB, free: 74.65 MB / 0.5107 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007357/3.988, allocations: 1.256 MB / 1.225 GB, free: 73.41 MB / 0.5107 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3472/4.335, allocations: 42.87 MB / 1.267 GB, free: 172.2 MB / 0.5107 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0252/4.36, allocations: 10.59 MB / 1.277 GB, free: 171.1 MB / 0.5107 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00635/4.367, allocations: 0.8786 MB / 1.278 GB, free: 171.1 MB / 0.5107 GB Notification: Performance of SimCode: time 1.695e-06/4.367, allocations: 0 / 1.278 GB, free: 171.1 MB / 0.5107 GB Notification: Performance of Templates: time 0.7792/5.146, allocations: 322.1 MB / 1.592 GB, free: 23.12 MB / 0.5107 GB