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.863/1.863, allocations: 209.2 MB / 224.8 MB, free: 204 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004469/0.0004471, allocations: 19.98 kB / 282.5 MB, free: 9.625 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2842/0.2847, allocations: 48.7 MB / 331.2 MB, free: 6.488 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.08873/0.3735, allocations: 67.51 MB / 398.7 MB, free: 10.86 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.04033/0.4138, allocations: 15.35 MB / 414 MB, free: 11.46 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01435/0.4282, allocations: 343.2 kB / 414.4 MB, free: 11.12 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01083/0.4391, allocations: 3.511 MB / 417.9 MB, free: 7.598 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03306/0.4722, allocations: 9.779 MB / 427.7 MB, free: 13.79 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004712/0.477, allocations: 0.7919 MB / 428.5 MB, free: 13 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.04101/0.518, allocations: 19.08 MB / 447.6 MB, free: 9.895 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.015/0.5331, allocations: 7.805 MB / 455.4 MB, free: 2.02 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00449/0.5376, allocations: 2.001 MB / 457.4 MB, free: 12 kB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005212/0.5429, allocations: 2.675 MB / 460 MB, free: 13.33 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00151/0.5444, allocations: 292 kB / 460.3 MB, free: 13.04 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003503/0.5479, allocations: 1.046 MB / 461.4 MB, free: 12 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004957/0.5529, allocations: 3.078 MB / 464.4 MB, free: 8.91 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002926/0.5559, allocations: 1.637 MB / 466.1 MB, free: 7.262 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.2885/0.8444, allocations: 10.98 MB / 477.1 MB, free: 28.11 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.8445, allocations: 0.5938 kB / 477.1 MB, free: 28.11 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.977e-06/0.8445, allocations: 0.75 kB / 477.1 MB, free: 28.11 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003341/0.8449, allocations: 1.125 kB / 477.1 MB, free: 28.11 MB / 394.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.01975/0.8646, allocations: 7.762 MB / 484.8 MB, free: 24.76 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.8647, allocations: 9.188 kB / 484.8 MB, free: 24.76 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06793/0.9326, allocations: 11.53 MB / 496.4 MB, free: 23.68 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01396/0.9466, allocations: 5.372 MB / 0.49 GB, free: 22.09 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005242/0.9472, allocations: 452.5 kB / 0.4904 GB, free: 22.08 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002875/0.9501, allocations: 0.5859 MB / 0.491 GB, free: 22.07 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04443/0.9945, allocations: 20.59 MB / 0.5111 GB, free: 14.4 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003143/0.9949, allocations: 75.64 kB / 0.5112 GB, free: 14.36 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002622/0.9975, allocations: 280.9 kB / 0.5114 GB, free: 14.29 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007497/1.005, allocations: 4.291 MB / 0.5156 GB, free: 10.77 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0747/1.08, allocations: 18.12 MB / 0.5333 GB, free: 14.23 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.139/1.219, allocations: 75.04 MB / 0.6066 GB, free: 15.86 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02446/1.243, allocations: 8.133 MB / 0.6145 GB, free: 7.504 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00043/1.244, allocations: 72.67 kB / 0.6146 GB, free: 7.449 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.347e-05/1.244, allocations: 77.23 kB / 0.6147 GB, free: 7.363 MB / 474.7 MB Notification: Performance of pre-optimization done (n=450): time 1.104e-05/1.244, allocations: 0 / 0.6147 GB, free: 7.363 MB / 474.7 MB Notification: Performance of matching and sorting (n=497): time 0.3826/1.627, allocations: 42.72 MB / 0.6564 GB, free: 207 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001075/1.627, allocations: 228.7 kB / 0.6566 GB, free: 206.8 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01355/1.64, allocations: 6.723 MB / 0.6632 GB, free: 204.8 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0009987/1.641, allocations: 96.67 kB / 0.6633 GB, free: 204.7 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.003597/1.645, allocations: 5.52 MB / 0.6687 GB, free: 201.2 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002289/1.647, allocations: 1.803 MB / 0.6704 GB, free: 199.9 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001045/1.648, allocations: 216.4 kB / 0.6706 GB, free: 199.7 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0007091/1.649, allocations: 0.8003 MB / 0.6714 GB, free: 199.2 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01033/1.659, allocations: 4.933 MB / 0.6762 GB, free: 197.6 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01341/1.673, allocations: 11.08 MB / 0.6871 GB, free: 187.8 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01451/1.687, allocations: 7.339 MB / 0.6942 GB, free: 184.9 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003547/1.688, allocations: 62.94 kB / 0.6943 GB, free: 184.9 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1480) (initialization): time 0.04186/1.73, allocations: 17.04 MB / 0.7109 GB, free: 173.5 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001662/1.73, allocations: 101.5 kB / 0.711 GB, free: 173.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002497/1.73, allocations: 219.2 kB / 0.7112 GB, free: 173.2 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006062/1.736, allocations: 1.85 MB / 0.713 GB, free: 171.8 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01043/1.747, allocations: 2.577 MB / 0.7155 GB, free: 169.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01986/1.767, allocations: 15.04 MB / 0.7302 GB, free: 154.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009973/1.777, allocations: 0.6632 MB / 0.7309 GB, free: 154 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001941/1.779, allocations: 0.6263 MB / 0.7315 GB, free: 153.3 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 971 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1356): * Single equations (assignments): 1343 * 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.008538/1.787, allocations: 4.183 MB / 0.7356 GB, free: 149.2 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001395/1.789, allocations: 0.6131 MB / 0.7362 GB, free: 148.5 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02095/1.81, allocations: 9.842 MB / 0.7458 GB, free: 138.6 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001399/1.81, allocations: 89.23 kB / 0.7459 GB, free: 138.5 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.849e-05/1.81, allocations: 8.062 kB / 0.7459 GB, free: 138.5 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.176e-05/1.81, allocations: 27.92 kB / 0.7459 GB, free: 138.5 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04518/1.855, allocations: 21.92 MB / 0.7673 GB, free: 116.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.76e-05/1.855, allocations: 8 kB / 0.7673 GB, free: 116.4 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004666/1.86, allocations: 0.7917 MB / 0.7681 GB, free: 115.6 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005233/1.865, allocations: 1.505 MB / 0.7696 GB, free: 114.1 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009664/1.866, allocations: 87.98 kB / 0.7696 GB, free: 114 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01849/1.885, allocations: 14.07 MB / 0.7834 GB, free: 99.46 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.225e-05/1.885, allocations: 15.94 kB / 0.7834 GB, free: 99.44 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02783/1.913, allocations: 15.74 MB / 0.7988 GB, free: 83.48 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004311/1.917, allocations: 1.411 MB / 0.8001 GB, free: 82.05 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001657/1.919, allocations: 85.28 kB / 0.8002 GB, free: 81.96 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004402/1.923, allocations: 316.9 kB / 0.8005 GB, free: 81.66 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001034/1.924, allocations: 299.3 kB / 0.8008 GB, free: 81.36 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004704/1.925, allocations: 129.3 kB / 0.8009 GB, free: 81.24 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.007588/1.932, allocations: 4.217 MB / 0.8051 GB, free: 77.03 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.188e-06/1.932, allocations: 0 / 0.8051 GB, free: 77.03 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.011/1.943, allocations: 2.069 MB / 0.8071 GB, free: 74.97 MB / 0.4948 GB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (381): * Single equations (assignments): 368 * 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.001044/1.944, allocations: 260.7 kB / 0.8073 GB, free: 74.71 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02069/1.965, allocations: 12.19 MB / 0.8192 GB, free: 62.51 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.152e-05/1.965, allocations: 4.188 kB / 0.8192 GB, free: 62.51 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.008849/1.974, allocations: 4.969 MB / 0.8241 GB, free: 57.48 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004167/1.978, allocations: 0.7301 MB / 0.8248 GB, free: 56.76 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04172/2.02, allocations: 24.98 MB / 0.8492 GB, free: 31.59 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01054/2.03, allocations: 6.273 MB / 0.8553 GB, free: 25.27 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003116/2.034, allocations: 0.5345 MB / 0.8558 GB, free: 24.74 MB / 0.4948 GB Notification: Performance of SimCode: time 1.717e-06/2.034, allocations: 0 / 0.8558 GB, free: 24.74 MB / 0.4948 GB Notification: Performance of Templates: time 0.8062/2.84, allocations: 258 MB / 1.108 GB, free: 160.2 MB / 0.4948 GB