Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.00145/0.00145, allocations: 79.59 kB / 21.18 MB, free: 3.383 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.00166/0.00166, allocations: 161 kB / 24.55 MB, free: 16 kB / 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.956/0.956, allocations: 177.1 MB / 205 MB, free: 5.652 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2514/0.2514, allocations: 34.26 MB / 295.7 MB, free: 0.6875 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.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.1.0_ModelicaTest.MultiBody.Joints.FreeMotion") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.152e-06/1.152e-06, allocations: 0 / 378 MB, free: 2.645 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.532e-05/1.647e-05, allocations: 2.312 kB / 378 MB, free: 2.641 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion): time 0.008707/0.008723, allocations: 11.29 MB / 389.3 MB, free: 7.293 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.006414/0.01514, allocations: 3.863 MB / 393.2 MB, free: 3.418 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001085/0.01622, allocations: 71.75 kB / 393.3 MB, free: 3.348 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00162/0.01784, allocations: 1.257 MB / 394.5 MB, free: 2.086 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002559/0.0204, allocations: 1.848 MB / 396.4 MB, free: 236 kB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001016/0.02142, allocations: 0.5182 MB / 396.9 MB, free: 15.71 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.003305/0.02472, allocations: 4.729 MB / 401.6 MB, free: 10.98 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002021/0.02674, allocations: 2.255 MB / 403.9 MB, free: 8.695 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001724/0.02847, allocations: 1.878 MB / 405.7 MB, free: 6.812 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001884/0.03035, allocations: 2.057 MB / 407.8 MB, free: 4.75 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004226/0.03077, allocations: 228 kB / 408 MB, free: 4.527 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001566/0.03234, allocations: 1.045 MB / 409.1 MB, free: 3.48 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001044/0.03338, allocations: 1.706 MB / 410.8 MB, free: 1.77 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009804/0.03436, allocations: 0.9925 MB / 411.8 MB, free: 0.7734 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003034/0.0374, allocations: 4.078 MB / 415.9 MB, free: 12.68 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.0374, allocations: 4 kB / 415.9 MB, free: 12.68 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.0374, allocations: 0 / 415.9 MB, free: 12.68 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.617e-05/0.03745, allocations: 0 / 415.9 MB, free: 12.68 MB / 394.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.004506/0.04195, allocations: 4.626 MB / 420.5 MB, free: 7.984 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.148e-05/0.042, allocations: 8.031 kB / 420.5 MB, free: 7.977 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006304/0.0483, allocations: 3.731 MB / 424.2 MB, free: 4.238 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002219/0.05052, allocations: 1.767 MB / 426 MB, free: 2.434 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.461e-05/0.05061, allocations: 184.8 kB / 426.2 MB, free: 2.25 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004777/0.05109, allocations: 320.4 kB / 426.5 MB, free: 1.938 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005495/0.05659, allocations: 5.3 MB / 431.8 MB, free: 12.04 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.943e-05/0.05664, allocations: 23.77 kB / 431.8 MB, free: 12.01 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002289/0.05687, allocations: 115.8 kB / 431.9 MB, free: 11.9 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002243/0.05911, allocations: 2.432 MB / 434.3 MB, free: 9.465 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00566/0.06477, allocations: 3.433 MB / 437.8 MB, free: 6.016 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.194/0.2588, allocations: 34.25 MB / 472 MB, free: 66.5 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002977/0.2617, allocations: 1.598 MB / 473.6 MB, free: 66.21 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008077/0.2625, allocations: 0.6535 MB / 474.3 MB, free: 66.1 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000496/0.263, allocations: 426.2 kB / 474.7 MB, free: 66.03 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.26e-05/0.2631, allocations: 53.86 kB / 474.7 MB, free: 65.98 MB / 410.7 MB Notification: Performance of pre-optimization done (n=236): time 3.747e-06/0.2631, allocations: 0 / 474.7 MB, free: 65.98 MB / 410.7 MB Notification: Performance of matching and sorting (n=252): time 0.01773/0.2808, allocations: 9.551 MB / 484.3 MB, free: 63.75 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0007116/0.2815, allocations: 1.976 MB / 486.3 MB, free: 61.77 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002401/0.2839, allocations: 2.569 MB / 488.8 MB, free: 60.69 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001023/0.284, allocations: 61.05 kB / 488.9 MB, free: 60.63 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001197/0.2852, allocations: 2.846 MB / 491.7 MB, free: 58.7 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005956/0.2858, allocations: 1.001 MB / 492.8 MB, free: 57.94 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001274/0.2871, allocations: 1.169 MB / 493.9 MB, free: 57.33 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.536e-05/0.2871, allocations: 476.8 kB / 494.4 MB, free: 56.86 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001323/0.2885, allocations: 0.758 MB / 495.1 MB, free: 56.76 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002722/0.2912, allocations: 5.084 MB / 0.4885 GB, free: 50.93 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005547/0.2967, allocations: 6.51 MB / 0.4949 GB, free: 44.46 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.956e-05/0.2968, allocations: 28.78 kB / 0.4949 GB, free: 44.46 MB / 410.7 MB Notification: Performance of matching and sorting (n=734) (initialization): time 0.01083/0.3076, allocations: 6.496 MB / 0.5012 GB, free: 42.68 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.375e-05/0.3077, allocations: 51.92 kB / 0.5013 GB, free: 42.68 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006011/0.3137, allocations: 2.864 MB / 0.5041 GB, free: 42.36 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005899/0.3196, allocations: 2.099 MB / 0.5061 GB, free: 42.29 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002064/0.3216, allocations: 1.254 MB / 0.5074 GB, free: 42.15 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003301/0.3249, allocations: 4.628 MB / 0.5119 GB, free: 38.34 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002335/0.3273, allocations: 450.2 kB / 0.5123 GB, free: 38.04 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002631/0.3275, allocations: 317.8 kB / 0.5126 GB, free: 37.74 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 (freeMotion.arrow.twoHeadedArrow,freeMotion.arrow.headAtOrigin,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],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[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 (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.001039/0.3286, allocations: 0.5756 MB / 0.5132 GB, free: 37.16 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002936/0.3289, allocations: 334.2 kB / 0.5135 GB, free: 36.84 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003892/0.3328, allocations: 2.902 MB / 0.5163 GB, free: 34.62 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.003296/0.3361, allocations: 2.089 MB / 0.5184 GB, free: 33.01 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.3361, allocations: 0 / 0.5184 GB, free: 33.01 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.162e-05/0.3361, allocations: 10.88 kB / 0.5184 GB, free: 33.01 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01008/0.3462, allocations: 8.715 MB / 0.5269 GB, free: 25.04 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.689e-06/0.3462, allocations: 11.98 kB / 0.5269 GB, free: 25.03 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008501/0.347, allocations: 407.3 kB / 0.5273 GB, free: 24.63 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001956/0.349, allocations: 0.8728 MB / 0.5281 GB, free: 23.74 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001123/0.3491, allocations: 63.97 kB / 0.5282 GB, free: 23.68 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001702/0.3508, allocations: 4.137 MB / 0.5322 GB, free: 19.3 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0003937/0.3512, allocations: 1.917 MB / 0.5341 GB, free: 17.26 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004435/0.3556, allocations: 3.651 MB / 0.5377 GB, free: 13.39 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003401/0.356, allocations: 274.2 kB / 0.5379 GB, free: 13.12 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002001/0.3562, allocations: 56.17 kB / 0.538 GB, free: 13.07 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008404/0.357, allocations: 242.9 kB / 0.5382 GB, free: 12.84 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002237/0.3572, allocations: 176.8 kB / 0.5384 GB, free: 12.66 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001036/0.3573, allocations: 75.97 kB / 0.5385 GB, free: 12.59 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.000972/0.3583, allocations: 1.097 MB / 0.5395 GB, free: 11.48 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.3583, allocations: 0 / 0.5395 GB, free: 11.48 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002816/0.3611, allocations: 1.119 MB / 0.5406 GB, free: 10.36 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.0003223/0.3614, allocations: 209.3 kB / 0.5408 GB, free: 10.15 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004075/0.3655, allocations: 3.629 MB / 0.5444 GB, free: 6.488 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.3655, allocations: 0 / 0.5444 GB, free: 6.488 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001721/0.3672, allocations: 1.612 MB / 0.5459 GB, free: 4.828 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001042/0.3683, allocations: 325.8 kB / 0.5463 GB, free: 4.52 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007946/0.3762, allocations: 8.19 MB / 0.5542 GB, free: 12.1 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009578/0.3772, allocations: 1.186 MB / 0.5554 GB, free: 10.89 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002215/0.3794, allocations: 1.681 MB / 0.557 GB, free: 9.207 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005265/0.3799, allocations: 216.4 kB / 0.5573 GB, free: 8.996 MB / 426.7 MB Notification: Performance of SimCode: time 1.603e-06/0.3799, allocations: 0 / 0.5573 GB, free: 8.996 MB / 426.7 MB Notification: Performance of Templates: time 0.04103/0.421, allocations: 32.38 MB / 0.5889 GB, free: 9.02 MB / 458.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.FreeMotion.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.FreeMotion.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.FreeMotion.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.FreeMotion.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.FreeMotion.sim & ./ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.FreeMotion -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.FreeMotion.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.FreeMotion_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.455446599051356]