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.0008993/0.0008994, allocations: 91.56 kB / 17.35 MB, free: 6.344 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.001295/0.001296, allocations: 168.2 kB / 18.25 MB, free: 5.508 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.456/1.456, allocations: 223.2 MB / 242.3 MB, free: 14.49 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.2372/0.2372, allocations: 44.25 MB / 337.7 MB, free: 2.445 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003581/0.0003579, allocations: 15.94 kB / 410.3 MB, free: 27.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1527/0.1531, allocations: 61.92 MB / 472.3 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.3634/0.5166, allocations: 61.91 MB / 0.5216 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03595/0.5526, allocations: 12.7 MB / 0.534 GB, free: 6.605 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.016/0.5686, allocations: 273.6 kB / 0.5343 GB, free: 6.562 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002678/0.5713, allocations: 0.6114 MB / 0.5349 GB, free: 6.34 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007931/0.5793, allocations: 2.432 MB / 0.5373 GB, free: 5.551 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002967/0.5823, allocations: 0.9556 MB / 0.5382 GB, free: 5.012 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01282/0.5951, allocations: 10.16 MB / 0.5481 GB, free: 316 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009097/0.6043, allocations: 5.406 MB / 0.5534 GB, free: 12.66 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004609/0.6089, allocations: 1.739 MB / 0.5551 GB, free: 10.98 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005683/0.6146, allocations: 3.122 MB / 0.5582 GB, free: 8.047 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001893/0.6166, allocations: 216 kB / 0.5584 GB, free: 7.836 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004398/0.621, allocations: 1.144 MB / 0.5595 GB, free: 6.73 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004359/0.6254, allocations: 2.59 MB / 0.562 GB, free: 4.148 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005559/0.631, allocations: 2.925 MB / 0.5649 GB, free: 1.215 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01394/0.6449, allocations: 9.298 MB / 0.5739 GB, free: 8.145 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.645, allocations: 0 / 0.5739 GB, free: 8.145 MB / 414.1 MB Notification: Performance of FrontEnd: time 6.171e-06/0.645, allocations: 3.984 kB / 0.5739 GB, free: 8.141 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004261/0.6454, allocations: 0 / 0.5739 GB, free: 8.141 MB / 414.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.01761/0.6631, allocations: 5.934 MB / 0.5797 GB, free: 2.168 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.815e-05/0.6631, allocations: 12.03 kB / 0.5798 GB, free: 2.156 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01717/0.6803, allocations: 3.936 MB / 0.5836 GB, free: 14.21 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01014/0.6905, allocations: 4.056 MB / 0.5876 GB, free: 10.14 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004139/0.6909, allocations: 317.5 kB / 0.5879 GB, free: 9.887 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002166/0.6931, allocations: 432.9 kB / 0.5883 GB, free: 9.52 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03674/0.7299, allocations: 15.63 MB / 0.6035 GB, free: 9.328 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003709/0.7303, allocations: 55.48 kB / 0.6036 GB, free: 9.273 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002008/0.7323, allocations: 198 kB / 0.6038 GB, free: 9.137 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007284/0.7396, allocations: 3.384 MB / 0.6071 GB, free: 5.762 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0367/0.7763, allocations: 14.86 MB / 0.6216 GB, free: 6.891 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.104/0.8804, allocations: 55.24 MB / 0.6755 GB, free: 14.78 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02074/0.9011, allocations: 8.205 MB / 0.6835 GB, free: 6.348 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008198/0.9094, allocations: 4.834 MB / 0.6883 GB, free: 1.508 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002553/0.912, allocations: 2.206 MB / 0.6904 GB, free: 14.93 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001112/0.9121, allocations: 65.08 kB / 0.6905 GB, free: 14.86 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=367): time 1.063e-05/0.9122, allocations: 3.938 kB / 0.6905 GB, free: 14.86 MB / 0.5294 GB Notification: Performance of matching and sorting (n=419): time 0.4615/1.374, allocations: 40.14 MB / 0.7297 GB, free: 181.5 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001021/1.374, allocations: 117.3 kB / 0.7298 GB, free: 181.4 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008612/1.382, allocations: 4.287 MB / 0.734 GB, free: 179.8 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001264/1.384, allocations: 85.94 kB / 0.7341 GB, free: 179.8 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.00288/1.387, allocations: 3.795 MB / 0.7378 GB, free: 176.9 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.00276/1.389, allocations: 1.487 MB / 0.7392 GB, free: 175.8 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002404/1.392, allocations: 0.6852 MB / 0.7399 GB, free: 175.5 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 6.412e-05/1.392, allocations: 301.1 kB / 0.7402 GB, free: 175.2 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007175/1.399, allocations: 4.076 MB / 0.7442 GB, free: 173.5 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009762/1.409, allocations: 7.844 MB / 0.7518 GB, free: 164 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01671/1.426, allocations: 12.88 MB / 0.7644 GB, free: 149.3 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000205/1.426, allocations: 40 kB / 0.7644 GB, free: 149.2 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1039) (initialization): time 0.03264/1.459, allocations: 14.73 MB / 0.7788 GB, free: 134.5 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001878/1.459, allocations: 64 kB / 0.7789 GB, free: 134.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002578/1.459, allocations: 131.1 kB / 0.779 GB, free: 134.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008123/1.467, allocations: 2.928 MB / 0.7819 GB, free: 131.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006908/1.474, allocations: 1.809 MB / 0.7836 GB, free: 129.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01868/1.493, allocations: 14.86 MB / 0.7982 GB, free: 114.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007553/1.5, allocations: 0.5008 MB / 0.7986 GB, free: 113.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00207/1.503, allocations: 433.2 kB / 0.7991 GB, free: 113.5 MB / 0.5294 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.007796/1.51, allocations: 2.875 MB / 0.8019 GB, free: 110.6 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002739/1.513, allocations: 458 kB / 0.8023 GB, free: 110.1 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02413/1.537, allocations: 10.93 MB / 0.813 GB, free: 99.16 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.121e-05/1.537, allocations: 65.38 kB / 0.813 GB, free: 99.1 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.192e-05/1.537, allocations: 11.94 kB / 0.813 GB, free: 99.09 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.401e-05/1.538, allocations: 19.92 kB / 0.8131 GB, free: 99.07 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03919/1.577, allocations: 21.71 MB / 0.8343 GB, free: 77.14 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.76e-05/1.577, allocations: 12 kB / 0.8343 GB, free: 77.12 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003587/1.58, allocations: 0.6786 MB / 0.8349 GB, free: 76.45 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007768/1.588, allocations: 2.733 MB / 0.8376 GB, free: 73.7 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001004/1.589, allocations: 89.23 kB / 0.8377 GB, free: 73.62 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01626/1.606, allocations: 13.59 MB / 0.851 GB, free: 59.76 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.247e-05/1.606, allocations: 16 kB / 0.851 GB, free: 59.74 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02572/1.631, allocations: 15.57 MB / 0.8662 GB, free: 43.91 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001564/1.633, allocations: 499.1 kB / 0.8666 GB, free: 43.39 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001702/1.635, allocations: 83.5 kB / 0.8667 GB, free: 43.32 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003928/1.639, allocations: 319.5 kB / 0.867 GB, free: 43 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00104/1.64, allocations: 258 kB / 0.8673 GB, free: 42.75 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005554/1.64, allocations: 116 kB / 0.8674 GB, free: 42.64 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004417/1.645, allocations: 2.693 MB / 0.87 GB, free: 39.94 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.51e-07/1.645, allocations: 0 / 0.87 GB, free: 39.94 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007323/1.652, allocations: 1.681 MB / 0.8717 GB, free: 38.27 MB / 0.5294 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.0009433/1.653, allocations: 237.8 kB / 0.8719 GB, free: 38.04 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01578/1.669, allocations: 10.03 MB / 0.8817 GB, free: 27.99 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-05/1.669, allocations: 384 / 0.8817 GB, free: 27.99 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.006983/1.676, allocations: 4.375 MB / 0.886 GB, free: 23.59 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01397/1.69, allocations: 0.6937 MB / 0.8866 GB, free: 22.9 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3086/1.998, allocations: 19.02 MB / 0.9052 GB, free: 169.4 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01079/2.009, allocations: 4.549 MB / 0.9096 GB, free: 168.6 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.01019/2.02, allocations: 2.725 MB / 0.9123 GB, free: 168.5 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002329/2.022, allocations: 353 kB / 0.9126 GB, free: 168.5 MB / 0.5294 GB Notification: Performance of SimCode: time 1.542e-06/2.022, allocations: 0 / 0.9126 GB, free: 168.5 MB / 0.5294 GB Notification: Performance of Templates: time 0.1247/2.147, allocations: 67.93 MB / 0.979 GB, free: 117.8 MB / 0.5294 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Revolute2/Revolute2.csv","/var/lib/jenkins/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