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.0007546/0.0007546, allocations: 77.97 kB / 21.42 MB, free: 3.074 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.0008493/0.0008493, allocations: 167.5 kB / 24.82 MB, free: 9.266 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 1.037/1.037, allocations: 177.1 MB / 205.3 MB, free: 5.488 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.2861/0.2861, allocations: 32.81 MB / 294.6 MB, free: 1.242 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 2.305e-06/2.305e-06, allocations: 0 / 376.5 MB, free: 4.395 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.155e-05/2.386e-05, allocations: 2.312 kB / 376.5 MB, free: 4.391 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.01367/0.0137, allocations: 17.01 MB / 393.5 MB, free: 3.301 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.009713/0.02341, allocations: 5.201 MB / 398.7 MB, free: 14.09 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002168/0.02558, allocations: 127.4 kB / 398.8 MB, free: 13.96 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003531/0.02911, allocations: 3.223 MB / 402.1 MB, free: 10.73 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004201/0.03331, allocations: 2.714 MB / 404.8 MB, free: 8 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001489/0.0348, allocations: 1.162 MB / 405.9 MB, free: 6.836 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.006855/0.04165, allocations: 9.022 MB / 414.9 MB, free: 13.8 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004627/0.04628, allocations: 4.744 MB / 419.7 MB, free: 9.004 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004578/0.05086, allocations: 4.183 MB / 423.9 MB, free: 4.812 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003184/0.05404, allocations: 3.831 MB / 427.7 MB, free: 0.9727 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007797/0.05482, allocations: 464 kB / 428.2 MB, free: 0.5195 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001649/0.05647, allocations: 1.283 MB / 429.4 MB, free: 15.23 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001849/0.05832, allocations: 3.027 MB / 432.5 MB, free: 12.2 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001707/0.06003, allocations: 1.869 MB / 434.3 MB, free: 10.32 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005755/0.06578, allocations: 6.683 MB / 441 MB, free: 3.617 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.06579, allocations: 0 / 441 MB, free: 3.617 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.784e-06/0.06579, allocations: 0 / 441 MB, free: 3.617 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.731e-05/0.06589, allocations: 0 / 441 MB, free: 3.617 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.2051/0.271, allocations: 7.419 MB / 448.4 MB, free: 96.64 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.269e-05/0.2711, allocations: 8 kB / 448.4 MB, free: 96.64 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006881/0.278, allocations: 2.785 MB / 451.2 MB, free: 96.19 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004418/0.2824, allocations: 3.088 MB / 454.3 MB, free: 95.34 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001737/0.2825, allocations: 317.3 kB / 454.6 MB, free: 95.24 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005717/0.2831, allocations: 437.6 kB / 455.1 MB, free: 95.15 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008485/0.2916, allocations: 7.532 MB / 462.6 MB, free: 91.58 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001937/0.2918, allocations: 54.91 kB / 462.6 MB, free: 91.57 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004031/0.2922, allocations: 205.3 kB / 462.8 MB, free: 91.48 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00235/0.2946, allocations: 2.767 MB / 465.6 MB, free: 90.95 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006924/0.3015, allocations: 3.89 MB / 469.5 MB, free: 90.49 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04232/0.3438, allocations: 53.5 MB / 0.5107 GB, free: 48.14 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006004/0.3498, allocations: 2.599 MB / 0.5133 GB, free: 46.17 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009664/0.3508, allocations: 0.7966 MB / 0.5141 GB, free: 45.47 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009887/0.3607, allocations: 6.71 MB / 0.5206 GB, free: 39.64 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.779e-05/0.3607, allocations: 70.06 kB / 0.5207 GB, free: 39.56 MB / 410.7 MB Notification: Performance of pre-optimization done (n=256): time 3.336e-06/0.3607, allocations: 0 / 0.5207 GB, free: 39.56 MB / 410.7 MB Notification: Performance of matching and sorting (n=272): time 0.02032/0.381, allocations: 10.7 MB / 0.5311 GB, free: 28.79 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.072e-05/0.381, allocations: 103.1 kB / 0.5312 GB, free: 28.67 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002925/0.384, allocations: 4.254 MB / 0.5354 GB, free: 24.37 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.919e-05/0.3841, allocations: 65.69 kB / 0.5354 GB, free: 24.3 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001377/0.3854, allocations: 4.509 MB / 0.5398 GB, free: 19.75 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005087/0.3859, allocations: 1.101 MB / 0.5409 GB, free: 18.64 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001136/0.3871, allocations: 1.623 MB / 0.5425 GB, free: 17.01 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.42e-05/0.3871, allocations: 480.8 kB / 0.543 GB, free: 16.54 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00106/0.3882, allocations: 0.772 MB / 0.5437 GB, free: 15.76 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002743/0.3909, allocations: 7.079 MB / 0.5506 GB, free: 5.855 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005863/0.3968, allocations: 8.541 MB / 0.559 GB, free: 10.51 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.824e-05/0.3968, allocations: 40 kB / 0.559 GB, free: 10.47 MB / 426.7 MB Notification: Performance of matching and sorting (n=994) (initialization): time 0.006878/0.4037, allocations: 6.039 MB / 0.5649 GB, free: 4.422 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.619e-05/0.4038, allocations: 68 kB / 0.565 GB, free: 4.355 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001159/0.4039, allocations: 148 kB / 0.5651 GB, free: 4.211 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007819/0.4047, allocations: 415.6 kB / 0.5655 GB, free: 3.797 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002819/0.4075, allocations: 1.653 MB / 0.5671 GB, free: 2.137 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002731/0.4102, allocations: 4.569 MB / 0.5716 GB, free: 13.34 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002536/0.4128, allocations: 280 kB / 0.5718 GB, free: 13.06 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003564/0.4131, allocations: 372 kB / 0.5722 GB, free: 12.7 MB / 442.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.001556/0.4147, allocations: 0.7596 MB / 0.5729 GB, free: 11.92 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005193/0.4152, allocations: 0.4893 MB / 0.5734 GB, free: 11.43 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002501/0.4177, allocations: 1.894 MB / 0.5753 GB, free: 9.48 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-05/0.4177, allocations: 31.98 kB / 0.5753 GB, free: 9.449 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.942e-06/0.4177, allocations: 3.984 kB / 0.5753 GB, free: 9.445 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.384e-05/0.4177, allocations: 7.969 kB / 0.5753 GB, free: 9.438 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01089/0.4286, allocations: 7.294 MB / 0.5824 GB, free: 1.879 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.528e-05/0.4286, allocations: 12.94 kB / 0.5824 GB, free: 1.867 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008922/0.4295, allocations: 367.5 kB / 0.5828 GB, free: 1.508 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005298/0.4301, allocations: 211.1 kB / 0.583 GB, free: 1.293 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001257/0.4302, allocations: 55.98 kB / 0.5831 GB, free: 1.238 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002582/0.4328, allocations: 4.217 MB / 0.5872 GB, free: 12.8 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.117e-06/0.4328, allocations: 19.97 kB / 0.5872 GB, free: 12.78 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003772/0.4365, allocations: 2.831 MB / 0.59 GB, free: 9.676 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000626/0.4372, allocations: 437 kB / 0.5904 GB, free: 9.246 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00031/0.4375, allocations: 51.98 kB / 0.5904 GB, free: 9.195 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000836/0.4383, allocations: 55.98 kB / 0.5905 GB, free: 9.141 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000217/0.4385, allocations: 177.5 kB / 0.5906 GB, free: 8.965 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001038/0.4386, allocations: 68 kB / 0.5907 GB, free: 8.898 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001649/0.4403, allocations: 1.747 MB / 0.5924 GB, free: 7.148 MB / 458.7 MB Notification: Performance of sort global known variables: time 7e-08/0.4403, allocations: 0 / 0.5924 GB, free: 7.148 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00394/0.4442, allocations: 1.492 MB / 0.5939 GB, free: 5.656 MB / 458.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.0003798/0.4446, allocations: 222.5 kB / 0.5941 GB, free: 5.43 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004414/0.449, allocations: 3.662 MB / 0.5977 GB, free: 1.754 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.262e-06/0.449, allocations: 3.938 kB / 0.5977 GB, free: 1.75 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009998/0.45, allocations: 1.143 MB / 0.5988 GB, free: 0.5664 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.1488/0.5988, allocations: 0.5925 MB / 0.5994 GB, free: 127.4 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01541/0.6142, allocations: 11.19 MB / 0.6103 GB, free: 122.8 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001575/0.6158, allocations: 1.775 MB / 0.612 GB, free: 122.6 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002078/0.6179, allocations: 0.6252 MB / 0.6126 GB, free: 122.5 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001371/0.6192, allocations: 0.7877 MB / 0.6134 GB, free: 122.4 MB / 458.7 MB Notification: Performance of SimCode: time 1.363e-06/0.6192, allocations: 0 / 0.6134 GB, free: 122.4 MB / 458.7 MB Notification: Performance of Templates: time 0.06675/0.686, allocations: 43.95 MB / 0.6563 GB, free: 107.6 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","",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.792378476355225]