Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001079/0.001079, allocations: 80.41 kB / 22.21 MB, free: 2.293 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001124/0.001124, allocations: 167.6 kB / 25.61 MB, free: 8.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9183/0.9183, allocations: 177.2 MB / 206.1 MB, free: 4.469 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1392/0.1392, allocations: 32.82 MB / 295.4 MB, free: 15.37 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Joints.Revolute2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute.phi|revolute.w|revolute1.phi|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2") translateModel(ModelicaTest.MultiBody.Joints.Revolute2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute.phi|revolute.w|revolute1.phi|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.116e-06/3.116e-06, allocations: 4 kB / 377.3 MB, free: 25.57 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.936e-05/2.247e-05, allocations: 6.25 kB / 377.3 MB, free: 25.56 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.01035/0.01037, allocations: 17 MB / 394.3 MB, free: 8.492 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.008555/0.01893, allocations: 5.192 MB / 399.5 MB, free: 3.285 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002246/0.02118, allocations: 127.4 kB / 399.6 MB, free: 3.16 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003039/0.02421, allocations: 3.231 MB / 402.8 MB, free: 15.92 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004649/0.02886, allocations: 2.718 MB / 405.5 MB, free: 13.19 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001705/0.03057, allocations: 1.146 MB / 406.7 MB, free: 12.04 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.008086/0.03866, allocations: 9.028 MB / 415.7 MB, free: 2.992 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005905/0.04456, allocations: 4.76 MB / 420.5 MB, free: 14.18 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006267/0.05083, allocations: 4.183 MB / 424.7 MB, free: 9.988 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004418/0.05524, allocations: 3.835 MB / 428.5 MB, free: 6.145 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001011/0.05626, allocations: 467.9 kB / 429 MB, free: 5.688 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002246/0.0585, allocations: 1.28 MB / 430.2 MB, free: 4.406 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00203/0.06053, allocations: 3.023 MB / 433.3 MB, free: 1.375 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00179/0.06232, allocations: 1.873 MB / 435.1 MB, free: 15.5 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006154/0.06848, allocations: 6.675 MB / 441.8 MB, free: 8.797 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.06848, allocations: 0 / 441.8 MB, free: 8.797 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.06848, allocations: 4 kB / 441.8 MB, free: 8.793 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001282/0.06861, allocations: 0 / 441.8 MB, free: 8.793 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2169 * Number of variables: 2169 Notification: Performance of Generate backend data structure: time 0.008864/0.07747, allocations: 7.428 MB / 449.2 MB, free: 1.285 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.969e-05/0.07751, allocations: 11.98 kB / 449.3 MB, free: 1.273 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006718/0.08423, allocations: 2.787 MB / 452 MB, free: 14.48 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003864/0.08809, allocations: 3.087 MB / 455.1 MB, free: 11.34 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001734/0.08827, allocations: 320.4 kB / 455.4 MB, free: 11.02 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006401/0.08891, allocations: 436 kB / 455.9 MB, free: 10.6 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009535/0.09844, allocations: 7.528 MB / 463.4 MB, free: 2.074 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001285/0.09857, allocations: 55.52 kB / 463.4 MB, free: 2.02 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003909/0.09896, allocations: 199.8 kB / 463.6 MB, free: 1.824 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002513/0.1015, allocations: 2.776 MB / 466.4 MB, free: 15.05 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007611/0.1091, allocations: 3.892 MB / 470.3 MB, free: 11.13 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2307/0.3397, allocations: 53.48 MB / 0.5115 GB, free: 52.79 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00586/0.3456, allocations: 2.601 MB / 0.5141 GB, free: 52.73 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009599/0.3466, allocations: 0.8022 MB / 0.5148 GB, free: 52.71 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009839/0.3564, allocations: 6.689 MB / 0.5214 GB, free: 52.12 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.213e-05/0.3564, allocations: 61.91 kB / 0.5214 GB, free: 52.08 MB / 410.7 MB Notification: Performance of pre-optimization done (n=256): time 4.018e-06/0.3564, allocations: 0 / 0.5214 GB, free: 52.08 MB / 410.7 MB Notification: Performance of matching and sorting (n=272): time 0.02415/0.3806, allocations: 10.7 MB / 0.5319 GB, free: 50.85 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.22e-05/0.3806, allocations: 103.7 kB / 0.532 GB, free: 50.75 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005302/0.3859, allocations: 4.255 MB / 0.5361 GB, free: 48.72 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001437/0.3861, allocations: 68.58 kB / 0.5362 GB, free: 48.68 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002337/0.3884, allocations: 4.502 MB / 0.5406 GB, free: 45.67 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000613/0.389, allocations: 1.107 MB / 0.5417 GB, free: 44.77 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001242/0.3903, allocations: 1.627 MB / 0.5433 GB, free: 43.54 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.513e-05/0.3903, allocations: 484.6 kB / 0.5437 GB, free: 43.07 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001158/0.3915, allocations: 0.7681 MB / 0.5445 GB, free: 42.3 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002878/0.3944, allocations: 7.075 MB / 0.5514 GB, free: 32.66 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006055/0.4004, allocations: 8.534 MB / 0.5597 GB, free: 22.14 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.881e-05/0.4005, allocations: 51.94 kB / 0.5598 GB, free: 22.09 MB / 410.7 MB Notification: Performance of matching and sorting (n=994) (initialization): time 0.007199/0.4077, allocations: 6.033 MB / 0.5657 GB, free: 17 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.399e-05/0.4078, allocations: 72.03 kB / 0.5657 GB, free: 16.93 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001058/0.4079, allocations: 151.9 kB / 0.5659 GB, free: 16.78 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007714/0.4086, allocations: 425.6 kB / 0.5663 GB, free: 16.36 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00245/0.4111, allocations: 1.641 MB / 0.5679 GB, free: 14.75 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002327/0.4134, allocations: 4.545 MB / 0.5723 GB, free: 10 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003003/0.4164, allocations: 279 kB / 0.5726 GB, free: 9.73 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002887/0.4167, allocations: 380 kB / 0.5729 GB, free: 9.359 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 672 * Number of states: 0 () * Number of discrete variables: 50 (axis.arrowLine.twoHeadedArrow,axis.headAtOrigin,bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],axis.color[3],axis.color[2],axis.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 (935): * Single equations (assignments): 927 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,8,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001371/0.4181, allocations: 0.7541 MB / 0.5737 GB, free: 8.598 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004603/0.4185, allocations: 0.4932 MB / 0.5742 GB, free: 8.102 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002208/0.4207, allocations: 1.898 MB / 0.576 GB, free: 6.152 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-05/0.4208, allocations: 29.64 kB / 0.576 GB, free: 6.125 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/0.4208, allocations: 4 kB / 0.5761 GB, free: 6.121 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.199e-05/0.4208, allocations: 7.969 kB / 0.5761 GB, free: 6.113 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008746/0.4295, allocations: 7.296 MB / 0.5832 GB, free: 15.41 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.046e-05/0.4295, allocations: 8 kB / 0.5832 GB, free: 15.41 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008787/0.4304, allocations: 363.5 kB / 0.5835 GB, free: 15.05 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005445/0.431, allocations: 216.5 kB / 0.5837 GB, free: 14.84 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001198/0.4311, allocations: 64.67 kB / 0.5838 GB, free: 14.78 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00271/0.4338, allocations: 4.205 MB / 0.5879 GB, free: 10.38 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.774e-06/0.4338, allocations: 11.94 kB / 0.5879 GB, free: 10.37 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00345/0.4373, allocations: 2.827 MB / 0.5907 GB, free: 7.324 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006951/0.4379, allocations: 440.9 kB / 0.5911 GB, free: 6.895 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003505/0.4383, allocations: 55.06 kB / 0.5912 GB, free: 6.844 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008829/0.4392, allocations: 55.98 kB / 0.5912 GB, free: 6.789 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000244/0.4394, allocations: 177.4 kB / 0.5914 GB, free: 6.613 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001145/0.4395, allocations: 75.03 kB / 0.5915 GB, free: 6.543 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002029/0.4416, allocations: 1.744 MB / 0.5932 GB, free: 4.969 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4416, allocations: 0 / 0.5932 GB, free: 4.969 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004886/0.4465, allocations: 1.491 MB / 0.5946 GB, free: 3.48 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 47 * Number of states: 7 (revolute.phi,revolute.w,revolute1.phi,revolute2.phi,revolute2.w,revolute3.phi,revolute3.w) * 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 (220): * Single equations (assignments): 212 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004171/0.4469, allocations: 215.9 kB / 0.5948 GB, free: 3.266 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004547/0.4514, allocations: 3.665 MB / 0.5984 GB, free: 15.68 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.863e-06/0.4514, allocations: 0 / 0.5984 GB, free: 15.68 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001016/0.4524, allocations: 1.139 MB / 0.5995 GB, free: 14.53 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001936/0.4544, allocations: 0.6024 MB / 0.6001 GB, free: 13.95 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01402/0.4684, allocations: 11.21 MB / 0.611 GB, free: 2.512 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001513/0.4699, allocations: 1.773 MB / 0.6128 GB, free: 0.7031 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001665/0.4716, allocations: 0.6246 MB / 0.6134 GB, free: 76 kB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001337/0.4729, allocations: 0.7831 MB / 0.6142 GB, free: 15.29 MB / 458.7 MB Notification: Performance of SimCode: time 1.433e-06/0.4729, allocations: 0 / 0.6142 GB, free: 15.29 MB / 458.7 MB Notification: Performance of Templates: time 0.07271/0.5456, allocations: 44.98 MB / 0.6581 GB, free: 3.047 MB / 490.7 MB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Revolute2/Revolute2.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.034523506183177]