Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.001488/0.001488, allocations: 81.95 kB / 21.44 MB, free: 3.059 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.001944/0.001944, allocations: 162.5 kB / 24.84 MB, free: 9.297 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.004/1.004, allocations: 158.6 MB / 186.7 MB, free: 2.777 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1386/0.1386, allocations: 32.38 MB / 271.5 MB, free: 14.53 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.273e-06/1.273e-06, allocations: 0 / 348.9 MB, free: 9.168 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.218e-05/2.345e-05, allocations: 2.312 kB / 348.9 MB, free: 9.164 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.01795/0.01797, allocations: 17.44 MB / 366.4 MB, free: 7.652 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02038/0.03836, allocations: 5.238 MB / 371.6 MB, free: 2.395 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004134/0.04249, allocations: 123.4 kB / 371.7 MB, free: 2.273 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005395/0.04788, allocations: 3.254 MB / 375 MB, free: 15.01 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007191/0.05508, allocations: 2.807 MB / 377.8 MB, free: 12.19 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002175/0.05725, allocations: 1.154 MB / 378.9 MB, free: 11.03 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.009232/0.06648, allocations: 8.646 MB / 387.6 MB, free: 2.371 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006165/0.07265, allocations: 4.846 MB / 392.4 MB, free: 13.46 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007484/0.08013, allocations: 4.077 MB / 396.5 MB, free: 9.379 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005514/0.08565, allocations: 3.889 MB / 400.4 MB, free: 5.48 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001489/0.08713, allocations: 471.9 kB / 400.9 MB, free: 5.02 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0027/0.08983, allocations: 1.287 MB / 402.1 MB, free: 3.73 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003394/0.09323, allocations: 3.109 MB / 405.2 MB, free: 0.6133 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004243/0.09747, allocations: 1.92 MB / 407.2 MB, free: 14.69 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009725/0.1072, allocations: 6.842 MB / 414 MB, free: 7.82 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.1072, allocations: 4 kB / 414 MB, free: 7.816 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1072, allocations: 0 / 414 MB, free: 7.816 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002944/0.1075, allocations: 0 / 414 MB, free: 7.816 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2212 * Number of variables: 2212 Notification: Performance of Generate backend data structure: time 0.01327/0.1208, allocations: 7.541 MB / 421.6 MB, free: 192 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.668e-05/0.1208, allocations: 8.031 kB / 421.6 MB, free: 184 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0101/0.1309, allocations: 2.814 MB / 424.4 MB, free: 13.36 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005958/0.1369, allocations: 3.189 MB / 427.6 MB, free: 10.11 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000243/0.1371, allocations: 328.5 kB / 427.9 MB, free: 9.789 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008192/0.1379, allocations: 444 kB / 428.3 MB, free: 9.355 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0147/0.1526, allocations: 7.633 MB / 436 MB, free: 0.7227 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001809/0.1528, allocations: 67.45 kB / 436 MB, free: 0.6562 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005356/0.1534, allocations: 199.8 kB / 436.2 MB, free: 472 kB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00383/0.1572, allocations: 2.838 MB / 439.1 MB, free: 13.62 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01275/0.1699, allocations: 3.929 MB / 443 MB, free: 9.668 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2343/0.4042, allocations: 54.35 MB / 497.3 MB, free: 55.48 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007479/0.4117, allocations: 2.585 MB / 499.9 MB, free: 55.25 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001743/0.4134, allocations: 0.7951 MB / 0.489 GB, free: 55.14 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01162/0.425, allocations: 6.732 MB / 0.4956 GB, free: 50.62 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.181e-05/0.4251, allocations: 59.39 kB / 0.4956 GB, free: 50.55 MB / 378.7 MB Notification: Performance of pre-optimization done (n=256): time 5.681e-06/0.4251, allocations: 0 / 0.4956 GB, free: 50.55 MB / 378.7 MB Notification: Performance of matching and sorting (n=272): time 0.02458/0.4497, allocations: 10.79 MB / 0.5061 GB, free: 40.05 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.353e-05/0.4497, allocations: 107 kB / 0.5062 GB, free: 39.93 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004467/0.4542, allocations: 4.359 MB / 0.5105 GB, free: 35.87 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004558/0.4546, allocations: 61.7 kB / 0.5106 GB, free: 35.8 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001906/0.4565, allocations: 4.582 MB / 0.515 GB, free: 31.5 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001066/0.4576, allocations: 1.113 MB / 0.5161 GB, free: 30.38 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001239/0.4588, allocations: 1.635 MB / 0.5177 GB, free: 28.74 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.33e-05/0.4589, allocations: 480.8 kB / 0.5182 GB, free: 28.27 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00121/0.4601, allocations: 0.7761 MB / 0.5189 GB, free: 27.49 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003151/0.4633, allocations: 7.159 MB / 0.5259 GB, free: 17.52 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006364/0.4696, allocations: 8.643 MB / 0.5344 GB, free: 6.309 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001673/0.4698, allocations: 47.31 kB / 0.5344 GB, free: 6.266 MB / 378.7 MB Notification: Performance of matching and sorting (n=1003) (initialization): time 0.0104/0.4802, allocations: 6.093 MB / 0.5404 GB, free: 160 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.89e-05/0.4803, allocations: 68 kB / 0.5404 GB, free: 92 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001774/0.4804, allocations: 156.6 kB / 0.5406 GB, free: 15.94 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00106/0.4815, allocations: 423 kB / 0.541 GB, free: 15.52 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003979/0.4855, allocations: 1.665 MB / 0.5426 GB, free: 13.85 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005285/0.4908, allocations: 4.558 MB / 0.5471 GB, free: 9.07 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008994/0.4998, allocations: 284 kB / 0.5473 GB, free: 8.793 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001875/0.5016, allocations: 387.1 kB / 0.5477 GB, free: 8.418 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 681 * Number of states: 0 () * Number of discrete variables: 48 (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 (944): * Single equations (assignments): 936 * 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.002915/0.5045, allocations: 0.7635 MB / 0.5484 GB, free: 7.637 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00152/0.5061, allocations: 0.4972 MB / 0.5489 GB, free: 7.137 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003739/0.5098, allocations: 1.902 MB / 0.5508 GB, free: 5.18 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.639e-05/0.5098, allocations: 32 kB / 0.5508 GB, free: 5.148 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.5098, allocations: 8 kB / 0.5508 GB, free: 5.141 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.825e-05/0.5099, allocations: 7.969 kB / 0.5508 GB, free: 5.133 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01303/0.5229, allocations: 7.376 MB / 0.558 GB, free: 13.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-05/0.5229, allocations: 12.22 kB / 0.558 GB, free: 13.49 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001269/0.5242, allocations: 371.4 kB / 0.5584 GB, free: 13.12 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006747/0.5249, allocations: 211 kB / 0.5586 GB, free: 12.91 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001425/0.525, allocations: 55.98 kB / 0.5587 GB, free: 12.86 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003101/0.5281, allocations: 4.209 MB / 0.5628 GB, free: 8.426 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.487e-05/0.5281, allocations: 15.94 kB / 0.5628 GB, free: 8.41 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004581/0.5327, allocations: 2.833 MB / 0.5655 GB, free: 5.305 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001397/0.5341, allocations: 0.6492 MB / 0.5662 GB, free: 4.652 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004559/0.5345, allocations: 56 kB / 0.5662 GB, free: 4.598 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001304/0.5358, allocations: 59.97 kB / 0.5663 GB, free: 4.539 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003237/0.5362, allocations: 177.5 kB / 0.5665 GB, free: 4.363 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001587/0.5363, allocations: 72.12 kB / 0.5665 GB, free: 4.293 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002235/0.5386, allocations: 1.803 MB / 0.5683 GB, free: 2.488 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.5386, allocations: 0 / 0.5683 GB, free: 2.488 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005575/0.5441, allocations: 1.535 MB / 0.5698 GB, free: 0.9531 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.0004451/0.5446, allocations: 238.5 kB / 0.57 GB, free: 0.7109 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005505/0.5501, allocations: 3.689 MB / 0.5736 GB, free: 13.02 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.682e-06/0.5501, allocations: 4 kB / 0.5736 GB, free: 13.01 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001343/0.5514, allocations: 1.139 MB / 0.5747 GB, free: 11.83 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002377/0.5538, allocations: 0.5842 MB / 0.5753 GB, free: 11.25 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01666/0.5705, allocations: 11.43 MB / 0.5865 GB, free: 15.52 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001551/0.572, allocations: 1.811 MB / 0.5882 GB, free: 13.68 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001601/0.5736, allocations: 0.6366 MB / 0.5889 GB, free: 13.04 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001252/0.5749, allocations: 0.7831 MB / 0.5896 GB, free: 12.25 MB / 442.7 MB Notification: Performance of SimCode: time 1.573e-06/0.5749, allocations: 0 / 0.5896 GB, free: 12.25 MB / 442.7 MB Notification: Performance of Templates: time 0.2203/0.7952, allocations: 46 MB / 0.6345 GB, free: 125.4 MB / 442.7 MB " [Timeout remaining time 659] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.230561750009656]