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.001076/0.001077, allocations: 110.1 kB / 18.3 MB, free: 4.84 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.001026/0.001026, allocations: 199.3 kB / 19.23 MB, free: 3.914 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.372/1.372, allocations: 222.9 MB / 242.9 MB, free: 15.16 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.2201/0.2201, allocations: 44.18 MB / 337.3 MB, free: 2.734 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001996/0.001996, allocations: 55.62 kB / 409.1 MB, free: 27.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1367/0.1387, allocations: 60.82 MB / 469.9 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.02193/0.1607, allocations: 18.2 MB / 488.1 MB, free: 12.07 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01394/0.1747, allocations: 5.288 MB / 493.4 MB, free: 6.77 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004388/0.1791, allocations: 111.7 kB / 493.5 MB, free: 6.66 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006638/0.1858, allocations: 3.052 MB / 496.6 MB, free: 3.598 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008208/0.1941, allocations: 2.583 MB / 499.2 MB, free: 1.008 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002811/0.1969, allocations: 1.014 MB / 0.4884 GB, free: 15.99 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01084/0.2078, allocations: 7.476 MB / 0.4957 GB, free: 8.5 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007049/0.2149, allocations: 4.179 MB / 0.4998 GB, free: 4.27 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004785/0.2197, allocations: 2.247 MB / 0.502 GB, free: 2.016 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2798/0.4995, allocations: 3.232 MB / 0.5052 GB, free: 17.79 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002227/0.5018, allocations: 453.1 kB / 0.5056 GB, free: 17.79 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00427/0.5061, allocations: 1.31 MB / 0.5069 GB, free: 17.79 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004621/0.5107, allocations: 2.822 MB / 0.5096 GB, free: 17.79 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008759/0.5195, allocations: 3.207 MB / 0.5128 GB, free: 16.9 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01746/0.537, allocations: 9.66 MB / 0.5222 GB, free: 15.53 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.5371, allocations: 1.625 kB / 0.5222 GB, free: 15.53 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.5371, allocations: 0 / 0.5222 GB, free: 15.53 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004545/0.5376, allocations: 3.156 kB / 0.5222 GB, free: 15.53 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.02425/0.5618, allocations: 7.207 MB / 0.5293 GB, free: 11.95 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.617e-05/0.5619, allocations: 13.22 kB / 0.5293 GB, free: 11.95 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01654/0.5784, allocations: 3.831 MB / 0.533 GB, free: 10.01 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01035/0.5889, allocations: 4.053 MB / 0.537 GB, free: 7.82 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003448/0.5892, allocations: 315.5 kB / 0.5373 GB, free: 7.723 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00279/0.592, allocations: 429 kB / 0.5377 GB, free: 7.625 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03227/0.6243, allocations: 15.6 MB / 0.5529 GB, free: 11.03 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000287/0.6247, allocations: 55.67 kB / 0.553 GB, free: 10.99 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001553/0.6262, allocations: 194.5 kB / 0.5531 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006729/0.633, allocations: 3.385 MB / 0.5565 GB, free: 7.504 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03488/0.6679, allocations: 14.83 MB / 0.5709 GB, free: 8.855 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0985/0.7664, allocations: 55.27 MB / 0.6249 GB, free: 1.195 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02057/0.787, allocations: 8.207 MB / 0.6329 GB, free: 8.77 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008081/0.7952, allocations: 4.841 MB / 0.6377 GB, free: 3.918 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002523/0.7978, allocations: 2.203 MB / 0.6398 GB, free: 1.348 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.697e-05/0.7979, allocations: 68.17 kB / 0.6399 GB, free: 1.273 MB / 478.1 MB Notification: Performance of pre-optimization done (n=367): time 8.586e-06/0.7979, allocations: 0 / 0.6399 GB, free: 1.273 MB / 478.1 MB Notification: Performance of matching and sorting (n=419): time 0.1258/0.9237, allocations: 40.17 MB / 0.6791 GB, free: 9.156 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001051/0.9238, allocations: 116 kB / 0.6792 GB, free: 9.023 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008129/0.932, allocations: 4.295 MB / 0.6834 GB, free: 4.707 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0012/0.9332, allocations: 81.7 kB / 0.6835 GB, free: 4.621 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.003155/0.9364, allocations: 3.786 MB / 0.6872 GB, free: 0.8281 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.002815/0.9392, allocations: 1.494 MB / 0.6886 GB, free: 15.34 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005479/0.9447, allocations: 1.571 MB / 0.6902 GB, free: 13.77 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 9.525e-05/0.9448, allocations: 301.1 kB / 0.6905 GB, free: 13.47 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007417/0.9522, allocations: 4.079 MB / 0.6944 GB, free: 9.383 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2632/1.215, allocations: 7.839 MB / 0.7021 GB, free: 179.8 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01944/1.235, allocations: 12.88 MB / 0.7147 GB, free: 173.3 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001399/1.235, allocations: 37.16 kB / 0.7147 GB, free: 173.3 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1039) (initialization): time 0.032/1.267, allocations: 14.73 MB / 0.7291 GB, free: 168.6 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.615e-05/1.267, allocations: 65.73 kB / 0.7292 GB, free: 168.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001804/1.267, allocations: 136.6 kB / 0.7293 GB, free: 168.6 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008326/1.276, allocations: 2.934 MB / 0.7322 GB, free: 168.2 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006796/1.283, allocations: 1.805 MB / 0.7339 GB, free: 168 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01812/1.301, allocations: 15.95 MB / 0.7495 GB, free: 155.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007411/1.308, allocations: 0.4932 MB / 0.75 GB, free: 155.4 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001984/1.31, allocations: 442.3 kB / 0.7504 GB, free: 155 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.006906/1.317, allocations: 2.859 MB / 0.7532 GB, free: 152.6 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001168/1.318, allocations: 462.2 kB / 0.7536 GB, free: 152.4 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01813/1.336, allocations: 10.94 MB / 0.7643 GB, free: 142.2 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.539e-05/1.337, allocations: 59.98 kB / 0.7644 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.334e-05/1.337, allocations: 12 kB / 0.7644 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.721e-05/1.337, allocations: 15.94 kB / 0.7644 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03912/1.376, allocations: 21.69 MB / 0.7856 GB, free: 120.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.994e-05/1.376, allocations: 15.47 kB / 0.7856 GB, free: 120.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003551/1.379, allocations: 0.6805 MB / 0.7863 GB, free: 119.6 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007514/1.387, allocations: 2.745 MB / 0.7889 GB, free: 116.8 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009159/1.388, allocations: 79.94 kB / 0.789 GB, free: 116.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01615/1.404, allocations: 14.57 MB / 0.8032 GB, free: 102 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.727e-06/1.404, allocations: 15.94 kB / 0.8033 GB, free: 102 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02442/1.428, allocations: 15.56 MB / 0.8184 GB, free: 86.22 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001578/1.43, allocations: 0.4978 MB / 0.8189 GB, free: 85.71 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002223/1.432, allocations: 82.5 kB / 0.819 GB, free: 85.63 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004475/1.437, allocations: 315.9 kB / 0.8193 GB, free: 85.32 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001748/1.439, allocations: 258 kB / 0.8196 GB, free: 85.07 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001102/1.44, allocations: 118.6 kB / 0.8197 GB, free: 84.95 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005504/1.445, allocations: 2.689 MB / 0.8223 GB, free: 82.26 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.51e-07/1.445, allocations: 3.938 kB / 0.8223 GB, free: 82.26 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01232/1.458, allocations: 1.677 MB / 0.8239 GB, free: 80.59 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.001545/1.459, allocations: 240.2 kB / 0.8242 GB, free: 80.36 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.03154/1.491, allocations: 19.95 MB / 0.8437 GB, free: 60.41 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.136e-05/1.491, allocations: 8.188 kB / 0.8437 GB, free: 60.4 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00718/1.498, allocations: 4.38 MB / 0.8479 GB, free: 56 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006149/1.504, allocations: 0.7175 MB / 0.8486 GB, free: 55.29 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02925/1.534, allocations: 16.41 MB / 0.8647 GB, free: 38.7 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007132/1.541, allocations: 4.524 MB / 0.8691 GB, free: 34.13 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002451/1.543, allocations: 403.3 kB / 0.8695 GB, free: 33.74 MB / 0.5294 GB Notification: Performance of SimCode: time 1.472e-06/1.543, allocations: 0 / 0.8695 GB, free: 33.74 MB / 0.5294 GB Notification: Performance of Templates: time 0.4241/1.967, allocations: 141.5 MB / 1.008 GB, free: 85.15 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/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