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.001125/0.001126, allocations: 116.9 kB / 18.4 MB, free: 4.75 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001499/0.001499, allocations: 204.5 kB / 19.35 MB, free: 3.805 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.329/1.329, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2133/0.2133, allocations: 46.11 MB / 344.9 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001358/0.001358, allocations: 80.44 kB / 419 MB, free: 18.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1206/0.122, allocations: 62.44 MB / 481.4 MB, free: 4.516 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.01912/0.1412, allocations: 18.15 MB / 499.6 MB, free: 2.281 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01193/0.1531, allocations: 5.284 MB / 0.4931 GB, free: 12.98 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003523/0.1567, allocations: 107.7 kB / 0.4932 GB, free: 12.88 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006027/0.1628, allocations: 3.056 MB / 0.4961 GB, free: 9.809 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006731/0.1696, allocations: 2.533 MB / 0.4986 GB, free: 7.266 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002673/0.1722, allocations: 1.018 MB / 0.4996 GB, free: 6.246 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2423/0.4145, allocations: 7.663 MB / 0.5071 GB, free: 14.27 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006703/0.4213, allocations: 4.175 MB / 0.5112 GB, free: 13.91 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004648/0.426, allocations: 2.239 MB / 0.5134 GB, free: 13.79 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005942/0.4319, allocations: 3.233 MB / 0.5165 GB, free: 13.45 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001752/0.4337, allocations: 451.7 kB / 0.5169 GB, free: 13.45 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00365/0.4374, allocations: 1.297 MB / 0.5182 GB, free: 13.45 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003734/0.4411, allocations: 2.799 MB / 0.5209 GB, free: 13.16 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005476/0.4466, allocations: 3.181 MB / 0.524 GB, free: 11.25 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0132/0.4598, allocations: 9.939 MB / 0.5338 GB, free: 6.762 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.264e-05/0.4599, allocations: 4 kB / 0.5338 GB, free: 6.758 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.587e-06/0.4599, allocations: 0 / 0.5338 GB, free: 6.758 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004448/0.4604, allocations: 3.281 kB / 0.5338 GB, free: 6.758 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.01919/0.4795, allocations: 7.197 MB / 0.5408 GB, free: 2.074 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.715e-05/0.4796, allocations: 8.906 kB / 0.5408 GB, free: 2.074 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01319/0.4928, allocations: 3.833 MB / 0.5445 GB, free: 128 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009412/0.5023, allocations: 4.014 MB / 0.5485 GB, free: 12.75 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002553/0.5026, allocations: 317.4 kB / 0.5488 GB, free: 12.49 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001867/0.5044, allocations: 434.8 kB / 0.5492 GB, free: 12.12 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02704/0.5315, allocations: 15.59 MB / 0.5644 GB, free: 12.04 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001652/0.5317, allocations: 61.73 kB / 0.5645 GB, free: 12 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005633/0.5323, allocations: 196.2 kB / 0.5646 GB, free: 11.87 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005526/0.5378, allocations: 3.388 MB / 0.568 GB, free: 8.512 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0281/0.5659, allocations: 14.81 MB / 0.5824 GB, free: 9.867 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08501/0.651, allocations: 54.96 MB / 0.6361 GB, free: 2.48 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01793/0.6689, allocations: 8.211 MB / 0.6441 GB, free: 10.05 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006616/0.6756, allocations: 4.838 MB / 0.6488 GB, free: 5.207 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002009/0.6776, allocations: 2.213 MB / 0.651 GB, free: 2.625 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.194e-05/0.6777, allocations: 65.02 kB / 0.6511 GB, free: 2.551 MB / 494.1 MB Notification: Performance of pre-optimization done (n=367): time 6.332e-06/0.6777, allocations: 4 kB / 0.6511 GB, free: 2.547 MB / 494.1 MB Notification: Performance of matching and sorting (n=419): time 0.1063/0.784, allocations: 40.16 MB / 0.6903 GB, free: 10.45 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.486e-05/0.7841, allocations: 116 kB / 0.6904 GB, free: 10.31 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005731/0.7899, allocations: 4.286 MB / 0.6946 GB, free: 6.004 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0007942/0.7907, allocations: 85.7 kB / 0.6947 GB, free: 5.914 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002541/0.7932, allocations: 3.789 MB / 0.6984 GB, free: 2.121 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001877/0.7951, allocations: 1.493 MB / 0.6998 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002499/0.7976, allocations: 1.566 MB / 0.7013 GB, free: 15.07 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001117/0.7977, allocations: 301.1 kB / 0.7016 GB, free: 14.77 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005869/0.8036, allocations: 4.076 MB / 0.7056 GB, free: 10.69 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008621/0.8122, allocations: 7.852 MB / 0.7133 GB, free: 1.09 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2872/1.099, allocations: 12.88 MB / 0.7259 GB, free: 178.9 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001682/1.1, allocations: 41.12 kB / 0.7259 GB, free: 178.9 MB / 0.545 GB Notification: Performance of matching and sorting (n=1039) (initialization): time 0.0314/1.131, allocations: 14.73 MB / 0.7403 GB, free: 174.2 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001049/1.131, allocations: 62.31 kB / 0.7403 GB, free: 174.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001641/1.131, allocations: 129 kB / 0.7405 GB, free: 174.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007805/1.139, allocations: 2.928 MB / 0.7433 GB, free: 173.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006974/1.146, allocations: 1.811 MB / 0.7451 GB, free: 173.6 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01822/1.164, allocations: 15.95 MB / 0.7607 GB, free: 165.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007015/1.172, allocations: 0.5 MB / 0.7612 GB, free: 165 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001449/1.173, allocations: 427.7 kB / 0.7616 GB, free: 164.6 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.005439/1.178, allocations: 2.869 MB / 0.7644 GB, free: 162.2 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00107/1.18, allocations: 452.6 kB / 0.7648 GB, free: 162 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01594/1.195, allocations: 10.93 MB / 0.7755 GB, free: 152.2 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.737e-05/1.196, allocations: 67.92 kB / 0.7755 GB, free: 152.1 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.38e-05/1.196, allocations: 12 kB / 0.7756 GB, free: 152.1 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.212e-05/1.196, allocations: 15.94 kB / 0.7756 GB, free: 152.1 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03344/1.229, allocations: 21.57 MB / 0.7966 GB, free: 130.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.949e-05/1.229, allocations: 12 kB / 0.7966 GB, free: 130.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003322/1.233, allocations: 0.6786 MB / 0.7973 GB, free: 129.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006989/1.24, allocations: 2.732 MB / 0.8 GB, free: 127.1 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009183/1.24, allocations: 80.8 kB / 0.8001 GB, free: 127 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01515/1.256, allocations: 14.56 MB / 0.8143 GB, free: 112.2 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.777e-06/1.256, allocations: 15.94 kB / 0.8143 GB, free: 112.2 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.022/1.278, allocations: 15.57 MB / 0.8295 GB, free: 96.44 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001729/1.279, allocations: 495.2 kB / 0.83 GB, free: 95.93 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001493/1.281, allocations: 84.62 kB / 0.83 GB, free: 95.85 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003616/1.285, allocations: 308.1 kB / 0.8303 GB, free: 95.55 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009569/1.286, allocations: 258.9 kB / 0.8306 GB, free: 95.29 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003268/1.286, allocations: 117.1 kB / 0.8307 GB, free: 95.18 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004219/1.29, allocations: 2.693 MB / 0.8333 GB, free: 92.48 MB / 0.545 GB Notification: Performance of sort global known variables: time 6.11e-07/1.29, allocations: 0 / 0.8333 GB, free: 92.48 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008897/1.299, allocations: 1.655 MB / 0.8349 GB, free: 90.84 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.0008221/1.3, allocations: 233.5 kB / 0.8352 GB, free: 90.61 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01294/1.313, allocations: 10.09 MB / 0.845 GB, free: 80.52 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.621e-05/1.313, allocations: 4.125 kB / 0.845 GB, free: 80.52 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005372/1.318, allocations: 4.375 MB / 0.8493 GB, free: 76.11 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004043/1.322, allocations: 0.7218 MB / 0.85 GB, free: 75.41 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02314/1.346, allocations: 15.64 MB / 0.8653 GB, free: 59.6 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004827/1.35, allocations: 4.539 MB / 0.8697 GB, free: 55.02 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005349/1.356, allocations: 2.72 MB / 0.8724 GB, free: 52.29 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001345/1.357, allocations: 351.4 kB / 0.8727 GB, free: 51.95 MB / 0.545 GB Notification: Performance of SimCode: time 2.124e-06/1.357, allocations: 0 / 0.8727 GB, free: 51.95 MB / 0.545 GB Notification: Performance of Templates: time 0.3716/1.729, allocations: 66.09 MB / 0.9372 GB, free: 176.6 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 cvode -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