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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.992/1.992, allocations: 209.4 MB / 217.3 MB, free: 4.16 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.72e-05/1.722e-05, allocations: 4 kB / 271.3 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2646/0.2646, allocations: 48.69 MB / 320 MB, free: 14.39 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1416/0.4063, allocations: 92.89 MB / 412.9 MB, free: 3.5 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002747/0.4066, allocations: 75.95 kB / 413 MB, free: 3.426 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4798/0.8864, allocations: 72.73 MB / 485.7 MB, free: 86.28 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.8865, allocations: 0 / 485.7 MB, free: 86.28 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001548/0.8866, allocations: 71.52 kB / 485.8 MB, free: 86.21 MB / 378.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.009621/0.8963, allocations: 3.58 MB / 489.4 MB, free: 82.58 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/0.8963, allocations: 8.031 kB / 489.4 MB, free: 82.57 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004211/0.9006, allocations: 0.6708 MB / 490.1 MB, free: 81.89 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005884/0.9065, allocations: 2.186 MB / 492.2 MB, free: 79.68 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002006/0.9067, allocations: 128 kB / 492.4 MB, free: 79.55 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001324/0.9081, allocations: 223.9 kB / 492.6 MB, free: 79.33 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01043/0.9185, allocations: 5.237 MB / 497.8 MB, free: 74.1 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01649/0.9351, allocations: 6.875 MB / 0.4929 GB, free: 66.85 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001113/0.9352, allocations: 19.81 kB / 0.4929 GB, free: 66.83 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008061/0.936, allocations: 12 kB / 0.4929 GB, free: 66.82 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001639/0.9377, allocations: 0.7905 MB / 0.4937 GB, free: 66.03 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03912/0.9768, allocations: 25.96 MB / 0.519 GB, free: 39.58 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002099/0.979, allocations: 1.111 MB / 0.5201 GB, free: 38.43 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001131/0.9802, allocations: 0.7358 MB / 0.5208 GB, free: 37.68 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008517/0.9887, allocations: 5.928 MB / 0.5266 GB, free: 31.31 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.75e-05/0.9888, allocations: 43.06 kB / 0.5267 GB, free: 31.26 MB / 378.7 MB Notification: Performance of pre-optimization done (n=67): time 4.088e-06/0.9888, allocations: 0 / 0.5267 GB, free: 31.26 MB / 378.7 MB Notification: Performance of matching and sorting (n=76): time 0.01218/1.001, allocations: 4.651 MB / 0.5312 GB, free: 26.55 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.286e-05/1.001, allocations: 141.1 kB / 0.5313 GB, free: 26.39 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003073/1.004, allocations: 1.917 MB / 0.5332 GB, free: 24.44 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001381/1.004, allocations: 29.7 kB / 0.5332 GB, free: 24.41 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001347/1.006, allocations: 2.485 MB / 0.5357 GB, free: 21.89 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002893/1.006, allocations: 308.2 kB / 0.5359 GB, free: 21.58 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001598/1.006, allocations: 0 / 0.5359 GB, free: 21.58 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002277/1.006, allocations: 470.9 kB / 0.5364 GB, free: 21.11 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001483/1.008, allocations: 0.8275 MB / 0.5372 GB, free: 20.29 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002472/1.01, allocations: 3.198 MB / 0.5403 GB, free: 15.89 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00261/1.013, allocations: 1.592 MB / 0.5419 GB, free: 14.3 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.72e-05/1.013, allocations: 24 kB / 0.5419 GB, free: 14.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=488) (initialization): time 0.007249/1.02, allocations: 3.451 MB / 0.5453 GB, free: 10.82 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.803e-05/1.02, allocations: 47.95 kB / 0.5453 GB, free: 10.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.921e-05/1.021, allocations: 84 kB / 0.5454 GB, free: 10.69 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001362/1.021, allocations: 128.8 kB / 0.5455 GB, free: 10.56 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003333/1.024, allocations: 0.9046 MB / 0.5464 GB, free: 9.656 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001145/1.024, allocations: 175.3 kB / 0.5466 GB, free: 9.484 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003302/1.028, allocations: 87.89 kB / 0.5467 GB, free: 9.398 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005521/1.028, allocations: 236 kB / 0.5469 GB, free: 9.168 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 391 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (488): * Single equations (assignments): 488 * 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.0005307/1.029, allocations: 332.8 kB / 0.5472 GB, free: 8.836 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003604/1.029, allocations: 193.5 kB / 0.5474 GB, free: 8.645 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001648/1.031, allocations: 0.8997 MB / 0.5483 GB, free: 7.727 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.216e-05/1.031, allocations: 19.97 kB / 0.5483 GB, free: 7.707 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.759e-06/1.031, allocations: 0 / 0.5483 GB, free: 7.707 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.07e-05/1.031, allocations: 0 / 0.5483 GB, free: 7.707 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007842/1.039, allocations: 4.288 MB / 0.5525 GB, free: 3.145 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.356e-05/1.039, allocations: 16 kB / 0.5525 GB, free: 3.129 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008035/1.039, allocations: 203.6 kB / 0.5527 GB, free: 2.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.783e-05/1.04, allocations: 24 kB / 0.5527 GB, free: 2.906 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.779e-05/1.04, allocations: 23.98 kB / 0.5527 GB, free: 2.883 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.272e-05/1.04, allocations: 31.92 kB / 0.5528 GB, free: 2.852 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.842e-05/1.04, allocations: 28.27 kB / 0.5528 GB, free: 2.824 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002424/1.042, allocations: 2.862 MB / 0.5556 GB, free: 15.16 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006322/1.043, allocations: 282.4 kB / 0.5558 GB, free: 14.86 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002707/1.043, allocations: 27.98 kB / 0.5559 GB, free: 14.83 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001008/1.044, allocations: 19.98 kB / 0.5559 GB, free: 14.81 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001905/1.044, allocations: 127.5 kB / 0.556 GB, free: 14.69 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.593e-05/1.044, allocations: 48 kB / 0.5561 GB, free: 14.64 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002588/1.047, allocations: 1.261 MB / 0.5573 GB, free: 13.36 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.15e-07/1.047, allocations: 0 / 0.5573 GB, free: 13.36 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004468/1.052, allocations: 0.5507 MB / 0.5578 GB, free: 12.81 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 74 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 112 * 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.0004732/1.052, allocations: 178.7 kB / 0.558 GB, free: 12.62 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004328/1.056, allocations: 1.991 MB / 0.5599 GB, free: 10.66 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.439e-05/1.056, allocations: 0 / 0.5599 GB, free: 10.66 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009005/1.057, allocations: 441.2 kB / 0.5604 GB, free: 10.23 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001497/1.059, allocations: 210.2 kB / 0.5606 GB, free: 10.02 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01487/1.074, allocations: 5.622 MB / 0.5661 GB, free: 4.133 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005703/1.08, allocations: 2.793 MB / 0.5688 GB, free: 1.312 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000652/1.08, allocations: 179.4 kB / 0.569 GB, free: 1.137 MB / 394.7 MB Notification: Performance of SimCode: time 2.177e-06/1.08, allocations: 0 / 0.569 GB, free: 1.137 MB / 394.7 MB Notification: Performance of Templates: time 0.3052/1.385, allocations: 35.07 MB / 0.6032 GB, free: 113.7 MB / 426.7 MB