Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00129/0.001295, allocations: 108.1 kB / 18.45 MB, free: 4.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001381/0.001381, allocations: 180.2 kB / 19.38 MB, free: 3.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.27/1.27, allocations: 222.9 MB / 243.1 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2098/0.2098, allocations: 44.19 MB / 337.4 MB, free: 2.645 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001475/0.001475, allocations: 63.91 kB / 471.2 MB, free: 13.14 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3298/0.3313, allocations: 60.82 MB / 0.5196 GB, free: 3.609 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.01765/0.349, allocations: 18.2 MB / 0.5374 GB, free: 6.211 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01211/0.3611, allocations: 5.283 MB / 0.5425 GB, free: 2.055 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00364/0.3648, allocations: 110 kB / 0.5426 GB, free: 2.035 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006136/0.3709, allocations: 3.061 MB / 0.5456 GB, free: 15.96 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007004/0.378, allocations: 2.582 MB / 0.5481 GB, free: 14.12 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002418/0.3804, allocations: 1.01 MB / 0.5491 GB, free: 13.45 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01011/0.3906, allocations: 7.498 MB / 0.5564 GB, free: 6.191 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005334/0.3959, allocations: 4.164 MB / 0.5605 GB, free: 1.973 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004168/0.4001, allocations: 2.262 MB / 0.5627 GB, free: 15.7 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005524/0.4057, allocations: 3.236 MB / 0.5659 GB, free: 12.46 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001414/0.4071, allocations: 452 kB / 0.5663 GB, free: 12.02 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003238/0.4104, allocations: 1.311 MB / 0.5676 GB, free: 10.7 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003123/0.4135, allocations: 2.84 MB / 0.5704 GB, free: 7.855 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005157/0.4187, allocations: 3.208 MB / 0.5735 GB, free: 4.629 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01159/0.4303, allocations: 10.02 MB / 0.5833 GB, free: 10.58 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/0.4303, allocations: 0 / 0.5833 GB, free: 10.58 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.325e-06/0.4303, allocations: 0 / 0.5833 GB, free: 10.58 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003187/0.4307, allocations: 0 / 0.5833 GB, free: 10.58 MB / 446.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.01912/0.4498, allocations: 7.215 MB / 0.5903 GB, free: 3.285 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.368e-05/0.4498, allocations: 8.031 kB / 0.5903 GB, free: 3.277 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01586/0.4657, allocations: 3.834 MB / 0.5941 GB, free: 15.43 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009892/0.4757, allocations: 4.108 MB / 0.5981 GB, free: 11.26 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003645/0.4761, allocations: 316.4 kB / 0.5984 GB, free: 10.95 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002102/0.4782, allocations: 439.7 kB / 0.5988 GB, free: 10.52 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03094/0.5091, allocations: 15.59 MB / 0.614 GB, free: 10.2 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000299/0.5095, allocations: 59.48 kB / 0.6141 GB, free: 10.14 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001687/0.5112, allocations: 199.8 kB / 0.6143 GB, free: 9.941 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006829/0.518, allocations: 3.384 MB / 0.6176 GB, free: 6.555 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03088/0.5489, allocations: 14.82 MB / 0.632 GB, free: 7.719 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08118/0.6302, allocations: 54.98 MB / 0.6857 GB, free: 15.54 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01827/0.6485, allocations: 8.213 MB / 0.6938 GB, free: 7.102 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00619/0.6547, allocations: 4.828 MB / 0.6985 GB, free: 2.262 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002044/0.6568, allocations: 2.208 MB / 0.7006 GB, free: 15.66 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.592e-05/0.6569, allocations: 65.06 kB / 0.7007 GB, free: 15.59 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=367): time 8.505e-06/0.6569, allocations: 0 / 0.7007 GB, free: 15.59 MB / 0.5606 GB Notification: Performance of matching and sorting (n=419): time 0.3393/0.9962, allocations: 40.16 MB / 0.7399 GB, free: 162.2 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.582e-05/0.9963, allocations: 117.9 kB / 0.74 GB, free: 162.1 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005868/1.002, allocations: 4.285 MB / 0.7442 GB, free: 160.5 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0008199/1.003, allocations: 81.33 kB / 0.7443 GB, free: 160.5 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001778/1.005, allocations: 3.804 MB / 0.748 GB, free: 157.3 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001616/1.006, allocations: 1.492 MB / 0.7495 GB, free: 156 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002861/1.009, allocations: 1.563 MB / 0.751 GB, free: 155.1 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.942e-05/1.009, allocations: 308.8 kB / 0.7513 GB, free: 154.8 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004689/1.014, allocations: 4.078 MB / 0.7553 GB, free: 151.5 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00641/1.02, allocations: 7.844 MB / 0.7629 GB, free: 141.9 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01175/1.032, allocations: 12.87 MB / 0.7755 GB, free: 127.2 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.735e-05/1.032, allocations: 43.94 kB / 0.7755 GB, free: 127.2 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1039) (initialization): time 0.02305/1.055, allocations: 14.72 MB / 0.7899 GB, free: 112.4 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001173/1.056, allocations: 60 kB / 0.79 GB, free: 112.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001716/1.056, allocations: 128.9 kB / 0.7901 GB, free: 112.2 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007535/1.063, allocations: 2.937 MB / 0.793 GB, free: 109.3 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005992/1.069, allocations: 1.809 MB / 0.7947 GB, free: 107.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01716/1.086, allocations: 15.95 MB / 0.8103 GB, free: 91.25 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005925/1.092, allocations: 0.4957 MB / 0.8108 GB, free: 90.76 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001317/1.094, allocations: 431.9 kB / 0.8112 GB, free: 90.34 MB / 0.5606 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.005006/1.099, allocations: 2.873 MB / 0.814 GB, free: 87.46 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001204/1.1, allocations: 462.1 kB / 0.8145 GB, free: 87 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0177/1.118, allocations: 10.93 MB / 0.8251 GB, free: 76.01 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.627e-05/1.118, allocations: 63.67 kB / 0.8252 GB, free: 75.95 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.765e-05/1.118, allocations: 8 kB / 0.8252 GB, free: 75.95 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.342e-05/1.118, allocations: 19.92 kB / 0.8252 GB, free: 75.93 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03454/1.152, allocations: 21.58 MB / 0.8463 GB, free: 54.18 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.379e-05/1.153, allocations: 12 kB / 0.8463 GB, free: 54.17 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00327/1.156, allocations: 0.6825 MB / 0.847 GB, free: 53.48 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007225/1.163, allocations: 2.725 MB / 0.8496 GB, free: 50.75 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008209/1.164, allocations: 90.89 kB / 0.8497 GB, free: 50.66 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01534/1.179, allocations: 14.55 MB / 0.8639 GB, free: 35.83 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.919e-06/1.179, allocations: 15.94 kB / 0.8639 GB, free: 35.81 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02132/1.201, allocations: 15.56 MB / 0.8791 GB, free: 19.97 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00109/1.202, allocations: 499.1 kB / 0.8796 GB, free: 19.46 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001252/1.203, allocations: 83.81 kB / 0.8797 GB, free: 19.38 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00317/1.206, allocations: 315.5 kB / 0.88 GB, free: 19.07 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009005/1.207, allocations: 270 kB / 0.8802 GB, free: 18.81 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004499/1.208, allocations: 112.4 kB / 0.8804 GB, free: 18.7 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.00399/1.212, allocations: 2.685 MB / 0.883 GB, free: 16.01 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.31e-07/1.212, allocations: 0 / 0.883 GB, free: 16.01 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.006829/1.218, allocations: 1.674 MB / 0.8846 GB, free: 14.34 MB / 0.5606 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.001019/1.22, allocations: 251.2 kB / 0.8849 GB, free: 14.09 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01341/1.233, allocations: 10.09 MB / 0.8947 GB, free: 3.988 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.169e-05/1.233, allocations: 0 / 0.8947 GB, free: 3.988 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.005618/1.239, allocations: 4.373 MB / 0.899 GB, free: 15.59 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004814/1.243, allocations: 0.7125 MB / 0.8997 GB, free: 14.89 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02645/1.27, allocations: 16.26 MB / 0.9156 GB, free: 14.45 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0061/1.276, allocations: 4.524 MB / 0.92 GB, free: 9.875 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002226/1.278, allocations: 403.3 kB / 0.9204 GB, free: 9.48 MB / 0.5919 GB Notification: Performance of SimCode: time 9.02e-07/1.278, allocations: 0 / 0.9204 GB, free: 9.48 MB / 0.5919 GB Notification: Performance of Templates: time 0.4043/1.683, allocations: 142.3 MB / 1.059 GB, free: 96.76 MB / 0.6075 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches