Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Joints.FreeMotion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.Q.1.|freeMotion.Q.2.|freeMotion.Q.3.|freeMotion.Q.4.|freeMotion.r_rel_a.1.|freeMotion.r_rel_a.2.|freeMotion.r_rel_a.3.|freeMotion.v_rel_a.1.|freeMotion.v_rel_a.2.|freeMotion.v_rel_a.3.|freeMotion.w_rel_b.1.|freeMotion.w_rel_b.2.|freeMotion.w_rel_b.3.",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.FreeMotion") Notification: Performance of loadModel(ModelicaTest): time 2.472/2.472, allocations: 234.9 MB / 251.1 MB, free: 9.48 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006135/0.0006136, allocations: 12 kB / 315 MB, free: 9.531 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3805/0.3812, allocations: 54.87 MB / 369.8 MB, free: 10.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion): time 0.03816/0.4194, allocations: 24.36 MB / 394.2 MB, free: 2.277 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01917/0.4386, allocations: 6.521 MB / 400.7 MB, free: 11.73 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005199/0.4439, allocations: 115.8 kB / 400.8 MB, free: 11.62 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00472/0.4487, allocations: 1.268 MB / 402.1 MB, free: 10.35 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0155/0.4642, allocations: 3.772 MB / 405.9 MB, free: 6.566 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002536/0.4668, allocations: 419.3 kB / 406.3 MB, free: 6.156 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.005796/0.4726, allocations: 2.224 MB / 408.5 MB, free: 3.93 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004315/0.477, allocations: 2.194 MB / 410.7 MB, free: 1.684 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001709/0.4788, allocations: 0.8875 MB / 411.6 MB, free: 0.793 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002258/0.481, allocations: 1.246 MB / 412.8 MB, free: 15.54 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005855/0.4816, allocations: 132 kB / 413 MB, free: 15.41 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002624/0.4843, allocations: 0.8933 MB / 413.8 MB, free: 14.52 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002128/0.4864, allocations: 1.461 MB / 415.3 MB, free: 13.05 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001121/0.4876, allocations: 0.7686 MB / 416.1 MB, free: 12.28 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008527/0.4961, allocations: 4.911 MB / 421 MB, free: 7.355 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.4962, allocations: 0 / 421 MB, free: 7.355 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.216e-06/0.4962, allocations: 0 / 421 MB, free: 7.355 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.000176/0.4964, allocations: 0 / 421 MB, free: 7.355 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1557 * Number of variables: 1557 Notification: Performance of Generate backend data structure: time 0.01083/0.5072, allocations: 3.675 MB / 424.7 MB, free: 3.613 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.858e-05/0.5073, allocations: 12.03 kB / 424.7 MB, free: 3.602 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02463/0.532, allocations: 3.855 MB / 428.5 MB, free: 15.73 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007687/0.5397, allocations: 2.419 MB / 430.9 MB, free: 13.27 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002749/0.54, allocations: 192.7 kB / 431.1 MB, free: 13.08 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002313/0.5424, allocations: 335.4 kB / 431.5 MB, free: 12.75 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02766/0.57, allocations: 10.84 MB / 442.3 MB, free: 1.43 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001468/0.5703, allocations: 27.75 kB / 442.3 MB, free: 1.402 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006939/0.571, allocations: 115.8 kB / 442.4 MB, free: 1.289 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007492/0.5785, allocations: 2.565 MB / 445 MB, free: 14.72 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03252/0.6111, allocations: 10.33 MB / 455.3 MB, free: 4.383 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4315/1.043, allocations: 35.86 MB / 491.2 MB, free: 68.81 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01246/1.055, allocations: 4.43 MB / 495.6 MB, free: 67.33 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00151/1.057, allocations: 1.324 MB / 496.9 MB, free: 66.16 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.498e-05/1.057, allocations: 56.38 kB / 497 MB, free: 66.11 MB / 394.7 MB Notification: Performance of pre-optimization done (n=245): time 6.933e-06/1.057, allocations: 3.562 kB / 497 MB, free: 66.11 MB / 394.7 MB Notification: Performance of matching and sorting (n=255): time 0.06111/1.118, allocations: 17.12 MB / 0.5021 GB, free: 58.73 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.286e-05/1.118, allocations: 73.41 kB / 0.5021 GB, free: 58.65 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004903/1.123, allocations: 2.971 MB / 0.505 GB, free: 55.66 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005944/1.124, allocations: 58.8 kB / 0.5051 GB, free: 55.6 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001764/1.125, allocations: 2.728 MB / 0.5078 GB, free: 52.89 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001192/1.127, allocations: 0.934 MB / 0.5087 GB, free: 51.96 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004168/1.127, allocations: 108 kB / 0.5088 GB, free: 51.86 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003253/1.127, allocations: 0.5519 MB / 0.5093 GB, free: 51.29 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004996/1.132, allocations: 2.357 MB / 0.5116 GB, free: 48.93 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006476/1.139, allocations: 5.39 MB / 0.5169 GB, free: 42.15 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007476/1.146, allocations: 3.548 MB / 0.5204 GB, free: 38.6 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.743e-05/1.147, allocations: 33.75 kB / 0.5204 GB, free: 38.57 MB / 394.7 MB Notification: Performance of matching and sorting (n=742) (initialization): time 0.03476/1.181, allocations: 9.505 MB / 0.5297 GB, free: 29.04 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.18e-05/1.181, allocations: 52 kB / 0.5297 GB, free: 28.99 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02345/1.205, allocations: 4.691 MB / 0.5343 GB, free: 24.28 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02114/1.226, allocations: 2.401 MB / 0.5366 GB, free: 21.87 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007654/1.234, allocations: 1.271 MB / 0.5379 GB, free: 20.6 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01356/1.247, allocations: 6.147 MB / 0.5439 GB, free: 14.18 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005737/1.253, allocations: 349.7 kB / 0.5442 GB, free: 13.84 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007235/1.254, allocations: 316 kB / 0.5445 GB, free: 13.54 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 478 * Number of states: 0 () * Number of discrete variables: 21 (frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[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 (684): * Single equations (assignments): 674 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004647/1.259, allocations: 2.091 MB / 0.5466 GB, free: 11.43 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006612/1.259, allocations: 280.4 kB / 0.5468 GB, free: 11.16 MB / 394.7 MB Warning: After manipulating the system with postOptModule wrapFunctionCalls the system is unbalanced. This indicates that the original system is singular. You can use -d=dumpCSE and -d=dumpCSE_verbose for more information. Error: Too many equations, over-determined system. The model has 254 equation(s) and 248 variable(s). [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Mechanics/MultiBody/Visualizers.mo:2634:7-2634:47:writable] Error: {{frame_a.y_label.R_lines[1,1], frame_a.y_label.R_lines[1,2], frame_a.y_label.R_lines[1,3]}, {frame_a.y_label.R_lines[2,1], frame_a.y_label.R_lines[2,2], frame_a.y_label.R_lines[2,3]}, {frame_a.y_label.R_lines[3,1], frame_a.y_label.R_lines[3,2], frame_a.y_label.R_lines[3,3]}} = Modelica.Mechanics.MultiBody.Frames.TransformationMatrices.from_nxy({0.0, 1.0, 0.0}, {-1.0, 0.0, 0.0}) has size 9 but 3 variables (frame_a.x_label.R_lines[1,2], frame_a.x_label.R_lines[2,2], frame_a.x_label.cylinders[2].lengthDirection[2]) Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed! Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005472/1.265, allocations: 2.422 MB / 0.5492 GB, free: 8.719 MB / 394.7 MB Error: post-optimization module wrapFunctionCalls (simulation) failed.