Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Cylindrical.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.Cylindrical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cylindrical.phi|cylindrical.s|cylindrical.v|cylindrical.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Cylindrical") translateModel(ModelicaTest.MultiBody.Joints.Cylindrical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cylindrical.phi|cylindrical.s|cylindrical.v|cylindrical.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Cylindrical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001028/0.001028, 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.0009913/0.0009913, 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.286/1.286, allocations: 222.9 MB / 242.2 MB, free: 15.17 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.2025/0.2025, allocations: 44.18 MB / 336.6 MB, free: 2.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001805/0.001805, allocations: 69.3 kB / 408.4 MB, free: 27.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1247/0.1265, allocations: 60.82 MB / 469.2 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Cylindrical): time 0.01669/0.1433, allocations: 13.54 MB / 482.8 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01101/0.1543, allocations: 4.162 MB / 487 MB, free: 12.6 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003591/0.158, allocations: 71.81 kB / 487 MB, free: 12.53 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004021/0.162, allocations: 1.822 MB / 488.8 MB, free: 10.7 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006202/0.1683, allocations: 1.837 MB / 490.7 MB, free: 8.855 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001925/0.1703, allocations: 0.5498 MB / 491.2 MB, free: 8.305 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005808/0.1761, allocations: 3.871 MB / 495.1 MB, free: 4.426 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003564/0.1797, allocations: 2.705 MB / 497.8 MB, free: 1.672 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002399/0.1821, allocations: 1.362 MB / 499.2 MB, free: 312 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00256/0.1847, allocations: 1.955 MB / 0.4894 GB, free: 14.34 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005802/0.1853, allocations: 292 kB / 0.4897 GB, free: 14.05 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002013/0.1873, allocations: 1.014 MB / 0.4906 GB, free: 13.04 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0016/0.1889, allocations: 1.776 MB / 0.4924 GB, free: 11.26 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002221/0.1911, allocations: 2.116 MB / 0.4944 GB, free: 9.133 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00693/0.1981, allocations: 6.655 MB / 0.5009 GB, free: 2.457 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.1981, allocations: 0 / 0.5009 GB, free: 2.457 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.667e-06/0.1981, allocations: 0 / 0.5009 GB, free: 2.457 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001499/0.1983, allocations: 3.938 kB / 0.501 GB, free: 2.453 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: 1641 * Number of variables: 1641 Notification: Performance of Generate backend data structure: time 0.2696/0.4679, allocations: 4.546 MB / 0.5054 GB, free: 46.62 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.913e-05/0.468, allocations: 10.69 kB / 0.5054 GB, free: 46.62 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01209/0.4801, allocations: 3.114 MB / 0.5084 GB, free: 46.23 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006109/0.4862, allocations: 2.12 MB / 0.5105 GB, free: 45.14 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000238/0.4865, allocations: 224.8 kB / 0.5107 GB, free: 45.08 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00143/0.4879, allocations: 284.7 kB / 0.511 GB, free: 45.02 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02219/0.5101, allocations: 11.11 MB / 0.5218 GB, free: 39.41 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001169/0.5103, allocations: 23.66 kB / 0.5219 GB, free: 39.39 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004345/0.5108, allocations: 139.2 kB / 0.522 GB, free: 39.29 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003956/0.5147, allocations: 2.632 MB / 0.5246 GB, free: 37.47 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01767/0.5324, allocations: 10.38 MB / 0.5347 GB, free: 27.08 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05784/0.5903, allocations: 36.69 MB / 0.5705 GB, free: 5.543 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01024/0.6006, allocations: 4.579 MB / 0.575 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003984/0.6046, allocations: 2.4 MB / 0.5774 GB, free: 14.34 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001449/0.6061, allocations: 1.315 MB / 0.5786 GB, free: 12.8 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.223e-05/0.6062, allocations: 56.56 kB / 0.5787 GB, free: 12.74 MB / 414.1 MB Notification: Performance of pre-optimization done (n=242): time 7.373e-06/0.6062, allocations: 0 / 0.5787 GB, free: 12.74 MB / 414.1 MB Notification: Performance of matching and sorting (n=254): time 0.04617/0.6524, allocations: 17.58 MB / 0.5959 GB, free: 11.09 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.053e-05/0.6525, allocations: 73.41 kB / 0.5959 GB, free: 11 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005349/0.6579, allocations: 2.742 MB / 0.5986 GB, free: 8.242 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000386/0.6583, allocations: 57.7 kB / 0.5987 GB, free: 8.18 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002327/0.6606, allocations: 2.776 MB / 0.6014 GB, free: 5.367 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001406/0.6621, allocations: 0.9173 MB / 0.6023 GB, free: 4.438 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002243/0.6643, allocations: 1.068 MB / 0.6033 GB, free: 3.359 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001862/0.6645, allocations: 301.1 kB / 0.6036 GB, free: 3.062 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003703/0.6682, allocations: 2.318 MB / 0.6059 GB, free: 0.7383 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005768/0.674, allocations: 5.214 MB / 0.611 GB, free: 10.1 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01022/0.6842, allocations: 8.276 MB / 0.619 GB, free: 420 kB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.219e-05/0.6844, allocations: 28 kB / 0.6191 GB, free: 392 kB / 446.1 MB Notification: Performance of matching and sorting (n=718) (initialization): time 0.01612/0.7005, allocations: 8.293 MB / 0.6272 GB, free: 8.07 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001403/0.7007, allocations: 49 kB / 0.6272 GB, free: 8.023 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000249/0.7009, allocations: 107.9 kB / 0.6273 GB, free: 7.918 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002909/0.7039, allocations: 0.9477 MB / 0.6282 GB, free: 6.969 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0043/0.7082, allocations: 1.22 MB / 0.6294 GB, free: 5.746 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00735/0.7155, allocations: 5.14 MB / 0.6344 GB, free: 484 kB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004371/0.7199, allocations: 295.8 kB / 0.6347 GB, free: 188 kB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001035/0.721, allocations: 304 kB / 0.635 GB, free: 15.88 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 459 * Number of states: 0 () * Number of discrete variables: 35 (axis.arrowLine.twoHeadedArrow,axis.headAtOrigin,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],cylindrical.cylinderColor[3],cylindrical.cylinderColor[2],cylindrical.cylinderColor[1],cylindrical.revolute.cylinderColor[3],cylindrical.revolute.cylinderColor[2],cylindrical.revolute.cylinderColor[1],cylindrical.prismatic.boxColor[3],cylindrical.prismatic.boxColor[2],cylindrical.prismatic.boxColor[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 (657): * Single equations (assignments): 650 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,10,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005288/0.7263, allocations: 2.154 MB / 0.6371 GB, free: 13.72 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008713/0.7272, allocations: 276.4 kB / 0.6374 GB, free: 13.45 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009846/0.737, allocations: 5.133 MB / 0.6424 GB, free: 8.285 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.072e-05/0.7371, allocations: 47.98 kB / 0.6424 GB, free: 8.238 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.697e-05/0.7371, allocations: 4 kB / 0.6424 GB, free: 8.234 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-05/0.7372, allocations: 11.95 kB / 0.6425 GB, free: 8.223 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02188/0.7591, allocations: 11.91 MB / 0.6541 GB, free: 12.11 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.676e-05/0.7591, allocations: 8 kB / 0.6541 GB, free: 12.1 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001726/0.7609, allocations: 400.2 kB / 0.6545 GB, free: 11.71 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002454/0.7633, allocations: 0.7771 MB / 0.6552 GB, free: 10.93 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003054/0.7637, allocations: 51.92 kB / 0.6553 GB, free: 10.88 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005605/0.7693, allocations: 4.394 MB / 0.6596 GB, free: 6.348 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.307e-05/0.7693, allocations: 11.94 kB / 0.6596 GB, free: 6.336 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0122/0.7815, allocations: 7.624 MB / 0.667 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001008/0.7826, allocations: 329.5 kB / 0.6673 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000816/0.7834, allocations: 51.92 kB / 0.6674 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001904/0.7853, allocations: 143.8 kB / 0.6675 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000513/0.7859, allocations: 156.9 kB / 0.6677 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002412/0.7861, allocations: 71.98 kB / 0.6678 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003732/0.7899, allocations: 1.693 MB / 0.6694 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.21e-07/0.7899, allocations: 0 / 0.6694 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005774/0.7957, allocations: 0.9793 MB / 0.6704 GB, free: 11.12 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * Number of states: 4 (cylindrical.s,cylindrical.phi,cylindrical.v,cylindrical.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 (196): * Single equations (assignments): 189 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008404/0.7965, allocations: 197.5 kB / 0.6705 GB, free: 10.91 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01548/0.812, allocations: 9.102 MB / 0.6794 GB, free: 1.852 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.516e-05/0.8121, allocations: 4.375 kB / 0.6794 GB, free: 1.848 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003394/0.8155, allocations: 2.156 MB / 0.6815 GB, free: 15.68 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003149/0.8186, allocations: 395.8 kB / 0.6819 GB, free: 15.3 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01998/0.8386, allocations: 10.21 MB / 0.6919 GB, free: 4.934 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005205/0.8439, allocations: 3.375 MB / 0.6952 GB, free: 1.527 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.25/1.094, allocations: 1.986 MB / 0.6971 GB, free: 169.9 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001277/1.095, allocations: 209.6 kB / 0.6973 GB, free: 169.9 MB / 0.5137 GB Notification: Performance of SimCode: time 1.673e-06/1.095, allocations: 0 / 0.6973 GB, free: 169.9 MB / 0.5137 GB Notification: Performance of Templates: time 0.06761/1.163, allocations: 33.84 MB / 0.7304 GB, free: 156.6 MB / 0.5137 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Cylindrical.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Cylindrical.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Cylindrical.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Cylindrical.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Cylindrical.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Cylindrical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Cylindrical.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Cylindrical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Cylindrical/Cylindrical.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Cylindrical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches