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.001445/0.001445, allocations: 78.66 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.001182/0.001182, allocations: 174.1 kB / 24.82 MB, free: 8.934 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.128/1.128, allocations: 177.1 MB / 205.3 MB, free: 5.516 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.3283/0.3283, allocations: 34.26 MB / 296.1 MB, free: 0.7188 MB / 266.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.753e-06/1.753e-06, allocations: 0 / 378.5 MB, free: 2.398 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.06e-05/2.235e-05, allocations: 2.312 kB / 378.5 MB, free: 2.395 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.01439/0.01441, allocations: 17 MB / 395.5 MB, free: 1.309 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.01255/0.02696, allocations: 5.194 MB / 400.7 MB, free: 12.1 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003453/0.03042, allocations: 131.4 kB / 400.8 MB, free: 11.97 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004273/0.03469, allocations: 3.223 MB / 404.1 MB, free: 8.734 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00768/0.04237, allocations: 2.718 MB / 406.8 MB, free: 6.004 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002383/0.04475, allocations: 1.146 MB / 407.9 MB, free: 4.855 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.009945/0.0547, allocations: 9.033 MB / 417 MB, free: 11.81 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008043/0.06274, allocations: 4.748 MB / 421.7 MB, free: 7.012 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00937/0.07211, allocations: 4.191 MB / 425.9 MB, free: 2.812 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005633/0.07775, allocations: 3.835 MB / 429.7 MB, free: 14.97 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001499/0.07925, allocations: 464 kB / 430.2 MB, free: 14.52 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002598/0.08184, allocations: 1.28 MB / 431.5 MB, free: 13.23 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002794/0.08464, allocations: 3.023 MB / 434.5 MB, free: 10.2 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003462/0.0881, allocations: 1.869 MB / 436.4 MB, free: 8.328 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007774/0.09587, allocations: 6.679 MB / 443 MB, free: 1.625 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.09588, allocations: 4 kB / 443 MB, free: 1.621 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.09588, allocations: 0 / 443 MB, free: 1.621 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002911/0.09617, allocations: 0 / 443 MB, free: 1.621 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.244/0.3401, allocations: 7.421 MB / 450.5 MB, free: 95.95 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.231e-05/0.3402, allocations: 11.03 kB / 450.5 MB, free: 95.95 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006698/0.3469, allocations: 2.776 MB / 453.2 MB, free: 95.5 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004009/0.3509, allocations: 3.093 MB / 456.3 MB, free: 94.32 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001576/0.3511, allocations: 324.3 kB / 456.7 MB, free: 94.22 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005243/0.3516, allocations: 428.8 kB / 457.1 MB, free: 94.12 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008538/0.3601, allocations: 7.534 MB / 464.6 MB, free: 90.56 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001385/0.3603, allocations: 56.41 kB / 464.7 MB, free: 90.55 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003514/0.3606, allocations: 203 kB / 464.9 MB, free: 90.46 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002273/0.3629, allocations: 2.769 MB / 467.6 MB, free: 89.93 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007454/0.3703, allocations: 3.891 MB / 471.5 MB, free: 89.46 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04677/0.4171, allocations: 53.5 MB / 0.5127 GB, free: 45.99 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006883/0.424, allocations: 2.589 MB / 0.5152 GB, free: 44.03 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001198/0.4252, allocations: 0.7987 MB / 0.516 GB, free: 43.33 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01141/0.4366, allocations: 6.718 MB / 0.5226 GB, free: 37.14 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.553e-05/0.4366, allocations: 55.39 kB / 0.5226 GB, free: 37.07 MB / 410.7 MB Notification: Performance of pre-optimization done (n=256): time 4.228e-06/0.4366, allocations: 0 / 0.5226 GB, free: 37.07 MB / 410.7 MB Notification: Performance of matching and sorting (n=272): time 0.0291/0.4657, allocations: 10.71 MB / 0.5331 GB, free: 26.25 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.268e-05/0.4658, allocations: 103.1 kB / 0.5332 GB, free: 26.12 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00451/0.4703, allocations: 4.25 MB / 0.5373 GB, free: 21.83 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001175/0.4704, allocations: 61.7 kB / 0.5374 GB, free: 21.77 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002131/0.4725, allocations: 4.509 MB / 0.5418 GB, free: 17.21 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008091/0.4733, allocations: 1.101 MB / 0.5429 GB, free: 16.11 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001631/0.475, allocations: 1.627 MB / 0.5445 GB, free: 14.47 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.615e-05/0.475, allocations: 476.8 kB / 0.5449 GB, free: 14 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001457/0.4765, allocations: 0.772 MB / 0.5457 GB, free: 13.23 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003836/0.4803, allocations: 7.074 MB / 0.5526 GB, free: 3.324 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008435/0.4888, allocations: 8.548 MB / 0.5609 GB, free: 7.973 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002368/0.489, allocations: 40 kB / 0.561 GB, free: 7.934 MB / 426.7 MB Notification: Performance of matching and sorting (n=994) (initialization): time 0.01671/0.5057, allocations: 6.039 MB / 0.5669 GB, free: 1.883 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001212/0.5058, allocations: 68 kB / 0.5669 GB, free: 1.816 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002458/0.5061, allocations: 148 kB / 0.5671 GB, free: 1.672 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001253/0.5073, allocations: 415 kB / 0.5675 GB, free: 1.258 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004892/0.5122, allocations: 1.645 MB / 0.5691 GB, free: 15.61 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005047/0.5173, allocations: 4.563 MB / 0.5735 GB, free: 10.82 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008643/0.5259, allocations: 276 kB / 0.5738 GB, free: 10.55 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002136/0.528, allocations: 376 kB / 0.5742 GB, free: 10.18 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.00464/0.5327, allocations: 0.7674 MB / 0.5749 GB, free: 9.395 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002028/0.5347, allocations: 0.4933 MB / 0.5754 GB, free: 8.898 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004112/0.5388, allocations: 1.894 MB / 0.5772 GB, free: 6.949 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.42e-05/0.5389, allocations: 31.98 kB / 0.5773 GB, free: 6.918 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.137e-06/0.5389, allocations: 0 / 0.5773 GB, free: 6.918 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.28e-05/0.5389, allocations: 11.95 kB / 0.5773 GB, free: 6.906 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01827/0.5572, allocations: 7.283 MB / 0.5844 GB, free: 15.36 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-05/0.5572, allocations: 12 kB / 0.5844 GB, free: 15.35 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009877/0.5582, allocations: 375.4 kB / 0.5848 GB, free: 14.98 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000655/0.5588, allocations: 199.5 kB / 0.585 GB, free: 14.78 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001657/0.559, allocations: 59.97 kB / 0.585 GB, free: 14.72 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003759/0.5628, allocations: 4.224 MB / 0.5891 GB, free: 10.27 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.757e-06/0.5628, allocations: 15.94 kB / 0.5892 GB, free: 10.25 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004835/0.5676, allocations: 2.831 MB / 0.5919 GB, free: 7.152 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001174/0.5688, allocations: 437 kB / 0.5923 GB, free: 6.723 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003781/0.5691, allocations: 51.98 kB / 0.5924 GB, free: 6.672 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009235/0.5701, allocations: 55.98 kB / 0.5924 GB, free: 6.617 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002508/0.5703, allocations: 177.5 kB / 0.5926 GB, free: 6.441 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001123/0.5704, allocations: 67.98 kB / 0.5927 GB, free: 6.375 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002173/0.5726, allocations: 1.747 MB / 0.5944 GB, free: 4.625 MB / 458.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.5726, allocations: 0 / 0.5944 GB, free: 4.625 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004902/0.5775, allocations: 1.496 MB / 0.5958 GB, free: 3.129 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.000428/0.5779, allocations: 214.5 kB / 0.596 GB, free: 2.91 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.1731/0.751, allocations: 3.662 MB / 0.5996 GB, free: 123.3 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.847e-05/0.751, allocations: 6.344 kB / 0.5996 GB, free: 123.3 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001842/0.7529, allocations: 1.137 MB / 0.6007 GB, free: 122.9 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003812/0.7567, allocations: 0.5915 MB / 0.6013 GB, free: 122.9 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02011/0.7768, allocations: 11.2 MB / 0.6122 GB, free: 118.2 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002315/0.7791, allocations: 1.772 MB / 0.614 GB, free: 118 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002574/0.7817, allocations: 0.6236 MB / 0.6146 GB, free: 117.9 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001477/0.7832, allocations: 0.7811 MB / 0.6153 GB, free: 117.8 MB / 458.7 MB Notification: Performance of SimCode: time 1.973e-06/0.7832, allocations: 0 / 0.6153 GB, free: 117.8 MB / 458.7 MB Notification: Performance of Templates: time 0.07319/0.8563, allocations: 43.96 MB / 0.6583 GB, free: 101.2 MB / 458.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.478200514335185]