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.RevolutePlanarLoopConstraint.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.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.1_cpp_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint") Notification: Performance of loadModel(ModelicaTest): time 1.898/1.898, allocations: 209.3 MB / 225.4 MB, free: 0.6094 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005851/0.0005853, allocations: 12 kB / 283.1 MB, free: 9.695 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3498/0.3504, allocations: 48.71 MB / 331.8 MB, free: 6.488 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint): time 0.1034/0.4539, allocations: 68.32 MB / 400.1 MB, free: 10.04 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0461/0.5, allocations: 15.86 MB / 416 MB, free: 10.14 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01495/0.5151, allocations: 359.1 kB / 416.3 MB, free: 9.785 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01288/0.528, allocations: 3.496 MB / 419.8 MB, free: 6.273 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.042/0.57, allocations: 9.97 MB / 429.8 MB, free: 12.28 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00761/0.5777, allocations: 1.163 MB / 431 MB, free: 11.11 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.1248/0.7025, allocations: 33.47 MB / 464.4 MB, free: 9.609 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01574/0.7183, allocations: 7.02 MB / 471.5 MB, free: 2.512 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005412/0.7238, allocations: 1.76 MB / 473.2 MB, free: 0.7461 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3247/1.049, allocations: 2.066 MB / 475.3 MB, free: 38.06 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001643/1.05, allocations: 182.6 kB / 475.5 MB, free: 38.06 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003858/1.054, allocations: 0.8676 MB / 476.3 MB, free: 38.06 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00466/1.059, allocations: 2.302 MB / 478.6 MB, free: 38.06 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002862/1.062, allocations: 1.084 MB / 479.7 MB, free: 38.03 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01214/1.074, allocations: 7.39 MB / 487.1 MB, free: 37.53 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/1.074, allocations: 0 / 487.1 MB, free: 37.53 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.096e-06/1.074, allocations: 0 / 487.1 MB, free: 37.53 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003891/1.074, allocations: 0 / 487.1 MB, free: 37.53 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1490 * Number of variables: 1490 Notification: Performance of Generate backend data structure: time 0.05351/1.128, allocations: 6.925 MB / 494 MB, free: 34.96 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.597e-05/1.128, allocations: 7.25 kB / 494 MB, free: 34.96 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1922/1.32, allocations: 12.14 MB / 0.4943 GB, free: 30.63 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02263/1.343, allocations: 6.347 MB / 0.5005 GB, free: 28.79 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00052/1.344, allocations: 317.8 kB / 0.5008 GB, free: 28.75 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002477/1.346, allocations: 409.8 kB / 0.5012 GB, free: 28.73 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04842/1.394, allocations: 11.13 MB / 0.5121 GB, free: 21.39 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003898/1.395, allocations: 60.7 kB / 0.5121 GB, free: 21.35 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001446/1.396, allocations: 175.8 kB / 0.5123 GB, free: 21.3 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004197/1.401, allocations: 1.495 MB / 0.5138 GB, free: 20.1 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03528/1.436, allocations: 9.317 MB / 0.5229 GB, free: 13.46 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0917/1.528, allocations: 44.62 MB / 0.5664 GB, free: 9.426 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04094/1.569, allocations: 7.961 MB / 0.5742 GB, free: 3.363 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03393/1.603, allocations: 12.87 MB / 0.5868 GB, free: 10.37 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.983e-05/1.603, allocations: 57.98 kB / 0.5868 GB, free: 10.32 MB / 442.7 MB Notification: Performance of pre-optimization done (n=283): time 7.484e-06/1.603, allocations: 0 / 0.5868 GB, free: 10.32 MB / 442.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!