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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|revolute.phi|revolute.w|revolute1.phi|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001453/0.001453, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001718/0.001718, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.324/1.324, allocations: 227.4 MB / 247.5 MB, free: 10.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2117/0.2117, allocations: 46.1 MB / 344.9 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001312/0.001312, allocations: 76.45 kB / 419 MB, free: 19.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1169, allocations: 62.44 MB / 481.4 MB, free: 4.566 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.0189/0.1359, allocations: 18.14 MB / 499.6 MB, free: 2.348 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01181/0.1477, allocations: 5.306 MB / 0.4931 GB, free: 13.03 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003966/0.1517, allocations: 107.7 kB / 0.4932 GB, free: 12.92 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006229/0.158, allocations: 3.048 MB / 0.4961 GB, free: 9.863 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006985/0.165, allocations: 2.541 MB / 0.4986 GB, free: 7.312 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002376/0.1674, allocations: 1.01 MB / 0.4996 GB, free: 6.301 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2171/0.3846, allocations: 7.658 MB / 0.5071 GB, free: 13.61 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005082/0.3897, allocations: 4.174 MB / 0.5112 GB, free: 13.25 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003212/0.3929, allocations: 2.241 MB / 0.5133 GB, free: 13.13 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004363/0.3973, allocations: 3.232 MB / 0.5165 GB, free: 12.79 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001066/0.3984, allocations: 455.6 kB / 0.5169 GB, free: 12.79 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002425/0.4008, allocations: 1.291 MB / 0.5182 GB, free: 12.79 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002569/0.4034, allocations: 2.797 MB / 0.5209 GB, free: 12.5 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002746/0.4061, allocations: 3.187 MB / 0.524 GB, free: 11 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007767/0.4139, allocations: 9.937 MB / 0.5337 GB, free: 6.613 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.4139, allocations: 0 / 0.5337 GB, free: 6.613 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.414, allocations: 0 / 0.5337 GB, free: 6.613 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002052/0.4142, allocations: 3.312 kB / 0.5338 GB, free: 6.613 MB / 382.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.01155/0.4257, allocations: 7.196 MB / 0.5408 GB, free: 1.93 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.684e-05/0.4258, allocations: 13.77 kB / 0.5408 GB, free: 1.926 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01263/0.4384, allocations: 3.836 MB / 0.5445 GB, free: 15.97 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007954/0.4464, allocations: 4.007 MB / 0.5485 GB, free: 12.71 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002058/0.4466, allocations: 317 kB / 0.5488 GB, free: 12.45 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009787/0.4476, allocations: 437.2 kB / 0.5492 GB, free: 12.08 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02211/0.4697, allocations: 15.59 MB / 0.5644 GB, free: 12 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001325/0.4699, allocations: 57.8 kB / 0.5645 GB, free: 11.96 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005213/0.4704, allocations: 195.5 kB / 0.5646 GB, free: 11.83 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005808/0.4762, allocations: 3.385 MB / 0.5679 GB, free: 8.477 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02406/0.5003, allocations: 14.82 MB / 0.5824 GB, free: 9.832 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06945/0.5698, allocations: 54.97 MB / 0.6361 GB, free: 2.438 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01735/0.5871, allocations: 8.211 MB / 0.6441 GB, free: 10.01 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006511/0.5937, allocations: 4.838 MB / 0.6488 GB, free: 5.16 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002123/0.5958, allocations: 2.211 MB / 0.651 GB, free: 2.582 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.407e-05/0.5959, allocations: 69.02 kB / 0.6511 GB, free: 2.504 MB / 494.1 MB Notification: Performance of pre-optimization done (n=367): time 6.893e-06/0.5959, allocations: 0 / 0.6511 GB, free: 2.504 MB / 494.1 MB Notification: Performance of matching and sorting (n=419): time 0.1077/0.7036, allocations: 40.16 MB / 0.6903 GB, free: 10.4 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.964e-05/0.7037, allocations: 116 kB / 0.6904 GB, free: 10.27 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006613/0.7103, allocations: 4.283 MB / 0.6946 GB, free: 5.961 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0005537/0.7109, allocations: 88.83 kB / 0.6947 GB, free: 5.871 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002591/0.7135, allocations: 3.786 MB / 0.6984 GB, free: 2.078 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001685/0.7152, allocations: 1.496 MB / 0.6998 GB, free: 0.5977 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002857/0.7181, allocations: 1.573 MB / 0.7014 GB, free: 15.02 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.47e-05/0.7182, allocations: 305.1 kB / 0.7016 GB, free: 14.72 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005768/0.7239, allocations: 4.072 MB / 0.7056 GB, free: 10.64 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008575/0.7325, allocations: 7.842 MB / 0.7133 GB, free: 1.051 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2315/0.964, allocations: 12.89 MB / 0.7259 GB, free: 178.5 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.706e-05/0.9642, allocations: 36.34 kB / 0.7259 GB, free: 178.5 MB / 0.545 GB Notification: Performance of matching and sorting (n=1039) (initialization): time 0.02812/0.9923, allocations: 14.73 MB / 0.7403 GB, free: 173.9 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 7.353e-05/0.9924, allocations: 64.81 kB / 0.7403 GB, free: 173.9 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001172/0.9925, allocations: 131.8 kB / 0.7405 GB, free: 173.9 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007319/0.9999, allocations: 2.931 MB / 0.7433 GB, free: 173.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006311/1.006, allocations: 1.803 MB / 0.7451 GB, free: 173.2 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01788/1.024, allocations: 15.95 MB / 0.7607 GB, free: 164.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005752/1.03, allocations: 0.4936 MB / 0.7611 GB, free: 164.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001061/1.031, allocations: 434.9 kB / 0.7616 GB, free: 164.1 MB / 0.545 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.004324/1.035, allocations: 2.874 MB / 0.7644 GB, free: 161.7 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007576/1.036, allocations: 450.3 kB / 0.7648 GB, free: 161.5 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01587/1.052, allocations: 10.93 MB / 0.7755 GB, free: 151.9 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.992e-05/1.052, allocations: 61.08 kB / 0.7755 GB, free: 151.9 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.405e-05/1.052, allocations: 12 kB / 0.7755 GB, free: 151.8 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.882e-05/1.052, allocations: 23.86 kB / 0.7756 GB, free: 151.8 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03261/1.085, allocations: 21.57 MB / 0.7966 GB, free: 130.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.392e-05/1.085, allocations: 12 kB / 0.7966 GB, free: 130.2 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003213/1.088, allocations: 0.6802 MB / 0.7973 GB, free: 129.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006716/1.095, allocations: 2.741 MB / 0.8 GB, free: 126.8 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000631/1.095, allocations: 83.92 kB / 0.8001 GB, free: 126.7 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01494/1.11, allocations: 14.54 MB / 0.8143 GB, free: 112 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.736e-06/1.11, allocations: 17.59 kB / 0.8143 GB, free: 111.9 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01982/1.13, allocations: 15.57 MB / 0.8295 GB, free: 96.14 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001168/1.131, allocations: 495.6 kB / 0.83 GB, free: 95.64 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007225/1.132, allocations: 84.86 kB / 0.83 GB, free: 95.55 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002379/1.135, allocations: 317.8 kB / 0.8303 GB, free: 95.25 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006732/1.135, allocations: 265.9 kB / 0.8306 GB, free: 94.99 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002964/1.136, allocations: 116.8 kB / 0.8307 GB, free: 94.88 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003057/1.139, allocations: 2.681 MB / 0.8333 GB, free: 92.19 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/1.139, allocations: 0 / 0.8333 GB, free: 92.19 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005441/1.144, allocations: 1.656 MB / 0.8349 GB, free: 90.54 MB / 0.545 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.0005871/1.145, allocations: 240.5 kB / 0.8352 GB, free: 90.31 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01309/1.158, allocations: 10.09 MB / 0.845 GB, free: 80.21 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.416e-05/1.158, allocations: 4 kB / 0.845 GB, free: 80.21 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.007953/1.166, allocations: 4.372 MB / 0.8493 GB, free: 75.81 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003693/1.17, allocations: 0.7086 MB / 0.85 GB, free: 75.12 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02015/1.19, allocations: 15.65 MB / 0.8653 GB, free: 59.31 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004/1.194, allocations: 4.535 MB / 0.8697 GB, free: 54.73 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005256/1.199, allocations: 2.723 MB / 0.8724 GB, free: 52 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001358/1.2, allocations: 351.3 kB / 0.8727 GB, free: 51.65 MB / 0.545 GB Notification: Performance of SimCode: time 9.62e-07/1.2, allocations: 0 / 0.8727 GB, free: 51.65 MB / 0.545 GB Notification: Performance of Templates: time 0.2981/1.499, allocations: 66.08 MB / 0.9372 GB, free: 176 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.makefile (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=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Revolute2/Revolute2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches