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.001044/0.001044, allocations: 100.3 kB / 16.99 MB, free: 6.402 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.0008875/0.0008877, allocations: 178.5 kB / 17.88 MB, free: 5.957 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.32/1.32, allocations: 223.2 MB / 241.8 MB, free: 396 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2113/0.2113, allocations: 44.23 MB / 337.1 MB, free: 2.914 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003164/0.0003164, allocations: 8.781 kB / 409.5 MB, free: 27.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1276/0.1279, allocations: 61.93 MB / 471.5 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Cylindrical): time 0.02948/0.1574, allocations: 32.44 MB / 0.4921 GB, free: 13.23 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01597/0.1734, allocations: 8.079 MB / 0.5 GB, free: 5.129 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005459/0.1789, allocations: 155.6 kB / 0.5001 GB, free: 4.977 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005093/0.1841, allocations: 1.641 MB / 0.5017 GB, free: 3.328 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2983/0.4824, allocations: 4.859 MB / 0.5065 GB, free: 11.5 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002698/0.4851, allocations: 463.9 kB / 0.5069 GB, free: 11.5 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005308/0.4904, allocations: 2.101 MB / 0.509 GB, free: 11.49 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006823/0.4973, allocations: 3.004 MB / 0.5119 GB, free: 11.19 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002951/0.5003, allocations: 0.9594 MB / 0.5128 GB, free: 11.19 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003144/0.5034, allocations: 1.331 MB / 0.5141 GB, free: 11.18 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001185/0.5046, allocations: 147.2 kB / 0.5143 GB, free: 11.18 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00323/0.5079, allocations: 0.7644 MB / 0.515 GB, free: 11.18 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002777/0.5107, allocations: 1.471 MB / 0.5165 GB, free: 11.18 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00151/0.5122, allocations: 0.8142 MB / 0.5173 GB, free: 11.15 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0089/0.5211, allocations: 5.291 MB / 0.5224 GB, free: 10.09 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.5212, allocations: 0 / 0.5224 GB, free: 10.09 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.486e-06/0.5212, allocations: 4 kB / 0.5224 GB, free: 10.08 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003875/0.5216, allocations: 0 / 0.5224 GB, free: 10.08 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.01301/0.5346, allocations: 3.845 MB / 0.5262 GB, free: 7.719 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.048e-05/0.5347, allocations: 10.09 kB / 0.5262 GB, free: 7.719 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0126/0.5473, allocations: 3.771 MB / 0.5299 GB, free: 6.047 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00581/0.5531, allocations: 2.2 MB / 0.532 GB, free: 5.301 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001821/0.5533, allocations: 224.1 kB / 0.5322 GB, free: 5.289 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001022/0.5543, allocations: 283 kB / 0.5325 GB, free: 5.285 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01818/0.5725, allocations: 11.17 MB / 0.5434 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001049/0.5727, allocations: 32.91 kB / 0.5435 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004559/0.5732, allocations: 132.5 kB / 0.5436 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004373/0.5775, allocations: 2.626 MB / 0.5461 GB, free: 14.63 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02383/0.6014, allocations: 10.44 MB / 0.5563 GB, free: 7.324 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06557/0.667, allocations: 36.78 MB / 0.5923 GB, free: 4.801 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009415/0.6765, allocations: 4.573 MB / 0.5967 GB, free: 8 kB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001414/0.6779, allocations: 1.318 MB / 0.598 GB, free: 14.48 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.767e-05/0.678, allocations: 50.53 kB / 0.5981 GB, free: 14.43 MB / 446.1 MB Notification: Performance of pre-optimization done (n=242): time 7.564e-06/0.678, allocations: 3.375 kB / 0.5981 GB, free: 14.43 MB / 446.1 MB Notification: Performance of matching and sorting (n=254): time 0.05227/0.7303, allocations: 18.08 MB / 0.6157 GB, free: 12.21 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.004e-05/0.7304, allocations: 73.41 kB / 0.6158 GB, free: 12.13 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007129/0.7376, allocations: 2.836 MB / 0.6186 GB, free: 9.285 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008279/0.7385, allocations: 60.75 kB / 0.6186 GB, free: 9.223 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003577/0.7421, allocations: 2.767 MB / 0.6213 GB, free: 6.465 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002102/0.7442, allocations: 0.9235 MB / 0.6222 GB, free: 5.551 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009487/0.7452, allocations: 100 kB / 0.6223 GB, free: 5.453 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0009006/0.7461, allocations: 0.5413 MB / 0.6228 GB, free: 4.906 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007249/0.7533, allocations: 2.283 MB / 0.6251 GB, free: 2.617 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01122/0.7646, allocations: 5.175 MB / 0.6301 GB, free: 12.07 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0113/0.776, allocations: 3.441 MB / 0.6335 GB, free: 8.719 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002637/0.7764, allocations: 28 kB / 0.6335 GB, free: 8.691 MB / 478.1 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.02826/0.8047, allocations: 8.233 MB / 0.6415 GB, free: 0.5156 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001421/0.8049, allocations: 48 kB / 0.6416 GB, free: 480 kB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001673/0.805, allocations: 100 kB / 0.6417 GB, free: 380 kB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002971/0.808, allocations: 0.9457 MB / 0.6426 GB, free: 15.42 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005198/0.8133, allocations: 1.218 MB / 0.6438 GB, free: 14.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006836/0.8201, allocations: 4.922 MB / 0.6486 GB, free: 9.152 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004867/0.825, allocations: 303.7 kB / 0.6489 GB, free: 8.855 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001705/0.8267, allocations: 312 kB / 0.6492 GB, free: 8.551 MB / 494.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 (653): * Single equations (assignments): 646 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007086/0.8338, allocations: 2.153 MB / 0.6513 GB, free: 6.387 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00127/0.8351, allocations: 276.4 kB / 0.6516 GB, free: 6.113 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01113/0.8463, allocations: 5.12 MB / 0.6566 GB, free: 0.9648 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.885e-05/0.8464, allocations: 45.84 kB / 0.6566 GB, free: 0.9219 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.251e-05/0.8464, allocations: 4 kB / 0.6566 GB, free: 0.918 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.899e-05/0.8465, allocations: 11.95 kB / 0.6566 GB, free: 0.9062 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02754/0.874, allocations: 11.88 MB / 0.6682 GB, free: 4.879 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.469e-05/0.8741, allocations: 8.969 kB / 0.6682 GB, free: 4.871 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002068/0.8762, allocations: 395.4 kB / 0.6686 GB, free: 4.484 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0025/0.8787, allocations: 0.7787 MB / 0.6694 GB, free: 3.703 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000409/0.8791, allocations: 51.98 kB / 0.6694 GB, free: 3.652 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005703/0.8849, allocations: 4.209 MB / 0.6735 GB, free: 15.32 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.384e-05/0.8849, allocations: 15.94 kB / 0.6735 GB, free: 15.3 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01298/0.8979, allocations: 8.435 MB / 0.6818 GB, free: 6.477 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000952/0.8989, allocations: 337.5 kB / 0.6821 GB, free: 6.125 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009129/0.8998, allocations: 58.75 kB / 0.6822 GB, free: 6.07 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002026/0.9019, allocations: 143.8 kB / 0.6823 GB, free: 5.93 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005669/0.9025, allocations: 152.9 kB / 0.6824 GB, free: 5.781 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000319/0.9028, allocations: 71.98 kB / 0.6825 GB, free: 5.711 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004794/0.9076, allocations: 1.751 MB / 0.6842 GB, free: 3.953 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.21e-07/0.9076, allocations: 0 / 0.6842 GB, free: 3.953 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.00724/0.9149, allocations: 1.006 MB / 0.6852 GB, free: 2.949 MB / 0.5137 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00113/0.916, allocations: 209 kB / 0.6854 GB, free: 2.742 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01043/0.9265, allocations: 5.577 MB / 0.6908 GB, free: 13.18 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.339e-05/0.9265, allocations: 4 kB / 0.6909 GB, free: 13.17 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003662/0.9302, allocations: 2.145 MB / 0.6929 GB, free: 11.02 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002684/0.9329, allocations: 341.7 kB / 0.6933 GB, free: 10.68 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3475/1.28, allocations: 12.03 MB / 0.705 GB, free: 150.4 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006404/1.287, allocations: 3.465 MB / 0.7084 GB, free: 149.6 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.006159/1.293, allocations: 1.986 MB / 0.7103 GB, free: 149.6 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001081/1.294, allocations: 217.2 kB / 0.7106 GB, free: 149.6 MB / 0.5294 GB Notification: Performance of SimCode: time 1.893e-06/1.294, allocations: 0 / 0.7106 GB, free: 149.6 MB / 0.5294 GB Notification: Performance of Templates: time 0.06869/1.363, allocations: 31.89 MB / 0.7417 GB, free: 135.5 MB / 0.5294 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","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Cylindrical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches