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.0009218/0.0009218, allocations: 80.31 kB / 22.21 MB, free: 2.289 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.0009182/0.0009182, allocations: 168.3 kB / 25.61 MB, free: 8.586 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.9482/0.9482, allocations: 177.2 MB / 206.1 MB, free: 4.473 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.1753/0.1753, allocations: 34.26 MB / 296.9 MB, free: 13.92 MB / 282.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.302e-06/1.302e-06, allocations: 0 / 379.3 MB, free: 23.41 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.889e-05/2.019e-05, allocations: 2.312 kB / 379.3 MB, free: 23.4 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.009675/0.009695, allocations: 17 MB / 396.3 MB, free: 6.324 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.007346/0.01704, allocations: 5.192 MB / 401.5 MB, free: 1.117 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002341/0.01938, allocations: 127.4 kB / 401.6 MB, free: 0.9922 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003648/0.02303, allocations: 3.227 MB / 404.8 MB, free: 13.75 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005104/0.02813, allocations: 2.71 MB / 407.6 MB, free: 11.03 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002029/0.03016, allocations: 1.154 MB / 408.7 MB, free: 9.871 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.008908/0.03907, allocations: 9.043 MB / 417.8 MB, free: 0.8164 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005493/0.04456, allocations: 4.744 MB / 422.5 MB, free: 12.02 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006608/0.05117, allocations: 4.183 MB / 426.7 MB, free: 7.828 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004827/0.056, allocations: 3.835 MB / 430.5 MB, free: 3.984 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009784/0.05698, allocations: 464 kB / 431 MB, free: 3.531 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00199/0.05897, allocations: 1.284 MB / 432.3 MB, free: 2.246 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002056/0.06102, allocations: 3.031 MB / 435.3 MB, free: 15.21 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002083/0.06311, allocations: 1.869 MB / 437.2 MB, free: 13.33 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006709/0.06982, allocations: 6.675 MB / 443.8 MB, free: 6.633 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.421e-06/0.06982, allocations: 0 / 443.8 MB, free: 6.633 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.06982, allocations: 0 / 443.8 MB, free: 6.633 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001898/0.07001, allocations: 0 / 443.8 MB, free: 6.633 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.01109/0.08111, allocations: 7.428 MB / 451.3 MB, free: 15.12 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.698e-05/0.08114, allocations: 8.031 kB / 451.3 MB, free: 15.11 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007493/0.08864, allocations: 2.787 MB / 454 MB, free: 12.32 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004643/0.09328, allocations: 3.091 MB / 457.1 MB, free: 9.18 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001966/0.09348, allocations: 320.4 kB / 457.5 MB, free: 8.863 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009431/0.09442, allocations: 432 kB / 457.9 MB, free: 8.441 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01166/0.1061, allocations: 7.528 MB / 465.4 MB, free: 15.91 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001472/0.1062, allocations: 63.45 kB / 465.5 MB, free: 15.86 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005248/0.1068, allocations: 199.8 kB / 465.7 MB, free: 15.66 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002642/0.1094, allocations: 2.768 MB / 468.4 MB, free: 12.89 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01155/0.1209, allocations: 3.895 MB / 472.3 MB, free: 8.969 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2134/0.3344, allocations: 53.48 MB / 0.5135 GB, free: 70.22 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006497/0.3409, allocations: 2.594 MB / 0.516 GB, free: 70.17 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001157/0.342, allocations: 0.7991 MB / 0.5168 GB, free: 70.14 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01116/0.3532, allocations: 6.697 MB / 0.5233 GB, free: 69.54 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.713e-05/0.3532, allocations: 63.61 kB / 0.5234 GB, free: 69.49 MB / 410.7 MB Notification: Performance of pre-optimization done (n=256): time 6.682e-06/0.3532, allocations: 0 / 0.5234 GB, free: 69.49 MB / 410.7 MB Notification: Performance of matching and sorting (n=272): time 0.02474/0.378, allocations: 10.71 MB / 0.5339 GB, free: 64.24 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.397e-05/0.378, allocations: 99.11 kB / 0.5339 GB, free: 64.12 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004058/0.3821, allocations: 4.256 MB / 0.5381 GB, free: 60.53 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003406/0.3824, allocations: 61.7 kB / 0.5382 GB, free: 60.46 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001741/0.3842, allocations: 4.509 MB / 0.5426 GB, free: 56.24 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001007/0.3852, allocations: 1.101 MB / 0.5436 GB, free: 55.13 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00138/0.3866, allocations: 1.631 MB / 0.5452 GB, free: 53.49 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.296e-05/0.3866, allocations: 476.8 kB / 0.5457 GB, free: 53.02 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001339/0.388, allocations: 0.7776 MB / 0.5464 GB, free: 52.25 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00283/0.3908, allocations: 7.07 MB / 0.5534 GB, free: 42.41 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005816/0.3966, allocations: 8.545 MB / 0.5617 GB, free: 31.45 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001194/0.3967, allocations: 44 kB / 0.5617 GB, free: 31.4 MB / 410.7 MB Notification: Performance of matching and sorting (n=994) (initialization): time 0.008709/0.4054, allocations: 6.027 MB / 0.5676 GB, free: 25.36 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.694e-05/0.4055, allocations: 68 kB / 0.5677 GB, free: 25.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001341/0.4056, allocations: 148 kB / 0.5678 GB, free: 25.15 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008965/0.4065, allocations: 426.4 kB / 0.5682 GB, free: 24.73 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002959/0.4095, allocations: 1.645 MB / 0.5698 GB, free: 23.08 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002598/0.4121, allocations: 4.549 MB / 0.5743 GB, free: 18.31 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004118/0.4162, allocations: 287.9 kB / 0.5746 GB, free: 18.03 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005986/0.4168, allocations: 384 kB / 0.5749 GB, free: 17.65 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.001799/0.4186, allocations: 0.7479 MB / 0.5757 GB, free: 16.89 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007736/0.4194, allocations: 0.4933 MB / 0.5761 GB, free: 16.39 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002468/0.4218, allocations: 1.902 MB / 0.578 GB, free: 14.44 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.492e-05/0.4219, allocations: 28 kB / 0.578 GB, free: 14.41 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/0.4219, allocations: 4 kB / 0.578 GB, free: 14.41 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.416e-05/0.4219, allocations: 11.95 kB / 0.578 GB, free: 14.39 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01048/0.4324, allocations: 7.282 MB / 0.5852 GB, free: 6.852 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.013e-05/0.4324, allocations: 11.39 kB / 0.5852 GB, free: 6.844 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009395/0.4333, allocations: 367.4 kB / 0.5855 GB, free: 6.484 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005792/0.4339, allocations: 214.6 kB / 0.5857 GB, free: 6.27 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001229/0.434, allocations: 60 kB / 0.5858 GB, free: 6.211 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001988/0.436, allocations: 4.196 MB / 0.5899 GB, free: 1.797 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.743e-06/0.436, allocations: 23.86 kB / 0.5899 GB, free: 1.773 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00412/0.4401, allocations: 2.831 MB / 0.5927 GB, free: 14.67 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001052/0.4412, allocations: 441 kB / 0.5931 GB, free: 14.23 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004431/0.4416, allocations: 51.98 kB / 0.5931 GB, free: 14.18 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009767/0.4426, allocations: 55.98 kB / 0.5932 GB, free: 14.13 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002387/0.4428, allocations: 173.5 kB / 0.5933 GB, free: 13.96 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001122/0.443, allocations: 75.92 kB / 0.5934 GB, free: 13.88 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002158/0.4451, allocations: 1.747 MB / 0.5951 GB, free: 12.13 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4451, allocations: 4 kB / 0.5951 GB, free: 12.13 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005296/0.4504, allocations: 1.488 MB / 0.5966 GB, free: 10.64 MB / 426.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.0004679/0.4509, allocations: 218.6 kB / 0.5968 GB, free: 10.42 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00549/0.4564, allocations: 3.658 MB / 0.6004 GB, free: 6.754 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.105e-05/0.4564, allocations: 3.984 kB / 0.6004 GB, free: 6.75 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001272/0.4576, allocations: 1.143 MB / 0.6015 GB, free: 5.57 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002871/0.4605, allocations: 0.5891 MB / 0.6021 GB, free: 4.996 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01697/0.4775, allocations: 11.22 MB / 0.613 GB, free: 9.504 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002383/0.4799, allocations: 1.773 MB / 0.6147 GB, free: 7.695 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002042/0.4819, allocations: 0.6284 MB / 0.6154 GB, free: 7.062 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001263/0.4832, allocations: 0.7792 MB / 0.6161 GB, free: 6.281 MB / 442.7 MB Notification: Performance of SimCode: time 2.615e-06/0.4832, allocations: 3.938 kB / 0.6161 GB, free: 6.277 MB / 442.7 MB Notification: Performance of Templates: time 0.07052/0.5537, allocations: 44.97 MB / 0.66 GB, free: 9.922 MB / 490.7 MB " [Timeout remaining time 659] 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: 5.087144132703543]