Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Revolute2.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.001013/0.001013, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.001217/0.001217, allocations: 165.6 kB / 24.99 MB, free: 8.305 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.102/1.102, allocations: 177.1 MB / 205.3 MB, free: 5.641 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.3332/0.3332, allocations: 34.27 MB / 296 MB, free: 0.7656 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.Revolute2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute.phi|revolute.w|revolute1.phi|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Revolute2") translateModel(ModelicaTest.MultiBody.Joints.Revolute2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute.phi|revolute.w|revolute1.phi|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Revolute2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.363e-06/1.363e-06, allocations: 0 / 378 MB, free: 2.977 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.601e-05/2.737e-05, allocations: 4.141 kB / 378 MB, free: 2.973 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.01466/0.01469, allocations: 17.4 MB / 395.4 MB, free: 1.492 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.01117/0.02586, allocations: 5.225 MB / 400.7 MB, free: 12.25 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003532/0.02939, allocations: 127.4 kB / 400.8 MB, free: 12.12 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004224/0.03361, allocations: 3.258 MB / 404 MB, free: 8.855 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005781/0.0394, allocations: 2.702 MB / 406.7 MB, free: 6.141 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001983/0.04138, allocations: 1.158 MB / 407.9 MB, free: 4.98 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.008882/0.05026, allocations: 9.029 MB / 416.9 MB, free: 11.94 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005889/0.05615, allocations: 4.748 MB / 421.7 MB, free: 7.141 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00607/0.06222, allocations: 3.601 MB / 425.3 MB, free: 3.535 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005514/0.06773, allocations: 3.917 MB / 429.2 MB, free: 15.61 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001567/0.0693, allocations: 476 kB / 429.7 MB, free: 15.14 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002496/0.0718, allocations: 1.284 MB / 430.9 MB, free: 13.86 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003045/0.07484, allocations: 3.031 MB / 434 MB, free: 10.82 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004013/0.07885, allocations: 1.885 MB / 435.9 MB, free: 8.93 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008906/0.08776, allocations: 6.698 MB / 442.6 MB, free: 2.207 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.225e-06/0.08777, allocations: 4 kB / 442.6 MB, free: 2.203 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.08777, allocations: 0 / 442.6 MB, free: 2.203 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003424/0.08811, allocations: 0 / 442.6 MB, free: 2.203 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2169 * Number of variables: 2169 Notification: Performance of Generate backend data structure: time 0.1767/0.2648, allocations: 7.954 MB / 450.5 MB, free: 101.2 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.473e-05/0.2648, allocations: 11 kB / 450.5 MB, free: 101.2 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01038/0.2752, allocations: 4.65 MB / 455.2 MB, free: 100.5 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006653/0.2818, allocations: 3.529 MB / 458.7 MB, free: 99.23 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002081/0.282, allocations: 319.2 kB / 459 MB, free: 99.14 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001081/0.2831, allocations: 430.3 kB / 459.4 MB, free: 99.04 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01458/0.2977, allocations: 8.596 MB / 468 MB, free: 94.86 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002099/0.2979, allocations: 49.55 kB / 468.1 MB, free: 94.84 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006931/0.2986, allocations: 199.9 kB / 468.3 MB, free: 94.7 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003646/0.3023, allocations: 3.378 MB / 471.6 MB, free: 94.14 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01633/0.3186, allocations: 5.506 MB / 477.2 MB, free: 93.29 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05932/0.3779, allocations: 53.89 MB / 0.5186 GB, free: 43.28 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01057/0.3885, allocations: 4.264 MB / 0.5228 GB, free: 39 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003091/0.3916, allocations: 1.423 MB / 0.5242 GB, free: 37.57 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000858/0.3924, allocations: 0.6146 MB / 0.5248 GB, free: 36.96 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.706e-05/0.3925, allocations: 69.03 kB / 0.5248 GB, free: 36.88 MB / 410.7 MB Notification: Performance of pre-optimization done (n=367): time 8.225e-06/0.3925, allocations: 0 / 0.5248 GB, free: 36.88 MB / 410.7 MB Notification: Performance of matching and sorting (n=419): time 0.05772/0.4502, allocations: 25.03 MB / 0.5493 GB, free: 11.88 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.052e-05/0.4503, allocations: 123.9 kB / 0.5494 GB, free: 11.74 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003856/0.4541, allocations: 3.849 MB / 0.5531 GB, free: 7.859 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008849/0.455, allocations: 81.7 kB / 0.5532 GB, free: 7.773 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001562/0.4566, allocations: 4.108 MB / 0.5572 GB, free: 3.625 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001647/0.4582, allocations: 1.616 MB / 0.5588 GB, free: 1.996 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001871/0.4601, allocations: 1.637 MB / 0.5604 GB, free: 356 kB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.238e-05/0.4602, allocations: 480.8 kB / 0.5609 GB, free: 15.88 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002419/0.4626, allocations: 1.233 MB / 0.5621 GB, free: 14.64 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005229/0.4678, allocations: 6.802 MB / 0.5687 GB, free: 5.352 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01003/0.4778, allocations: 8.887 MB / 0.5774 GB, free: 9.988 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001494/0.478, allocations: 40 kB / 0.5774 GB, free: 9.949 MB / 442.7 MB Notification: Performance of matching and sorting (n=1039) (initialization): time 0.01921/0.4972, allocations: 8.705 MB / 0.5859 GB, free: 1.199 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001014/0.4973, allocations: 60 kB / 0.586 GB, free: 1.141 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001538/0.4975, allocations: 128 kB / 0.5861 GB, free: 1.016 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004739/0.5022, allocations: 1.945 MB / 0.588 GB, free: 15.06 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005363/0.5076, allocations: 1.813 MB / 0.5898 GB, free: 13.24 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009777/0.5173, allocations: 7.786 MB / 0.5974 GB, free: 5.211 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005471/0.5228, allocations: 0.6126 MB / 0.598 GB, free: 4.598 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001232/0.524, allocations: 429.7 kB / 0.5984 GB, free: 4.18 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 583 * Number of states: 0 () * Number of discrete variables: 50 (axis.arrowLine.twoHeadedArrow,axis.headAtOrigin,bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],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],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],axis.color[3],axis.color[2],axis.color[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 (942): * Single equations (assignments): 934 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(6,32,69.4%), (1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002967/0.527, allocations: 0.7444 MB / 0.5991 GB, free: 3.422 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001514/0.5285, allocations: 0.5596 MB / 0.5997 GB, free: 2.859 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1974/0.726, allocations: 5.739 MB / 0.6053 GB, free: 125.7 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8e-05/0.726, allocations: 67.33 kB / 0.6053 GB, free: 125.7 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.954e-05/0.7261, allocations: 15.38 kB / 0.6054 GB, free: 125.7 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.638e-05/0.7261, allocations: 18.84 kB / 0.6054 GB, free: 125.7 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02209/0.7482, allocations: 12.37 MB / 0.6174 GB, free: 124.5 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.029e-05/0.7482, allocations: 13.31 kB / 0.6175 GB, free: 124.5 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001918/0.7502, allocations: 0.6876 MB / 0.6181 GB, free: 124.4 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004399/0.7546, allocations: 1.757 MB / 0.6198 GB, free: 124.3 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004781/0.755, allocations: 85.41 kB / 0.6199 GB, free: 124.3 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007504/0.7625, allocations: 6.603 MB / 0.6264 GB, free: 119.8 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.876e-06/0.7625, allocations: 16.19 kB / 0.6264 GB, free: 119.8 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01181/0.7744, allocations: 6.621 MB / 0.6329 GB, free: 117.8 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001457/0.7758, allocations: 489.5 kB / 0.6333 GB, free: 117.7 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008084/0.7766, allocations: 80.88 kB / 0.6334 GB, free: 117.7 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002167/0.7788, allocations: 425.3 kB / 0.6338 GB, free: 117.6 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006868/0.7795, allocations: 276.1 kB / 0.6341 GB, free: 117.6 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002652/0.7797, allocations: 113.6 kB / 0.6342 GB, free: 117.6 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003079/0.7828, allocations: 1.732 MB / 0.6359 GB, free: 117 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.7828, allocations: 0 / 0.6359 GB, free: 117 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006646/0.7895, allocations: 1.859 MB / 0.6377 GB, free: 116.8 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 7 (revolute.phi,revolute.w,constantSpeed.phi,revolute2.phi,revolute2.w,revolute3.phi,revolute3.w) * 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 (334): * Single equations (assignments): 326 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,9,100.0%), (6,29,69.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007914/0.7903, allocations: 256.6 kB / 0.6379 GB, free: 116.6 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01026/0.8005, allocations: 5.132 MB / 0.6429 GB, free: 115.1 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.922e-05/0.8005, allocations: 3.062 kB / 0.6429 GB, free: 115.1 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004028/0.8046, allocations: 2.169 MB / 0.6451 GB, free: 114.3 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003917/0.8085, allocations: 0.6307 MB / 0.6457 GB, free: 114 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01999/0.8285, allocations: 12.54 MB / 0.6579 GB, free: 105.2 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00208/0.8306, allocations: 1.85 MB / 0.6597 GB, free: 103.8 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003649/0.8342, allocations: 2.144 MB / 0.6618 GB, free: 102.6 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001146/0.8354, allocations: 345.8 kB / 0.6622 GB, free: 102.3 MB / 458.7 MB Notification: Performance of SimCode: time 2.635e-06/0.8354, allocations: 0 / 0.6622 GB, free: 102.3 MB / 458.7 MB Notification: Performance of Templates: time 0.08322/0.9186, allocations: 68.22 MB / 0.7288 GB, free: 35.03 MB / 458.7 MB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Revolute2.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Revolute2.sim & ./ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Revolute2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Revolute2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Joints/Revolute2/Revolute2.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: 5.5189721318893135]