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.SphericalSpherical2.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.SphericalSpherical2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.Q.1.|body.Q.2.|body.Q.3.|body.Q.4.|body.w_a.1.|body.w_a.2.|body.w_a.3.|bodyBox.body.Q.1.|bodyBox.body.Q.2.|bodyBox.body.Q.3.|bodyBox.body.Q.4.|bodyBox.body.frame_a.r_0.1.|bodyBox.body.frame_a.r_0.2.|bodyBox.body.frame_a.r_0.3.|bodyBox.body.w_a.1.|bodyBox.body.w_a.2.|bodyBox.body.w_a.3.|bodyBox1.body.Q.1.|bodyBox1.body.Q.2.|bodyBox1.body.Q.3.|bodyBox1.body.Q.4.|bodyBox1.body.w_a.1.|bodyBox1.body.w_a.2.|bodyBox1.body.w_a.3.|bodyBox2.body.Q.1.|bodyBox2.body.Q.2.|bodyBox2.body.Q.3.|bodyBox2.body.Q.4.|bodyBox2.body.frame_a.r_0.1.|bodyBox2.body.frame_a.r_0.2.|bodyBox2.body.frame_a.r_0.3.|bodyBox2.body.w_a.1.|bodyBox2.body.w_a.2.|bodyBox2.body.w_a.3.|bodyBox2.v_0.1.|bodyBox2.v_0.2.|bodyBox2.v_0.3.|sphericalSpherical.v_CM_0.1.|sphericalSpherical.v_CM_0.2.|sphericalSpherical.v_CM_0.3.|sphericalSpherical1.v_CM_0.1.|sphericalSpherical1.v_CM_0.2.|sphericalSpherical1.v_CM_0.3.",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.SphericalSpherical2") Notification: Performance of loadModel(ModelicaTest): time 2.462/2.462, allocations: 234.9 MB / 251.1 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004787/0.000479, allocations: 12 kB / 315 MB, free: 9.602 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3798/0.3803, allocations: 54.87 MB / 369.8 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.SphericalSpherical2): time 0.1973/0.5776, allocations: 104.2 MB / 474 MB, free: 2.27 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.4997/1.077, allocations: 24.31 MB / 498.3 MB, free: 15.85 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.03821/1.116, allocations: 0.5459 MB / 498.9 MB, free: 15.85 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.02798/1.144, allocations: 5.489 MB / 0.4925 GB, free: 14.13 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.07735/1.221, allocations: 14.35 MB / 0.5065 GB, free: 10 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01608/1.237, allocations: 1.985 MB / 0.5085 GB, free: 9.465 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.09076/1.328, allocations: 28.8 MB / 0.5366 GB, free: 8.48 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05746/1.386, allocations: 22.13 MB / 0.5582 GB, free: 8.414 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009478/1.395, allocations: 2.836 MB / 0.561 GB, free: 6.168 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01108/1.407, allocations: 3.987 MB / 0.5649 GB, free: 2.91 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004123/1.411, allocations: 476 kB / 0.5653 GB, free: 2.445 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008262/1.419, allocations: 1.463 MB / 0.5668 GB, free: 1.188 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.01176/1.431, allocations: 5.202 MB / 0.5718 GB, free: 12.96 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.007569/1.439, allocations: 2.615 MB / 0.5744 GB, free: 11.61 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.03607/1.475, allocations: 20.26 MB / 0.5942 GB, free: 10.05 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.67e-06/1.475, allocations: 0 / 0.5942 GB, free: 10.05 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.888e-06/1.475, allocations: 0 / 0.5942 GB, free: 10.05 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001058/1.476, allocations: 0 / 0.5942 GB, free: 10.05 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4609 * Number of variables: 4609 Notification: Performance of Generate backend data structure: time 0.06077/1.537, allocations: 13.09 MB / 0.607 GB, free: 14.06 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.521e-05/1.537, allocations: 8.031 kB / 0.607 GB, free: 14.05 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.5597/2.096, allocations: 22.37 MB / 0.6288 GB, free: 8.719 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03685/2.133, allocations: 9.735 MB / 0.6383 GB, free: 0.6758 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001543/2.135, allocations: 0.8868 MB / 0.6392 GB, free: 15.87 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009525/2.145, allocations: 1.523 MB / 0.6407 GB, free: 14.44 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.8829/3.028, allocations: 31.92 MB / 0.6719 GB, free: 198.4 MB / 0.5262 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001177/3.029, allocations: 111.6 kB / 0.672 GB, free: 198.3 MB / 0.5262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006194/3.035, allocations: 0.5306 MB / 0.6725 GB, free: 198.3 MB / 0.5262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01148/3.047, allocations: 4.362 MB / 0.6767 GB, free: 198.2 MB / 0.5262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08618/3.133, allocations: 26.31 MB / 0.7024 GB, free: 187.3 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2223/3.355, allocations: 110.7 MB / 0.8105 GB, free: 75.24 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.06276/3.418, allocations: 12.67 MB / 0.8229 GB, free: 62.42 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006005/3.424, allocations: 4.837 MB / 0.8276 GB, free: 56.84 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001103/3.424, allocations: 85.45 kB / 0.8277 GB, free: 56.74 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=435): time 9.477e-06/3.424, allocations: 0 / 0.8277 GB, free: 56.74 MB / 0.5262 GB Error: Internal error Selection of DummyDerivatives failed due to negative system rank of -10! There are 19 unassigned equations and 9 potential states. Error: Internal error - IndexReduction.selectDummyDerivatives2new failed! Error: Internal error - IndexReduction.processComps4New failed! Error: Internal error - IndexReduction.dynamicStateSelectionWork failed!