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.JointUSP.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.JointUSP,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.|jointUSP.frame_b.r_0.1.|jointUSP.frame_b.r_0.2.|jointUSP.frame_b.r_0.3.|jointUSP.frame_b.f.1.|jointUSP.frame_b.f.2.|jointUSP.frame_b.f.3.|jointUSP.frame_b.t.1.|jointUSP.frame_b.t.2.|jointUSP.frame_b.t.3.|jointUSP.frame_ia.r_0.1.|jointUSP.frame_ia.r_0.2.|jointUSP.frame_ia.r_0.3.|jointUSP.frame_ia.f.1.|jointUSP.frame_ia.f.2.|jointUSP.frame_ia.f.3.|jointUSP.frame_ia.t.1.|jointUSP.frame_ia.t.2.|jointUSP.frame_ia.t.3.|jointUSP.frame_im.r_0.1.|jointUSP.frame_im.r_0.1.|jointUSP.frame_im.r_0.2.|jointUSP.frame_im.r_0.2.|jointUSP.frame_im.r_0.3.|jointUSP.frame_im.r_0.3.|jointUSP.frame_im.f.1.|jointUSP.frame_im.f.1.|jointUSP.frame_im.f.2.|jointUSP.frame_im.f.2.|jointUSP.frame_im.f.3.|jointUSP.frame_im.f.3.|jointUSP.frame_im.t.1.|jointUSP.frame_im.t.1.|jointUSP.frame_im.t.2.|jointUSP.frame_im.t.2.|jointUSP.frame_im.t.3.|jointUSP.frame_im.t.3.|jointUSP.prismatic.frame_b.r_0.1.|jointUSP.prismatic.frame_b.r_0.2.|jointUSP.prismatic.frame_b.r_0.3.|jointUSP.prismatic.frame_b.f.1.|jointUSP.prismatic.frame_b.f.2.|jointUSP.prismatic.frame_b.f.3.|jointUSP.prismatic.frame_b.t.1.|jointUSP.prismatic.frame_b.t.2.|jointUSP.prismatic.frame_b.t.3.|jointUSP.rod1.frame_b.r_0.1.|jointUSP.rod1.frame_b.r_0.2.|jointUSP.rod1.frame_b.r_0.3.|jointUSP.rod1.frame_b.f.1.|jointUSP.rod1.frame_b.f.2.|jointUSP.rod1.frame_b.f.3.|jointUSP.rod1.frame_b.t.1.|jointUSP.rod1.frame_b.t.2.|jointUSP.rod1.frame_b.t.3.|jointUSP.rod1.frame_ia.r_0.1.|jointUSP.rod1.frame_ia.r_0.2.|jointUSP.rod1.frame_ia.r_0.3.|jointUSP.rod1.frame_ia.f.1.|jointUSP.rod1.frame_ia.f.2.|jointUSP.rod1.frame_ia.f.3.|jointUSP.rod1.frame_ia.t.1.|jointUSP.rod1.frame_ia.t.2.|jointUSP.rod1.frame_ia.t.3.|jointUSP.rod2.frame_b.r_0.1.|jointUSP.rod2.frame_b.r_0.2.|jointUSP.rod2.frame_b.r_0.3.|jointUSP.rod2.frame_b.f.1.|jointUSP.rod2.frame_b.f.2.|jointUSP.rod2.frame_b.f.3.|jointUSP.rod2.frame_b.t.1.|jointUSP.rod2.frame_b.t.2.|jointUSP.rod2.frame_b.t.3.|jointUSP.relativePosition.frame_b.r_0.1.|jointUSP.relativePosition.frame_b.r_0.2.|jointUSP.relativePosition.frame_b.r_0.3.|jointUSP.relativePosition.frame_b.f.1.|jointUSP.relativePosition.frame_b.f.2.|jointUSP.relativePosition.frame_b.f.3.|jointUSP.relativePosition.frame_b.t.1.|jointUSP.relativePosition.frame_b.t.2.|jointUSP.relativePosition.frame_b.t.3.|jointUSP.relativePosition.relativePosition.frame_b.r_0.1.|jointUSP.relativePosition.relativePosition.frame_b.r_0.2.|jointUSP.relativePosition.relativePosition.frame_b.r_0.3.|jointUSP.relativePosition.relativePosition.frame_b.f.1.|jointUSP.relativePosition.relativePosition.frame_b.f.2.|jointUSP.relativePosition.relativePosition.frame_b.f.3.|jointUSP.relativePosition.relativePosition.frame_b.t.1.|jointUSP.relativePosition.relativePosition.frame_b.t.2.|jointUSP.relativePosition.relativePosition.frame_b.t.3.|jointUSP.position_b.1..y|jointUSP.position_b.2..y|jointUSP.position_b.3..y",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.JointUSP") Notification: Performance of loadModel(ModelicaTest): time 1.925/1.925, allocations: 209.3 MB / 224.8 MB, free: 200 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004354/0.0004355, allocations: 12 kB / 282.5 MB, free: 9.621 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2828/0.2833, allocations: 48.7 MB / 331.2 MB, free: 6.477 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUSP): time 0.05268/0.336, allocations: 39 MB / 370.2 MB, free: 7.43 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02334/0.3594, allocations: 8.708 MB / 378.9 MB, free: 14.7 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008155/0.3675, allocations: 179.6 kB / 379.1 MB, free: 14.52 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006174/0.3738, allocations: 1.944 MB / 381 MB, free: 12.57 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01809/0.3919, allocations: 5.123 MB / 386.1 MB, free: 7.43 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002939/0.3949, allocations: 0.5226 MB / 386.7 MB, free: 6.906 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.003164/0.3981, allocations: 1.37 MB / 388 MB, free: 5.531 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009507/0.4076, allocations: 5.149 MB / 393.2 MB, free: 308 kB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001729/0.4094, allocations: 0.7473 MB / 393.9 MB, free: 15.55 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001995/0.4114, allocations: 0.9771 MB / 394.9 MB, free: 14.57 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005631/0.412, allocations: 128 kB / 395 MB, free: 14.45 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001496/0.4135, allocations: 0.5461 MB / 395.6 MB, free: 13.9 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001806/0.4154, allocations: 1.259 MB / 396.8 MB, free: 12.64 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001002/0.4164, allocations: 0.7027 MB / 397.5 MB, free: 11.93 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007126/0.4236, allocations: 4.913 MB / 402.5 MB, free: 7 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.76e-06/0.4236, allocations: 0 / 402.5 MB, free: 7 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.665e-06/0.4236, allocations: 0 / 402.5 MB, free: 7 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001226/0.4237, allocations: 0 / 402.5 MB, free: 7 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: 1289 * Number of variables: 1289 Notification: Performance of Generate backend data structure: time 0.008844/0.4326, allocations: 3.553 MB / 406 MB, free: 3.383 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.396e-05/0.4327, allocations: 12.03 kB / 406 MB, free: 3.371 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003352/0.436, allocations: 0.588 MB / 406.6 MB, free: 2.777 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004792/0.4409, allocations: 1.766 MB / 408.4 MB, free: 0.9648 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002958/0.4412, allocations: 238.1 kB / 408.6 MB, free: 0.7305 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000923/0.4421, allocations: 311.9 kB / 408.9 MB, free: 436 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02235/0.4645, allocations: 8.799 MB / 417.7 MB, free: 7.273 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.592e-05/0.4647, allocations: 23.77 kB / 417.7 MB, free: 7.25 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004955/0.4652, allocations: 143.9 kB / 417.9 MB, free: 7.109 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003525/0.4687, allocations: 1.557 MB / 419.4 MB, free: 5.551 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0203/0.489, allocations: 6.835 MB / 426.3 MB, free: 14.71 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04702/0.5361, allocations: 26.33 MB / 452.6 MB, free: 3.664 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008832/0.545, allocations: 1.948 MB / 454.5 MB, free: 1.68 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01159/0.5566, allocations: 6.368 MB / 460.9 MB, free: 10.77 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.337e-05/0.5567, allocations: 47.22 kB / 461 MB, free: 10.72 MB / 394.7 MB Notification: Performance of pre-optimization done (n=77): time 4.19e-06/0.5567, allocations: 0 / 461 MB, free: 10.72 MB / 394.7 MB Notification: Performance of matching and sorting (n=96): time 0.02311/0.5799, allocations: 6.229 MB / 467.2 MB, free: 4.441 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001107/0.58, allocations: 141.5 kB / 467.3 MB, free: 4.27 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004753/0.5848, allocations: 2.461 MB / 469.8 MB, free: 1.785 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001584/0.585, allocations: 41.7 kB / 469.8 MB, free: 1.738 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002364/0.5874, allocations: 2.382 MB / 472.2 MB, free: 15.32 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005475/0.5879, allocations: 391.2 kB / 472.6 MB, free: 14.93 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002338/0.5882, allocations: 72 kB / 472.7 MB, free: 14.86 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003848/0.5886, allocations: 470.8 kB / 473.1 MB, free: 14.39 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002255/0.5909, allocations: 0.9364 MB / 474.1 MB, free: 13.46 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004586/0.5955, allocations: 3.239 MB / 477.3 MB, free: 9.078 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00377/0.5993, allocations: 1.681 MB / 479 MB, free: 7.398 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.073e-05/0.5994, allocations: 24 kB / 479 MB, free: 7.375 MB / 410.7 MB Notification: Performance of matching and sorting (n=480) (initialization): time 0.009955/0.6094, allocations: 3.986 MB / 483 MB, free: 3.379 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.407e-05/0.6095, allocations: 46.31 kB / 483 MB, free: 3.34 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001208/0.6097, allocations: 84 kB / 483.1 MB, free: 3.258 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001725/0.6098, allocations: 120 kB / 483.2 MB, free: 3.141 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003777/0.6136, allocations: 0.8851 MB / 484.1 MB, free: 2.254 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000195/0.6139, allocations: 163.4 kB / 484.3 MB, free: 2.094 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003121/0.617, allocations: 163.8 kB / 484.4 MB, free: 1.934 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005399/0.6176, allocations: 232 kB / 484.7 MB, free: 1.707 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 372 * Number of states: 0 () * Number of discrete variables: 37 (jointUSP.prismatic.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],jointUSP.rod1Color[3],jointUSP.rod1Color[2],jointUSP.rod1Color[1],jointUSP.cylinderColor[3],jointUSP.cylinderColor[2],jointUSP.cylinderColor[1],jointUSP.sphereColor[3],jointUSP.sphereColor[2],jointUSP.sphereColor[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 (480): * Single equations (assignments): 480 * 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.003575/0.6212, allocations: 1.573 MB / 486.2 MB, free: 128 kB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.233/0.8541, allocations: 216.2 kB / 486.5 MB, free: 130.5 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002658/0.8568, allocations: 1.136 MB / 487.6 MB, free: 130.2 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.675e-05/0.8569, allocations: 10.94 kB / 487.6 MB, free: 130.2 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.275e-06/0.8569, allocations: 1.219 kB / 487.6 MB, free: 130.2 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.816e-05/0.8569, allocations: 6.156 kB / 487.6 MB, free: 130.2 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01093/0.8679, allocations: 5.962 MB / 493.6 MB, free: 127.4 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.211e-05/0.8679, allocations: 17.53 kB / 493.6 MB, free: 127.4 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009147/0.8689, allocations: 217 kB / 493.8 MB, free: 127.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.774e-05/0.8689, allocations: 32.59 kB / 493.8 MB, free: 127.4 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.615e-05/0.869, allocations: 40.88 kB / 493.9 MB, free: 127.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.383e-05/0.8691, allocations: 35 kB / 493.9 MB, free: 127.4 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.45e-05/0.8691, allocations: 30.06 kB / 493.9 MB, free: 127.4 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002262/0.8714, allocations: 1.733 MB / 495.7 MB, free: 126.2 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005657/0.872, allocations: 316.8 kB / 496 MB, free: 126.1 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002996/0.8723, allocations: 45.8 kB / 496 MB, free: 126.1 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00105/0.8733, allocations: 41.83 kB / 496.1 MB, free: 126.1 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001712/0.8735, allocations: 130.4 kB / 496.2 MB, free: 126 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.801e-05/0.8736, allocations: 55.33 kB / 496.2 MB, free: 126 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002804/0.8765, allocations: 1.606 MB / 497.8 MB, free: 125.4 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.82e-07/0.8765, allocations: 0 / 497.8 MB, free: 125.4 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003934/0.8804, allocations: 0.6416 MB / 498.5 MB, free: 125.4 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 76 * 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 (120): * Single equations (assignments): 120 * 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.0003783/0.8808, allocations: 190.8 kB / 498.7 MB, free: 125.2 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004355/0.8852, allocations: 2.252 MB / 0.4892 GB, free: 124.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.318e-05/0.8852, allocations: 6.719 kB / 0.4892 GB, free: 124.5 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001033/0.8863, allocations: 0.5231 MB / 0.4897 GB, free: 124.3 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001663/0.888, allocations: 296.8 kB / 0.49 GB, free: 124.2 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01364/0.9016, allocations: 8.52 MB / 0.4983 GB, free: 119.1 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003515/0.9052, allocations: 2.818 MB / 0.5011 GB, free: 117.5 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005704/0.9058, allocations: 193.4 kB / 0.5012 GB, free: 117.4 MB / 410.7 MB Notification: Performance of SimCode: time 1.689e-06/0.9058, allocations: 0 / 0.5012 GB, free: 117.4 MB / 410.7 MB Notification: Performance of Templates: time 0.05419/0.96, allocations: 37.55 MB / 0.5379 GB, free: 80.85 MB / 410.7 MB