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.RevolutePlanarLoopConstraint.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.RevolutePlanarLoopConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w|revolute4.phi|revolute4.w",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint") Notification: Performance of loadModel(ModelicaTest): time 2.413/2.413, allocations: 234.9 MB / 251.1 MB, free: 10.53 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004803/0.0004803, allocations: 12 kB / 314.9 MB, free: 10.59 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3774/0.3779, allocations: 54.87 MB / 369.8 MB, free: 10.85 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint): time 0.1283/0.5062, allocations: 68.35 MB / 438.2 MB, free: 6.312 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.04947/0.5557, allocations: 15.89 MB / 454.1 MB, free: 6.379 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01695/0.5727, allocations: 359.1 kB / 454.4 MB, free: 6.027 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01356/0.5864, allocations: 3.492 MB / 457.9 MB, free: 2.52 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04192/0.6283, allocations: 9.982 MB / 467.9 MB, free: 8.512 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007293/0.6357, allocations: 1.135 MB / 469 MB, free: 7.375 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.4695/1.105, allocations: 33.46 MB / 0.4907 GB, free: 7.477 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01363/1.119, allocations: 7.022 MB / 0.4976 GB, free: 6.84 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004709/1.124, allocations: 1.755 MB / 0.4993 GB, free: 6.836 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004649/1.128, allocations: 2.079 MB / 0.5013 GB, free: 5.648 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001275/1.13, allocations: 184 kB / 0.5015 GB, free: 5.469 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003674/1.133, allocations: 0.8643 MB / 0.5023 GB, free: 4.746 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003647/1.137, allocations: 2.312 MB / 0.5046 GB, free: 3.051 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001861/1.139, allocations: 1.076 MB / 0.5056 GB, free: 2.637 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01227/1.151, allocations: 7.401 MB / 0.5129 GB, free: 12.21 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/1.151, allocations: 0 / 0.5129 GB, free: 12.21 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.859e-06/1.151, allocations: 0 / 0.5129 GB, free: 12.21 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003337/1.152, allocations: 1.75 kB / 0.5129 GB, free: 12.21 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1493 * Number of variables: 1493 Notification: Performance of Generate backend data structure: time 0.03085/1.183, allocations: 6.918 MB / 0.5196 GB, free: 5.855 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.795e-05/1.183, allocations: 8.031 kB / 0.5196 GB, free: 5.848 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1468/1.329, allocations: 12.14 MB / 0.5315 GB, free: 10.92 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02086/1.35, allocations: 6.351 MB / 0.5377 GB, free: 6.285 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000465/1.351, allocations: 324.8 kB / 0.538 GB, free: 6.09 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002177/1.353, allocations: 409.5 kB / 0.5384 GB, free: 5.824 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03716/1.39, allocations: 11.13 MB / 0.5493 GB, free: 13.23 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002986/1.391, allocations: 63.2 kB / 0.5493 GB, free: 13.18 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008264/1.391, allocations: 181.4 kB / 0.5495 GB, free: 13.13 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003292/1.395, allocations: 1.494 MB / 0.5509 GB, free: 11.93 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03543/1.43, allocations: 9.32 MB / 0.56 GB, free: 5.289 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09757/1.528, allocations: 44.67 MB / 0.6037 GB, free: 1.207 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03951/1.567, allocations: 7.952 MB / 0.6114 GB, free: 11.15 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03312/1.601, allocations: 12.86 MB / 0.624 GB, free: 392 kB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.43e-05/1.601, allocations: 72.64 kB / 0.6241 GB, free: 312 kB / 490.7 MB Notification: Performance of pre-optimization done (n=283): time 6.853e-06/1.601, allocations: 0 / 0.6241 GB, free: 312 kB / 490.7 MB Error: Internal error Selection of DummyDerivatives failed due to negative system rank of -2! There are 2 unassigned equations and 0 potential states. Error: Internal error - IndexReduction.selectDummyDerivatives2new failed! Error: Internal error - IndexReduction.processComps4New failed! Error: Internal error - IndexReduction.dynamicStateSelectionWork failed!