Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion.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.0009893/0.0009893, allocations: 80.41 kB / 22.21 MB, free: 2.285 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.0009723/0.0009723, allocations: 166.4 kB / 25.61 MB, free: 8.594 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.9417/0.9417, allocations: 177.1 MB / 206 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.1418/0.1418, allocations: 32.8 MB / 295.4 MB, free: 15.39 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.FreeMotion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|freeMotion.Q.[0-9,]+.|freeMotion.r_rel_a.[0-9,]+.|freeMotion.v_rel_a.[0-9,]+.|freeMotion.w_rel_b.[0-9,]+.",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion") translateModel(ModelicaTest.MultiBody.Joints.FreeMotion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|freeMotion.Q.[0-9,]+.|freeMotion.r_rel_a.[0-9,]+.|freeMotion.v_rel_a.[0-9,]+.|freeMotion.w_rel_b.[0-9,]+.",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.523e-06/1.523e-06, allocations: 0 / 377.3 MB, free: 25.62 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.901e-05/3.053e-05, allocations: 6.188 kB / 377.3 MB, free: 25.62 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion): time 0.007215/0.007246, allocations: 10.99 MB / 388.3 MB, free: 14.57 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.006776/0.01402, allocations: 3.829 MB / 392.1 MB, free: 10.73 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001989/0.01601, allocations: 67.75 kB / 392.2 MB, free: 10.67 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001958/0.01797, allocations: 1.241 MB / 393.4 MB, free: 9.422 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003322/0.02129, allocations: 1.844 MB / 395.2 MB, free: 7.57 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009295/0.02222, allocations: 0.5299 MB / 395.8 MB, free: 7.039 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.003539/0.02576, allocations: 4.734 MB / 400.5 MB, free: 2.301 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002055/0.02781, allocations: 2.243 MB / 402.7 MB, free: 28 kB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002158/0.02997, allocations: 1.878 MB / 404.6 MB, free: 14.14 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001975/0.03195, allocations: 2.081 MB / 406.7 MB, free: 12.06 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003126/0.03226, allocations: 224 kB / 406.9 MB, free: 11.84 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001373/0.03363, allocations: 1.037 MB / 408 MB, free: 10.8 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001039/0.03467, allocations: 1.71 MB / 409.7 MB, free: 9.082 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009738/0.03565, allocations: 0.9886 MB / 410.7 MB, free: 8.09 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003912/0.03956, allocations: 4.089 MB / 414.8 MB, free: 3.984 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.03956, allocations: 0 / 414.8 MB, free: 3.984 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.03956, allocations: 0 / 414.8 MB, free: 3.984 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001023/0.03966, allocations: 0 / 414.8 MB, free: 3.984 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1483 * Number of variables: 1483 Notification: Performance of Generate backend data structure: time 0.00519/0.04485, allocations: 4.399 MB / 419.2 MB, free: 15.52 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.277e-05/0.0449, allocations: 15.98 kB / 419.2 MB, free: 15.5 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005049/0.04995, allocations: 1.902 MB / 421.1 MB, free: 13.6 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003158/0.0531, allocations: 1.624 MB / 422.7 MB, free: 11.94 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001692/0.05327, allocations: 176.8 kB / 422.9 MB, free: 11.77 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007573/0.05403, allocations: 324.4 kB / 423.2 MB, free: 11.45 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006441/0.06047, allocations: 4.795 MB / 428 MB, free: 6.047 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.841e-05/0.06054, allocations: 27.77 kB / 428 MB, free: 6.02 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002636/0.0608, allocations: 115.8 kB / 428.1 MB, free: 5.906 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001985/0.06279, allocations: 2.116 MB / 430.2 MB, free: 3.789 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006667/0.06946, allocations: 2.773 MB / 433 MB, free: 0.9883 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03361/0.1031, allocations: 32.42 MB / 465.4 MB, free: 15.57 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003449/0.1065, allocations: 1.43 MB / 466.9 MB, free: 14.14 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007421/0.1073, allocations: 0.5398 MB / 467.4 MB, free: 13.61 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004823/0.1077, allocations: 413.3 kB / 467.8 MB, free: 13.2 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.663e-05/0.1078, allocations: 55.33 kB / 467.9 MB, free: 13.14 MB / 394.7 MB Notification: Performance of pre-optimization done (n=236): time 4.348e-06/0.1078, allocations: 4 kB / 467.9 MB, free: 13.13 MB / 394.7 MB Notification: Performance of matching and sorting (n=252): time 0.01699/0.1248, allocations: 7.668 MB / 475.5 MB, free: 5.445 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009588/0.1257, allocations: 1.935 MB / 477.5 MB, free: 3.375 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002395/0.1281, allocations: 2.561 MB / 480 MB, free: 0.7812 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003074/0.1284, allocations: 61.69 kB / 480.1 MB, free: 0.7148 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001624/0.1301, allocations: 2.861 MB / 482.9 MB, free: 13.82 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009676/0.131, allocations: 1.012 MB / 484 MB, free: 12.8 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001094/0.1321, allocations: 1.192 MB / 485.1 MB, free: 11.59 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001167/0.1322, allocations: 476.8 kB / 485.6 MB, free: 11.12 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001083/0.1333, allocations: 0.6783 MB / 486.3 MB, free: 10.44 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003525/0.1368, allocations: 5.041 MB / 491.3 MB, free: 3.445 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1778/0.3147, allocations: 6.352 MB / 497.7 MB, free: 104 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001194/0.3148, allocations: 29.28 kB / 497.7 MB, free: 104 MB / 410.7 MB Notification: Performance of matching and sorting (n=734) (initialization): time 0.01001/0.3248, allocations: 4.894 MB / 0.4908 GB, free: 103.3 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.984e-05/0.3248, allocations: 54.5 kB / 0.4909 GB, free: 103.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004407/0.3293, allocations: 1.517 MB / 0.4924 GB, free: 103.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004217/0.3335, allocations: 0.6329 MB / 0.493 GB, free: 103.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002777/0.3362, allocations: 1.153 MB / 0.4941 GB, free: 103 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00301/0.3393, allocations: 4.134 MB / 0.4981 GB, free: 99.41 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002742/0.342, allocations: 203.3 kB / 0.4983 GB, free: 99.41 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004697/0.3425, allocations: 271.5 kB / 0.4986 GB, free: 99.41 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 462 * Number of states: 0 () * Number of discrete variables: 26 (world.axisColor_x[1],world.axisColor_x[2],world.axisColor_x[3],world.gravityArrowColor[1],world.gravityArrowColor[2],world.gravityArrowColor[3],world.gravitySphereColor[1],world.gravitySphereColor[2],world.gravitySphereColor[3],world.groundColor[1],world.groundColor[2],world.groundColor[3],freeMotion.arrowColor[1],freeMotion.arrowColor[2],freeMotion.arrowColor[3],body.sphereColor[1],body.sphereColor[2],body.sphereColor[3],frame_a.color_x[1],frame_a.color_x[2],frame_a.color_x[3],frame_a1.color_x[1],frame_a1.color_x[2],frame_a1.color_x[3],freeMotion.arrow.headAtOrigin,freeMotion.arrow.twoHeadedArrow) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (672): * Single equations (assignments): 660 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001405/0.3439, allocations: 0.5804 MB / 0.4992 GB, free: 99.14 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004869/0.3444, allocations: 345.9 kB / 0.4995 GB, free: 99.14 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003275/0.3476, allocations: 2.292 MB / 0.5017 GB, free: 98.07 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002425/0.3501, allocations: 1.447 MB / 0.5031 GB, free: 97.01 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.725e-06/0.3501, allocations: 4 kB / 0.5031 GB, free: 97 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.262e-05/0.3501, allocations: 11.2 kB / 0.5032 GB, free: 97 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009061/0.3591, allocations: 6.848 MB / 0.5098 GB, free: 91.75 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.317e-06/0.3592, allocations: 8 kB / 0.5099 GB, free: 91.75 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007713/0.3599, allocations: 315.5 kB / 0.5102 GB, free: 91.44 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001532/0.3615, allocations: 453.2 kB / 0.5106 GB, free: 90.98 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001266/0.3616, allocations: 67.95 kB / 0.5106 GB, free: 90.92 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001938/0.3635, allocations: 3.923 MB / 0.5145 GB, free: 86.8 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0004745/0.364, allocations: 1.877 MB / 0.5163 GB, free: 84.81 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005257/0.3693, allocations: 2.94 MB / 0.5192 GB, free: 81.7 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008413/0.3701, allocations: 260.5 kB / 0.5194 GB, free: 81.45 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003874/0.3705, allocations: 55.98 kB / 0.5195 GB, free: 81.39 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001227/0.3717, allocations: 46.61 kB / 0.5195 GB, free: 81.36 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003972/0.3721, allocations: 168.8 kB / 0.5197 GB, free: 81.19 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001758/0.3723, allocations: 67.98 kB / 0.5198 GB, free: 81.12 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001658/0.3739, allocations: 1.031 MB / 0.5208 GB, free: 80.18 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.3739, allocations: 0 / 0.5208 GB, free: 80.18 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004681/0.3786, allocations: 1.115 MB / 0.5219 GB, free: 79.07 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],freeMotion.r_rel_a[1],freeMotion.r_rel_a[2],freeMotion.r_rel_a[3],freeMotion.v_rel_a[1],freeMotion.v_rel_a[2],freeMotion.v_rel_a[3],freeMotion.w_rel_b[1],freeMotion.w_rel_b[2],freeMotion.w_rel_b[3]) * 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 (192): * Single equations (assignments): 182 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004349/0.3791, allocations: 211.1 kB / 0.5221 GB, free: 78.87 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004033/0.3831, allocations: 3.206 MB / 0.5252 GB, free: 75.71 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.001e-06/0.3831, allocations: 0 / 0.5252 GB, free: 75.71 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00149/0.3846, allocations: 1.282 MB / 0.5264 GB, free: 74.41 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001381/0.386, allocations: 335.6 kB / 0.5268 GB, free: 74.09 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008501/0.3945, allocations: 8.112 MB / 0.5347 GB, free: 65.81 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008423/0.3953, allocations: 1.186 MB / 0.5358 GB, free: 64.61 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001105/0.3964, allocations: 417.5 kB / 0.5362 GB, free: 64.2 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007023/0.3971, allocations: 498 kB / 0.5367 GB, free: 63.71 MB / 410.7 MB Notification: Performance of SimCode: time 1.423e-06/0.3971, allocations: 0 / 0.5367 GB, free: 63.71 MB / 410.7 MB Notification: Performance of Templates: time 0.04409/0.4412, allocations: 35.63 MB / 0.5715 GB, free: 28.48 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/FreeMotion/FreeMotion.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: 4.435165793634951]