Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001102/0.001102, allocations: 79.69 kB / 21.7 MB, free: 2.852 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00128/0.00128, allocations: 165 kB / 24.99 MB, free: 8.801 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.025/1.025, allocations: 177 MB / 205.2 MB, free: 5.586 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3141/0.3141, allocations: 34.86 MB / 296.6 MB, free: 0.5586 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.MultiBody.Joints.Revolute2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.794e-06/1.794e-06, allocations: 0 / 378.8 MB, free: 2.398 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.936e-05/3.115e-05, allocations: 2.312 kB / 378.8 MB, free: 2.395 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.01469/0.01473, allocations: 17.4 MB / 396.2 MB, free: 0.918 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.01155/0.02627, allocations: 5.217 MB / 401.4 MB, free: 11.68 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003398/0.02967, allocations: 131.4 kB / 401.5 MB, free: 11.55 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004281/0.03395, allocations: 3.25 MB / 404.8 MB, free: 8.293 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005639/0.03959, allocations: 2.71 MB / 407.5 MB, free: 5.57 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002163/0.04176, allocations: 1.158 MB / 408.6 MB, free: 4.41 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.009351/0.05111, allocations: 9.027 MB / 417.7 MB, free: 11.37 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006347/0.05745, allocations: 4.748 MB / 422.4 MB, free: 6.574 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00735/0.0648, allocations: 3.594 MB / 426 MB, free: 2.973 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005764/0.07057, allocations: 3.925 MB / 429.9 MB, free: 15.04 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001866/0.07243, allocations: 468 kB / 430.4 MB, free: 14.58 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002928/0.07536, allocations: 1.283 MB / 431.7 MB, free: 13.3 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004648/0.08001, allocations: 3.035 MB / 434.7 MB, free: 10.25 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004182/0.08419, allocations: 1.881 MB / 436.6 MB, free: 8.367 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009916/0.09411, allocations: 6.702 MB / 443.3 MB, free: 1.641 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.779e-06/0.09412, allocations: 0 / 443.3 MB, free: 1.641 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.855e-06/0.09412, allocations: 3.938 kB / 443.3 MB, free: 1.637 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005383/0.09466, allocations: 0 / 443.3 MB, free: 1.637 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.1937/0.2883, allocations: 7.961 MB / 451.2 MB, free: 101.2 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.246e-05/0.2884, allocations: 11.09 kB / 451.3 MB, free: 101.2 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009058/0.2974, allocations: 4.646 MB / 455.9 MB, free: 100.4 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005285/0.3027, allocations: 3.537 MB / 459.4 MB, free: 98.84 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001757/0.3029, allocations: 319.1 kB / 459.7 MB, free: 98.75 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000651/0.3036, allocations: 430.5 kB / 460.2 MB, free: 98.64 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01453/0.3181, allocations: 8.596 MB / 468.8 MB, free: 94.48 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001896/0.3183, allocations: 53.88 kB / 468.8 MB, free: 94.45 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004699/0.3188, allocations: 197 kB / 469 MB, free: 94.3 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003627/0.3224, allocations: 3.382 MB / 472.4 MB, free: 93.75 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01904/0.3414, allocations: 5.496 MB / 477.9 MB, free: 92.89 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05453/0.396, allocations: 53.89 MB / 0.5193 GB, free: 42.56 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009125/0.4051, allocations: 4.265 MB / 0.5235 GB, free: 38.3 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002434/0.4075, allocations: 1.418 MB / 0.5249 GB, free: 36.87 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006992/0.4082, allocations: 0.6185 MB / 0.5255 GB, free: 36.25 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.622e-05/0.4083, allocations: 77.02 kB / 0.5255 GB, free: 36.16 MB / 410.7 MB Notification: Performance of pre-optimization done (n=367): time 5.03e-06/0.4083, allocations: 0 / 0.5255 GB, free: 36.16 MB / 410.7 MB Notification: Performance of matching and sorting (n=419): time 0.05465/0.4629, allocations: 25.03 MB / 0.55 GB, free: 11.17 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.277e-05/0.463, allocations: 116 kB / 0.5501 GB, free: 11.04 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004147/0.4671, allocations: 3.853 MB / 0.5539 GB, free: 7.156 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008684/0.468, allocations: 89.69 kB / 0.5539 GB, free: 7.062 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001535/0.4695, allocations: 4.104 MB / 0.5579 GB, free: 2.918 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001839/0.4714, allocations: 1.62 MB / 0.5595 GB, free: 1.285 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001645/0.473, allocations: 1.641 MB / 0.5611 GB, free: 15.63 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001245/0.4731, allocations: 476.8 kB / 0.5616 GB, free: 15.16 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002689/0.4758, allocations: 1.233 MB / 0.5628 GB, free: 13.93 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005519/0.4813, allocations: 6.798 MB / 0.5694 GB, free: 4.645 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01058/0.4919, allocations: 8.892 MB / 0.5781 GB, free: 9.27 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001498/0.4921, allocations: 36 kB / 0.5781 GB, free: 9.234 MB / 442.7 MB Notification: Performance of matching and sorting (n=1039) (initialization): time 0.01763/0.5097, allocations: 8.697 MB / 0.5866 GB, free: 0.4922 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.192e-05/0.5098, allocations: 62.69 kB / 0.5867 GB, free: 444 kB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000118/0.5099, allocations: 132 kB / 0.5868 GB, free: 312 kB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004744/0.5146, allocations: 1.949 MB / 0.5887 GB, free: 14.34 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004589/0.5192, allocations: 1.805 MB / 0.5905 GB, free: 12.54 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009612/0.5288, allocations: 7.792 MB / 0.5981 GB, free: 4.504 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005399/0.5342, allocations: 0.6165 MB / 0.5987 GB, free: 3.887 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00099/0.5352, allocations: 427.9 kB / 0.5991 GB, free: 3.469 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.002399/0.5376, allocations: 0.7405 MB / 0.5998 GB, free: 2.711 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001146/0.5388, allocations: 0.5596 MB / 0.6004 GB, free: 2.148 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.196/0.7348, allocations: 5.746 MB / 0.606 GB, free: 125.5 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.057e-05/0.7348, allocations: 63.75 kB / 0.6061 GB, free: 125.5 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.13e-05/0.7349, allocations: 12.03 kB / 0.6061 GB, free: 125.5 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-05/0.7349, allocations: 15.98 kB / 0.6061 GB, free: 125.5 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02011/0.755, allocations: 12.38 MB / 0.6182 GB, free: 124.1 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.247e-05/0.7551, allocations: 10.75 kB / 0.6182 GB, free: 124.1 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001764/0.7568, allocations: 0.6772 MB / 0.6188 GB, free: 124 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004073/0.7609, allocations: 1.762 MB / 0.6206 GB, free: 123.9 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003149/0.7612, allocations: 80.89 kB / 0.6206 GB, free: 123.9 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006992/0.7682, allocations: 6.602 MB / 0.6271 GB, free: 119.4 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.184e-06/0.7682, allocations: 16.97 kB / 0.6271 GB, free: 119.4 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01148/0.7797, allocations: 6.626 MB / 0.6336 GB, free: 117.4 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001366/0.7811, allocations: 486.8 kB / 0.634 GB, free: 117.3 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006982/0.7818, allocations: 71.41 kB / 0.6341 GB, free: 117.3 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002066/0.7838, allocations: 436.2 kB / 0.6345 GB, free: 117.3 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006469/0.7845, allocations: 271.4 kB / 0.6348 GB, free: 117.2 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002381/0.7847, allocations: 118 kB / 0.6349 GB, free: 117.2 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002965/0.7877, allocations: 1.73 MB / 0.6366 GB, free: 116.6 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.7877, allocations: 1.25 kB / 0.6366 GB, free: 116.6 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.007593/0.7953, allocations: 1.87 MB / 0.6384 GB, free: 116.4 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.001132/0.7964, allocations: 244.9 kB / 0.6386 GB, free: 116.3 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01223/0.8086, allocations: 5.138 MB / 0.6437 GB, free: 114.7 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.513e-05/0.8087, allocations: 0 / 0.6437 GB, free: 114.7 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004026/0.8127, allocations: 2.162 MB / 0.6458 GB, free: 113.9 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003887/0.8166, allocations: 0.6289 MB / 0.6464 GB, free: 113.6 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01803/0.8346, allocations: 12.56 MB / 0.6586 GB, free: 104.2 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001818/0.8364, allocations: 1.847 MB / 0.6604 GB, free: 102.8 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.004485/0.8409, allocations: 2.143 MB / 0.6625 GB, free: 101.6 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001313/0.8422, allocations: 349.8 kB / 0.6629 GB, free: 101.3 MB / 458.7 MB Notification: Performance of SimCode: time 1.974e-06/0.8422, allocations: 0 / 0.6629 GB, free: 101.3 MB / 458.7 MB Notification: Performance of Templates: time 0.07893/0.9212, allocations: 68.2 MB / 0.7295 GB, free: 34 MB / 458.7 MB " [Timeout remaining time 659] make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_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.395983078982681]