Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001219/0.001219, allocations: 79.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.001752/0.001752, allocations: 161 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 1.036/1.036, allocations: 177.1 MB / 205 MB, free: 5.617 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.2739/0.2739, allocations: 32.8 MB / 294.3 MB, free: 1.281 MB / 266.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.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.0.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.0.0_ModelicaTest.MultiBody.Joints.Revolute2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.953e-06/1.953e-06, allocations: 0 / 376 MB, free: 4.656 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.932e-05/2.127e-05, allocations: 2.312 kB / 376 MB, free: 4.652 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.01484/0.01486, allocations: 17.47 MB / 393.5 MB, free: 3.102 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.01092/0.02578, allocations: 5.221 MB / 398.7 MB, free: 13.86 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001812/0.02759, allocations: 127.4 kB / 398.8 MB, free: 13.74 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003767/0.03136, allocations: 3.266 MB / 402.1 MB, free: 10.46 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004006/0.03536, allocations: 2.722 MB / 404.8 MB, free: 7.727 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001616/0.03698, allocations: 1.146 MB / 406 MB, free: 6.578 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.008281/0.04526, allocations: 9.041 MB / 415 MB, free: 13.52 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007404/0.05266, allocations: 4.736 MB / 419.8 MB, free: 8.738 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01067/0.06333, allocations: 4.175 MB / 423.9 MB, free: 4.555 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006644/0.06997, allocations: 3.839 MB / 427.8 MB, free: 0.707 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002555/0.07253, allocations: 464 kB / 428.2 MB, free: 260 kB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003826/0.07635, allocations: 1.284 MB / 429.5 MB, free: 14.97 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003639/0.07999, allocations: 3.019 MB / 432.5 MB, free: 11.94 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004187/0.08418, allocations: 1.877 MB / 434.4 MB, free: 10.06 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01065/0.09483, allocations: 6.679 MB / 441.1 MB, free: 3.355 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.759e-06/0.09484, allocations: 0 / 441.1 MB, free: 3.355 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.685e-06/0.09484, allocations: 0 / 441.1 MB, free: 3.355 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004274/0.09527, allocations: 0 / 441.1 MB, free: 3.355 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.2356/0.3309, allocations: 8.002 MB / 449.1 MB, free: 76.89 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.507e-05/0.3309, allocations: 8.531 kB / 449.1 MB, free: 76.89 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01255/0.3435, allocations: 4.613 MB / 453.7 MB, free: 76.44 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006805/0.3503, allocations: 3.485 MB / 457.2 MB, free: 76.07 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002616/0.3506, allocations: 317.5 kB / 457.5 MB, free: 76.06 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001348/0.3519, allocations: 433.2 kB / 457.9 MB, free: 76.05 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01921/0.3711, allocations: 8.545 MB / 466.5 MB, free: 72.63 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000235/0.3714, allocations: 55.94 kB / 466.5 MB, free: 72.62 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005941/0.372, allocations: 202.4 kB / 466.7 MB, free: 72.53 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003801/0.3758, allocations: 3.152 MB / 469.9 MB, free: 72.01 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0187/0.3945, allocations: 5.093 MB / 475 MB, free: 71.37 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06703/0.4615, allocations: 55.06 MB / 0.5176 GB, free: 29.59 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008123/0.4696, allocations: 2.953 MB / 0.5205 GB, free: 27.1 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001973/0.4716, allocations: 0.9589 MB / 0.5214 GB, free: 26.13 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01204/0.4836, allocations: 7.244 MB / 0.5285 GB, free: 19.11 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.421e-05/0.4837, allocations: 59.39 kB / 0.5285 GB, free: 19.04 MB / 410.7 MB Notification: Performance of pre-optimization done (n=256): time 7.254e-06/0.4837, allocations: 1.203 kB / 0.5285 GB, free: 19.04 MB / 410.7 MB Notification: Performance of matching and sorting (n=272): time 0.03014/0.5138, allocations: 12.99 MB / 0.5412 GB, free: 6 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.357e-05/0.5139, allocations: 107.1 kB / 0.5413 GB, free: 5.875 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005689/0.5196, allocations: 4.284 MB / 0.5455 GB, free: 1.562 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005234/0.5201, allocations: 61.7 kB / 0.5456 GB, free: 1.496 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003407/0.5235, allocations: 4.469 MB / 0.5499 GB, free: 13.06 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001894/0.5254, allocations: 1.103 MB / 0.551 GB, free: 11.97 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002053/0.5275, allocations: 1.599 MB / 0.5526 GB, free: 10.36 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001661/0.5276, allocations: 476.8 kB / 0.553 GB, free: 9.895 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001834/0.5295, allocations: 0.8697 MB / 0.5539 GB, free: 9.023 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005374/0.5348, allocations: 7.13 MB / 0.5608 GB, free: 15.12 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009296/0.5441, allocations: 8.804 MB / 0.5694 GB, free: 4.012 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002109/0.5443, allocations: 44 kB / 0.5695 GB, free: 3.969 MB / 442.7 MB Notification: Performance of matching and sorting (n=994) (initialization): time 0.01343/0.5578, allocations: 6.63 MB / 0.576 GB, free: 13.33 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001142/0.5579, allocations: 68 kB / 0.576 GB, free: 13.26 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002018/0.5581, allocations: 148.1 kB / 0.5762 GB, free: 13.12 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001298/0.5594, allocations: 0.5194 MB / 0.5767 GB, free: 12.59 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005029/0.5644, allocations: 1.766 MB / 0.5784 GB, free: 10.82 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005153/0.5696, allocations: 4.771 MB / 0.5831 GB, free: 5.801 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006133/0.5757, allocations: 0.5697 MB / 0.5836 GB, free: 5.23 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001743/0.5774, allocations: 441.3 kB / 0.584 GB, free: 4.801 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.003415/0.5809, allocations: 0.7589 MB / 0.5848 GB, free: 4.027 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001372/0.5822, allocations: 497.1 kB / 0.5852 GB, free: 3.539 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003912/0.5861, allocations: 2.202 MB / 0.5874 GB, free: 1.285 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.776e-05/0.5862, allocations: 28 kB / 0.5874 GB, free: 1.258 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.254e-05/0.5862, allocations: 4 kB / 0.5874 GB, free: 1.254 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.649e-05/0.5862, allocations: 7.969 kB / 0.5874 GB, free: 1.246 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01458/0.6008, allocations: 7.647 MB / 0.5949 GB, free: 9.402 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-05/0.6008, allocations: 12 kB / 0.5949 GB, free: 9.391 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00108/0.6019, allocations: 463.2 kB / 0.5954 GB, free: 8.938 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006966/0.6026, allocations: 251.4 kB / 0.5956 GB, free: 8.688 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001647/0.6027, allocations: 56 kB / 0.5957 GB, free: 8.633 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003259/0.606, allocations: 4.349 MB / 0.5999 GB, free: 4.043 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.081e-05/0.606, allocations: 19.94 kB / 0.5999 GB, free: 4.023 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005777/0.6118, allocations: 3.103 MB / 0.6029 GB, free: 0.6484 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001544/0.6133, allocations: 461 kB / 0.6034 GB, free: 200 kB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006221/0.614, allocations: 55.98 kB / 0.6034 GB, free: 144 kB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.2224/0.8363, allocations: 271.6 kB / 0.6037 GB, free: 117.5 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007271/0.8371, allocations: 177.4 kB / 0.6039 GB, free: 117.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000183/0.8372, allocations: 87.22 kB / 0.604 GB, free: 117.5 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003314/0.8406, allocations: 1.891 MB / 0.6058 GB, free: 117.3 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.8406, allocations: 0 / 0.6058 GB, free: 117.3 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007184/0.8477, allocations: 1.487 MB / 0.6073 GB, free: 117.3 MB / 474.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.000748/0.8485, allocations: 214 kB / 0.6075 GB, free: 117.2 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.007487/0.856, allocations: 3.972 MB / 0.6113 GB, free: 116.8 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.46e-05/0.856, allocations: 3.188 kB / 0.6113 GB, free: 116.8 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001953/0.858, allocations: 1.233 MB / 0.6125 GB, free: 116.4 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003297/0.8613, allocations: 0.5897 MB / 0.6131 GB, free: 116.4 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01746/0.8787, allocations: 11.26 MB / 0.6241 GB, free: 111.7 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002757/0.8815, allocations: 1.776 MB / 0.6258 GB, free: 111.4 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.004078/0.8856, allocations: 2.087 MB / 0.6279 GB, free: 111.2 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009424/0.8865, allocations: 314.6 kB / 0.6282 GB, free: 111.2 MB / 474.7 MB Notification: Performance of SimCode: time 3.146e-06/0.8865, allocations: 0 / 0.6282 GB, free: 111.2 MB / 474.7 MB Notification: Performance of Templates: time 0.07023/0.9567, allocations: 41.6 MB / 0.6688 GB, free: 94.59 MB / 474.7 MB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.354943596757948]