Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001562/0.001562, allocations: 75.59 kB / 21.18 MB, free: 3.391 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.001502/0.001502, allocations: 161.4 kB / 24.56 MB, free: 20 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 1.023/1.023, allocations: 177.1 MB / 205 MB, free: 5.281 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.2894/0.2894, allocations: 34.25 MB / 295.7 MB, free: 0.6367 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.Spherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|body.Q.[0-9,]+.|body.w_a.[0-9,]+.",fileNamePrefix="ModelicaTest_4.1.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.1.0_ModelicaTest.MultiBody.Joints.Spherical") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.543e-06/1.543e-06, allocations: 0 / 378 MB, free: 2.633 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.141e-05/2.295e-05, allocations: 2.312 kB / 378 MB, free: 2.629 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.008896/0.008919, allocations: 11.32 MB / 389.4 MB, free: 7.258 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.005246/0.01416, allocations: 3.995 MB / 393.4 MB, free: 3.25 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004848/0.01465, allocations: 71.69 kB / 393.4 MB, free: 3.18 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00145/0.0161, allocations: 1.257 MB / 394.7 MB, free: 1.918 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001892/0.01799, allocations: 1.84 MB / 396.5 MB, free: 72 kB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006588/0.01865, allocations: 0.6 MB / 397.1 MB, free: 15.47 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.003072/0.02172, allocations: 4.705 MB / 401.8 MB, free: 10.76 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001509/0.02323, allocations: 2.259 MB / 404.1 MB, free: 8.473 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001572/0.0248, allocations: 1.867 MB / 406 MB, free: 6.602 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001665/0.02647, allocations: 2.065 MB / 408 MB, free: 4.531 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002471/0.02672, allocations: 228 kB / 408.2 MB, free: 4.309 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001313/0.02803, allocations: 1.252 MB / 409.5 MB, free: 3.055 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009461/0.02897, allocations: 1.694 MB / 411.2 MB, free: 1.355 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006695/0.02964, allocations: 0.973 MB / 412.2 MB, free: 388 kB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003251/0.03289, allocations: 4.195 MB / 416.4 MB, free: 12.17 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.0329, allocations: 0 / 416.4 MB, free: 12.17 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.0329, allocations: 0 / 416.4 MB, free: 12.17 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.589e-05/0.03292, allocations: 0 / 416.4 MB, free: 12.17 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: 1482 * Number of variables: 1482 Notification: Performance of Generate backend data structure: time 0.004441/0.03737, allocations: 4.61 MB / 421 MB, free: 7.492 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/0.0374, allocations: 12.03 kB / 421 MB, free: 7.48 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01124/0.04864, allocations: 6.706 MB / 427.7 MB, free: 0.7617 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00228/0.05092, allocations: 1.838 MB / 429.5 MB, free: 14.89 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.816e-05/0.05101, allocations: 176.8 kB / 429.7 MB, free: 14.71 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004781/0.05149, allocations: 300.6 kB / 430 MB, free: 14.42 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006528/0.05801, allocations: 5.719 MB / 435.7 MB, free: 8.082 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.427e-05/0.05807, allocations: 27.77 kB / 435.7 MB, free: 8.055 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002444/0.05831, allocations: 119.8 kB / 435.8 MB, free: 7.938 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00219/0.0605, allocations: 2.459 MB / 438.3 MB, free: 5.477 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007261/0.06776, allocations: 3.828 MB / 442.1 MB, free: 1.641 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1947/0.2624, allocations: 35.28 MB / 477.4 MB, free: 65.16 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006565/0.269, allocations: 2.921 MB / 480.3 MB, free: 64.84 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001108/0.2701, allocations: 0.6462 MB / 481 MB, free: 64.73 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007256/0.2708, allocations: 0.523 MB / 481.5 MB, free: 64.66 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.28e-05/0.2709, allocations: 53.92 kB / 481.6 MB, free: 64.6 MB / 410.7 MB Notification: Performance of pre-optimization done (n=224): time 4.518e-06/0.2709, allocations: 0 / 481.6 MB, free: 64.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=231): time 0.02111/0.292, allocations: 8.838 MB / 490.4 MB, free: 62.75 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009285/0.2929, allocations: 1.976 MB / 492.4 MB, free: 60.76 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00349/0.2964, allocations: 2.696 MB / 495.1 MB, free: 59.63 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001231/0.2965, allocations: 52.05 kB / 495.1 MB, free: 59.58 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001175/0.2977, allocations: 2.91 MB / 498 MB, free: 57.55 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005836/0.2983, allocations: 0.929 MB / 499 MB, free: 56.86 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001267/0.2995, allocations: 1.168 MB / 0.4884 GB, free: 56.24 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.399e-05/0.2996, allocations: 482.2 kB / 0.4889 GB, free: 55.77 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001525/0.3011, allocations: 0.8325 MB / 0.4897 GB, free: 55.66 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003068/0.3042, allocations: 5.282 MB / 0.4948 GB, free: 49.66 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004959/0.3091, allocations: 6.756 MB / 0.5014 GB, free: 42.86 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.049e-05/0.3092, allocations: 31.5 kB / 0.5015 GB, free: 42.86 MB / 410.7 MB Notification: Performance of matching and sorting (n=733) (initialization): time 0.04643/0.3556, allocations: 28.96 MB / 0.5297 GB, free: 23.1 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.995e-05/0.3557, allocations: 55.28 kB / 0.5298 GB, free: 23.05 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.03143/0.3871, allocations: 20.17 MB / 0.5495 GB, free: 2.836 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0585/0.4456, allocations: 29.21 MB / 0.578 GB, free: 5.551 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003846/0.4494, allocations: 1.325 MB / 0.5793 GB, free: 4.227 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02128/0.4707, allocations: 10.01 MB / 0.5891 GB, free: 9.977 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004744/0.4755, allocations: 0.549 MB / 0.5896 GB, free: 9.43 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001022/0.4765, allocations: 320 kB / 0.5899 GB, free: 9.117 MB / 458.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 (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],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[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 (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.002223/0.4787, allocations: 0.5853 MB / 0.5905 GB, free: 8.523 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007366/0.4795, allocations: 326.1 kB / 0.5908 GB, free: 8.203 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005832/0.4853, allocations: 2.622 MB / 0.5934 GB, free: 5.543 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.003814/0.4891, allocations: 1.835 MB / 0.5952 GB, free: 3.691 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.13e-05/0.4891, allocations: 4 kB / 0.5952 GB, free: 3.688 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.299e-05/0.4891, allocations: 10.53 kB / 0.5952 GB, free: 3.68 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1867/0.6758, allocations: 7.902 MB / 0.6029 GB, free: 127.6 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-05/0.6758, allocations: 11.84 kB / 0.6029 GB, free: 127.6 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001404/0.6772, allocations: 457.2 kB / 0.6033 GB, free: 127.6 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001725/0.679, allocations: 0.6058 MB / 0.6039 GB, free: 127.6 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001768/0.6791, allocations: 50.67 kB / 0.604 GB, free: 127.6 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003077/0.6822, allocations: 4.402 MB / 0.6083 GB, free: 124.1 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0005633/0.6828, allocations: 1.91 MB / 0.6101 GB, free: 122.2 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005363/0.6881, allocations: 3.234 MB / 0.6133 GB, free: 121.5 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007244/0.6889, allocations: 274.3 kB / 0.6136 GB, free: 121.5 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000314/0.6892, allocations: 43.83 kB / 0.6136 GB, free: 121.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001189/0.6904, allocations: 237.4 kB / 0.6138 GB, free: 121.5 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000311/0.6907, allocations: 154.5 kB / 0.614 GB, free: 121.5 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001375/0.6908, allocations: 66.69 kB / 0.614 GB, free: 121.5 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001511/0.6923, allocations: 1.143 MB / 0.6152 GB, free: 121.3 MB / 458.7 MB Notification: Performance of sort global known variables: time 9e-08/0.6923, allocations: 2.375 kB / 0.6152 GB, free: 121.3 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003986/0.6963, allocations: 1.225 MB / 0.6164 GB, free: 121.3 MB / 458.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.0004709/0.6968, allocations: 190.7 kB / 0.6165 GB, free: 121.2 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.007001/0.7038, allocations: 4.046 MB / 0.6205 GB, free: 120.6 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.001e-05/0.7038, allocations: 3.156 kB / 0.6205 GB, free: 120.6 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001946/0.7057, allocations: 1.314 MB / 0.6218 GB, free: 120.2 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002034/0.7078, allocations: 329.6 kB / 0.6221 GB, free: 120.2 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01191/0.7197, allocations: 7.859 MB / 0.6298 GB, free: 116.9 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001534/0.7212, allocations: 1.174 MB / 0.6309 GB, free: 116.5 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002934/0.7242, allocations: 1.674 MB / 0.6325 GB, free: 116.4 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007196/0.7249, allocations: 208 kB / 0.6327 GB, free: 116.4 MB / 458.7 MB Notification: Performance of SimCode: time 2.064e-06/0.7249, allocations: 0 / 0.6327 GB, free: 116.4 MB / 458.7 MB Notification: Performance of Templates: time 0.0578/0.7827, allocations: 49.18 MB / 0.6808 GB, free: 82.39 MB / 458.7 MB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Spherical.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Spherical.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Spherical.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Spherical.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Spherical.sim & ./ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Spherical -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Spherical.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Spherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.918534675613046]