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.001114/0.001114, allocations: 109.4 kB / 17.78 MB, free: 5.293 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.001286/0.001286, allocations: 188.1 kB / 18.71 MB, free: 4.363 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.245/1.245, allocations: 222.9 MB / 242.4 MB, free: 15.06 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.2295/0.2295, allocations: 44.18 MB / 336.7 MB, free: 2.641 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001196/0.001196, allocations: 67.89 kB / 470.5 MB, free: 13.12 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3802/0.3815, allocations: 60.83 MB / 0.5189 GB, free: 3.594 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.01812/0.3996, allocations: 18.21 MB / 0.5367 GB, free: 6.184 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01369/0.4134, allocations: 5.278 MB / 0.5419 GB, free: 2.031 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00393/0.4173, allocations: 110.7 kB / 0.542 GB, free: 2.012 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005763/0.4231, allocations: 3.057 MB / 0.5449 GB, free: 15.94 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006611/0.4298, allocations: 2.58 MB / 0.5475 GB, free: 14.11 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00228/0.4321, allocations: 1.019 MB / 0.5485 GB, free: 13.43 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.009937/0.4421, allocations: 7.483 MB / 0.5558 GB, free: 6.199 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005894/0.448, allocations: 4.171 MB / 0.5598 GB, free: 1.973 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00398/0.452, allocations: 2.262 MB / 0.5621 GB, free: 15.7 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005515/0.4575, allocations: 3.232 MB / 0.5652 GB, free: 12.46 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001726/0.4593, allocations: 456 kB / 0.5656 GB, free: 12.02 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003245/0.4625, allocations: 1.315 MB / 0.5669 GB, free: 10.7 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00305/0.4656, allocations: 2.836 MB / 0.5697 GB, free: 7.855 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004881/0.4705, allocations: 3.2 MB / 0.5728 GB, free: 4.637 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01152/0.482, allocations: 10.03 MB / 0.5826 GB, free: 10.58 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.4821, allocations: 0 / 0.5826 GB, free: 10.58 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.315e-06/0.4821, allocations: 0 / 0.5826 GB, free: 10.58 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003204/0.4824, allocations: 0 / 0.5826 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.01778/0.5002, allocations: 7.2 MB / 0.5896 GB, free: 3.297 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/0.5003, allocations: 12.03 kB / 0.5897 GB, free: 3.285 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01567/0.5159, allocations: 3.83 MB / 0.5934 GB, free: 15.44 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01003/0.526, allocations: 4.123 MB / 0.5974 GB, free: 11.25 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002954/0.5263, allocations: 320.4 kB / 0.5977 GB, free: 10.94 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001847/0.5282, allocations: 439.7 kB / 0.5981 GB, free: 10.51 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03143/0.5596, allocations: 15.6 MB / 0.6134 GB, free: 10.18 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002671/0.56, allocations: 55.5 kB / 0.6134 GB, free: 10.13 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008467/0.5608, allocations: 191.8 kB / 0.6136 GB, free: 9.941 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006072/0.5669, allocations: 3.384 MB / 0.6169 GB, free: 6.555 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0298/0.5967, allocations: 14.81 MB / 0.6314 GB, free: 7.727 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08359/0.6803, allocations: 54.98 MB / 0.6851 GB, free: 15.55 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01875/0.6991, allocations: 8.209 MB / 0.6931 GB, free: 7.109 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006937/0.7061, allocations: 4.843 MB / 0.6978 GB, free: 2.254 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002255/0.7084, allocations: 2.204 MB / 0.7 GB, free: 15.66 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.534e-05/0.7085, allocations: 69.06 kB / 0.7 GB, free: 15.58 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=367): time 6.683e-06/0.7085, allocations: 0 / 0.7 GB, free: 15.58 MB / 0.5606 GB Notification: Performance of matching and sorting (n=419): time 0.467/1.176, allocations: 40.16 MB / 0.7393 GB, free: 162.2 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.96e-05/1.176, allocations: 118.3 kB / 0.7394 GB, free: 162.1 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005756/1.181, allocations: 4.285 MB / 0.7436 GB, free: 160.6 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.00114/1.183, allocations: 89.22 kB / 0.7436 GB, free: 160.5 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002042/1.185, allocations: 3.8 MB / 0.7474 GB, free: 157.3 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.002362/1.187, allocations: 1.482 MB / 0.7488 GB, free: 156 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002375/1.189, allocations: 1.571 MB / 0.7503 GB, free: 155.2 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 6.311e-05/1.189, allocations: 305.1 kB / 0.7506 GB, free: 154.9 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004956/1.194, allocations: 4.077 MB / 0.7546 GB, free: 151.4 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0073/1.202, allocations: 7.844 MB / 0.7623 GB, free: 141.9 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01315/1.215, allocations: 12.88 MB / 0.7748 GB, free: 127.2 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001011/1.215, allocations: 36 kB / 0.7749 GB, free: 127.2 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1039) (initialization): time 0.03093/1.246, allocations: 14.72 MB / 0.7893 GB, free: 112.4 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001866/1.246, allocations: 60 kB / 0.7893 GB, free: 112.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002487/1.247, allocations: 132 kB / 0.7894 GB, free: 112.2 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007768/1.254, allocations: 2.93 MB / 0.7923 GB, free: 109.3 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006529/1.261, allocations: 1.813 MB / 0.7941 GB, free: 107.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01837/1.279, allocations: 15.94 MB / 0.8096 GB, free: 91.25 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007208/1.287, allocations: 0.4957 MB / 0.8101 GB, free: 90.75 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001988/1.289, allocations: 431.9 kB / 0.8105 GB, free: 90.33 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.008632/1.297, allocations: 2.872 MB / 0.8133 GB, free: 87.45 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002426/1.3, allocations: 462.7 kB / 0.8138 GB, free: 86.99 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02185/1.322, allocations: 10.93 MB / 0.8245 GB, free: 76.01 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.495e-05/1.322, allocations: 67.83 kB / 0.8245 GB, free: 75.95 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.237e-05/1.322, allocations: 12 kB / 0.8245 GB, free: 75.93 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.819e-05/1.322, allocations: 15.94 kB / 0.8245 GB, free: 75.92 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04287/1.365, allocations: 21.57 MB / 0.8456 GB, free: 54.18 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.392e-05/1.365, allocations: 9.312 kB / 0.8456 GB, free: 54.17 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003521/1.368, allocations: 0.6825 MB / 0.8463 GB, free: 53.48 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007535/1.376, allocations: 2.737 MB / 0.849 GB, free: 50.74 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001285/1.377, allocations: 76 kB / 0.849 GB, free: 50.66 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01597/1.393, allocations: 14.56 MB / 0.8633 GB, free: 35.82 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.318e-06/1.393, allocations: 19.88 kB / 0.8633 GB, free: 35.8 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02405/1.417, allocations: 15.56 MB / 0.8785 GB, free: 19.96 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001658/1.419, allocations: 499.1 kB / 0.8789 GB, free: 19.45 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001763/1.421, allocations: 80.23 kB / 0.879 GB, free: 19.38 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003734/1.425, allocations: 319.5 kB / 0.8793 GB, free: 19.06 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001056/1.426, allocations: 266 kB / 0.8796 GB, free: 18.8 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005672/1.426, allocations: 116 kB / 0.8797 GB, free: 18.69 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004527/1.431, allocations: 2.685 MB / 0.8823 GB, free: 16 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/1.431, allocations: 0 / 0.8823 GB, free: 16 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.008141/1.439, allocations: 1.68 MB / 0.884 GB, free: 14.33 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.001003/1.44, allocations: 239.3 kB / 0.8842 GB, free: 14.09 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01372/1.454, allocations: 10.09 MB / 0.894 GB, free: 3.984 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.666e-05/1.454, allocations: 0 / 0.894 GB, free: 3.984 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.005689/1.459, allocations: 4.38 MB / 0.8983 GB, free: 15.58 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005865/1.465, allocations: 0.7153 MB / 0.899 GB, free: 14.87 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02804/1.493, allocations: 15.66 MB / 0.9143 GB, free: 15.04 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006475/1.5, allocations: 4.539 MB / 0.9187 GB, free: 10.45 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.006142/1.506, allocations: 2.72 MB / 0.9214 GB, free: 7.723 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001577/1.508, allocations: 347.3 kB / 0.9217 GB, free: 7.383 MB / 0.5919 GB Notification: Performance of SimCode: time 3.116e-06/1.508, allocations: 0 / 0.9217 GB, free: 7.383 MB / 0.5919 GB Notification: Performance of Templates: time 0.4596/1.967, allocations: 69.37 MB / 0.9895 GB, free: 173.7 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/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