Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PistonEngine_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.PistonEngine_DynamicStateSelection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection") translateModel(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00104/0.00104, allocations: 111.2 kB / 16.42 MB, free: 6.461 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.001116/0.001116, allocations: 190.7 kB / 17.35 MB, free: 5.715 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.269/1.269, allocations: 222.9 MB / 241.1 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04371/0.04371, allocations: 9.127 MB / 300.3 MB, free: 5.816 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001195/0.001195, allocations: 71.89 kB / 415.3 MB, free: 21.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08429/0.0855, allocations: 51.43 MB / 466.8 MB, free: 1.672 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.01028/0.09582, allocations: 9.725 MB / 476.5 MB, free: 7.898 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004655/0.1005, allocations: 2.838 MB / 479.3 MB, free: 5.051 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000537/0.1011, allocations: 39.94 kB / 479.4 MB, free: 5.012 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007469/0.1018, allocations: 417.1 kB / 479.8 MB, free: 4.602 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002507/0.1043, allocations: 1.587 MB / 481.3 MB, free: 3.008 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003747/0.1047, allocations: 179.7 kB / 481.5 MB, free: 2.832 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0025/0.1072, allocations: 2.859 MB / 484.4 MB, free: 15.96 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001064/0.1083, allocations: 1.083 MB / 485.5 MB, free: 14.85 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009268/0.1093, allocations: 1.031 MB / 486.5 MB, free: 13.82 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001457/0.1107, allocations: 1.456 MB / 488 MB, free: 12.36 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003367/0.1111, allocations: 260 kB / 488.2 MB, free: 12.1 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001238/0.1123, allocations: 0.8698 MB / 489.1 MB, free: 11.23 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001001/0.1133, allocations: 1.352 MB / 490.4 MB, free: 9.875 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001304/0.1146, allocations: 1.759 MB / 492.2 MB, free: 8.105 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004477/0.1191, allocations: 5.473 MB / 497.7 MB, free: 2.613 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.297e-06/0.1191, allocations: 4 kB / 497.7 MB, free: 2.609 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.1192, allocations: 0 / 497.7 MB, free: 2.609 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.118e-05/0.1192, allocations: 0 / 497.7 MB, free: 2.609 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: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.01066/0.1299, allocations: 5.17 MB / 0.491 GB, free: 13.37 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.031e-05/0.1299, allocations: 8.031 kB / 0.4911 GB, free: 13.36 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006585/0.1365, allocations: 1.809 MB / 0.4928 GB, free: 11.55 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002738/0.1393, allocations: 1.506 MB / 0.4943 GB, free: 9.996 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001258/0.1394, allocations: 172.3 kB / 0.4945 GB, free: 9.824 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004111/0.1398, allocations: 231.7 kB / 0.4947 GB, free: 9.598 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01227/0.1521, allocations: 8.956 MB / 0.5034 GB, free: 180 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.839e-05/0.1522, allocations: 31.7 kB / 0.5035 GB, free: 148 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002983/0.1525, allocations: 103.9 kB / 0.5036 GB, free: 44 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.1826/0.3352, allocations: 2.004 MB / 0.5055 GB, free: 41.2 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0152/0.3504, allocations: 7.97 MB / 0.5133 GB, free: 38.91 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03/0.3804, allocations: 28.47 MB / 0.5411 GB, free: 17.25 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005647/0.3861, allocations: 2.82 MB / 0.5439 GB, free: 14.3 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001086/0.3872, allocations: 0.9903 MB / 0.5448 GB, free: 13.31 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006681/0.3939, allocations: 6.457 MB / 0.5511 GB, free: 6.262 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.818e-05/0.3939, allocations: 47.81 kB / 0.5512 GB, free: 6.207 MB / 382.1 MB Notification: Performance of pre-optimization done (n=155): time 3.186e-06/0.394, allocations: 0 / 0.5512 GB, free: 6.207 MB / 382.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:342:7-342:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed variables: equations: bodyPiston.v[2] + der(prismatic.r0[2]) = 0.0 [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:346:7-346:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:196:5-196:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:107:7-107:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:8011:5-8011:89:writable] Error: Internal error Transformation module sort components failed Error: Internal error SimCode DAEmode: The model PlanarMechanics.Examples.PistonEngine_DynamicStateSelection could not be translated