Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/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.1_cpp_ModelicaTest.MultiBody.Joints.FreeMotion") Notification: Performance of loadModel(ModelicaTest): time 2.044/2.044, allocations: 209.3 MB / 225.4 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006184/0.0006185, allocations: 12 kB / 283.1 MB, free: 9.707 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4043/0.405, allocations: 48.71 MB / 331.8 MB, free: 6.496 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion): time 0.03615/0.4412, allocations: 24.36 MB / 356.2 MB, free: 4.949 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0194/0.4606, allocations: 6.497 MB / 362.7 MB, free: 15.61 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005397/0.4661, allocations: 111.8 kB / 362.8 MB, free: 15.5 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0049/0.471, allocations: 1.268 MB / 364 MB, free: 14.23 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01542/0.4865, allocations: 3.776 MB / 367.8 MB, free: 10.45 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002664/0.4892, allocations: 435.2 kB / 368.3 MB, free: 10.02 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.005752/0.495, allocations: 2.221 MB / 370.5 MB, free: 7.797 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004658/0.4997, allocations: 2.19 MB / 372.7 MB, free: 5.547 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001839/0.5016, allocations: 0.8914 MB / 373.6 MB, free: 4.652 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002514/0.5042, allocations: 1.246 MB / 374.8 MB, free: 3.402 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007339/0.5049, allocations: 132 kB / 374.9 MB, free: 3.273 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002643/0.5076, allocations: 0.8699 MB / 375.8 MB, free: 2.402 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002395/0.51, allocations: 1.465 MB / 377.3 MB, free: 0.9336 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00118/0.5112, allocations: 0.7725 MB / 378 MB, free: 156 kB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008582/0.5198, allocations: 4.895 MB / 382.9 MB, free: 11.25 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.5199, allocations: 0 / 382.9 MB, free: 11.25 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.677e-06/0.5199, allocations: 0 / 382.9 MB, free: 11.25 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001924/0.5201, allocations: 0 / 382.9 MB, free: 11.25 MB / 314.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.01089/0.531, allocations: 3.668 MB / 386.6 MB, free: 7.504 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.704e-05/0.5311, allocations: 11.97 kB / 386.6 MB, free: 7.492 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0244/0.5555, allocations: 3.84 MB / 390.4 MB, free: 3.641 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00718/0.5627, allocations: 2.415 MB / 392.9 MB, free: 1.18 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002193/0.563, allocations: 192.7 kB / 393.1 MB, free: 0.9883 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001545/0.5646, allocations: 339.3 kB / 393.4 MB, free: 0.6562 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02597/0.5906, allocations: 10.83 MB / 404.2 MB, free: 5.34 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000125/0.5907, allocations: 23.81 kB / 404.2 MB, free: 5.316 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006431/0.5914, allocations: 123.8 kB / 404.4 MB, free: 5.195 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007262/0.5987, allocations: 2.565 MB / 406.9 MB, free: 2.629 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03122/0.6299, allocations: 10.32 MB / 417.2 MB, free: 8.297 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08278/0.7128, allocations: 35.86 MB / 453.1 MB, free: 3.559 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01378/0.7266, allocations: 4.43 MB / 457.5 MB, free: 14.9 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002015/0.7287, allocations: 1.323 MB / 458.9 MB, free: 13.36 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.979e-05/0.7288, allocations: 60.52 kB / 458.9 MB, free: 13.29 MB / 394.7 MB Notification: Performance of pre-optimization done (n=245): time 6.281e-06/0.7288, allocations: 0 / 458.9 MB, free: 13.29 MB / 394.7 MB Notification: Performance of matching and sorting (n=255): time 0.07101/0.7998, allocations: 17.11 MB / 476 MB, free: 11.94 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.298e-05/0.7999, allocations: 77.34 kB / 476.1 MB, free: 11.85 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006182/0.8061, allocations: 2.981 MB / 479.1 MB, free: 8.855 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006027/0.8068, allocations: 65.61 kB / 479.1 MB, free: 8.789 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002806/0.8096, allocations: 2.711 MB / 481.9 MB, free: 6.039 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001721/0.8113, allocations: 0.929 MB / 482.8 MB, free: 5.098 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005964/0.812, allocations: 116 kB / 482.9 MB, free: 4.984 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005603/0.8125, allocations: 0.5504 MB / 483.5 MB, free: 4.422 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00658/0.8191, allocations: 2.334 MB / 485.8 MB, free: 2.082 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2768/1.096, allocations: 5.353 MB / 491.1 MB, free: 125.3 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009138/1.105, allocations: 3.531 MB / 494.7 MB, free: 124.2 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001301/1.105, allocations: 31.62 kB / 494.7 MB, free: 124.2 MB / 410.7 MB Notification: Performance of matching and sorting (n=742) (initialization): time 0.02773/1.133, allocations: 8.598 MB / 0.4915 GB, free: 121.4 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001142/1.133, allocations: 50.88 kB / 0.4916 GB, free: 121.4 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01356/1.147, allocations: 3.777 MB / 0.4952 GB, free: 120.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008767/1.156, allocations: 1.398 MB / 0.4966 GB, free: 120.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007722/1.163, allocations: 1.277 MB / 0.4979 GB, free: 120 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006805/1.17, allocations: 4.413 MB / 0.5022 GB, free: 117 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005785/1.176, allocations: 338 kB / 0.5025 GB, free: 116.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001319/1.178, allocations: 326 kB / 0.5028 GB, free: 116.9 MB / 410.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): 2 * Torn equation systems: 2 * 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: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 1 {3 1} Notification: Performance of prepare postOptimizeDAE: time 0.005393/1.183, allocations: 2.092 MB / 0.5048 GB, free: 116 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006439/1.184, allocations: 274.2 kB / 0.5051 GB, free: 116 MB / 410.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.1/Mechanics/MultiBody/Visualizers.mo:2640:7-2640: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.005984/1.19, allocations: 2.425 MB / 0.5075 GB, free: 114.9 MB / 410.7 MB Error: post-optimization module wrapFunctionCalls (simulation) failed.