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.0009303/0.0009303, 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.001084/0.001084, allocations: 169.9 kB / 24.92 MB, free: 9.18 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.9942/0.9942, allocations: 177.1 MB / 205.3 MB, free: 5.457 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.264/0.264, allocations: 32.8 MB / 294.6 MB, free: 1.246 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.583e-06/1.583e-06, allocations: 0 / 323.2 MB, free: 9.707 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.139e-05/2.297e-05, allocations: 8.812 kB / 323.2 MB, free: 9.699 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.01148/0.0115, allocations: 17.01 MB / 340.3 MB, free: 8.605 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.009024/0.02053, allocations: 5.411 MB / 345.7 MB, free: 3.176 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001758/0.02229, allocations: 131.4 kB / 345.8 MB, free: 3.047 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003063/0.02535, allocations: 3.254 MB / 349 MB, free: 15.78 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003615/0.02896, allocations: 2.737 MB / 351.8 MB, free: 13.03 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001481/0.03045, allocations: 1.146 MB / 352.9 MB, free: 11.88 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.006164/0.03661, allocations: 9.034 MB / 362 MB, free: 2.836 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003826/0.04044, allocations: 4.851 MB / 366.8 MB, free: 13.91 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003984/0.04442, allocations: 4.148 MB / 371 MB, free: 9.758 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003065/0.04748, allocations: 3.663 MB / 374.6 MB, free: 6.086 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004724/0.04796, allocations: 467.9 kB / 375.1 MB, free: 5.629 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001394/0.04935, allocations: 1.272 MB / 376.4 MB, free: 4.355 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001617/0.05097, allocations: 3.023 MB / 379.4 MB, free: 1.324 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001369/0.05234, allocations: 1.877 MB / 381.3 MB, free: 15.44 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004746/0.05708, allocations: 6.679 MB / 387.9 MB, free: 8.738 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.05709, allocations: 0 / 387.9 MB, free: 8.738 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.05709, allocations: 0 / 387.9 MB, free: 8.738 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.893e-05/0.05717, allocations: 0 / 387.9 MB, free: 8.738 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.006717/0.06388, allocations: 6.625 MB / 394.6 MB, free: 2.047 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.184e-05/0.06391, allocations: 8.031 kB / 394.6 MB, free: 2.039 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004513/0.06843, allocations: 1.901 MB / 396.5 MB, free: 140 kB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003139/0.07157, allocations: 2.883 MB / 399.3 MB, free: 13.2 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001417/0.07171, allocations: 316.4 kB / 399.7 MB, free: 12.88 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005126/0.07222, allocations: 436 kB / 400.1 MB, free: 12.46 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007332/0.07955, allocations: 6.963 MB / 407 MB, free: 4.746 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.835e-05/0.07965, allocations: 59.45 kB / 407.1 MB, free: 4.688 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003577/0.08001, allocations: 199.8 kB / 407.3 MB, free: 4.492 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002332/0.08234, allocations: 2.772 MB / 410.1 MB, free: 1.719 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006677/0.08902, allocations: 3.867 MB / 413.9 MB, free: 13.82 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1895/0.2785, allocations: 40.37 MB / 454.3 MB, free: 85.43 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005478/0.284, allocations: 2.62 MB / 456.9 MB, free: 85.34 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008414/0.2849, allocations: 0.643 MB / 457.6 MB, free: 85.31 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008316/0.2932, allocations: 6.359 MB / 463.9 MB, free: 84.97 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.223e-05/0.2932, allocations: 58.84 kB / 464 MB, free: 84.93 MB / 410.7 MB Notification: Performance of pre-optimization done (n=256): time 4.128e-06/0.2932, allocations: 3.406 kB / 464 MB, free: 84.93 MB / 410.7 MB Notification: Performance of matching and sorting (n=272): time 0.01895/0.3122, allocations: 9.64 MB / 473.6 MB, free: 81.3 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.613e-05/0.3122, allocations: 103 kB / 473.7 MB, free: 81.18 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002785/0.315, allocations: 3.849 MB / 477.6 MB, free: 78.45 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001134/0.3151, allocations: 63.64 kB / 477.6 MB, free: 78.4 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001204/0.3163, allocations: 3.996 MB / 481.6 MB, free: 74.93 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004413/0.3168, allocations: 1.048 MB / 482.7 MB, free: 73.99 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009413/0.3177, allocations: 1.394 MB / 484.1 MB, free: 72.79 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.949e-05/0.3177, allocations: 301.1 kB / 484.4 MB, free: 72.5 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001329/0.3191, allocations: 0.9704 MB / 485.3 MB, free: 71.52 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002159/0.3212, allocations: 5.048 MB / 490.4 MB, free: 64.49 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00346/0.3247, allocations: 6.635 MB / 497 MB, free: 56.29 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.156e-05/0.3247, allocations: 44 kB / 497.1 MB, free: 56.25 MB / 410.7 MB Notification: Performance of matching and sorting (n=994) (initialization): time 0.004992/0.3297, allocations: 5.114 MB / 0.4904 GB, free: 51.1 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.694e-05/0.3298, allocations: 68 kB / 0.4905 GB, free: 51.03 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.348e-05/0.3298, allocations: 149.9 kB / 0.4906 GB, free: 50.89 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007362/0.3306, allocations: 422.2 kB / 0.491 GB, free: 50.47 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00246/0.333, allocations: 1.645 MB / 0.4926 GB, free: 48.82 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002037/0.3351, allocations: 3.444 MB / 0.496 GB, free: 45.18 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002742/0.3378, allocations: 280 kB / 0.4963 GB, free: 44.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002866/0.3381, allocations: 372 kB / 0.4966 GB, free: 44.54 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.001305/0.3394, allocations: 0.7273 MB / 0.4973 GB, free: 43.8 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004054/0.3398, allocations: 287.7 kB / 0.4976 GB, free: 43.52 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001774/0.3416, allocations: 1.616 MB / 0.4992 GB, free: 41.86 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.905e-05/0.3416, allocations: 32 kB / 0.4992 GB, free: 41.82 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.3416, allocations: 3.828 kB / 0.4992 GB, free: 41.82 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.104e-05/0.3416, allocations: 11.95 kB / 0.4992 GB, free: 41.81 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006209/0.3478, allocations: 6.033 MB / 0.5051 GB, free: 35.57 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.635e-06/0.3478, allocations: 8.938 kB / 0.5051 GB, free: 35.57 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007625/0.3486, allocations: 367.5 kB / 0.5055 GB, free: 35.21 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006281/0.3492, allocations: 411.6 kB / 0.5059 GB, free: 34.79 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001054/0.3493, allocations: 51.98 kB / 0.5059 GB, free: 34.74 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001444/0.3508, allocations: 3.119 MB / 0.509 GB, free: 31.44 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.801e-06/0.3508, allocations: 19.88 kB / 0.509 GB, free: 31.42 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002166/0.3529, allocations: 2.256 MB / 0.5112 GB, free: 28.94 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004607/0.3534, allocations: 433 kB / 0.5116 GB, free: 28.52 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000316/0.3537, allocations: 55.92 kB / 0.5117 GB, free: 28.46 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007923/0.3545, allocations: 55.98 kB / 0.5117 GB, free: 28.41 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001723/0.3547, allocations: 177.4 kB / 0.5119 GB, free: 28.23 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.064e-05/0.3548, allocations: 71.98 kB / 0.5119 GB, free: 28.16 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00099/0.3558, allocations: 1.452 MB / 0.5134 GB, free: 26.7 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.3558, allocations: 0 / 0.5134 GB, free: 26.7 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003489/0.3593, allocations: 1.492 MB / 0.5148 GB, free: 25.21 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.0003359/0.3596, allocations: 191.8 kB / 0.515 GB, free: 25.01 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002843/0.3624, allocations: 3.274 MB / 0.5182 GB, free: 21.75 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001327/0.3626, allocations: 108.2 kB / 0.5183 GB, free: 21.63 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007185/0.3633, allocations: 0.9274 MB / 0.5192 GB, free: 20.68 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002072/0.3654, allocations: 0.9565 MB / 0.5201 GB, free: 19.74 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01013/0.3755, allocations: 10.93 MB / 0.5308 GB, free: 8.574 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001226/0.3767, allocations: 1.761 MB / 0.5325 GB, free: 6.777 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001371/0.3781, allocations: 0.6232 MB / 0.5331 GB, free: 6.156 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001008/0.3791, allocations: 0.7315 MB / 0.5339 GB, free: 5.426 MB / 410.7 MB Notification: Performance of SimCode: time 1.874e-06/0.3791, allocations: 0 / 0.5339 GB, free: 5.426 MB / 410.7 MB Notification: Performance of Templates: time 0.06057/0.4397, allocations: 43.86 MB / 0.5767 GB, free: 10.12 MB / 458.7 MB " [Timeout remaining time 660] 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: 4.444931558333337]