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.SphericalSpherical2.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.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.1_cpp_ModelicaTest.MultiBody.Joints.SphericalSpherical2") Notification: Performance of loadModel(ModelicaTest): time 1.865/1.865, allocations: 209.3 MB / 225.4 MB, free: 0.6133 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006551/0.0006554, allocations: 12 kB / 283.1 MB, free: 9.676 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3955/0.3962, allocations: 48.7 MB / 331.8 MB, free: 6.48 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.SphericalSpherical2): time 0.2339/0.6302, allocations: 104.2 MB / 436 MB, free: 6.074 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.07649/0.7068, allocations: 24.27 MB / 460.3 MB, free: 13.73 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0271/0.7339, allocations: 0.5415 MB / 460.8 MB, free: 13.19 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.02261/0.7566, allocations: 5.494 MB / 466.3 MB, free: 7.668 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.3812/1.138, allocations: 14.35 MB / 480.7 MB, free: 5.41 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01141/1.149, allocations: 1.998 MB / 482.7 MB, free: 5.379 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.07867/1.228, allocations: 28.79 MB / 0.4995 GB, free: 1.488 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0457/1.274, allocations: 22.13 MB / 0.5211 GB, free: 5.352 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007402/1.281, allocations: 2.842 MB / 0.5238 GB, free: 3.539 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009145/1.29, allocations: 3.985 MB / 0.5277 GB, free: 0.8125 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003191/1.294, allocations: 476 kB / 0.5282 GB, free: 356 kB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006485/1.3, allocations: 1.451 MB / 0.5296 GB, free: 15.12 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.009662/1.31, allocations: 5.203 MB / 0.5347 GB, free: 11.41 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005437/1.315, allocations: 2.617 MB / 0.5372 GB, free: 10.57 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.03208/1.347, allocations: 20.25 MB / 0.557 GB, free: 9.031 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/1.348, allocations: 0 / 0.557 GB, free: 9.031 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.665e-06/1.348, allocations: 0 / 0.557 GB, free: 9.031 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0008593/1.348, allocations: 0 / 0.557 GB, free: 9.031 MB / 442.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.05432/1.403, allocations: 13.09 MB / 0.5698 GB, free: 13.06 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.614e-05/1.403, allocations: 8.031 kB / 0.5698 GB, free: 13.05 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.5406/1.943, allocations: 22.28 MB / 0.5916 GB, free: 7.809 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04193/1.985, allocations: 9.71 MB / 0.601 GB, free: 1.102 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001273/1.987, allocations: 0.8814 MB / 0.6019 GB, free: 0.6094 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009112/1.996, allocations: 1.521 MB / 0.6034 GB, free: 15.57 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1109/2.107, allocations: 31.93 MB / 0.6346 GB, free: 7.461 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008681/2.108, allocations: 113.5 kB / 0.6347 GB, free: 7.398 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006194/2.114, allocations: 0.5276 MB / 0.6352 GB, free: 7.262 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0123/2.126, allocations: 4.354 MB / 0.6394 GB, free: 3.742 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.7093/2.836, allocations: 26.31 MB / 0.6651 GB, free: 191.9 MB / 0.4949 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1888/3.025, allocations: 110.6 MB / 0.7731 GB, free: 88.67 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.06142/3.086, allocations: 12.67 MB / 0.7855 GB, free: 75.86 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005693/3.092, allocations: 4.845 MB / 0.7902 GB, free: 70.26 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.8e-05/3.092, allocations: 77.52 kB / 0.7903 GB, free: 70.18 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=435): time 8.586e-06/3.092, allocations: 0 / 0.7903 GB, free: 70.18 MB / 0.4949 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!