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.00107/0.00107, allocations: 83.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.001/0.001, allocations: 165 kB / 24.56 MB, free: 12 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.9325/0.9325, allocations: 177.1 MB / 205 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.2463/0.2463, allocations: 34.26 MB / 295.7 MB, free: 0.6758 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 2.224e-06/2.224e-06, allocations: 4 kB / 378.1 MB, free: 2.613 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.554e-05/1.776e-05, allocations: 2.312 kB / 378.1 MB, free: 2.609 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.01277/0.01279, allocations: 17.46 MB / 395.5 MB, free: 1.07 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.007958/0.02075, allocations: 5.225 MB / 400.7 MB, free: 11.83 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001318/0.02206, allocations: 127.4 kB / 400.9 MB, free: 11.7 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003408/0.02547, allocations: 3.266 MB / 404.1 MB, free: 8.426 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003462/0.02893, allocations: 2.722 MB / 406.9 MB, free: 5.691 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001319/0.03025, allocations: 1.15 MB / 408 MB, free: 4.539 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.006788/0.03704, allocations: 9.036 MB / 417 MB, free: 11.49 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00434/0.04138, allocations: 4.74 MB / 421.8 MB, free: 6.703 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004384/0.04577, allocations: 4.175 MB / 426 MB, free: 2.52 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002909/0.04867, allocations: 3.835 MB / 429.8 MB, free: 14.68 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004817/0.04916, allocations: 464 kB / 430.2 MB, free: 14.22 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001629/0.05079, allocations: 1.276 MB / 431.5 MB, free: 12.95 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001614/0.0524, allocations: 3.031 MB / 434.6 MB, free: 9.906 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001351/0.05375, allocations: 1.873 MB / 436.4 MB, free: 8.027 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004807/0.05856, allocations: 6.675 MB / 443.1 MB, free: 1.328 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.05856, allocations: 0 / 443.1 MB, free: 1.328 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.05856, allocations: 0 / 443.1 MB, free: 1.328 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.191e-05/0.05862, allocations: 4 kB / 443.1 MB, free: 1.324 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.1502/0.2088, allocations: 7.996 MB / 451.1 MB, free: 96.12 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.226e-05/0.2089, allocations: 11.5 kB / 451.1 MB, free: 96.12 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007857/0.2167, allocations: 4.614 MB / 455.7 MB, free: 95.48 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003441/0.2202, allocations: 3.489 MB / 459.2 MB, free: 94.1 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000123/0.2203, allocations: 318 kB / 459.5 MB, free: 94 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004619/0.2208, allocations: 440.4 kB / 460 MB, free: 93.9 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008896/0.2296, allocations: 8.542 MB / 468.5 MB, free: 89.84 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001276/0.2298, allocations: 53.45 kB / 468.5 MB, free: 89.82 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003765/0.2302, allocations: 204.6 kB / 468.7 MB, free: 89.73 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002513/0.2327, allocations: 3.154 MB / 471.9 MB, free: 89.22 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009943/0.2426, allocations: 5.092 MB / 477 MB, free: 88.41 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03499/0.2776, allocations: 55.06 MB / 0.5196 GB, free: 39.91 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006018/0.2836, allocations: 2.945 MB / 0.5225 GB, free: 36.96 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001169/0.2848, allocations: 0.9628 MB / 0.5234 GB, free: 35.99 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008671/0.2935, allocations: 7.25 MB / 0.5305 GB, free: 28.82 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.137e-05/0.2935, allocations: 59.39 kB / 0.5305 GB, free: 28.75 MB / 410.7 MB Notification: Performance of pre-optimization done (n=256): time 3.547e-06/0.2935, allocations: 4 kB / 0.5305 GB, free: 28.74 MB / 410.7 MB Notification: Performance of matching and sorting (n=272): time 0.02307/0.3166, allocations: 12.98 MB / 0.5432 GB, free: 15.65 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.53e-05/0.3166, allocations: 103.1 kB / 0.5433 GB, free: 15.53 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003516/0.3201, allocations: 4.28 MB / 0.5475 GB, free: 11.21 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00011/0.3202, allocations: 65.69 kB / 0.5476 GB, free: 11.14 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001481/0.3217, allocations: 4.464 MB / 0.5519 GB, free: 6.691 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005051/0.3222, allocations: 1.102 MB / 0.553 GB, free: 5.602 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001148/0.3234, allocations: 1.599 MB / 0.5546 GB, free: 3.996 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.907e-05/0.3234, allocations: 476.8 kB / 0.555 GB, free: 3.527 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001138/0.3246, allocations: 0.8697 MB / 0.5559 GB, free: 2.656 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00424/0.3288, allocations: 7.133 MB / 0.5628 GB, free: 8.691 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006948/0.3357, allocations: 8.803 MB / 0.5714 GB, free: 13.09 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.984e-05/0.3358, allocations: 40 kB / 0.5715 GB, free: 13.05 MB / 442.7 MB Notification: Performance of matching and sorting (n=994) (initialization): time 0.00828/0.3441, allocations: 6.626 MB / 0.5779 GB, free: 6.406 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.273e-05/0.3441, allocations: 68 kB / 0.578 GB, free: 6.34 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001203/0.3443, allocations: 148 kB / 0.5781 GB, free: 6.195 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001055/0.3453, allocations: 0.5227 MB / 0.5787 GB, free: 5.668 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00323/0.3485, allocations: 1.77 MB / 0.5804 GB, free: 3.895 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004382/0.3529, allocations: 4.773 MB / 0.585 GB, free: 14.87 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003234/0.3562, allocations: 0.5709 MB / 0.5856 GB, free: 14.3 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003801/0.3565, allocations: 441.4 kB / 0.586 GB, free: 13.87 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 672 * 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 (935): * Single equations (assignments): 927 * 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 {(2,8,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001738/0.3583, allocations: 0.7514 MB / 0.5868 GB, free: 13.11 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004838/0.3588, allocations: 0.4894 MB / 0.5872 GB, free: 12.61 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003164/0.3619, allocations: 2.201 MB / 0.5894 GB, free: 10.36 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-05/0.362, allocations: 28 kB / 0.5894 GB, free: 10.33 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.516e-06/0.362, allocations: 4 kB / 0.5894 GB, free: 10.33 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.227e-05/0.362, allocations: 7.969 kB / 0.5894 GB, free: 10.32 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009889/0.3719, allocations: 7.649 MB / 0.5969 GB, free: 2.469 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.034e-05/0.3719, allocations: 8 kB / 0.5969 GB, free: 2.461 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009951/0.3729, allocations: 468 kB / 0.5973 GB, free: 2.004 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005859/0.3735, allocations: 245.5 kB / 0.5976 GB, free: 1.758 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001073/0.3736, allocations: 63.98 kB / 0.5976 GB, free: 1.695 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.173/0.5466, allocations: 4.331 MB / 0.6019 GB, free: 116.7 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.154e-06/0.5466, allocations: 20.38 kB / 0.6019 GB, free: 116.7 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004836/0.5514, allocations: 3.11 MB / 0.6049 GB, free: 115.7 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001086/0.5525, allocations: 466.5 kB / 0.6054 GB, free: 115.7 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00044/0.5529, allocations: 50.03 kB / 0.6054 GB, free: 115.7 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001199/0.5541, allocations: 269 kB / 0.6057 GB, free: 115.7 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002601/0.5544, allocations: 182.8 kB / 0.6058 GB, free: 115.7 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000119/0.5545, allocations: 92.94 kB / 0.6059 GB, free: 115.7 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002382/0.5569, allocations: 1.891 MB / 0.6078 GB, free: 115.5 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5569, allocations: 0 / 0.6078 GB, free: 115.5 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005299/0.5622, allocations: 1.489 MB / 0.6092 GB, free: 115.5 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 47 * Number of states: 7 (revolute.phi,revolute.w,revolute1.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 (220): * Single equations (assignments): 212 * 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,2,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006398/0.5628, allocations: 211.5 kB / 0.6094 GB, free: 115.4 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006145/0.569, allocations: 3.974 MB / 0.6133 GB, free: 114.9 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.092e-05/0.569, allocations: 6.875 kB / 0.6133 GB, free: 114.9 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001341/0.5703, allocations: 1.224 MB / 0.6145 GB, free: 114.4 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00263/0.573, allocations: 0.5879 MB / 0.6151 GB, free: 114.4 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01739/0.5904, allocations: 11.25 MB / 0.6261 GB, free: 109.7 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002797/0.5932, allocations: 1.778 MB / 0.6278 GB, free: 109.4 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.004259/0.5974, allocations: 2.084 MB / 0.6299 GB, free: 109.3 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008307/0.5983, allocations: 316.4 kB / 0.6302 GB, free: 109.3 MB / 458.7 MB Notification: Performance of SimCode: time 3.456e-06/0.5983, allocations: 0 / 0.6302 GB, free: 109.3 MB / 458.7 MB Notification: Performance of Templates: time 0.06203/0.6603, allocations: 41.61 MB / 0.6708 GB, free: 85.35 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: 4.707340536173433]