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.00107/0.00107, allocations: 104.5 kB / 17.63 MB, free: 5.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.001003/0.001003, allocations: 192 kB / 18.56 MB, free: 4.434 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.37/1.37, allocations: 222.9 MB / 242.2 MB, free: 15.11 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.208/0.208, allocations: 44.19 MB / 336.6 MB, free: 2.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001277/0.001277, allocations: 60.34 kB / 408.4 MB, free: 27.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1272/0.1285, allocations: 60.83 MB / 469.3 MB, free: 14.37 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.01912/0.1477, allocations: 18.19 MB / 487.4 MB, free: 12.09 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01118/0.1589, allocations: 5.295 MB / 492.7 MB, free: 6.781 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003005/0.1619, allocations: 107.7 kB / 492.8 MB, free: 6.676 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005563/0.1675, allocations: 3.06 MB / 495.9 MB, free: 3.605 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007237/0.1748, allocations: 2.576 MB / 498.5 MB, free: 1.02 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002481/0.1773, allocations: 1.014 MB / 499.5 MB, free: 4 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009784/0.1871, allocations: 7.48 MB / 0.4951 GB, free: 8.5 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005905/0.1931, allocations: 4.175 MB / 0.4992 GB, free: 4.273 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004121/0.1972, allocations: 2.247 MB / 0.5014 GB, free: 2.02 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2756/0.4728, allocations: 3.232 MB / 0.5045 GB, free: 17.74 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002518/0.4754, allocations: 453.2 kB / 0.5049 GB, free: 17.74 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004706/0.4801, allocations: 1.31 MB / 0.5062 GB, free: 17.74 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005579/0.4857, allocations: 2.823 MB / 0.509 GB, free: 17.74 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01407/0.4998, allocations: 3.201 MB / 0.5121 GB, free: 16.86 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02261/0.5225, allocations: 9.662 MB / 0.5215 GB, free: 15.49 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.527e-06/0.5226, allocations: 3.125 kB / 0.5215 GB, free: 15.49 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.5226, allocations: 1 kB / 0.5215 GB, free: 15.49 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005024/0.5231, allocations: 0 / 0.5215 GB, free: 15.49 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.02501/0.5481, allocations: 7.21 MB / 0.5286 GB, free: 11.92 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.808e-05/0.5482, allocations: 10.69 kB / 0.5286 GB, free: 11.92 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01491/0.5631, allocations: 3.836 MB / 0.5323 GB, free: 9.984 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0116/0.5748, allocations: 4.051 MB / 0.5363 GB, free: 7.793 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003003/0.5751, allocations: 315.9 kB / 0.5366 GB, free: 7.695 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003291/0.5784, allocations: 435.3 kB / 0.537 GB, free: 7.594 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03436/0.6128, allocations: 15.59 MB / 0.5522 GB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003729/0.6132, allocations: 56.34 kB / 0.5523 GB, free: 10.98 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00223/0.6155, allocations: 198.2 kB / 0.5525 GB, free: 10.85 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006895/0.6224, allocations: 3.378 MB / 0.5558 GB, free: 7.5 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03768/0.6601, allocations: 14.83 MB / 0.5703 GB, free: 8.848 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09099/0.7511, allocations: 55.28 MB / 0.6242 GB, free: 1.184 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02001/0.7712, allocations: 8.204 MB / 0.6323 GB, free: 8.762 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008252/0.7795, allocations: 4.844 MB / 0.637 GB, free: 3.91 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002536/0.7821, allocations: 2.206 MB / 0.6391 GB, free: 1.336 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.5e-05/0.7822, allocations: 69.08 kB / 0.6392 GB, free: 1.258 MB / 478.1 MB Notification: Performance of pre-optimization done (n=367): time 1.23e-05/0.7822, allocations: 0 / 0.6392 GB, free: 1.258 MB / 478.1 MB Notification: Performance of matching and sorting (n=419): time 0.12/0.9022, allocations: 40.17 MB / 0.6784 GB, free: 9.141 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001066/0.9023, allocations: 116 kB / 0.6785 GB, free: 9.008 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009171/0.9115, allocations: 4.287 MB / 0.6827 GB, free: 4.699 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.001361/0.9129, allocations: 84.52 kB / 0.6828 GB, free: 4.613 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002979/0.9159, allocations: 3.794 MB / 0.6865 GB, free: 0.8125 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.002684/0.9186, allocations: 1.485 MB / 0.688 GB, free: 15.34 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002779/0.9214, allocations: 1.571 MB / 0.6895 GB, free: 13.76 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 9.592e-05/0.9215, allocations: 301.1 kB / 0.6898 GB, free: 13.46 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006061/0.9276, allocations: 4.079 MB / 0.6938 GB, free: 9.379 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2983/1.226, allocations: 7.838 MB / 0.7014 GB, free: 180.1 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01929/1.245, allocations: 12.88 MB / 0.714 GB, free: 173.5 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001524/1.245, allocations: 37.19 kB / 0.714 GB, free: 173.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1039) (initialization): time 0.03218/1.278, allocations: 14.73 MB / 0.7284 GB, free: 168.9 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001143/1.278, allocations: 65.78 kB / 0.7285 GB, free: 168.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002258/1.278, allocations: 129.9 kB / 0.7286 GB, free: 168.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008535/1.287, allocations: 2.941 MB / 0.7315 GB, free: 168.5 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007104/1.294, allocations: 1.803 MB / 0.7333 GB, free: 168.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01787/1.312, allocations: 15.95 MB / 0.7488 GB, free: 156 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007531/1.319, allocations: 0.4977 MB / 0.7493 GB, free: 155.7 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001702/1.321, allocations: 433.5 kB / 0.7497 GB, free: 155.3 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.006441/1.327, allocations: 2.875 MB / 0.7525 GB, free: 152.9 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001116/1.328, allocations: 451.3 kB / 0.753 GB, free: 152.6 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0166/1.345, allocations: 10.93 MB / 0.7636 GB, free: 142.2 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.454e-05/1.345, allocations: 64.86 kB / 0.7637 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.005e-05/1.345, allocations: 8 kB / 0.7637 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.829e-05/1.345, allocations: 19.92 kB / 0.7637 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03835/1.384, allocations: 21.69 MB / 0.7849 GB, free: 120.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.437e-05/1.384, allocations: 12 kB / 0.7849 GB, free: 120.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003506/1.387, allocations: 0.6786 MB / 0.7856 GB, free: 119.6 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006962/1.394, allocations: 2.745 MB / 0.7883 GB, free: 116.8 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001135/1.395, allocations: 86.91 kB / 0.7884 GB, free: 116.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0153/1.411, allocations: 14.56 MB / 0.8026 GB, free: 102 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.467e-06/1.411, allocations: 20 kB / 0.8026 GB, free: 102 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0225/1.433, allocations: 15.57 MB / 0.8178 GB, free: 86.21 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001467/1.435, allocations: 0.4924 MB / 0.8183 GB, free: 85.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001714/1.437, allocations: 86.17 kB / 0.8184 GB, free: 85.62 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003219/1.44, allocations: 314.6 kB / 0.8187 GB, free: 85.31 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008558/1.441, allocations: 258 kB / 0.8189 GB, free: 85.06 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002856/1.441, allocations: 112 kB / 0.819 GB, free: 84.95 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003979/1.445, allocations: 2.693 MB / 0.8216 GB, free: 82.25 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.7e-07/1.445, allocations: 0 / 0.8216 GB, free: 82.25 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008656/1.454, allocations: 1.678 MB / 0.8233 GB, free: 80.58 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.0009215/1.455, allocations: 234.8 kB / 0.8235 GB, free: 80.36 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0303/1.485, allocations: 19.96 MB / 0.843 GB, free: 60.41 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-05/1.485, allocations: 384 / 0.843 GB, free: 60.41 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.007149/1.492, allocations: 4.381 MB / 0.8473 GB, free: 56 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007124/1.499, allocations: 0.7255 MB / 0.848 GB, free: 55.29 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03122/1.53, allocations: 15.82 MB / 0.8634 GB, free: 39.29 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007499/1.538, allocations: 4.539 MB / 0.8679 GB, free: 34.7 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.006362/1.544, allocations: 2.723 MB / 0.8705 GB, free: 31.97 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001478/1.546, allocations: 347.4 kB / 0.8709 GB, free: 31.63 MB / 0.5294 GB Notification: Performance of SimCode: time 7.42e-07/1.546, allocations: 0 / 0.8709 GB, free: 31.63 MB / 0.5294 GB Notification: Performance of Templates: time 0.3593/1.905, allocations: 72.25 MB / 0.9414 GB, free: 150.3 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