Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.JointRRR.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(ModelicaTest.MultiBody.Joints.JointRRR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.JointRRR") translateModel(ModelicaTest.MultiBody.Joints.JointRRR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.JointRRR") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008419/0.0008419, allocations: 92.39 kB / 15.06 MB, free: 1.098 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.001298/0.001298, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.418/1.418, allocations: 205.4 MB / 222.1 MB, free: 5.516 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.3321/0.3321, allocations: 38.03 MB / 308.4 MB, free: 10.46 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaTest requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006067/0.0006067, allocations: 16 kB / 376.4 MB, free: 15.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1285/0.1291, allocations: 57.53 MB / 434 MB, free: 5.543 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointRRR): time 0.2936/0.4227, allocations: 47.68 MB / 481.6 MB, free: 27.66 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02619/0.449, allocations: 9.94 MB / 491.6 MB, free: 20.86 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01407/0.4631, allocations: 211.4 kB / 491.8 MB, free: 20.83 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008488/0.4716, allocations: 2.264 MB / 494.1 MB, free: 20.01 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01651/0.4882, allocations: 6.309 MB / 0.4886 GB, free: 17.31 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003054/0.4913, allocations: 0.6829 MB / 0.4893 GB, free: 17.03 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003807/0.4951, allocations: 3.378 MB / 0.4926 GB, free: 15.78 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008963/0.5041, allocations: 6.476 MB / 0.4989 GB, free: 13.21 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001977/0.5061, allocations: 1.016 MB / 0.4999 GB, free: 12.82 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002863/0.5089, allocations: 1.611 MB / 0.5015 GB, free: 12.28 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004125/0.5094, allocations: 151.2 kB / 0.5016 GB, free: 12.28 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001687/0.5111, allocations: 0.7028 MB / 0.5023 GB, free: 12.12 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00162/0.5127, allocations: 1.514 MB / 0.5038 GB, free: 11.67 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007254/0.5134, allocations: 0.7873 MB / 0.5046 GB, free: 11.11 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005644/0.5191, allocations: 6.173 MB / 0.5106 GB, free: 7.594 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.381e-06/0.5191, allocations: 0 / 0.5106 GB, free: 7.594 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.5191, allocations: 0.9688 kB / 0.5106 GB, free: 7.594 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002065/0.5193, allocations: 0 / 0.5106 GB, free: 7.594 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1388 * Number of variables: 1388 Notification: Performance of Generate backend data structure: time 0.009384/0.5287, allocations: 3.936 MB / 0.5144 GB, free: 4.879 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.327e-05/0.5288, allocations: 9.062 kB / 0.5145 GB, free: 4.879 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002477/0.5313, allocations: 0.5573 MB / 0.515 GB, free: 4.574 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003915/0.5352, allocations: 2.153 MB / 0.5171 GB, free: 3.082 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001604/0.5354, allocations: 266.7 kB / 0.5174 GB, free: 2.957 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005636/0.536, allocations: 353.8 kB / 0.5177 GB, free: 2.836 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01843/0.5544, allocations: 10.49 MB / 0.5279 GB, free: 11.7 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.804e-05/0.5545, allocations: 23.77 kB / 0.528 GB, free: 11.68 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003531/0.5548, allocations: 159.9 kB / 0.5281 GB, free: 11.52 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002618/0.5575, allocations: 1.639 MB / 0.5297 GB, free: 9.879 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01853/0.576, allocations: 9.158 MB / 0.5387 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0459/0.622, allocations: 31.08 MB / 0.569 GB, free: 1 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008894/0.6309, allocations: 3.082 MB / 0.572 GB, free: 13.89 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002526/0.6335, allocations: 1.763 MB / 0.5737 GB, free: 12.12 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01401/0.6475, allocations: 9.726 MB / 0.5832 GB, free: 1.902 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.688e-05/0.6476, allocations: 43.56 kB / 0.5833 GB, free: 1.852 MB / 446.1 MB Notification: Performance of pre-optimization done (n=94): time 4.328e-06/0.6476, allocations: 0 / 0.5833 GB, free: 1.852 MB / 446.1 MB Notification: Performance of matching and sorting (n=111): time 0.02623/0.6739, allocations: 9.316 MB / 0.5924 GB, free: 8.496 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.886e-05/0.674, allocations: 119.9 kB / 0.5925 GB, free: 8.352 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004812/0.6788, allocations: 2.846 MB / 0.5953 GB, free: 5.492 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001305/0.679, allocations: 45.7 kB / 0.5953 GB, free: 5.441 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001727/0.6807, allocations: 2.474 MB / 0.5977 GB, free: 2.934 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004013/0.6811, allocations: 446.4 kB / 0.5982 GB, free: 2.492 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001934/0.6813, allocations: 91.98 kB / 0.5982 GB, free: 2.402 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000284/0.6816, allocations: 475 kB / 0.5987 GB, free: 1.93 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002264/0.6839, allocations: 1.546 MB / 0.6002 GB, free: 384 kB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003984/0.6879, allocations: 3.884 MB / 0.604 GB, free: 11.32 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003108/0.691, allocations: 2.325 MB / 0.6063 GB, free: 8.992 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.304e-05/0.691, allocations: 24 kB / 0.6063 GB, free: 8.969 MB / 478.1 MB Notification: Performance of matching and sorting (n=533) (initialization): time 0.008024/0.6991, allocations: 5.39 MB / 0.6116 GB, free: 3.57 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.734e-05/0.6992, allocations: 40.19 kB / 0.6116 GB, free: 3.531 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.826e-05/0.6993, allocations: 91.98 kB / 0.6117 GB, free: 3.441 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001192/0.6994, allocations: 120 kB / 0.6118 GB, free: 3.324 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003016/0.7024, allocations: 1.002 MB / 0.6128 GB, free: 2.32 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001217/0.7026, allocations: 163.4 kB / 0.6129 GB, free: 2.16 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0026/0.7052, allocations: 227.5 kB / 0.6131 GB, free: 1.938 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003017/0.7055, allocations: 236 kB / 0.6134 GB, free: 1.707 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 373 * Number of states: 0 () * Number of discrete variables: 49 (jointRRR.jointUSR.revolute.positiveBranch,n1_a1.color[3],n1_a1.color[2],n1_a1.color[1],prism.color[3],prism.color[2],prism.color[1],rRod2.color[3],rRod2.color[2],rRod2.color[1],rRod1.color[3],rRod1.color[2],rRod1.color[1],n1_a.color[3],n1_a.color[2],n1_a.color[1],jointRRR.rodColor[3],jointRRR.rodColor[2],jointRRR.rodColor[1],jointRRR.cylinderColor[3],jointRRR.cylinderColor[2],jointRRR.cylinderColor[1],jointRRR.jointUSR.rod1Color[3],jointRRR.jointUSR.rod1Color[2],jointRRR.jointUSR.rod1Color[1],jointRRR.jointUSR.cylinderColor[3],jointRRR.jointUSR.cylinderColor[2],jointRRR.jointUSR.cylinderColor[1],jointRRR.jointUSR.sphereColor[3],jointRRR.jointUSR.sphereColor[2],jointRRR.jointUSR.sphereColor[1],jointRRR.jointUSR.revoluteColor[3],jointRRR.jointUSR.revoluteColor[2],jointRRR.jointUSR.revoluteColor[1],Fixed1.color[3],Fixed1.color[2],Fixed1.color[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (531): * Single equations (assignments): 530 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003273/0.7088, allocations: 1.758 MB / 0.6151 GB, free: 15.93 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004467/0.7092, allocations: 249 kB / 0.6153 GB, free: 15.69 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003393/0.7126, allocations: 2.213 MB / 0.6175 GB, free: 13.47 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.23e-05/0.7126, allocations: 12 kB / 0.6175 GB, free: 13.46 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.786e-06/0.7127, allocations: 0 / 0.6175 GB, free: 13.46 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.715e-05/0.7127, allocations: 7.984 kB / 0.6175 GB, free: 13.45 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01323/0.7259, allocations: 7.633 MB / 0.625 GB, free: 5.512 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.247e-05/0.726, allocations: 16 kB / 0.625 GB, free: 5.496 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001069/0.7271, allocations: 259.6 kB / 0.6252 GB, free: 5.242 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.298e-05/0.7271, allocations: 28 kB / 0.6252 GB, free: 5.215 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001219/0.7273, allocations: 47.98 kB / 0.6253 GB, free: 5.168 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.376e-05/0.7273, allocations: 23.94 kB / 0.6253 GB, free: 5.145 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.562e-05/0.7273, allocations: 23.88 kB / 0.6253 GB, free: 5.121 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003062/0.7304, allocations: 2.362 MB / 0.6276 GB, free: 2.543 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000983/0.7314, allocations: 341.9 kB / 0.628 GB, free: 2.188 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005816/0.732, allocations: 43.98 kB / 0.628 GB, free: 2.145 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001313/0.7333, allocations: 67.94 kB / 0.6281 GB, free: 2.078 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001685/0.7335, allocations: 128.2 kB / 0.6282 GB, free: 1.953 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.116e-05/0.7336, allocations: 48 kB / 0.6282 GB, free: 1.906 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003411/0.737, allocations: 1.815 MB / 0.63 GB, free: 88 kB / 494.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.737, allocations: 3.938 kB / 0.63 GB, free: 84 kB / 494.1 MB Notification: Performance of remove unused functions: time 0.2703/1.007, allocations: 0.7603 MB / 0.6308 GB, free: 145.5 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 64 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (137): * Single equations (assignments): 137 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004456/1.008, allocations: 195 kB / 0.631 GB, free: 145.4 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.004901/1.013, allocations: 3.312 MB / 0.6342 GB, free: 145.2 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.506e-06/1.013, allocations: 3.094 kB / 0.6342 GB, free: 145.2 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001085/1.014, allocations: 0.8814 MB / 0.635 GB, free: 145.1 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002036/1.016, allocations: 314.5 kB / 0.6353 GB, free: 145.1 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01334/1.029, allocations: 9.258 MB / 0.6444 GB, free: 140.6 MB / 494.1 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:754:5-754:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]