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.001395/0.001395, allocations: 88.86 kB / 21.5 MB, free: 2.988 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.001766/0.001766, allocations: 160.9 kB / 24.91 MB, free: 8.719 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 0.9466/0.9466, allocations: 177 MB / 205.2 MB, free: 5.031 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.2777/0.2777, allocations: 34.86 MB / 296.6 MB, free: 476 kB / 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.813e-06/1.813e-06, allocations: 0 / 325.9 MB, free: 7.145 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.858e-05/2.039e-05, allocations: 2.312 kB / 325.9 MB, free: 7.141 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.0122/0.01222, allocations: 17.02 MB / 343 MB, free: 6.043 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0105/0.02272, allocations: 5.404 MB / 348.4 MB, free: 0.6211 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001652/0.02437, allocations: 131.4 kB / 348.5 MB, free: 0.4922 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002959/0.02733, allocations: 3.262 MB / 351.7 MB, free: 13.22 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003332/0.03066, allocations: 2.722 MB / 354.5 MB, free: 10.48 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001333/0.03199, allocations: 1.166 MB / 355.6 MB, free: 9.316 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.00629/0.03828, allocations: 9.031 MB / 364.7 MB, free: 288 kB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004047/0.04233, allocations: 4.846 MB / 369.5 MB, free: 11.36 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003834/0.04617, allocations: 4.144 MB / 373.7 MB, free: 7.211 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002967/0.04913, allocations: 3.667 MB / 377.3 MB, free: 3.535 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004649/0.0496, allocations: 460 kB / 377.8 MB, free: 3.086 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001426/0.05102, allocations: 1.276 MB / 379 MB, free: 1.809 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001567/0.05259, allocations: 3.027 MB / 382.1 MB, free: 14.77 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001347/0.05394, allocations: 1.873 MB / 383.9 MB, free: 12.89 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004589/0.05853, allocations: 6.683 MB / 390.6 MB, free: 6.188 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.05853, allocations: 0 / 390.6 MB, free: 6.188 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.05853, allocations: 0 / 390.6 MB, free: 6.188 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.784e-05/0.05859, allocations: 0 / 390.6 MB, free: 6.188 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.00675/0.06534, allocations: 6.621 MB / 397.2 MB, free: 15.5 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.748e-05/0.06538, allocations: 12.03 kB / 397.3 MB, free: 15.49 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004515/0.06989, allocations: 1.901 MB / 399.2 MB, free: 13.59 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002987/0.07288, allocations: 2.883 MB / 402 MB, free: 10.64 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001516/0.07303, allocations: 324.4 kB / 402.4 MB, free: 10.32 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005164/0.07355, allocations: 428 kB / 402.8 MB, free: 9.906 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007254/0.0808, allocations: 6.964 MB / 409.7 MB, free: 2.199 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.401e-05/0.0809, allocations: 55.52 kB / 409.8 MB, free: 2.145 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003542/0.08125, allocations: 199.8 kB / 410 MB, free: 1.949 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002494/0.08374, allocations: 2.776 MB / 412.8 MB, free: 15.17 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005824/0.08957, allocations: 3.875 MB / 416.6 MB, free: 11.27 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2057/0.2952, allocations: 40.37 MB / 457 MB, free: 62.82 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005565/0.3008, allocations: 2.61 MB / 459.6 MB, free: 62.72 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007951/0.3016, allocations: 0.6456 MB / 460.3 MB, free: 62.7 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009389/0.311, allocations: 6.365 MB / 466.6 MB, free: 62.33 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.352e-05/0.311, allocations: 54.64 kB / 466.7 MB, free: 62.29 MB / 410.7 MB Notification: Performance of pre-optimization done (n=256): time 4.378e-06/0.311, allocations: 0 / 466.7 MB, free: 62.29 MB / 410.7 MB Notification: Performance of matching and sorting (n=272): time 0.01923/0.3303, allocations: 9.649 MB / 476.3 MB, free: 61.31 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.774e-05/0.3303, allocations: 100.7 kB / 476.4 MB, free: 61.21 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002857/0.3332, allocations: 3.852 MB / 480.3 MB, free: 60.2 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001109/0.3333, allocations: 64.22 kB / 480.3 MB, free: 60.16 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001165/0.3344, allocations: 3.986 MB / 484.3 MB, free: 57.2 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004416/0.3349, allocations: 1.048 MB / 485.4 MB, free: 56.42 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000983/0.3359, allocations: 1.395 MB / 486.8 MB, free: 55.74 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.183e-05/0.3359, allocations: 308.1 kB / 487.1 MB, free: 55.44 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001281/0.3372, allocations: 0.9667 MB / 488 MB, free: 54.75 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002249/0.3394, allocations: 5.05 MB / 493.1 MB, free: 48.18 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00375/0.3432, allocations: 6.642 MB / 499.7 MB, free: 40.48 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.696e-05/0.3432, allocations: 40 kB / 499.8 MB, free: 40.44 MB / 410.7 MB Notification: Performance of matching and sorting (n=994) (initialization): time 0.005279/0.3485, allocations: 5.114 MB / 0.4931 GB, free: 36.55 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.275e-05/0.3485, allocations: 68 kB / 0.4931 GB, free: 36.48 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.353e-05/0.3486, allocations: 144 kB / 0.4933 GB, free: 36.34 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007266/0.3493, allocations: 425 kB / 0.4937 GB, free: 35.94 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002393/0.3517, allocations: 1.639 MB / 0.4953 GB, free: 34.49 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002146/0.3539, allocations: 3.45 MB / 0.4986 GB, free: 31.07 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002773/0.3566, allocations: 276.2 kB / 0.4989 GB, free: 30.86 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002815/0.3569, allocations: 389.8 kB / 0.4993 GB, free: 30.48 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.001402/0.3583, allocations: 0.7031 MB / 0.5 GB, free: 29.77 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003444/0.3587, allocations: 295.7 kB / 0.5002 GB, free: 29.48 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001846/0.3605, allocations: 1.608 MB / 0.5018 GB, free: 27.83 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.949e-05/0.3605, allocations: 28 kB / 0.5018 GB, free: 27.8 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.3605, allocations: 0 / 0.5018 GB, free: 27.8 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.256e-05/0.3606, allocations: 11.95 kB / 0.5018 GB, free: 27.79 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00632/0.3669, allocations: 6.046 MB / 0.5077 GB, free: 22.39 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.307e-06/0.3669, allocations: 8 kB / 0.5078 GB, free: 22.39 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007602/0.3676, allocations: 371.4 kB / 0.5081 GB, free: 22.02 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006089/0.3683, allocations: 408.2 kB / 0.5085 GB, free: 21.62 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.28e-05/0.3683, allocations: 51.98 kB / 0.5085 GB, free: 21.57 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001473/0.3698, allocations: 3.115 MB / 0.5116 GB, free: 18.3 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.632e-06/0.3698, allocations: 15.94 kB / 0.5116 GB, free: 18.29 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002036/0.3719, allocations: 2.271 MB / 0.5138 GB, free: 15.84 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003751/0.3722, allocations: 425.2 kB / 0.5142 GB, free: 15.43 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003032/0.3725, allocations: 51.98 kB / 0.5143 GB, free: 15.38 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007674/0.3733, allocations: 53.95 kB / 0.5143 GB, free: 15.33 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001872/0.3735, allocations: 177.4 kB / 0.5145 GB, free: 15.15 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.414e-05/0.3736, allocations: 70.56 kB / 0.5146 GB, free: 15.09 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001082/0.3747, allocations: 1.455 MB / 0.516 GB, free: 13.8 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.3747, allocations: 0 / 0.516 GB, free: 13.8 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003781/0.3785, allocations: 1.503 MB / 0.5175 GB, free: 12.3 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.0003569/0.3788, allocations: 194.7 kB / 0.5176 GB, free: 12.11 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002643/0.3815, allocations: 3.261 MB / 0.5208 GB, free: 8.93 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001283/0.3816, allocations: 108.2 kB / 0.5209 GB, free: 8.812 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006824/0.3823, allocations: 0.9308 MB / 0.5218 GB, free: 7.883 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001871/0.3841, allocations: 0.9591 MB / 0.5228 GB, free: 6.949 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01028/0.3944, allocations: 10.93 MB / 0.5334 GB, free: 11.85 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001394/0.3958, allocations: 1.757 MB / 0.5352 GB, free: 10.05 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001427/0.3972, allocations: 0.6214 MB / 0.5358 GB, free: 9.434 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001131/0.3984, allocations: 0.7334 MB / 0.5365 GB, free: 8.699 MB / 426.7 MB Notification: Performance of SimCode: time 2.174e-06/0.3984, allocations: 0 / 0.5365 GB, free: 8.699 MB / 426.7 MB Notification: Performance of Templates: time 0.05995/0.4583, allocations: 43.85 MB / 0.5793 GB, free: 13.46 MB / 474.7 MB " [Timeout remaining time 660] 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: 4.460926625877619]