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.002625/0.002625, allocations: 91.61 kB / 20.96 MB, free: 3.465 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.002005/0.002005, allocations: 165.3 kB / 24.28 MB, free: 152 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.537/1.537, allocations: 177.1 MB / 204.6 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 178] 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.3692/0.3692, allocations: 32.8 MB / 293.9 MB, free: 1.215 MB / 266.7 MB " [Timeout remaining time 179] 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.1.|body.Q.2.|body.Q.3.|body.Q.4.|body.w_a.1.|body.w_a.2.|body.w_a.3.",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.1.|body.Q.2.|body.Q.3.|body.Q.4.|body.w_a.1.|body.w_a.2.|body.w_a.3.",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.043e-06/2.043e-06, allocations: 0 / 375.3 MB, free: 4.996 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.468e-05/3.672e-05, allocations: 5.125 kB / 375.3 MB, free: 4.992 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.01605/0.01609, allocations: 11.25 MB / 386.5 MB, free: 9.684 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.009914/0.026, allocations: 3.98 MB / 390.5 MB, free: 5.691 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001982/0.02798, allocations: 71.75 kB / 390.6 MB, free: 5.621 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003174/0.03116, allocations: 1.249 MB / 391.8 MB, free: 4.367 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004845/0.036, allocations: 1.836 MB / 393.7 MB, free: 2.523 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001625/0.03763, allocations: 0.6039 MB / 394.3 MB, free: 1.918 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.006608/0.04423, allocations: 4.705 MB / 399 MB, free: 13.21 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00369/0.04792, allocations: 2.263 MB / 401.2 MB, free: 10.92 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003406/0.05133, allocations: 1.859 MB / 403.1 MB, free: 9.055 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003513/0.05484, allocations: 2.073 MB / 405.2 MB, free: 6.977 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006391/0.05548, allocations: 224 kB / 405.4 MB, free: 6.758 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002673/0.05816, allocations: 1.248 MB / 406.6 MB, free: 5.508 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002079/0.06023, allocations: 1.687 MB / 408.3 MB, free: 3.816 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00178/0.06201, allocations: 0.9925 MB / 409.3 MB, free: 2.82 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01011/0.07212, allocations: 6.233 MB / 415.5 MB, free: 12.57 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/0.07213, allocations: 0 / 415.5 MB, free: 12.57 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.07213, allocations: 0 / 415.5 MB, free: 12.57 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001805/0.07231, allocations: 0 / 415.5 MB, free: 12.57 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.01116/0.08347, allocations: 4.981 MB / 420.5 MB, free: 7.52 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.046e-05/0.08353, allocations: 16.03 kB / 420.5 MB, free: 7.504 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02291/0.1064, allocations: 6.702 MB / 427.2 MB, free: 0.7891 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006143/0.1126, allocations: 1.834 MB / 429.1 MB, free: 14.92 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002063/0.1128, allocations: 184.8 kB / 429.3 MB, free: 14.73 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001194/0.114, allocations: 312.5 kB / 429.6 MB, free: 14.43 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01621/0.1302, allocations: 6.086 MB / 435.6 MB, free: 7.727 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.968e-05/0.1303, allocations: 35.7 kB / 435.7 MB, free: 7.691 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004011/0.1307, allocations: 111.8 kB / 435.8 MB, free: 7.582 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004474/0.1352, allocations: 2.459 MB / 438.2 MB, free: 5.121 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01462/0.1498, allocations: 4.352 MB / 442.6 MB, free: 0.7617 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2196/0.3694, allocations: 43.09 MB / 485.7 MB, free: 65.5 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008218/0.3776, allocations: 2.564 MB / 488.2 MB, free: 65.14 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001311/0.3789, allocations: 0.6533 MB / 488.9 MB, free: 65.02 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001072/0.38, allocations: 0.5179 MB / 489.4 MB, free: 64.94 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.74e-05/0.38, allocations: 50.27 kB / 489.5 MB, free: 64.88 MB / 410.7 MB Notification: Performance of pre-optimization done (n=224): time 4.288e-06/0.38, allocations: 0 / 489.5 MB, free: 64.88 MB / 410.7 MB Notification: Performance of matching and sorting (n=231): time 0.02758/0.4076, allocations: 8.951 MB / 498.4 MB, free: 62.95 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001029/0.4086, allocations: 1.989 MB / 0.4887 GB, free: 60.95 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003839/0.4124, allocations: 3.365 MB / 0.492 GB, free: 59.52 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003814/0.4128, allocations: 55.03 kB / 0.492 GB, free: 59.46 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001535/0.4144, allocations: 3.062 MB / 0.495 GB, free: 57.26 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001/0.4154, allocations: 0.9908 MB / 0.496 GB, free: 56.54 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001577/0.4169, allocations: 1.376 MB / 0.4973 GB, free: 55.82 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 6.592e-05/0.417, allocations: 480 kB / 0.4978 GB, free: 55.35 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001717/0.4187, allocations: 0.8658 MB / 0.4986 GB, free: 55.23 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003296/0.422, allocations: 5.49 MB / 0.504 GB, free: 48.91 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005577/0.4276, allocations: 7.098 MB / 0.5109 GB, free: 40 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.753e-05/0.4276, allocations: 32 kB / 0.5109 GB, free: 39.96 MB / 410.7 MB Notification: Performance of matching and sorting (n=733) (initialization): time 0.07957/0.5072, allocations: 29.04 MB / 0.5393 GB, free: 14.44 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.386e-05/0.5073, allocations: 52 kB / 0.5394 GB, free: 14.39 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.062/0.5693, allocations: 20.19 MB / 0.5591 GB, free: 10.16 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1189/0.6882, allocations: 29.22 MB / 0.5876 GB, free: 12.86 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00524/0.6934, allocations: 1.318 MB / 0.5889 GB, free: 11.54 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03115/0.7246, allocations: 10.35 MB / 0.599 GB, free: 0.9531 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005905/0.7305, allocations: 0.5462 MB / 0.5995 GB, free: 416 kB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001235/0.7317, allocations: 331.4 kB / 0.5999 GB, free: 88 kB / 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.1612/0.8929, allocations: 0.6702 MB / 0.6005 GB, free: 133.2 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007537/0.8936, allocations: 324.1 kB / 0.6008 GB, free: 133.2 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006228/0.8998, allocations: 2.772 MB / 0.6035 GB, free: 133 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00469/0.9045, allocations: 1.877 MB / 0.6054 GB, free: 132.9 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.045e-05/0.9045, allocations: 7.344 kB / 0.6054 GB, free: 132.9 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.551e-05/0.9046, allocations: 6.516 kB / 0.6054 GB, free: 132.9 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01864/0.9232, allocations: 8.925 MB / 0.6141 GB, free: 131.8 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.566e-05/0.9232, allocations: 6.375 kB / 0.6141 GB, free: 131.8 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001984/0.9252, allocations: 466.6 kB / 0.6145 GB, free: 131.8 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002594/0.9278, allocations: 0.6097 MB / 0.6151 GB, free: 131.8 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002297/0.928, allocations: 47.09 kB / 0.6152 GB, free: 131.7 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004265/0.9323, allocations: 4.468 MB / 0.6195 GB, free: 127.9 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007943/0.9331, allocations: 1.92 MB / 0.6214 GB, free: 126 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007671/0.9408, allocations: 3.36 MB / 0.6247 GB, free: 124.8 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001022/0.9418, allocations: 281.8 kB / 0.625 GB, free: 124.8 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004214/0.9422, allocations: 35 kB / 0.625 GB, free: 124.8 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001696/0.9439, allocations: 248.2 kB / 0.6252 GB, free: 124.7 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003841/0.9443, allocations: 144.4 kB / 0.6254 GB, free: 124.7 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001618/0.9444, allocations: 68 kB / 0.6254 GB, free: 124.7 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00214/0.9466, allocations: 1.36 MB / 0.6268 GB, free: 124.2 MB / 458.7 MB Notification: Performance of sort global known variables: time 1e-07/0.9466, allocations: 3.875 kB / 0.6268 GB, free: 124.2 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00556/0.9521, allocations: 1.224 MB / 0.628 GB, free: 124.1 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.0006041/0.9527, allocations: 195.8 kB / 0.6281 GB, free: 123.9 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.009624/0.9624, allocations: 4.276 MB / 0.6323 GB, free: 122.6 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.219e-05/0.9624, allocations: 1.125 kB / 0.6323 GB, free: 122.6 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002878/0.9653, allocations: 1.384 MB / 0.6337 GB, free: 122 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002207/0.9675, allocations: 322.9 kB / 0.634 GB, free: 121.9 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01334/0.9808, allocations: 7.991 MB / 0.6418 GB, free: 117.8 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002566/0.9834, allocations: 2.299 MB / 0.644 GB, free: 117.1 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.004178/0.9876, allocations: 1.677 MB / 0.6457 GB, free: 117 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000813/0.9884, allocations: 209.3 kB / 0.6459 GB, free: 117 MB / 458.7 MB Notification: Performance of SimCode: time 1.483e-06/0.9884, allocations: 0 / 0.6459 GB, free: 117 MB / 458.7 MB Notification: Performance of Templates: time 0.06673/1.055, allocations: 49.14 MB / 0.6939 GB, free: 72.23 MB / 458.7 MB " [Timeout remaining time 659] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.356147354003042]