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.001306/0.001306, allocations: 107 kB / 21.18 MB, free: 0.6484 MB / 14.72 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.001408/0.001408, allocations: 215.4 kB / 24.48 MB, free: 3.941 MB / 14.72 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.468/1.468, allocations: 230.6 MB / 258.2 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] 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.2362/0.2362, allocations: 46.97 MB / 361.6 MB, free: 4.113 MB / 286.1 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 0.002036/0.002036, allocations: 71.91 kB / 0.4973 GB, free: 7.203 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3104/0.3124, allocations: 66.03 MB / 0.5618 GB, free: 4.164 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.02062/0.3331, allocations: 15.72 MB / 0.5772 GB, free: 4.375 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01163/0.3447, allocations: 5.09 MB / 0.5821 GB, free: 15.27 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002457/0.3472, allocations: 127.4 kB / 0.5823 GB, free: 15.14 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0064/0.3536, allocations: 2.986 MB / 0.5852 GB, free: 12.15 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006847/0.3604, allocations: 2.638 MB / 0.5878 GB, free: 9.5 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002558/0.363, allocations: 1.026 MB / 0.5888 GB, free: 8.473 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01092/0.3739, allocations: 7.679 MB / 0.5963 GB, free: 0.7812 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005441/0.3793, allocations: 3.599 MB / 0.5998 GB, free: 13.13 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00446/0.3838, allocations: 2.289 MB / 0.602 GB, free: 10.84 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00548/0.3893, allocations: 3.52 MB / 0.6054 GB, free: 7.305 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001275/0.3905, allocations: 452 kB / 0.6059 GB, free: 6.863 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00265/0.3932, allocations: 1.213 MB / 0.6071 GB, free: 5.648 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003039/0.3962, allocations: 2.867 MB / 0.6099 GB, free: 2.773 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003713/0.3999, allocations: 2.368 MB / 0.6122 GB, free: 400 kB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01245/0.4124, allocations: 10.05 MB / 0.622 GB, free: 6.305 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.273e-06/0.4124, allocations: 0 / 0.622 GB, free: 6.305 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.4124, allocations: 0 / 0.622 GB, free: 6.305 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0003034/0.4127, allocations: 4 kB / 0.622 GB, free: 6.301 MB / 462.1 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.01803/0.4307, allocations: 7.302 MB / 0.6291 GB, free: 14.93 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.382e-05/0.4308, allocations: 8.031 kB / 0.6291 GB, free: 14.92 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01631/0.4471, allocations: 3.877 MB / 0.6329 GB, free: 11.03 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01029/0.4574, allocations: 3.967 MB / 0.6368 GB, free: 7.012 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003348/0.4577, allocations: 312.4 kB / 0.6371 GB, free: 6.703 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001552/0.4593, allocations: 435.8 kB / 0.6375 GB, free: 6.277 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02831/0.4876, allocations: 15.66 MB / 0.6528 GB, free: 5.867 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001768/0.4877, allocations: 67.52 kB / 0.6529 GB, free: 5.801 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006484/0.4884, allocations: 195.8 kB / 0.653 GB, free: 5.609 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006683/0.4951, allocations: 3.376 MB / 0.6563 GB, free: 2.23 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03084/0.5259, allocations: 14.76 MB / 0.6708 GB, free: 3.445 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08513/0.6111, allocations: 51.24 MB / 0.7208 GB, free: 15.04 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01832/0.6294, allocations: 6.936 MB / 0.7276 GB, free: 8.094 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00666/0.636, allocations: 4.48 MB / 0.7319 GB, free: 3.609 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001522/0.6376, allocations: 0.6536 MB / 0.7326 GB, free: 2.953 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.178e-05/0.6376, allocations: 65.08 kB / 0.7326 GB, free: 2.879 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=367): time 6.993e-06/0.6376, allocations: 0 / 0.7326 GB, free: 2.879 MB / 0.5606 GB Notification: Performance of matching and sorting (n=419): time 0.3368/0.9744, allocations: 40.05 MB / 0.7717 GB, free: 132.5 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.999e-05/0.9745, allocations: 116 kB / 0.7719 GB, free: 132.3 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00423/0.9787, allocations: 4.163 MB / 0.7759 GB, free: 128.3 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0007936/0.9795, allocations: 81.7 kB / 0.776 GB, free: 128.2 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001399/0.9809, allocations: 3.965 MB / 0.7799 GB, free: 124.6 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001363/0.9822, allocations: 1.558 MB / 0.7814 GB, free: 123.1 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001875/0.9841, allocations: 1.58 MB / 0.7829 GB, free: 121.5 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.403e-05/0.9842, allocations: 301.1 kB / 0.7832 GB, free: 121.2 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004486/0.9886, allocations: 4.079 MB / 0.7872 GB, free: 117.1 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005902/0.9945, allocations: 7.866 MB / 0.7949 GB, free: 107.4 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01161/1.006, allocations: 12.89 MB / 0.8075 GB, free: 92.76 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.573e-05/1.006, allocations: 36 kB / 0.8075 GB, free: 92.72 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1039) (initialization): time 0.02329/1.03, allocations: 14.68 MB / 0.8219 GB, free: 78 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.643e-05/1.03, allocations: 60 kB / 0.8219 GB, free: 77.94 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001163/1.03, allocations: 132 kB / 0.822 GB, free: 77.81 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007626/1.037, allocations: 2.927 MB / 0.8249 GB, free: 74.87 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006208/1.044, allocations: 1.809 MB / 0.8267 GB, free: 73.06 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01715/1.061, allocations: 15.54 MB / 0.8418 GB, free: 57.31 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005734/1.066, allocations: 0.4993 MB / 0.8423 GB, free: 56.82 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00111/1.068, allocations: 427.9 kB / 0.8427 GB, free: 56.4 MB / 0.5606 GB 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.003848/1.071, allocations: 2.888 MB / 0.8456 GB, free: 53.5 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008061/1.072, allocations: 449 kB / 0.846 GB, free: 53.06 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01665/1.089, allocations: 10.89 MB / 0.8566 GB, free: 42.11 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.424e-05/1.089, allocations: 63.98 kB / 0.8567 GB, free: 42.05 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.053e-05/1.089, allocations: 11.94 kB / 0.8567 GB, free: 42.04 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.815e-05/1.089, allocations: 19.92 kB / 0.8567 GB, free: 42.02 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03346/1.122, allocations: 19.45 MB / 0.8757 GB, free: 22.43 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.642e-05/1.122, allocations: 15.94 kB / 0.8757 GB, free: 22.41 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003302/1.126, allocations: 0.6795 MB / 0.8764 GB, free: 21.73 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007359/1.133, allocations: 2.728 MB / 0.879 GB, free: 18.99 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006592/1.134, allocations: 75.98 kB / 0.8791 GB, free: 18.92 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01564/1.149, allocations: 14.17 MB / 0.893 GB, free: 4.535 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.027e-05/1.149, allocations: 15.94 kB / 0.893 GB, free: 4.52 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02669/1.176, allocations: 15.51 MB / 0.9081 GB, free: 4.746 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001855/1.178, allocations: 416.9 kB / 0.9085 GB, free: 4.336 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001013/1.179, allocations: 71.98 kB / 0.9086 GB, free: 4.266 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00278/1.182, allocations: 319 kB / 0.9089 GB, free: 3.957 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000801/1.183, allocations: 277.8 kB / 0.9091 GB, free: 3.684 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003343/1.183, allocations: 112 kB / 0.9093 GB, free: 3.574 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.00372/1.187, allocations: 2.425 MB / 0.9116 GB, free: 1.137 MB / 0.5762 GB Notification: Performance of sort global known variables: time 8.1e-08/1.187, allocations: 0 / 0.9116 GB, free: 1.137 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.006551/1.193, allocations: 1.656 MB / 0.9132 GB, free: 15.48 MB / 0.5919 GB 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.0008717/1.194, allocations: 234.4 kB / 0.9135 GB, free: 15.25 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01705/1.211, allocations: 9.67 MB / 0.9229 GB, free: 5.566 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.108e-05/1.211, allocations: 4 kB / 0.9229 GB, free: 5.562 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.006881/1.218, allocations: 4.062 MB / 0.9269 GB, free: 1.469 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003767/1.222, allocations: 0.6019 MB / 0.9275 GB, free: 0.8789 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02822/1.25, allocations: 16.01 MB / 0.9431 GB, free: 0.6719 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006597/1.257, allocations: 4.036 MB / 0.947 GB, free: 12.59 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.006559/1.263, allocations: 2.686 MB / 0.9497 GB, free: 9.895 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001575/1.265, allocations: 331.3 kB / 0.95 GB, free: 9.57 MB / 0.6231 GB Notification: Performance of SimCode: time 1.282e-06/1.265, allocations: 0 / 0.95 GB, free: 9.57 MB / 0.6231 GB Notification: Performance of Templates: time 0.3651/1.63, allocations: 73.63 MB / 1.022 GB, free: 185.7 MB / 0.6387 GB " [Timeout remaining time 658] 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=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Revolute2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Joints/Revolute2/Revolute2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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.212519934997545]