Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_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.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+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.2_ModelicaTest.MultiBody.Joints.JointRRR") translateModel(ModelicaTest.MultiBody.Joints.JointRRR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_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.001244/0.001244, allocations: 87.03 kB / 15.06 MB, free: 1.09 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.001887/0.001887, allocations: 168.7 kB / 15.95 MB, free: 204 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.87/1.87, allocations: 205.4 MB / 222.1 MB, free: 5.641 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.3958/0.3958, allocations: 40 MB / 310.4 MB, free: 9.93 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.2. 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.0005512/0.0005514, allocations: 15.98 kB / 378.8 MB, free: 12.63 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1301/0.1307, allocations: 57.95 MB / 436.8 MB, free: 2.578 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointRRR): time 0.3052/0.436, allocations: 47.69 MB / 484.5 MB, free: 24.88 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02086/0.4569, allocations: 9.936 MB / 494.4 MB, free: 18.07 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01075/0.4677, allocations: 207.4 kB / 494.6 MB, free: 18.04 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007427/0.4752, allocations: 2.264 MB / 496.9 MB, free: 17.23 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01849/0.4937, allocations: 6.307 MB / 0.4914 GB, free: 14.52 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004359/0.4981, allocations: 0.68 MB / 0.4921 GB, free: 14.25 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005727/0.5039, allocations: 3.388 MB / 0.4954 GB, free: 12.99 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009917/0.5138, allocations: 6.48 MB / 0.5017 GB, free: 10.42 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002088/0.516, allocations: 1.012 MB / 0.5027 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003055/0.519, allocations: 1.611 MB / 0.5043 GB, free: 9.496 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000702/0.5197, allocations: 151 kB / 0.5044 GB, free: 9.496 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001898/0.5217, allocations: 0.7028 MB / 0.5051 GB, free: 9.344 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002487/0.5242, allocations: 1.52 MB / 0.5066 GB, free: 8.887 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00163/0.5258, allocations: 0.7791 MB / 0.5073 GB, free: 8.332 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007463/0.5333, allocations: 6.167 MB / 0.5134 GB, free: 4.559 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.235e-05/0.5334, allocations: 0 / 0.5134 GB, free: 4.559 MB / 382.1 MB Notification: Performance of FrontEnd: time 5.07e-06/0.5334, allocations: 4 kB / 0.5134 GB, free: 4.555 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003618/0.5337, allocations: 0 / 0.5134 GB, free: 4.555 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.01307/0.5468, allocations: 3.933 MB / 0.5172 GB, free: 1.844 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.619e-05/0.5469, allocations: 10.56 kB / 0.5172 GB, free: 1.844 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004021/0.5509, allocations: 0.5645 MB / 0.5178 GB, free: 1.531 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006364/0.5573, allocations: 2.151 MB / 0.5199 GB, free: 40 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000419/0.5578, allocations: 267.3 kB / 0.5201 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002523/0.5603, allocations: 361.6 kB / 0.5205 GB, free: 15.79 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02818/0.5885, allocations: 10.49 MB / 0.5307 GB, free: 7.422 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001326/0.5887, allocations: 19.86 kB / 0.5307 GB, free: 7.402 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001169/0.5899, allocations: 147.9 kB / 0.5309 GB, free: 7.258 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003075/0.593, allocations: 1.64 MB / 0.5325 GB, free: 5.617 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02569/0.6187, allocations: 9.158 MB / 0.5414 GB, free: 12.45 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05704/0.6758, allocations: 31.07 MB / 0.5718 GB, free: 12.74 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01025/0.6861, allocations: 3.087 MB / 0.5748 GB, free: 9.625 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003219/0.6894, allocations: 1.763 MB / 0.5765 GB, free: 7.848 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01655/0.706, allocations: 9.726 MB / 0.586 GB, free: 13.63 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.284e-05/0.7061, allocations: 47.56 kB / 0.586 GB, free: 13.57 MB / 462.1 MB Notification: Performance of pre-optimization done (n=94): time 4.668e-06/0.7061, allocations: 0 / 0.586 GB, free: 13.57 MB / 462.1 MB Notification: Performance of matching and sorting (n=111): time 0.02963/0.7357, allocations: 9.32 MB / 0.5951 GB, free: 4.219 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.02e-05/0.7359, allocations: 119.8 kB / 0.5953 GB, free: 4.074 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005499/0.7414, allocations: 2.846 MB / 0.598 GB, free: 1.215 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003092/0.7418, allocations: 49.77 kB / 0.5981 GB, free: 1.16 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00193/0.7437, allocations: 2.47 MB / 0.6005 GB, free: 14.66 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006729/0.7444, allocations: 446.4 kB / 0.6009 GB, free: 14.21 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003581/0.7448, allocations: 80 kB / 0.601 GB, free: 14.14 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000355/0.7451, allocations: 483 kB / 0.6015 GB, free: 13.66 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003047/0.7482, allocations: 1.542 MB / 0.603 GB, free: 12.11 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00454/0.7527, allocations: 3.884 MB / 0.6068 GB, free: 7.051 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004392/0.7572, allocations: 2.329 MB / 0.609 GB, free: 4.719 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.781e-05/0.7573, allocations: 24 kB / 0.6091 GB, free: 4.695 MB / 478.1 MB Notification: Performance of matching and sorting (n=533) (initialization): time 0.01309/0.7704, allocations: 5.397 MB / 0.6143 GB, free: 15.29 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001348/0.7706, allocations: 40 kB / 0.6144 GB, free: 15.25 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001866/0.7708, allocations: 84 kB / 0.6145 GB, free: 15.17 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002011/0.771, allocations: 120.8 kB / 0.6146 GB, free: 15.05 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004161/0.7752, allocations: 1.006 MB / 0.6155 GB, free: 14.04 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002288/0.7754, allocations: 163.4 kB / 0.6157 GB, free: 13.88 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003729/0.7792, allocations: 235.5 kB / 0.6159 GB, free: 13.65 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006567/0.7799, allocations: 232 kB / 0.6162 GB, free: 13.43 MB / 494.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.004634/0.7845, allocations: 1.754 MB / 0.6179 GB, free: 11.66 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007165/0.7852, allocations: 241.1 kB / 0.6181 GB, free: 11.42 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004574/0.7898, allocations: 2.229 MB / 0.6203 GB, free: 9.188 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.031e-05/0.7899, allocations: 12 kB / 0.6203 GB, free: 9.176 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.07e-05/0.7899, allocations: 0 / 0.6203 GB, free: 9.176 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.656e-05/0.7899, allocations: 3.984 kB / 0.6203 GB, free: 9.172 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01756/0.8075, allocations: 7.624 MB / 0.6277 GB, free: 1.242 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.56e-05/0.8076, allocations: 12 kB / 0.6277 GB, free: 1.23 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001124/0.8087, allocations: 263.5 kB / 0.628 GB, free: 0.9727 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.517e-05/0.8087, allocations: 24 kB / 0.628 GB, free: 0.9492 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001313/0.8089, allocations: 40.84 kB / 0.6281 GB, free: 0.9102 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.534e-05/0.8089, allocations: 39.8 kB / 0.6281 GB, free: 0.8711 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.354e-05/0.8089, allocations: 23.94 kB / 0.6281 GB, free: 0.8477 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2684/1.077, allocations: 2.362 MB / 0.6304 GB, free: 143.1 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008448/1.078, allocations: 343.5 kB / 0.6307 GB, free: 143 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003005/1.079, allocations: 42.22 kB / 0.6308 GB, free: 143 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001007/1.08, allocations: 66.92 kB / 0.6309 GB, free: 143 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000183/1.08, allocations: 129.9 kB / 0.631 GB, free: 143 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.771e-05/1.08, allocations: 52.25 kB / 0.631 GB, free: 143 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00267/1.083, allocations: 1.81 MB / 0.6328 GB, free: 142.9 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.4e-07/1.083, allocations: 0 / 0.6328 GB, free: 142.9 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003555/1.086, allocations: 0.7623 MB / 0.6335 GB, free: 142.9 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.0003949/1.087, allocations: 191.7 kB / 0.6337 GB, free: 142.8 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.004861/1.091, allocations: 3.317 MB / 0.637 GB, free: 142.6 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.536e-06/1.091, allocations: 0 / 0.637 GB, free: 142.6 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001084/1.093, allocations: 0.8792 MB / 0.6378 GB, free: 142.3 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002054/1.095, allocations: 325 kB / 0.6381 GB, free: 142.2 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01519/1.11, allocations: 9.246 MB / 0.6472 GB, free: 136.9 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]