Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.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.0009679/0.0009679, allocations: 80.41 kB / 22.21 MB, free: 2.289 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.0009676/0.0009676, allocations: 169.4 kB / 25.61 MB, free: 8.902 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 1.021/1.021, allocations: 177.1 MB / 206 MB, free: 4.504 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.1383/0.1383, 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.Spherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|body.Q.[0-9,]+.|body.w_a.[0-9,]+.",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical") translateModel(ModelicaTest.MultiBody.Joints.Spherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|body.Q.[0-9,]+.|body.w_a.[0-9,]+.",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.733e-06/1.733e-06, allocations: 0 / 377.3 MB, free: 25.6 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.214e-05/1.388e-05, allocations: 2.312 kB / 377.3 MB, free: 25.6 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.01715/0.01716, allocations: 11.02 MB / 388.3 MB, free: 14.52 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.008403/0.02557, allocations: 3.954 MB / 392.2 MB, free: 10.56 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008179/0.02638, allocations: 67.75 kB / 392.3 MB, free: 10.49 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00151/0.02789, allocations: 1.237 MB / 393.5 MB, free: 9.25 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001972/0.02987, allocations: 1.844 MB / 395.4 MB, free: 7.398 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006935/0.03056, allocations: 0.6078 MB / 396 MB, free: 6.789 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002485/0.03304, allocations: 4.708 MB / 400.7 MB, free: 2.074 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001493/0.03454, allocations: 2.259 MB / 403 MB, free: 15.78 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001941/0.03648, allocations: 1.863 MB / 404.8 MB, free: 13.92 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002217/0.0387, allocations: 2.077 MB / 406.9 MB, free: 11.84 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000406/0.0391, allocations: 224 kB / 407.1 MB, free: 11.62 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001563/0.04066, allocations: 1.248 MB / 408.4 MB, free: 10.36 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009832/0.04165, allocations: 1.694 MB / 410.1 MB, free: 8.664 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001013/0.04266, allocations: 0.9769 MB / 411 MB, free: 7.684 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003157/0.04582, allocations: 4.199 MB / 415.2 MB, free: 3.469 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.04582, allocations: 0 / 415.2 MB, free: 3.469 MB / 330.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.04582, allocations: 0 / 415.2 MB, free: 3.469 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.056e-05/0.04585, allocations: 0 / 415.2 MB, free: 3.469 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: 1482 * Number of variables: 1482 Notification: Performance of Generate backend data structure: time 0.004544/0.0504, allocations: 4.41 MB / 419.7 MB, free: 14.99 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.502e-05/0.05043, allocations: 15.98 kB / 419.7 MB, free: 14.98 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006778/0.05721, allocations: 2.324 MB / 422 MB, free: 12.65 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001694/0.05891, allocations: 1.659 MB / 423.7 MB, free: 10.96 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.21e-05/0.059, allocations: 180.8 kB / 423.8 MB, free: 10.78 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004767/0.05947, allocations: 304.5 kB / 424.1 MB, free: 10.48 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005235/0.06471, allocations: 4.992 MB / 429.1 MB, free: 4.867 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.819e-05/0.06476, allocations: 23.77 kB / 429.1 MB, free: 4.844 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002266/0.06498, allocations: 115.8 kB / 429.3 MB, free: 4.73 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002048/0.06703, allocations: 2.147 MB / 431.4 MB, free: 2.582 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004095/0.07113, allocations: 2.94 MB / 434.3 MB, free: 15.63 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02141/0.09253, allocations: 33.39 MB / 467.7 MB, free: 13.23 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004627/0.09716, allocations: 2.534 MB / 470.3 MB, free: 10.69 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006252/0.09779, allocations: 0.5365 MB / 470.8 MB, free: 10.15 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005561/0.09834, allocations: 0.5011 MB / 471.3 MB, free: 9.648 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.785e-05/0.09837, allocations: 51.39 kB / 471.4 MB, free: 9.59 MB / 394.7 MB Notification: Performance of pre-optimization done (n=224): time 3.386e-06/0.09837, allocations: 0 / 471.4 MB, free: 9.59 MB / 394.7 MB Notification: Performance of matching and sorting (n=231): time 0.0135/0.1119, allocations: 6.852 MB / 478.2 MB, free: 2.684 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0008146/0.1127, allocations: 1.931 MB / 480.1 MB, free: 0.6133 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002468/0.1152, allocations: 2.68 MB / 482.8 MB, free: 13.91 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001169/0.1153, allocations: 57.7 kB / 482.9 MB, free: 13.84 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001219/0.1165, allocations: 2.942 MB / 485.8 MB, free: 10.87 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005442/0.117, allocations: 0.9381 MB / 486.8 MB, free: 9.926 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00111/0.1181, allocations: 1.192 MB / 487.9 MB, free: 8.715 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.824e-05/0.1182, allocations: 484.7 kB / 488.4 MB, free: 8.238 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001092/0.1193, allocations: 0.7408 MB / 489.2 MB, free: 7.492 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003155/0.1225, allocations: 5.236 MB / 494.4 MB, free: 248 kB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1443/0.2668, allocations: 6.583 MB / 0.4892 GB, free: 101.2 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.009e-05/0.2668, allocations: 28.12 kB / 0.4893 GB, free: 101.2 MB / 410.7 MB Notification: Performance of matching and sorting (n=733) (initialization): time 0.02441/0.2912, allocations: 5.721 MB / 0.4949 GB, free: 100.2 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.045e-05/0.2913, allocations: 53.94 kB / 0.4949 GB, free: 100.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01654/0.3078, allocations: 2.093 MB / 0.4969 GB, free: 100.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03199/0.3398, allocations: 3.35 MB / 0.5002 GB, free: 99.91 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002533/0.3423, allocations: 1.156 MB / 0.5013 GB, free: 98.92 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009613/0.3519, allocations: 5.353 MB / 0.5066 GB, free: 94.07 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002396/0.3543, allocations: 204 kB / 0.5068 GB, free: 93.95 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003242/0.3547, allocations: 280.2 kB / 0.507 GB, free: 93.72 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 476 * Number of states: 0 () * Number of discrete variables: 24 (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],spherical.sphereColor[1],spherical.sphereColor[2],spherical.sphereColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (661): * Single equations (assignments): 650 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,9)} Notification: Performance of prepare postOptimizeDAE: time 0.001041/0.3557, allocations: 0.5848 MB / 0.5076 GB, free: 93.32 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003098/0.356, allocations: 328.4 kB / 0.5079 GB, free: 93.12 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002597/0.3586, allocations: 2.197 MB / 0.5101 GB, free: 91.03 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001905/0.3605, allocations: 1.373 MB / 0.5114 GB, free: 89.65 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.3605, allocations: 3.938 kB / 0.5114 GB, free: 89.64 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.256e-05/0.3605, allocations: 11.95 kB / 0.5114 GB, free: 89.63 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006826/0.3674, allocations: 6.299 MB / 0.5176 GB, free: 83.46 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.005e-06/0.3674, allocations: 10.95 kB / 0.5176 GB, free: 83.45 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008475/0.3682, allocations: 275.6 kB / 0.5178 GB, free: 83.18 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001057/0.3693, allocations: 386 kB / 0.5182 GB, free: 82.8 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001013/0.3694, allocations: 51.97 kB / 0.5183 GB, free: 82.75 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001924/0.3713, allocations: 4.145 MB / 0.5223 GB, free: 78.41 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0003652/0.3717, allocations: 1.873 MB / 0.5241 GB, free: 76.42 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002825/0.3745, allocations: 2.702 MB / 0.5268 GB, free: 73.59 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002275/0.3747, allocations: 258.2 kB / 0.527 GB, free: 73.34 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002058/0.3749, allocations: 47.81 kB / 0.5271 GB, free: 73.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006232/0.3755, allocations: 32 kB / 0.5271 GB, free: 73.27 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002021/0.3757, allocations: 156.6 kB / 0.5273 GB, free: 73.12 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.14e-05/0.3758, allocations: 59.98 kB / 0.5273 GB, free: 73.06 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0006692/0.3765, allocations: 1.069 MB / 0.5284 GB, free: 72.08 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.3765, allocations: 0 / 0.5284 GB, free: 72.08 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002645/0.3792, allocations: 1.223 MB / 0.5296 GB, free: 70.87 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 6 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.w_a[1],body.w_a[2],body.w_a[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 (170): * Single equations (assignments): 161 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 1 system {(4,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 {(3,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003181/0.3795, allocations: 201.2 kB / 0.5297 GB, free: 70.67 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003697/0.3832, allocations: 3.2 MB / 0.5329 GB, free: 67.52 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.3832, allocations: 4 kB / 0.5329 GB, free: 67.52 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001033/0.3842, allocations: 1.139 MB / 0.534 GB, free: 66.36 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001005/0.3852, allocations: 322.8 kB / 0.5343 GB, free: 66.06 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006543/0.3918, allocations: 7.785 MB / 0.5419 GB, free: 58.14 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007433/0.3925, allocations: 1.174 MB / 0.543 GB, free: 56.94 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0008975/0.3934, allocations: 410.5 kB / 0.5434 GB, free: 56.54 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006656/0.3941, allocations: 490.1 kB / 0.5439 GB, free: 56.05 MB / 410.7 MB Notification: Performance of SimCode: time 1.102e-06/0.3941, allocations: 0 / 0.5439 GB, free: 56.05 MB / 410.7 MB Notification: Performance of Templates: time 0.05202/0.4461, allocations: 52.76 MB / 0.5954 GB, free: 3.605 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Spherical/Spherical.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.515486788935959]