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.001455/0.001455, allocations: 80.8 kB / 21.5 MB, free: 2.992 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.001025/0.001025, allocations: 171.4 kB / 24.91 MB, free: 9.191 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 0.9579/0.9579, allocations: 177.1 MB / 205.3 MB, free: 5.488 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.2709/0.2709, allocations: 34.26 MB / 296.1 MB, free: 0.6602 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.122e-06/1.122e-06, allocations: 0 / 325.3 MB, free: 7.676 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.696e-05/1.808e-05, allocations: 2.312 kB / 325.3 MB, free: 7.672 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.01181/0.01183, allocations: 17.01 MB / 342.3 MB, free: 6.582 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.009119/0.02095, allocations: 5.412 MB / 347.7 MB, free: 1.152 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001883/0.02283, allocations: 131.4 kB / 347.8 MB, free: 1.023 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003143/0.02597, allocations: 3.266 MB / 351.1 MB, free: 13.75 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004482/0.03046, allocations: 2.722 MB / 353.8 MB, free: 11.01 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001447/0.0319, allocations: 1.154 MB / 355 MB, free: 9.855 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.007472/0.03938, allocations: 9.043 MB / 364 MB, free: 0.8047 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004521/0.0439, allocations: 4.842 MB / 368.8 MB, free: 11.89 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004045/0.04794, allocations: 4.148 MB / 373 MB, free: 7.73 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00335/0.05129, allocations: 3.667 MB / 376.7 MB, free: 4.055 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005571/0.05185, allocations: 464 kB / 377.1 MB, free: 3.602 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001464/0.05331, allocations: 1.276 MB / 378.4 MB, free: 2.324 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00195/0.05526, allocations: 3.019 MB / 381.4 MB, free: 15.3 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001476/0.05674, allocations: 1.877 MB / 383.3 MB, free: 13.41 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004963/0.0617, allocations: 6.683 MB / 390 MB, free: 6.707 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.06171, allocations: 0 / 390 MB, free: 6.707 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.263e-06/0.06171, allocations: 0 / 390 MB, free: 6.707 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.312e-05/0.06178, allocations: 0 / 390 MB, free: 6.707 MB / 362.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.007135/0.06891, allocations: 6.625 MB / 396.6 MB, free: 16 kB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.272e-05/0.06895, allocations: 8.031 kB / 396.6 MB, free: 8 kB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004513/0.07346, allocations: 1.897 MB / 398.5 MB, free: 14.11 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003048/0.07651, allocations: 2.879 MB / 401.4 MB, free: 11.17 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001506/0.07666, allocations: 316.4 kB / 401.7 MB, free: 10.86 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005268/0.07719, allocations: 447.9 kB / 402.1 MB, free: 10.42 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007508/0.08469, allocations: 6.959 MB / 409.1 MB, free: 2.715 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.978e-05/0.08479, allocations: 59.5 kB / 409.1 MB, free: 2.656 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003482/0.08514, allocations: 199.8 kB / 409.3 MB, free: 2.461 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002245/0.08739, allocations: 2.768 MB / 412.1 MB, free: 15.69 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006459/0.09385, allocations: 3.876 MB / 416 MB, free: 11.79 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1763/0.2702, allocations: 40.37 MB / 456.3 MB, free: 83.17 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005625/0.2758, allocations: 2.609 MB / 459 MB, free: 83.08 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008309/0.2766, allocations: 0.6387 MB / 459.6 MB, free: 83.05 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008966/0.2856, allocations: 6.366 MB / 466 MB, free: 82.68 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.495e-05/0.2856, allocations: 61.88 kB / 466 MB, free: 82.64 MB / 410.7 MB Notification: Performance of pre-optimization done (n=256): time 4.048e-06/0.2856, allocations: 1.75 kB / 466 MB, free: 82.64 MB / 410.7 MB Notification: Performance of matching and sorting (n=272): time 0.01991/0.3055, allocations: 9.648 MB / 475.7 MB, free: 78.78 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.874e-05/0.3056, allocations: 103.1 kB / 475.8 MB, free: 78.66 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002756/0.3083, allocations: 3.843 MB / 479.6 MB, free: 75.93 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001118/0.3084, allocations: 66.52 kB / 479.7 MB, free: 75.89 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001082/0.3095, allocations: 3.988 MB / 483.7 MB, free: 72.32 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004388/0.31, allocations: 1.053 MB / 484.7 MB, free: 71.38 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009212/0.3109, allocations: 1.395 MB / 486.1 MB, free: 69.98 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.81e-05/0.3109, allocations: 301.1 kB / 486.4 MB, free: 69.69 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0013/0.3122, allocations: 0.9665 MB / 487.4 MB, free: 68.72 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002073/0.3143, allocations: 5.049 MB / 492.4 MB, free: 61.68 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003913/0.3182, allocations: 6.643 MB / 499.1 MB, free: 53.47 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.614e-05/0.3182, allocations: 40 kB / 499.1 MB, free: 53.43 MB / 410.7 MB Notification: Performance of matching and sorting (n=994) (initialization): time 0.004997/0.3232, allocations: 5.111 MB / 0.4924 GB, free: 48.29 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.921e-05/0.3233, allocations: 72.03 kB / 0.4925 GB, free: 48.21 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.459e-05/0.3234, allocations: 148 kB / 0.4926 GB, free: 48.07 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007405/0.3241, allocations: 419 kB / 0.493 GB, free: 47.65 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00241/0.3265, allocations: 1.638 MB / 0.4946 GB, free: 46.01 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00211/0.3286, allocations: 3.447 MB / 0.498 GB, free: 42.37 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002843/0.3315, allocations: 280 kB / 0.4982 GB, free: 42.09 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002913/0.3318, allocations: 375.9 kB / 0.4986 GB, free: 41.73 MB / 410.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.001468/0.3332, allocations: 0.7157 MB / 0.4993 GB, free: 41 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004224/0.3337, allocations: 299.7 kB / 0.4996 GB, free: 40.7 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001821/0.3355, allocations: 1.609 MB / 0.5012 GB, free: 39.05 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.918e-05/0.3355, allocations: 28 kB / 0.5012 GB, free: 39.02 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.3355, allocations: 0 / 0.5012 GB, free: 39.02 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.093e-05/0.3355, allocations: 11.97 kB / 0.5012 GB, free: 39.01 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006511/0.342, allocations: 6.041 MB / 0.5071 GB, free: 32.76 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.777e-06/0.342, allocations: 12 kB / 0.5071 GB, free: 32.75 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007678/0.3428, allocations: 367.4 kB / 0.5075 GB, free: 32.39 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005931/0.3434, allocations: 404 kB / 0.5078 GB, free: 31.98 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.517e-05/0.3435, allocations: 55.3 kB / 0.5079 GB, free: 31.93 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001491/0.345, allocations: 3.118 MB / 0.5109 GB, free: 28.63 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.092e-06/0.345, allocations: 19.66 kB / 0.511 GB, free: 28.61 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002084/0.3471, allocations: 2.263 MB / 0.5132 GB, free: 26.13 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000421/0.3475, allocations: 429 kB / 0.5136 GB, free: 25.71 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003162/0.3478, allocations: 55.97 kB / 0.5136 GB, free: 25.66 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000782/0.3486, allocations: 55.98 kB / 0.5137 GB, free: 25.6 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001838/0.3488, allocations: 181.4 kB / 0.5139 GB, free: 25.42 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.914e-05/0.3489, allocations: 60 kB / 0.5139 GB, free: 25.36 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.000944/0.3498, allocations: 1.456 MB / 0.5153 GB, free: 23.9 MB / 410.7 MB Notification: Performance of sort global known variables: time 9e-08/0.3498, allocations: 0 / 0.5153 GB, free: 23.9 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003204/0.353, allocations: 1.5 MB / 0.5168 GB, free: 22.4 MB / 410.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.0003159/0.3533, allocations: 191.8 kB / 0.517 GB, free: 22.2 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002777/0.3561, allocations: 3.267 MB / 0.5202 GB, free: 18.94 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001341/0.3562, allocations: 104.2 kB / 0.5203 GB, free: 18.83 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006946/0.3569, allocations: 0.9352 MB / 0.5212 GB, free: 17.87 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002084/0.359, allocations: 0.9598 MB / 0.5221 GB, free: 16.93 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01007/0.3691, allocations: 10.93 MB / 0.5328 GB, free: 5.762 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001187/0.3703, allocations: 1.754 MB / 0.5345 GB, free: 3.973 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001456/0.3717, allocations: 0.6292 MB / 0.5351 GB, free: 3.344 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001052/0.3728, allocations: 0.7315 MB / 0.5358 GB, free: 2.613 MB / 410.7 MB Notification: Performance of SimCode: time 1.633e-06/0.3728, allocations: 0 / 0.5358 GB, free: 2.613 MB / 410.7 MB Notification: Performance of Templates: time 0.06496/0.4377, allocations: 43.86 MB / 0.5787 GB, free: 7.289 MB / 458.7 MB " [Timeout remaining time 660] 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.365268669091165]