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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.27/2.27, allocations: 235.1 MB / 243 MB, free: 9.594 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.457e-05/1.466e-05, allocations: 4 kB / 303.2 MB, free: 13.3 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2657/0.2657, allocations: 54.86 MB / 358 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1799/0.4457, allocations: 102.6 MB / 460.6 MB, free: 8.234 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002683/0.446, allocations: 83.94 kB / 460.7 MB, free: 8.152 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.467/1.913, allocations: 278.1 MB / 0.7215 GB, free: 42.27 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.074e-06/1.913, allocations: 0 / 0.7215 GB, free: 42.27 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0006925/1.913, allocations: 284.2 kB / 0.7218 GB, free: 42.26 MB / 458.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.04138/1.955, allocations: 13.17 MB / 0.7346 GB, free: 37.06 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/1.955, allocations: 10.94 kB / 0.7346 GB, free: 37.06 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09414/2.049, allocations: 18.53 MB / 0.7527 GB, free: 27.59 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03932/2.088, allocations: 14.87 MB / 0.7673 GB, free: 14.23 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008262/2.089, allocations: 480 kB / 0.7677 GB, free: 13.76 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00647/2.096, allocations: 0.8591 MB / 0.7686 GB, free: 12.9 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.05246/2.148, allocations: 24.24 MB / 0.7922 GB, free: 4.664 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3972/2.546, allocations: 32.98 MB / 0.8244 GB, free: 56.3 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008191/2.546, allocations: 133.5 kB / 0.8246 GB, free: 56.3 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005929/2.552, allocations: 61.53 kB / 0.8246 GB, free: 56.3 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006036/2.558, allocations: 3.713 MB / 0.8283 GB, free: 56.27 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.213/2.771, allocations: 135.6 MB / 0.9607 GB, free: 15.4 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02081/2.792, allocations: 14.53 MB / 0.9748 GB, free: 7.723 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0159/2.808, allocations: 9.399 MB / 0.984 GB, free: 3.871 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002097/2.81, allocations: 1.305 MB / 0.9853 GB, free: 2.684 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001343/2.811, allocations: 110.5 kB / 0.9854 GB, free: 2.59 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=810): time 1.731e-05/2.811, allocations: 3.156 kB / 0.9854 GB, free: 2.59 MB / 0.5105 GB Notification: Performance of matching and sorting (n=883): time 0.5164/3.327, allocations: 79.05 MB / 1.063 GB, free: 108.8 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001199/3.327, allocations: 314.3 kB / 1.063 GB, free: 108.5 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01715/3.344, allocations: 8.309 MB / 1.071 GB, free: 107.7 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001403/3.346, allocations: 25.7 kB / 1.071 GB, free: 107.7 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.006563/3.352, allocations: 9.621 MB / 1.08 GB, free: 102 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.003869/3.356, allocations: 3.082 MB / 1.083 GB, free: 100.1 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001752/3.358, allocations: 0 / 1.083 GB, free: 100.1 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.001428/3.359, allocations: 1.148 MB / 1.085 GB, free: 99.73 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01512/3.375, allocations: 7.952 MB / 1.092 GB, free: 99.55 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02157/3.396, allocations: 18.12 MB / 1.11 GB, free: 83.18 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02224/3.419, allocations: 12.11 MB / 1.122 GB, free: 79.45 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003171/3.419, allocations: 102.6 kB / 1.122 GB, free: 79.45 MB / 0.5261 GB Notification: Performance of matching and sorting (n=2534) (initialization): time 0.07906/3.498, allocations: 25.72 MB / 1.147 GB, free: 57.82 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004778/3.498, allocations: 159.4 kB / 1.147 GB, free: 57.67 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0008084/3.499, allocations: 356 kB / 1.148 GB, free: 57.32 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01578/3.515, allocations: 2.401 MB / 1.15 GB, free: 55.45 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03408/3.549, allocations: 4.527 MB / 1.154 GB, free: 51.59 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02226/3.572, allocations: 13.7 MB / 1.168 GB, free: 39.46 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01745/3.589, allocations: 0.7558 MB / 1.168 GB, free: 38.9 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004006/3.593, allocations: 1.06 MB / 1.169 GB, free: 37.86 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1631 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2338): * Single equations (assignments): 2321 * 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.005934/3.599, allocations: 1.017 MB / 1.17 GB, free: 36.84 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002348/3.601, allocations: 0.9872 MB / 1.171 GB, free: 35.84 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04487/3.646, allocations: 16.84 MB / 1.188 GB, free: 21.83 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004312/3.647, allocations: 169.3 kB / 1.188 GB, free: 21.68 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.39e-05/3.647, allocations: 12 kB / 1.188 GB, free: 21.66 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002063/3.647, allocations: 38.44 kB / 1.188 GB, free: 21.66 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4632/4.11, allocations: 35.3 MB / 1.223 GB, free: 96.27 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-05/4.111, allocations: 16.47 kB / 1.223 GB, free: 96.27 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009242/4.12, allocations: 1.492 MB / 1.224 GB, free: 96.27 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007625/4.127, allocations: 1.754 MB / 1.226 GB, free: 96.25 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001718/4.129, allocations: 36.92 kB / 1.226 GB, free: 96.25 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02118/4.15, allocations: 12.13 MB / 1.238 GB, free: 93.68 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.876e-05/4.15, allocations: 19.94 kB / 1.238 GB, free: 93.68 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04955/4.2, allocations: 28.9 MB / 1.266 GB, free: 87.63 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007252/4.207, allocations: 2.257 MB / 1.268 GB, free: 87.04 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003313/4.211, allocations: 18.44 kB / 1.268 GB, free: 87.04 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008416/4.219, allocations: 438.7 kB / 1.269 GB, free: 87.04 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002256/4.221, allocations: 0.4971 MB / 1.269 GB, free: 86.96 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009905/4.222, allocations: 212.3 kB / 1.269 GB, free: 86.91 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.01306/4.236, allocations: 5.537 MB / 1.275 GB, free: 84.97 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.098e-06/4.236, allocations: 1.688 kB / 1.275 GB, free: 84.97 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.02139/4.257, allocations: 2.986 MB / 1.278 GB, free: 84.97 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (705): * Single equations (assignments): 688 * 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.001936/4.259, allocations: 213.1 kB / 1.278 GB, free: 84.88 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.03622/4.295, allocations: 19.23 MB / 1.297 GB, free: 78.88 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.467e-05/4.295, allocations: 3.438 kB / 1.297 GB, free: 78.88 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.01507/4.31, allocations: 7.94 MB / 1.304 GB, free: 72.25 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007269/4.318, allocations: 0.9453 MB / 1.305 GB, free: 71.44 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07159/4.389, allocations: 31.56 MB / 1.336 GB, free: 43.33 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02553/4.415, allocations: 10.58 MB / 1.346 GB, free: 35.69 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005662/4.421, allocations: 0.8781 MB / 1.347 GB, free: 34.86 MB / 0.5261 GB Notification: Performance of SimCode: time 1.84e-06/4.421, allocations: 0 / 1.347 GB, free: 34.86 MB / 0.5261 GB Notification: Performance of Templates: time 1.127/5.548, allocations: 316.2 MB / 1.656 GB, free: 123.8 MB / 0.573 GB