Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection") translateModel(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001288/0.001288, allocations: 109 kB / 16.42 MB, free: 6.512 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001324/0.001325, allocations: 190.7 kB / 17.35 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.356/1.356, allocations: 222.9 MB / 241.1 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.05869/0.05869, allocations: 9.126 MB / 300.3 MB, free: 5.805 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001205/0.001205, allocations: 63.91 kB / 415.3 MB, free: 21.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08151/0.08273, allocations: 51.44 MB / 466.8 MB, free: 1.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection): time 0.01061/0.09337, allocations: 10.48 MB / 477.2 MB, free: 7.129 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00554/0.09895, allocations: 2.975 MB / 480.2 MB, free: 4.145 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007734/0.09975, allocations: 47.88 kB / 480.3 MB, free: 4.098 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008362/0.1006, allocations: 448.8 kB / 480.7 MB, free: 3.656 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002942/0.1036, allocations: 1.583 MB / 482.3 MB, free: 2.066 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004843/0.1041, allocations: 223.6 kB / 482.5 MB, free: 1.848 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002968/0.1071, allocations: 3.022 MB / 485.5 MB, free: 14.82 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001252/0.1083, allocations: 1.178 MB / 486.7 MB, free: 13.61 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001083/0.1094, allocations: 1.097 MB / 487.8 MB, free: 12.51 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001578/0.111, allocations: 1.545 MB / 489.3 MB, free: 10.96 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003564/0.1114, allocations: 276 kB / 489.6 MB, free: 10.69 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001329/0.1127, allocations: 0.8777 MB / 490.5 MB, free: 9.809 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001006/0.1137, allocations: 1.406 MB / 491.9 MB, free: 8.398 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001313/0.115, allocations: 1.86 MB / 493.8 MB, free: 6.527 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004934/0.12, allocations: 5.71 MB / 499.5 MB, free: 0.7969 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.12, allocations: 0 / 499.5 MB, free: 0.7969 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.12, allocations: 3.938 kB / 499.5 MB, free: 0.793 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.504e-05/0.1201, allocations: 0 / 499.5 MB, free: 0.793 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1368 * Number of variables: 1368 Notification: Performance of Generate backend data structure: time 0.01209/0.1322, allocations: 5.733 MB / 0.4934 GB, free: 10.99 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/0.1322, allocations: 8.031 kB / 0.4934 GB, free: 10.98 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006743/0.139, allocations: 1.825 MB / 0.4951 GB, free: 9.152 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002296/0.1413, allocations: 1.576 MB / 0.4967 GB, free: 7.527 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001674/0.1415, allocations: 184.6 kB / 0.4969 GB, free: 7.344 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004786/0.142, allocations: 251.7 kB / 0.4971 GB, free: 7.098 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2172/0.3592, allocations: 9.299 MB / 0.5062 GB, free: 39.53 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.391e-05/0.3594, allocations: 31.25 kB / 0.5062 GB, free: 39.51 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000355/0.3597, allocations: 118 kB / 0.5063 GB, free: 39.51 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003461/0.3632, allocations: 2.075 MB / 0.5084 GB, free: 39.43 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01603/0.3792, allocations: 8.238 MB / 0.5164 GB, free: 36.69 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0294/0.4087, allocations: 29.92 MB / 0.5456 GB, free: 13.54 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006362/0.4151, allocations: 3.036 MB / 0.5486 GB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00133/0.4164, allocations: 1.112 MB / 0.5497 GB, free: 9.27 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005294/0.4217, allocations: 6.283 MB / 0.5558 GB, free: 2.359 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.876e-05/0.4218, allocations: 43.88 kB / 0.5558 GB, free: 2.309 MB / 382.1 MB Notification: Performance of pre-optimization done (n=179): time 3.356e-06/0.4218, allocations: 4 kB / 0.5558 GB, free: 2.305 MB / 382.1 MB Error: Internal error Selection of DummyDerivatives failed due to negative system rank of -12! There are 14 unassigned equations and 2 potential states. Error: Internal error - IndexReduction.selectDummyDerivatives2new failed! Error: Internal error - IndexReduction.processComps4New failed! Error: Internal error - IndexReduction.dynamicStateSelectionWork failed! Error: Internal error SimCode DAEmode: The model PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection could not be translated