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.001404/0.001404, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.001858/0.001858, allocations: 161 kB / 24.56 MB, free: 16 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.072/1.072, allocations: 177.1 MB / 205 MB, free: 5.613 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.2599/0.2599, allocations: 32.81 MB / 294.3 MB, free: 1.285 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.613e-06/1.613e-06, allocations: 3.938 kB / 376 MB, free: 4.668 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.762e-05/2.924e-05, allocations: 2.312 kB / 376 MB, free: 4.664 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.01748/0.01751, allocations: 17.47 MB / 393.5 MB, free: 3.113 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.01017/0.02768, allocations: 5.221 MB / 398.7 MB, free: 13.88 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001288/0.02897, allocations: 127.4 kB / 398.8 MB, free: 13.75 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003318/0.03229, allocations: 3.27 MB / 402.1 MB, free: 10.47 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00351/0.0358, allocations: 2.71 MB / 404.8 MB, free: 7.746 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001387/0.03718, allocations: 1.154 MB / 406 MB, free: 6.59 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.00613/0.04331, allocations: 9.026 MB / 415 MB, free: 13.55 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004314/0.04763, allocations: 4.748 MB / 419.8 MB, free: 8.75 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004126/0.05175, allocations: 3.598 MB / 423.3 MB, free: 5.145 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00357/0.05532, allocations: 3.925 MB / 427.3 MB, free: 1.211 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007129/0.05603, allocations: 468 kB / 427.7 MB, free: 0.7539 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001919/0.05795, allocations: 1.28 MB / 429 MB, free: 15.47 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001902/0.05986, allocations: 3.031 MB / 432 MB, free: 12.43 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001645/0.0615, allocations: 1.885 MB / 433.9 MB, free: 10.54 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004948/0.06645, allocations: 6.698 MB / 440.6 MB, free: 3.82 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.06645, allocations: 4 kB / 440.6 MB, free: 3.816 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.06646, allocations: 0 / 440.6 MB, free: 3.816 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.07e-05/0.06653, allocations: 3.938 kB / 440.6 MB, free: 3.812 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.1785/0.245, allocations: 7.955 MB / 448.6 MB, free: 96.7 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.092e-05/0.2451, allocations: 8.781 kB / 448.6 MB, free: 96.7 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008518/0.2536, allocations: 4.652 MB / 453.2 MB, free: 96.09 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004711/0.2583, allocations: 3.525 MB / 456.8 MB, free: 95.05 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001382/0.2584, allocations: 320 kB / 457.1 MB, free: 94.95 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005092/0.259, allocations: 433.5 kB / 457.5 MB, free: 94.85 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01037/0.2693, allocations: 8.592 MB / 466.1 MB, free: 90.78 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001347/0.2695, allocations: 50.88 kB / 466.2 MB, free: 90.77 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004275/0.2699, allocations: 197.6 kB / 466.3 MB, free: 90.68 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003538/0.2734, allocations: 3.384 MB / 469.7 MB, free: 90.16 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01127/0.2847, allocations: 5.505 MB / 475.2 MB, free: 89.36 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04074/0.3254, allocations: 53.89 MB / 0.5167 GB, free: 43.25 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009914/0.3353, allocations: 4.274 MB / 0.5209 GB, free: 38.97 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002276/0.3376, allocations: 1.424 MB / 0.5223 GB, free: 37.54 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008572/0.3385, allocations: 0.6121 MB / 0.5229 GB, free: 36.93 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.238e-05/0.3385, allocations: 75.84 kB / 0.523 GB, free: 36.85 MB / 410.7 MB Notification: Performance of pre-optimization done (n=367): time 6.182e-06/0.3385, allocations: 0 / 0.523 GB, free: 36.85 MB / 410.7 MB Notification: Performance of matching and sorting (n=419): time 0.05487/0.3934, allocations: 25.02 MB / 0.5474 GB, free: 12.05 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.016e-05/0.3934, allocations: 116 kB / 0.5475 GB, free: 11.92 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002911/0.3963, allocations: 3.849 MB / 0.5513 GB, free: 8.055 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001865/0.3965, allocations: 85.7 kB / 0.5513 GB, free: 7.965 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00117/0.3977, allocations: 4.101 MB / 0.5553 GB, free: 3.891 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007744/0.3985, allocations: 1.615 MB / 0.5569 GB, free: 2.297 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001332/0.3998, allocations: 1.641 MB / 0.5585 GB, free: 0.6445 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.438e-05/0.3998, allocations: 480.8 kB / 0.559 GB, free: 176 kB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001881/0.4017, allocations: 1.226 MB / 0.5602 GB, free: 14.94 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004453/0.4062, allocations: 6.805 MB / 0.5668 GB, free: 5.668 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007788/0.414, allocations: 8.896 MB / 0.5755 GB, free: 10.33 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.574e-05/0.414, allocations: 36 kB / 0.5755 GB, free: 10.3 MB / 442.7 MB Notification: Performance of matching and sorting (n=1039) (initialization): time 0.01304/0.427, allocations: 8.708 MB / 0.5841 GB, free: 1.547 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.193e-05/0.4271, allocations: 60 kB / 0.5841 GB, free: 1.488 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.261e-05/0.4272, allocations: 128 kB / 0.5842 GB, free: 1.363 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004195/0.4314, allocations: 1.953 MB / 0.5861 GB, free: 15.4 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003563/0.435, allocations: 1.805 MB / 0.5879 GB, free: 13.59 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008389/0.4433, allocations: 7.787 MB / 0.5955 GB, free: 5.578 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003996/0.4473, allocations: 0.6126 MB / 0.5961 GB, free: 4.965 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005076/0.4479, allocations: 431.9 kB / 0.5965 GB, free: 4.543 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.002065/0.4499, allocations: 0.7359 MB / 0.5972 GB, free: 3.797 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008629/0.4508, allocations: 0.5635 MB / 0.5978 GB, free: 3.23 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1778/0.6286, allocations: 5.756 MB / 0.6034 GB, free: 122.4 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.415e-05/0.6287, allocations: 64.84 kB / 0.6035 GB, free: 122.4 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.888e-05/0.6287, allocations: 8.531 kB / 0.6035 GB, free: 122.4 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.561e-05/0.6288, allocations: 19.12 kB / 0.6035 GB, free: 122.4 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02129/0.6501, allocations: 12.37 MB / 0.6156 GB, free: 121.3 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-05/0.6501, allocations: 10.69 kB / 0.6156 GB, free: 121.3 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00208/0.6522, allocations: 0.683 MB / 0.6163 GB, free: 121.3 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00416/0.6564, allocations: 1.761 MB / 0.618 GB, free: 121.2 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004493/0.6568, allocations: 77.2 kB / 0.618 GB, free: 121.2 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006928/0.6637, allocations: 6.608 MB / 0.6245 GB, free: 117.3 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.645e-06/0.6637, allocations: 14.5 kB / 0.6245 GB, free: 117.3 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01081/0.6746, allocations: 6.627 MB / 0.631 GB, free: 115.3 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001382/0.6759, allocations: 483 kB / 0.6314 GB, free: 115.2 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006053/0.6765, allocations: 82.89 kB / 0.6315 GB, free: 115.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001935/0.6785, allocations: 427 kB / 0.6319 GB, free: 115.1 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006826/0.6792, allocations: 270.9 kB / 0.6322 GB, free: 115.1 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002629/0.6794, allocations: 113.3 kB / 0.6323 GB, free: 115.1 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002999/0.6824, allocations: 1.733 MB / 0.634 GB, free: 114.5 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.6824, allocations: 0 / 0.634 GB, free: 114.5 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00707/0.6895, allocations: 1.869 MB / 0.6358 GB, free: 114.3 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.0008364/0.6903, allocations: 252.1 kB / 0.6361 GB, free: 114.2 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.009914/0.7002, allocations: 5.138 MB / 0.6411 GB, free: 112.7 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.522e-05/0.7003, allocations: 0 / 0.6411 GB, free: 112.7 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00377/0.704, allocations: 2.164 MB / 0.6432 GB, free: 111.9 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003777/0.7078, allocations: 0.6293 MB / 0.6438 GB, free: 111.7 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01948/0.7273, allocations: 12.56 MB / 0.6561 GB, free: 103.7 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002546/0.7298, allocations: 1.835 MB / 0.6579 GB, free: 102.4 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.004861/0.7347, allocations: 2.143 MB / 0.66 GB, free: 101.1 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001499/0.7362, allocations: 355.5 kB / 0.6603 GB, free: 100.8 MB / 458.7 MB Notification: Performance of SimCode: time 1.994e-06/0.7362, allocations: 0 / 0.6603 GB, free: 100.8 MB / 458.7 MB Notification: Performance of Templates: time 0.08102/0.8172, allocations: 68.21 MB / 0.7269 GB, free: 34.16 MB / 458.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.328650266863406]