Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001858/0.001858, allocations: 122.7 kB / 18.46 MB, free: 4.59 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001894/0.001894, allocations: 211.3 kB / 21.41 MB, free: 1.645 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.501/1.501, allocations: 227.4 MB / 251.6 MB, free: 52 kB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2314/0.2314, allocations: 46.17 MB / 351.1 MB, free: 14.27 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00225/0.00225, allocations: 85.03 kB / 490.2 MB, free: 28.01 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1334/0.1357, allocations: 62.44 MB / 0.5397 GB, free: 4.234 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.0116/0.1473, allocations: 9.055 MB / 0.5485 GB, free: 11.13 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.007497/0.1549, allocations: 3.574 MB / 0.552 GB, free: 7.539 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001734/0.1567, allocations: 51.88 kB / 0.5521 GB, free: 7.488 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004131/0.1608, allocations: 1.9 MB / 0.5539 GB, free: 5.582 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005879/0.1668, allocations: 1.582 MB / 0.5555 GB, free: 3.996 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001717/0.1685, allocations: 0.5575 MB / 0.556 GB, free: 3.438 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006635/0.1752, allocations: 3.661 MB / 0.5596 GB, free: 15.77 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003546/0.1787, allocations: 2.432 MB / 0.562 GB, free: 13.28 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001972/0.1807, allocations: 1.16 MB / 0.5631 GB, free: 12.12 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002397/0.1832, allocations: 1.631 MB / 0.5647 GB, free: 10.48 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005486/0.1837, allocations: 240 kB / 0.5649 GB, free: 10.25 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002154/0.1859, allocations: 1.116 MB / 0.566 GB, free: 9.129 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001577/0.1875, allocations: 1.508 MB / 0.5675 GB, free: 7.617 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001863/0.1893, allocations: 1.708 MB / 0.5691 GB, free: 5.898 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007435/0.1968, allocations: 5.716 MB / 0.5747 GB, free: 164 kB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.1968, allocations: 4 kB / 0.5747 GB, free: 160 kB / 430.1 MB Notification: Performance of FrontEnd: time 5.34e-06/0.1968, allocations: 3.984 kB / 0.5747 GB, free: 156 kB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001456/0.197, allocations: 0 / 0.5747 GB, free: 156 kB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1211 * Number of variables: 1211 Notification: Performance of Generate backend data structure: time 0.00809/0.2051, allocations: 3.922 MB / 0.5786 GB, free: 12.16 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.838e-05/0.2051, allocations: 12.03 kB / 0.5786 GB, free: 12.14 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01601/0.2212, allocations: 2.37 MB / 0.5809 GB, free: 9.77 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006475/0.2277, allocations: 2.265 MB / 0.5831 GB, free: 7.453 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002204/0.228, allocations: 176.8 kB / 0.5833 GB, free: 7.277 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009824/0.2289, allocations: 236 kB / 0.5835 GB, free: 7.047 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01377/0.2427, allocations: 7.79 MB / 0.5911 GB, free: 14.61 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.666e-05/0.2429, allocations: 35.69 kB / 0.5911 GB, free: 14.57 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004432/0.2433, allocations: 111.9 kB / 0.5912 GB, free: 14.46 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002791/0.2461, allocations: 1.586 MB / 0.5928 GB, free: 12.88 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01367/0.2598, allocations: 6.589 MB / 0.5992 GB, free: 6.273 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3207/0.5805, allocations: 31.66 MB / 0.6301 GB, free: 32.95 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005195/0.5858, allocations: 2.474 MB / 0.6326 GB, free: 31.74 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001636/0.5875, allocations: 1.124 MB / 0.6337 GB, free: 31.27 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003475/0.5878, allocations: 332.8 kB / 0.634 GB, free: 30.97 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.136e-05/0.5879, allocations: 39.28 kB / 0.634 GB, free: 30.93 MB / 462.1 MB Notification: Performance of pre-optimization done (n=104): time 4.879e-06/0.5879, allocations: 0 / 0.634 GB, free: 30.93 MB / 462.1 MB Notification: Performance of matching and sorting (n=118): time 0.0223/0.6102, allocations: 9.33 MB / 0.6431 GB, free: 27.12 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.059e-05/0.6103, allocations: 199.8 kB / 0.6433 GB, free: 26.89 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005104/0.6154, allocations: 3.759 MB / 0.647 GB, free: 25.61 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002369/0.6157, allocations: 45.05 kB / 0.647 GB, free: 25.57 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001352/0.617, allocations: 2.802 MB / 0.6498 GB, free: 23.39 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004387/0.6175, allocations: 0.5104 MB / 0.6503 GB, free: 22.97 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001013/0.6185, allocations: 1.134 MB / 0.6514 GB, free: 22.32 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.884e-05/0.6185, allocations: 309.1 kB / 0.6517 GB, free: 22.02 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001842/0.6204, allocations: 1.688 MB / 0.6533 GB, free: 21.22 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002849/0.6232, allocations: 5.257 MB / 0.6584 GB, free: 15.36 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005727/0.629, allocations: 7.514 MB / 0.6658 GB, free: 8.195 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.077e-05/0.6291, allocations: 37.59 kB / 0.6658 GB, free: 8.195 MB / 462.1 MB Notification: Performance of matching and sorting (n=717) (initialization): time 0.009928/0.639, allocations: 7.141 MB / 0.6728 GB, free: 1.285 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.431e-05/0.6391, allocations: 60 kB / 0.6728 GB, free: 1.227 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.69e-05/0.6392, allocations: 128.7 kB / 0.673 GB, free: 1.102 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001351/0.6406, allocations: 0.6526 MB / 0.6736 GB, free: 456 kB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003456/0.644, allocations: 1.248 MB / 0.6748 GB, free: 15.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00535/0.6494, allocations: 4.078 MB / 0.6788 GB, free: 10.98 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004701/0.6541, allocations: 295.8 kB / 0.6791 GB, free: 10.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008924/0.6551, allocations: 359.4 kB / 0.6794 GB, free: 10.35 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 577 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.twoHeadedArrow,distance2.arrow.headAtOrigin,distance1.arrow.twoHeadedArrow,distance1.arrow.headAtOrigin,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[1],distance1.arrowColor[3],distance1.arrowColor[2],distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (682): * Single equations (assignments): 678 * Array equations: 3 * 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,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003732/0.6588, allocations: 1.775 MB / 0.6812 GB, free: 8.562 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008996/0.6597, allocations: 321.8 kB / 0.6815 GB, free: 8.246 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003978/0.6637, allocations: 1.836 MB / 0.6833 GB, free: 6.402 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.143e-05/0.6637, allocations: 16 kB / 0.6833 GB, free: 6.387 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.108e-05/0.6638, allocations: 0 / 0.6833 GB, free: 6.387 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.685e-05/0.6638, allocations: 11.97 kB / 0.6833 GB, free: 6.375 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01152/0.6753, allocations: 5.2 MB / 0.6884 GB, free: 1.125 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.308e-05/0.6753, allocations: 4 kB / 0.6884 GB, free: 1.121 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008247/0.6762, allocations: 155.8 kB / 0.6885 GB, free: 0.9688 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001467/0.6777, allocations: 488.2 kB / 0.689 GB, free: 500 kB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001178/0.6778, allocations: 27.81 kB / 0.689 GB, free: 476 kB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004622/0.6824, allocations: 3.427 MB / 0.6924 GB, free: 12.89 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.6825, allocations: 4.031 kB / 0.6924 GB, free: 12.89 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006311/0.6888, allocations: 3.748 MB / 0.696 GB, free: 9.117 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001094/0.6899, allocations: 382.1 kB / 0.6964 GB, free: 8.727 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006718/0.6906, allocations: 27.98 kB / 0.6964 GB, free: 8.699 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001342/0.6919, allocations: 55.92 kB / 0.6965 GB, free: 8.645 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002098/0.6922, allocations: 60.48 kB / 0.6965 GB, free: 8.586 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.641e-05/0.6923, allocations: 31.83 kB / 0.6966 GB, free: 8.559 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004502/0.6968, allocations: 2.334 MB / 0.6988 GB, free: 6.238 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.6968, allocations: 0 / 0.6988 GB, free: 6.238 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004672/0.7015, allocations: 0.7968 MB / 0.6996 GB, free: 5.441 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (Revolute1.phi,Revolute1.w) * Number of discrete variables: 1 (LessEqualThreshold1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 84 * Array equations: 3 * 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 {(1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000437/0.7019, allocations: 150.8 kB / 0.6998 GB, free: 5.289 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007026/0.709, allocations: 4.031 MB / 0.7037 GB, free: 1.277 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.709, allocations: 480 / 0.7037 GB, free: 1.277 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001591/0.7106, allocations: 1.005 MB / 0.7047 GB, free: 264 kB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00278/0.7134, allocations: 359.2 kB / 0.705 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01425/0.7276, allocations: 7.235 MB / 0.7121 GB, free: 8.656 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004113/0.7318, allocations: 2.712 MB / 0.7147 GB, free: 5.914 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.003886/0.7357, allocations: 1.707 MB / 0.7164 GB, free: 4.203 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005298/0.7362, allocations: 207.4 kB / 0.7166 GB, free: 4 MB / 0.4981 GB Notification: Performance of SimCode: time 8.51e-07/0.7363, allocations: 0 / 0.7166 GB, free: 4 MB / 0.4981 GB Notification: Performance of Templates: time 0.05532/0.7916, allocations: 25.71 MB / 0.7417 GB, free: 10.45 MB / 0.5294 GB " [Timeout remaining time 659] make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.673439190723002]