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.JointUSR.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.JointUSR,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rRod1_ia.1.|rRod1_ia.2.|rRod1_ia.3.|rRod2_ib.1.|rRod2_ib.2.|rRod2_ib.3.|Fixed1.frame_b.r_0.1.|Fixed1.frame_b.r_0.2.|Fixed1.frame_b.r_0.3.|Fixed1.frame_b.f.1.|Fixed1.frame_b.f.2.|Fixed1.frame_b.f.3.|Fixed1.frame_b.t.1.|Fixed1.frame_b.t.2.|Fixed1.frame_b.t.3.|jointUSR.frame_b.r_0.1.|jointUSR.frame_b.r_0.2.|jointUSR.frame_b.r_0.3.|jointUSR.frame_b.f.1.|jointUSR.frame_b.f.2.|jointUSR.frame_b.f.3.|jointUSR.frame_b.t.1.|jointUSR.frame_b.t.2.|jointUSR.frame_b.t.3.|jointUSR.frame_ia.r_0.1.|jointUSR.frame_ia.r_0.2.|jointUSR.frame_ia.r_0.3.|jointUSR.frame_ia.f.1.|jointUSR.frame_ia.f.2.|jointUSR.frame_ia.f.3.|jointUSR.frame_ia.t.1.|jointUSR.frame_ia.t.2.|jointUSR.frame_ia.t.3.|jointUSR.frame_im.r_0.1.|jointUSR.frame_im.r_0.1.|jointUSR.frame_im.r_0.2.|jointUSR.frame_im.r_0.2.|jointUSR.frame_im.r_0.3.|jointUSR.frame_im.r_0.3.|jointUSR.frame_im.f.1.|jointUSR.frame_im.f.1.|jointUSR.frame_im.f.2.|jointUSR.frame_im.f.2.|jointUSR.frame_im.f.3.|jointUSR.frame_im.f.3.|jointUSR.frame_im.t.1.|jointUSR.frame_im.t.1.|jointUSR.frame_im.t.2.|jointUSR.frame_im.t.2.|jointUSR.frame_im.t.3.|jointUSR.frame_im.t.3.|jointUSR.revolute.frame_b.r_0.1.|jointUSR.revolute.frame_b.r_0.2.|jointUSR.revolute.frame_b.r_0.3.|jointUSR.revolute.frame_b.f.1.|jointUSR.revolute.frame_b.f.2.|jointUSR.revolute.frame_b.f.3.|jointUSR.revolute.frame_b.t.1.|jointUSR.revolute.frame_b.t.2.|jointUSR.revolute.frame_b.t.3.|jointUSR.rod1.frame_b.r_0.1.|jointUSR.rod1.frame_b.r_0.2.|jointUSR.rod1.frame_b.r_0.3.|jointUSR.rod1.frame_b.f.1.|jointUSR.rod1.frame_b.f.2.|jointUSR.rod1.frame_b.f.3.|jointUSR.rod1.frame_b.t.1.|jointUSR.rod1.frame_b.t.2.|jointUSR.rod1.frame_b.t.3.|jointUSR.rod1.frame_ia.r_0.1.|jointUSR.rod1.frame_ia.r_0.2.|jointUSR.rod1.frame_ia.r_0.3.|jointUSR.rod1.frame_ia.f.1.|jointUSR.rod1.frame_ia.f.2.|jointUSR.rod1.frame_ia.f.3.|jointUSR.rod1.frame_ia.t.1.|jointUSR.rod1.frame_ia.t.2.|jointUSR.rod1.frame_ia.t.3.|jointUSR.rod2.frame_b.r_0.1.|jointUSR.rod2.frame_b.r_0.2.|jointUSR.rod2.frame_b.r_0.3.|jointUSR.rod2.frame_b.f.1.|jointUSR.rod2.frame_b.f.2.|jointUSR.rod2.frame_b.f.3.|jointUSR.rod2.frame_b.t.1.|jointUSR.rod2.frame_b.t.2.|jointUSR.rod2.frame_b.t.3.|jointUSR.relativePosition.frame_b.r_0.1.|jointUSR.relativePosition.frame_b.r_0.2.|jointUSR.relativePosition.frame_b.r_0.3.|jointUSR.relativePosition.frame_b.f.1.|jointUSR.relativePosition.frame_b.f.2.|jointUSR.relativePosition.frame_b.f.3.|jointUSR.relativePosition.frame_b.t.1.|jointUSR.relativePosition.frame_b.t.2.|jointUSR.relativePosition.frame_b.t.3.|jointUSR.relativePosition.relativePosition.frame_b.r_0.1.|jointUSR.relativePosition.relativePosition.frame_b.r_0.2.|jointUSR.relativePosition.relativePosition.frame_b.r_0.3.|jointUSR.relativePosition.relativePosition.frame_b.f.1.|jointUSR.relativePosition.relativePosition.frame_b.f.2.|jointUSR.relativePosition.relativePosition.frame_b.f.3.|jointUSR.relativePosition.relativePosition.frame_b.t.1.|jointUSR.relativePosition.relativePosition.frame_b.t.2.|jointUSR.relativePosition.relativePosition.frame_b.t.3.|jointUSR.position_b.1..y|jointUSR.position_b.2..y|jointUSR.position_b.3..y",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.JointUSR") Notification: Performance of loadModel(ModelicaTest): time 1.982/1.982, allocations: 209.2 MB / 224.8 MB, free: 208 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004433/0.0004435, allocations: 12 kB / 282.5 MB, free: 9.617 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3178/0.3183, allocations: 48.7 MB / 331.2 MB, free: 6.465 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUSR): time 0.06789/0.3862, allocations: 39.03 MB / 370.2 MB, free: 7.402 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02422/0.4105, allocations: 8.862 MB / 379.1 MB, free: 14.52 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008821/0.4194, allocations: 183.6 kB / 379.3 MB, free: 14.34 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006285/0.4257, allocations: 1.936 MB / 381.2 MB, free: 12.39 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01823/0.444, allocations: 5.115 MB / 386.3 MB, free: 7.266 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003404/0.4474, allocations: 0.6707 MB / 387 MB, free: 6.594 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.003426/0.4509, allocations: 1.401 MB / 388.4 MB, free: 5.188 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009877/0.4608, allocations: 5.168 MB / 393.6 MB, free: 15.93 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001678/0.4625, allocations: 0.7862 MB / 394.4 MB, free: 15.15 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00188/0.4644, allocations: 1.008 MB / 395.4 MB, free: 14.14 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004728/0.4649, allocations: 132 kB / 395.5 MB, free: 14.01 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00185/0.4668, allocations: 0.6865 MB / 396.2 MB, free: 13.32 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001905/0.4687, allocations: 1.274 MB / 397.5 MB, free: 12.04 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001019/0.4698, allocations: 0.7065 MB / 398.2 MB, free: 11.33 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007473/0.4773, allocations: 5.023 MB / 403.2 MB, free: 6.293 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.4773, allocations: 0 / 403.2 MB, free: 6.293 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.82e-06/0.4774, allocations: 0 / 403.2 MB, free: 6.293 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001308/0.4775, allocations: 0 / 403.2 MB, free: 6.293 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1300 * Number of variables: 1300 Notification: Performance of Generate backend data structure: time 0.01044/0.488, allocations: 3.787 MB / 407 MB, free: 2.441 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.197e-05/0.488, allocations: 8.031 kB / 407 MB, free: 2.434 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00361/0.4916, allocations: 0.5996 MB / 407.6 MB, free: 1.828 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00494/0.4966, allocations: 1.813 MB / 409.4 MB, free: 15.97 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002866/0.4969, allocations: 238.1 kB / 409.6 MB, free: 15.73 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001026/0.498, allocations: 319.8 kB / 409.9 MB, free: 15.42 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04761/0.5456, allocations: 9.395 MB / 419.3 MB, free: 5.668 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001886/0.5459, allocations: 19.88 kB / 419.3 MB, free: 5.648 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001383/0.5473, allocations: 143.9 kB / 419.5 MB, free: 5.508 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007786/0.5551, allocations: 1.588 MB / 421.1 MB, free: 3.918 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04581/0.601, allocations: 7.643 MB / 428.7 MB, free: 12.27 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07261/0.6737, allocations: 27.94 MB / 456.7 MB, free: 15.59 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01099/0.6847, allocations: 2.357 MB / 459 MB, free: 13.2 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01424/0.699, allocations: 7.673 MB / 466.7 MB, free: 4.949 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.646e-05/0.6991, allocations: 47.16 kB / 466.7 MB, free: 4.895 MB / 394.7 MB Notification: Performance of pre-optimization done (n=81): time 4.457e-06/0.6991, allocations: 0 / 466.7 MB, free: 4.895 MB / 394.7 MB Notification: Performance of matching and sorting (n=97): time 0.02748/0.7266, allocations: 7.156 MB / 473.9 MB, free: 13.68 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000105/0.7268, allocations: 141.6 kB / 474 MB, free: 13.51 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005318/0.7321, allocations: 2.622 MB / 476.7 MB, free: 10.88 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002053/0.7323, allocations: 41.7 kB / 476.7 MB, free: 10.83 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002519/0.7349, allocations: 2.393 MB / 479.1 MB, free: 8.402 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006242/0.7355, allocations: 395.1 kB / 479.5 MB, free: 8.012 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003292/0.7359, allocations: 80 kB / 479.5 MB, free: 7.934 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003858/0.7363, allocations: 467.1 kB / 480 MB, free: 7.469 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00257/0.7389, allocations: 1.069 MB / 481.1 MB, free: 6.398 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004978/0.7439, allocations: 3.46 MB / 484.5 MB, free: 1.754 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2322/0.9761, allocations: 1.833 MB / 486.4 MB, free: 129.4 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.434e-05/0.9763, allocations: 26.81 kB / 486.4 MB, free: 129.4 MB / 410.7 MB Notification: Performance of matching and sorting (n=496) (initialization): time 0.009816/0.9861, allocations: 4.326 MB / 490.7 MB, free: 128.1 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.142e-05/0.9862, allocations: 41.94 kB / 490.8 MB, free: 128.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001308/0.9864, allocations: 84.78 kB / 490.8 MB, free: 128.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001954/0.9866, allocations: 124 kB / 491 MB, free: 128.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003903/0.9905, allocations: 0.9399 MB / 491.9 MB, free: 128 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002224/0.9907, allocations: 169.5 kB / 492.1 MB, free: 127.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003414/0.9942, allocations: 200.1 kB / 492.3 MB, free: 127.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007007/0.9949, allocations: 233 kB / 492.5 MB, free: 127.9 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 387 * Number of states: 0 () * Number of discrete variables: 40 (jointUSR.revolute.positiveBranch,prism.color[3],prism.color[2],prism.color[1],rRod2.color[3],rRod2.color[2],rRod2.color[1],rRod1.color[3],rRod1.color[2],rRod1.color[1],n2_ia.color[3],n2_ia.color[2],n2_ia.color[1],n1_a.color[3],n1_a.color[2],n1_a.color[1],jointUSR.rod1Color[3],jointUSR.rod1Color[2],jointUSR.rod1Color[1],jointUSR.cylinderColor[3],jointUSR.cylinderColor[2],jointUSR.cylinderColor[1],jointUSR.sphereColor[3],jointUSR.sphereColor[2],jointUSR.sphereColor[1],jointUSR.revoluteColor[3],jointUSR.revoluteColor[2],jointUSR.revoluteColor[1],Fixed1.color[3],Fixed1.color[2],Fixed1.color[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (496): * Single equations (assignments): 496 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003452/0.9984, allocations: 1.591 MB / 494.1 MB, free: 127.1 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004793/0.9989, allocations: 231.2 kB / 494.3 MB, free: 127.1 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002845/1.002, allocations: 1.38 MB / 495.7 MB, free: 126.5 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.839e-05/1.002, allocations: 10.59 kB / 495.7 MB, free: 126.5 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.908e-06/1.002, allocations: 1.406 kB / 495.7 MB, free: 126.5 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.593e-05/1.002, allocations: 7.25 kB / 495.7 MB, free: 126.5 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01187/1.014, allocations: 6.023 MB / 0.49 GB, free: 123.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.456e-05/1.014, allocations: 18.12 kB / 0.49 GB, free: 123.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001019/1.015, allocations: 222.5 kB / 0.4902 GB, free: 123.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.891e-05/1.015, allocations: 25.52 kB / 0.4902 GB, free: 123.6 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.512e-05/1.015, allocations: 39.56 kB / 0.4903 GB, free: 123.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.419e-05/1.015, allocations: 31.03 kB / 0.4903 GB, free: 123.6 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-05/1.015, allocations: 27.62 kB / 0.4903 GB, free: 123.6 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002343/1.017, allocations: 1.786 MB / 0.4921 GB, free: 122.4 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006414/1.018, allocations: 324.3 kB / 0.4924 GB, free: 122.3 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003615/1.018, allocations: 43.22 kB / 0.4924 GB, free: 122.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001164/1.02, allocations: 43.97 kB / 0.4925 GB, free: 122.2 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001531/1.02, allocations: 118.9 kB / 0.4926 GB, free: 122.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.236e-05/1.02, allocations: 52.62 kB / 0.4926 GB, free: 122.2 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002905/1.023, allocations: 1.665 MB / 0.4942 GB, free: 121.6 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.181e-06/1.023, allocations: 0 / 0.4942 GB, free: 121.6 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00416/1.027, allocations: 0.6632 MB / 0.4949 GB, free: 121.5 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 68 * Number of states: 0 () * 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 (122): * Single equations (assignments): 122 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003994/1.027, allocations: 201.4 kB / 0.4951 GB, free: 121.4 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004672/1.032, allocations: 2.483 MB / 0.4975 GB, free: 120.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.592e-05/1.032, allocations: 7.812 kB / 0.4975 GB, free: 120.5 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001115/1.033, allocations: 0.5701 MB / 0.4981 GB, free: 120.3 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001703/1.035, allocations: 305.4 kB / 0.4984 GB, free: 120.2 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01423/1.049, allocations: 8.535 MB / 0.5067 GB, free: 112.3 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003767/1.053, allocations: 2.792 MB / 0.5094 GB, free: 109.5 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007018/1.054, allocations: 207.4 kB / 0.5096 GB, free: 109.3 MB / 410.7 MB Notification: Performance of SimCode: time 1.801e-06/1.054, allocations: 0 / 0.5096 GB, free: 109.3 MB / 410.7 MB Notification: Performance of Templates: time 0.07252/1.126, allocations: 39.02 MB / 0.5477 GB, free: 70.24 MB / 410.7 MB