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.002355/0.002355, allocations: 91.61 kB / 20.96 MB, free: 3.465 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.002833/0.002833, allocations: 169.3 kB / 24.28 MB, free: 152 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.586/1.586, allocations: 177.1 MB / 204.6 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 178] 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.3655/0.3655, allocations: 32.8 MB / 293.9 MB, free: 1.203 MB / 266.7 MB " [Timeout remaining time 179] 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 2.023e-06/2.023e-06, allocations: 0 / 375.3 MB, free: 4.973 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.83e-05/4.033e-05, allocations: 9.484 kB / 375.3 MB, free: 4.965 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.02475/0.02479, allocations: 17.37 MB / 392.6 MB, free: 3.516 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.01323/0.03802, allocations: 5.198 MB / 397.8 MB, free: 14.3 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003672/0.04169, allocations: 139.3 kB / 398 MB, free: 14.16 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007664/0.04935, allocations: 3.251 MB / 401.2 MB, free: 10.9 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008013/0.05737, allocations: 2.71 MB / 403.9 MB, free: 8.18 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003143/0.06051, allocations: 1.15 MB / 405.1 MB, free: 7.027 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.01346/0.07397, allocations: 9.03 MB / 414.1 MB, free: 13.98 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008084/0.08205, allocations: 4.748 MB / 418.9 MB, free: 9.184 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008519/0.09057, allocations: 3.598 MB / 422.5 MB, free: 5.578 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007801/0.09837, allocations: 3.921 MB / 426.4 MB, free: 1.648 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00173/0.1001, allocations: 471.9 kB / 426.9 MB, free: 1.188 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00331/0.1034, allocations: 1.284 MB / 428.1 MB, free: 15.9 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003781/0.1072, allocations: 3.031 MB / 431.2 MB, free: 12.86 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004023/0.1112, allocations: 1.877 MB / 433 MB, free: 10.98 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0175/0.1287, allocations: 10.17 MB / 443.2 MB, free: 0.7812 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.094e-06/0.1287, allocations: 0 / 443.2 MB, free: 0.7812 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1287, allocations: 0 / 443.2 MB, free: 0.7812 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003895/0.1291, allocations: 0 / 443.2 MB, free: 0.7812 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.2071/0.3362, allocations: 8.535 MB / 451.7 MB, free: 99.83 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.723e-05/0.3363, allocations: 11.41 kB / 451.8 MB, free: 99.83 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01835/0.3546, allocations: 4.647 MB / 456.4 MB, free: 99.07 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01331/0.3679, allocations: 3.563 MB / 460 MB, free: 97.46 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005173/0.3685, allocations: 311.5 kB / 460.3 MB, free: 97.37 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003546/0.372, allocations: 434.2 kB / 460.7 MB, free: 97.27 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03443/0.4064, allocations: 9.211 MB / 469.9 MB, free: 92.71 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000321/0.4067, allocations: 56.11 kB / 470 MB, free: 92.68 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001383/0.4081, allocations: 193.7 kB / 470.1 MB, free: 92.55 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008995/0.4171, allocations: 3.377 MB / 473.5 MB, free: 91.99 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02845/0.4456, allocations: 6.182 MB / 479.7 MB, free: 91.01 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08614/0.5317, allocations: 63.3 MB / 0.5303 GB, free: 29.08 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01403/0.5457, allocations: 3.976 MB / 0.5342 GB, free: 25.1 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003473/0.5492, allocations: 1.441 MB / 0.5356 GB, free: 23.65 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001396/0.5506, allocations: 0.6185 MB / 0.5362 GB, free: 23.03 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.331e-05/0.5507, allocations: 69.03 kB / 0.5362 GB, free: 22.95 MB / 410.7 MB Notification: Performance of pre-optimization done (n=367): time 8.125e-06/0.5507, allocations: 0 / 0.5362 GB, free: 22.95 MB / 410.7 MB Notification: Performance of matching and sorting (n=419): time 0.09432/0.645, allocations: 25.46 MB / 0.5611 GB, free: 13.53 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001409/0.6451, allocations: 119.9 kB / 0.5612 GB, free: 13.39 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01101/0.6561, allocations: 4.775 MB / 0.5659 GB, free: 8.586 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001179/0.6573, allocations: 81.7 kB / 0.566 GB, free: 8.5 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005428/0.6628, allocations: 4.319 MB / 0.5702 GB, free: 4.141 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00371/0.6665, allocations: 1.722 MB / 0.5719 GB, free: 2.402 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006106/0.6726, allocations: 1.919 MB / 0.5737 GB, free: 484 kB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003211/0.6729, allocations: 480.8 kB / 0.5742 GB, free: 0 / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004672/0.6776, allocations: 1.331 MB / 0.5755 GB, free: 14.66 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01086/0.6884, allocations: 7.138 MB / 0.5825 GB, free: 5.043 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01585/0.7043, allocations: 9.477 MB / 0.5917 GB, free: 9.086 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001295/0.7044, allocations: 40 kB / 0.5918 GB, free: 9.047 MB / 458.7 MB Notification: Performance of matching and sorting (n=1039) (initialization): time 0.02476/0.7292, allocations: 8.916 MB / 0.6005 GB, free: 92 kB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001081/0.7293, allocations: 60.19 kB / 0.6005 GB, free: 32 kB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.2029/0.9322, allocations: 130.6 kB / 0.6006 GB, free: 118.1 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008642/0.9409, allocations: 1.968 MB / 0.6026 GB, free: 118 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006737/0.9476, allocations: 1.807 MB / 0.6043 GB, free: 118 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01351/0.9611, allocations: 8.1 MB / 0.6122 GB, free: 114.1 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006793/0.9679, allocations: 0.6139 MB / 0.6128 GB, free: 114.1 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001665/0.9696, allocations: 433.5 kB / 0.6133 GB, free: 114.1 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.004058/0.9736, allocations: 0.8853 MB / 0.6141 GB, free: 113.8 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001793/0.9754, allocations: 0.5545 MB / 0.6147 GB, free: 113.8 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01449/0.9899, allocations: 6.082 MB / 0.6206 GB, free: 113.5 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.641e-05/0.99, allocations: 60.12 kB / 0.6207 GB, free: 113.5 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.093e-05/0.99, allocations: 10.53 kB / 0.6207 GB, free: 113.5 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.497e-05/0.99, allocations: 20.8 kB / 0.6207 GB, free: 113.5 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03839/1.028, allocations: 14.01 MB / 0.6344 GB, free: 110 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.664e-05/1.028, allocations: 12.47 kB / 0.6344 GB, free: 110 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003687/1.032, allocations: 0.681 MB / 0.635 GB, free: 110 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008462/1.041, allocations: 1.785 MB / 0.6368 GB, free: 109.8 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009344/1.042, allocations: 78.58 kB / 0.6369 GB, free: 109.8 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01282/1.054, allocations: 6.87 MB / 0.6436 GB, free: 105.2 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.398e-05/1.054, allocations: 18.78 kB / 0.6436 GB, free: 105.2 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02071/1.075, allocations: 6.932 MB / 0.6504 GB, free: 103 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001775/1.077, allocations: 489.9 kB / 0.6508 GB, free: 102.8 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001478/1.078, allocations: 76.61 kB / 0.6509 GB, free: 102.8 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004081/1.082, allocations: 429.2 kB / 0.6513 GB, free: 102.7 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001056/1.084, allocations: 275.9 kB / 0.6516 GB, free: 102.7 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005211/1.084, allocations: 117 kB / 0.6517 GB, free: 102.7 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004326/1.088, allocations: 2.05 MB / 0.6537 GB, free: 101.9 MB / 458.7 MB Notification: Performance of sort global known variables: time 1e-07/1.088, allocations: 0 / 0.6537 GB, free: 101.9 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.008687/1.097, allocations: 1.859 MB / 0.6555 GB, free: 101.7 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.001133/1.098, allocations: 255.8 kB / 0.6557 GB, free: 101.6 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01134/1.11, allocations: 5.547 MB / 0.6612 GB, free: 98.99 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.399e-05/1.11, allocations: 4 kB / 0.6612 GB, free: 98.99 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004314/1.114, allocations: 2.329 MB / 0.6634 GB, free: 96.88 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004976/1.119, allocations: 0.6303 MB / 0.6641 GB, free: 96.36 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02297/1.142, allocations: 12.74 MB / 0.6765 GB, free: 83.77 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005417/1.147, allocations: 3.622 MB / 0.68 GB, free: 80.1 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.005508/1.153, allocations: 2.139 MB / 0.6821 GB, free: 77.95 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002065/1.155, allocations: 344.4 kB / 0.6824 GB, free: 77.62 MB / 458.7 MB Notification: Performance of SimCode: time 1.854e-06/1.155, allocations: 8 kB / 0.6825 GB, free: 77.61 MB / 458.7 MB Notification: Performance of Templates: time 0.09389/1.249, allocations: 68.15 MB / 0.749 GB, free: 10.04 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.339842470944859]