Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001957/0.001957, allocations: 99.53 kB / 20.97 MB, free: 3.449 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002003/0.002003, allocations: 160.8 kB / 24.27 MB, free: 152 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.604/1.604, allocations: 177 MB / 204.5 MB, free: 5.633 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4423/0.4423, allocations: 34.26 MB / 295.2 MB, free: 0.6406 MB / 266.7 MB " [Timeout remaining time 179] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.MultiBody.Joints.Revolute2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.432e-06/1.432e-06, allocations: 0 / 377.2 MB, free: 2.895 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.868e-05/3.012e-05, allocations: 4 kB / 377.2 MB, free: 2.891 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.02462/0.02465, allocations: 17.36 MB / 394.6 MB, free: 1.449 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.01335/0.038, allocations: 5.209 MB / 399.8 MB, free: 12.22 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003824/0.04182, allocations: 131.4 kB / 399.9 MB, free: 12.09 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008146/0.04997, allocations: 3.251 MB / 403.2 MB, free: 8.832 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009149/0.05912, allocations: 2.714 MB / 405.9 MB, free: 6.105 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003223/0.06234, allocations: 1.142 MB / 407 MB, free: 4.961 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.01553/0.07787, allocations: 9.053 MB / 416.1 MB, free: 11.9 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009009/0.08688, allocations: 4.74 MB / 420.8 MB, free: 7.109 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008908/0.09579, allocations: 3.602 MB / 424.4 MB, free: 3.5 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007515/0.1033, allocations: 3.917 MB / 428.3 MB, free: 15.57 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001783/0.1051, allocations: 471.9 kB / 428.8 MB, free: 15.11 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003629/0.1087, allocations: 1.284 MB / 430.1 MB, free: 13.83 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004635/0.1134, allocations: 3.035 MB / 433.1 MB, free: 10.79 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004472/0.1178, allocations: 1.877 MB / 435 MB, free: 8.902 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.2131/0.3309, allocations: 10.15 MB / 445.2 MB, free: 65.38 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.165e-06/0.3309, allocations: 6.906 kB / 445.2 MB, free: 65.38 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3309, allocations: 0 / 445.2 MB, free: 65.38 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004463/0.3313, allocations: 1.625 kB / 445.2 MB, free: 65.38 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.02041/0.3517, allocations: 8.54 MB / 453.7 MB, free: 62.61 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/0.3518, allocations: 8.594 kB / 453.7 MB, free: 62.61 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01722/0.369, allocations: 4.647 MB / 458.4 MB, free: 62.16 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01004/0.379, allocations: 3.56 MB / 461.9 MB, free: 61.45 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002629/0.3793, allocations: 320.7 kB / 462.2 MB, free: 61.43 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001762/0.3811, allocations: 427.2 kB / 462.6 MB, free: 61.42 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02011/0.4012, allocations: 9.212 MB / 471.9 MB, free: 58.1 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001839/0.4014, allocations: 55.44 kB / 471.9 MB, free: 58.09 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000687/0.402, allocations: 203.8 kB / 472.1 MB, free: 57.99 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006239/0.4083, allocations: 3.375 MB / 475.5 MB, free: 57.47 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02439/0.4327, allocations: 6.179 MB / 481.7 MB, free: 56.67 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08781/0.5205, allocations: 63.29 MB / 0.5322 GB, free: 7.305 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0142/0.5347, allocations: 3.97 MB / 0.5361 GB, free: 4.223 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003818/0.5385, allocations: 1.443 MB / 0.5375 GB, free: 2.773 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001449/0.5399, allocations: 0.619 MB / 0.5381 GB, free: 2.16 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.725e-05/0.54, allocations: 67.91 kB / 0.5381 GB, free: 2.082 MB / 410.7 MB Notification: Performance of pre-optimization done (n=367): time 7.885e-06/0.54, allocations: 1.312 kB / 0.5381 GB, free: 2.082 MB / 410.7 MB Notification: Performance of matching and sorting (n=419): time 0.1029/0.6429, allocations: 25.45 MB / 0.563 GB, free: 8.777 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001116/0.6431, allocations: 119.4 kB / 0.5631 GB, free: 8.645 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00789/0.6509, allocations: 4.778 MB / 0.5678 GB, free: 3.848 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001097/0.652, allocations: 86.06 kB / 0.5679 GB, free: 3.762 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004474/0.6565, allocations: 4.316 MB / 0.5721 GB, free: 15.47 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003117/0.6596, allocations: 1.723 MB / 0.5738 GB, free: 13.77 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003694/0.6633, allocations: 1.917 MB / 0.5756 GB, free: 11.84 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002526/0.6636, allocations: 478.6 kB / 0.5761 GB, free: 11.37 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003736/0.6673, allocations: 1.339 MB / 0.5774 GB, free: 10.03 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009719/0.677, allocations: 7.14 MB / 0.5844 GB, free: 484 kB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01616/0.6932, allocations: 9.481 MB / 0.5936 GB, free: 5.004 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001672/0.6934, allocations: 36 kB / 0.5937 GB, free: 4.969 MB / 474.7 MB Notification: Performance of matching and sorting (n=1039) (initialization): time 0.02776/0.7211, allocations: 8.919 MB / 0.6024 GB, free: 12.02 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001288/0.7212, allocations: 64.03 kB / 0.6024 GB, free: 11.95 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002187/0.7215, allocations: 128 kB / 0.6026 GB, free: 11.83 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009221/0.7307, allocations: 1.961 MB / 0.6045 GB, free: 9.855 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007602/0.7383, allocations: 1.817 MB / 0.6062 GB, free: 8.039 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2229/0.9612, allocations: 8.077 MB / 0.6141 GB, free: 142.9 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007654/0.9689, allocations: 0.6133 MB / 0.6147 GB, free: 142.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001563/0.9704, allocations: 434.1 kB / 0.6151 GB, free: 142.9 MB / 490.7 MB 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.003664/0.9741, allocations: 0.8962 MB / 0.616 GB, free: 142.7 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001652/0.9757, allocations: 0.5509 MB / 0.6166 GB, free: 142.7 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01468/0.9904, allocations: 6.083 MB / 0.6225 GB, free: 142.4 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.731e-05/0.9905, allocations: 66.44 kB / 0.6226 GB, free: 142.4 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.315e-05/0.9905, allocations: 13.28 kB / 0.6226 GB, free: 142.4 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.339e-05/0.9906, allocations: 18.75 kB / 0.6226 GB, free: 142.4 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03233/1.023, allocations: 14 MB / 0.6363 GB, free: 141.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.155e-05/1.023, allocations: 12.56 kB / 0.6363 GB, free: 141.2 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003032/1.026, allocations: 0.6806 MB / 0.6369 GB, free: 141.1 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007291/1.033, allocations: 1.784 MB / 0.6387 GB, free: 141.1 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005048/1.034, allocations: 83.12 kB / 0.6388 GB, free: 141.1 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01189/1.046, allocations: 6.863 MB / 0.6455 GB, free: 136.7 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.314e-05/1.046, allocations: 16.84 kB / 0.6455 GB, free: 136.6 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01991/1.066, allocations: 6.94 MB / 0.6523 GB, free: 134.4 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0021/1.068, allocations: 486.9 kB / 0.6527 GB, free: 134.4 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001255/1.069, allocations: 72.84 kB / 0.6528 GB, free: 134.4 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004252/1.073, allocations: 433.8 kB / 0.6532 GB, free: 134.3 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001189/1.074, allocations: 275.7 kB / 0.6535 GB, free: 134.3 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003493/1.075, allocations: 114.5 kB / 0.6536 GB, free: 134.2 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003601/1.078, allocations: 2.05 MB / 0.6556 GB, free: 133.5 MB / 490.7 MB Notification: Performance of sort global known variables: time 9e-08/1.078, allocations: 0 / 0.6556 GB, free: 133.5 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.00889/1.087, allocations: 1.866 MB / 0.6574 GB, free: 133.3 MB / 490.7 MB 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.001046/1.088, allocations: 251 kB / 0.6576 GB, free: 133.2 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01109/1.099, allocations: 5.554 MB / 0.6631 GB, free: 131.4 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.567e-05/1.099, allocations: 3.938 kB / 0.6631 GB, free: 131.4 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004463/1.104, allocations: 2.32 MB / 0.6653 GB, free: 130.5 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004213/1.108, allocations: 0.6351 MB / 0.666 GB, free: 130.2 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02287/1.131, allocations: 12.73 MB / 0.6784 GB, free: 122.5 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004666/1.136, allocations: 3.616 MB / 0.6819 GB, free: 119.9 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.005391/1.141, allocations: 2.141 MB / 0.684 GB, free: 118.7 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001611/1.143, allocations: 348.9 kB / 0.6843 GB, free: 118.4 MB / 490.7 MB Notification: Performance of SimCode: time 2.614e-06/1.143, allocations: 4 kB / 0.6843 GB, free: 118.4 MB / 490.7 MB Notification: Performance of Templates: time 0.09846/1.241, allocations: 68.15 MB / 0.7509 GB, free: 51.15 MB / 490.7 MB " [Timeout remaining time 659] make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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.32324446097482]