Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001473/0.001473, allocations: 80.05 kB / 20.72 MB, free: 3.766 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00165/0.00165, allocations: 173 kB / 24.14 MB, free: 356 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9627/0.9627, allocations: 158.6 MB / 186 MB, free: 2.754 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1389/0.1389, allocations: 32.38 MB / 270.7 MB, free: 14.59 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.524e-06/2.524e-06, allocations: 4 kB / 299.1 MB, free: 2.16 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.634e-05/1.886e-05, allocations: 2.312 kB / 299.1 MB, free: 2.156 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.1346/0.1346, allocations: 9.523 MB / 308.6 MB, free: 15.44 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.006255/0.1408, allocations: 3.74 MB / 312.4 MB, free: 13.12 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008168/0.1417, allocations: 65 kB / 312.4 MB, free: 13.1 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002445/0.1441, allocations: 2.057 MB / 314.5 MB, free: 12.22 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002953/0.1471, allocations: 1.851 MB / 316.3 MB, free: 11 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009676/0.148, allocations: 0.6212 MB / 317 MB, free: 10.58 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.003316/0.1513, allocations: 4.116 MB / 321.1 MB, free: 8.199 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001677/0.153, allocations: 2.434 MB / 323.5 MB, free: 5.699 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001828/0.1548, allocations: 2.233 MB / 325.7 MB, free: 3.461 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001631/0.1565, allocations: 1.913 MB / 327.7 MB, free: 1.543 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003766/0.1568, allocations: 280 kB / 327.9 MB, free: 1.27 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001201/0.1581, allocations: 1.143 MB / 329.1 MB, free: 128 kB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001091/0.1591, allocations: 1.819 MB / 330.9 MB, free: 14.3 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009258/0.1601, allocations: 1.102 MB / 332 MB, free: 13.2 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003522/0.1636, allocations: 4.32 MB / 336.3 MB, free: 8.859 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.1636, allocations: 4 kB / 336.3 MB, free: 8.855 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.166e-06/0.1636, allocations: 4 kB / 336.3 MB, free: 8.852 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.404e-05/0.1637, allocations: 0 / 336.3 MB, free: 8.852 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1367 * Number of variables: 1367 Notification: Performance of Generate backend data structure: time 0.003903/0.1676, allocations: 3.931 MB / 340.3 MB, free: 4.871 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.492e-05/0.1676, allocations: 8.031 kB / 340.3 MB, free: 4.863 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003134/0.1707, allocations: 1.12 MB / 341.4 MB, free: 3.742 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001768/0.1725, allocations: 1.634 MB / 343 MB, free: 2.066 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001096/0.1726, allocations: 193.3 kB / 343.2 MB, free: 1.875 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003029/0.1729, allocations: 268.2 kB / 343.5 MB, free: 1.613 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003816/0.1767, allocations: 4.335 MB / 347.8 MB, free: 12.61 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.03e-05/0.1768, allocations: 43.61 kB / 347.8 MB, free: 12.57 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000213/0.177, allocations: 127.9 kB / 348 MB, free: 12.45 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001315/0.1783, allocations: 1.618 MB / 349.6 MB, free: 10.82 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002873/0.1812, allocations: 2.155 MB / 351.7 MB, free: 8.664 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01696/0.1982, allocations: 27.66 MB / 379.4 MB, free: 11.93 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001753/0.1999, allocations: 0.848 MB / 380.3 MB, free: 11.04 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002489/0.2002, allocations: 209.3 kB / 380.5 MB, free: 10.83 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002638/0.2028, allocations: 2.413 MB / 382.9 MB, free: 8.395 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.009e-05/0.2028, allocations: 42.56 kB / 382.9 MB, free: 8.344 MB / 346.7 MB Notification: Performance of pre-optimization done (n=91): time 2.415e-06/0.2028, allocations: 0 / 382.9 MB, free: 8.344 MB / 346.7 MB Notification: Performance of matching and sorting (n=100): time 0.005585/0.2084, allocations: 2.672 MB / 385.6 MB, free: 5.629 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.21e-05/0.2085, allocations: 195.9 kB / 385.8 MB, free: 5.395 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002154/0.2106, allocations: 3.148 MB / 388.9 MB, free: 2.238 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.303e-05/0.2107, allocations: 37.7 kB / 389 MB, free: 2.195 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001214/0.2119, allocations: 3.026 MB / 392 MB, free: 15.14 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002453/0.2121, allocations: 460.8 kB / 392.4 MB, free: 14.68 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008293/0.213, allocations: 1.136 MB / 393.6 MB, free: 13.54 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.169e-05/0.213, allocations: 305.1 kB / 393.9 MB, free: 13.23 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009133/0.214, allocations: 0.6718 MB / 394.5 MB, free: 12.55 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002549/0.2165, allocations: 4.565 MB / 399.1 MB, free: 5.973 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003772/0.2203, allocations: 5.732 MB / 404.8 MB, free: 14.24 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.792e-05/0.2203, allocations: 40 kB / 404.9 MB, free: 14.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=766) (initialization): time 0.003984/0.2243, allocations: 4.03 MB / 408.9 MB, free: 10.15 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.537e-05/0.2244, allocations: 74.44 kB / 409 MB, free: 10.08 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.823e-05/0.2244, allocations: 144 kB / 409.1 MB, free: 9.938 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002596/0.2247, allocations: 215.7 kB / 409.3 MB, free: 9.723 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002005/0.2267, allocations: 1.392 MB / 410.7 MB, free: 8.328 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008002/0.2275, allocations: 1.466 MB / 412.2 MB, free: 6.762 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001672/0.2292, allocations: 279.7 kB / 412.5 MB, free: 6.488 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000259/0.2294, allocations: 328 kB / 412.8 MB, free: 6.168 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 647 * Number of states: 0 () * Number of discrete variables: 31 (LessEqualThreshold1.y,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 (741): * Single equations (assignments): 737 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001066/0.2305, allocations: 0.6143 MB / 413.4 MB, free: 5.543 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002288/0.2307, allocations: 183.7 kB / 413.6 MB, free: 5.363 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000559/0.2313, allocations: 0.5103 MB / 414.1 MB, free: 4.832 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.131e-05/0.2313, allocations: 12 kB / 414.1 MB, free: 4.82 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.2313, allocations: 0 / 414.1 MB, free: 4.82 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.234e-06/0.2313, allocations: 3.984 kB / 414.1 MB, free: 4.816 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002943/0.2343, allocations: 2.766 MB / 416.9 MB, free: 1.969 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.2343, allocations: 4 kB / 416.9 MB, free: 1.965 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003432/0.2346, allocations: 135.8 kB / 417 MB, free: 1.832 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002857/0.2349, allocations: 217.4 kB / 417.2 MB, free: 1.613 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.064e-05/0.2349, allocations: 16.34 kB / 417.2 MB, free: 1.598 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006057/0.2355, allocations: 1.21 MB / 418.4 MB, free: 300 kB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/0.2355, allocations: 11.88 kB / 418.5 MB, free: 288 kB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001003/0.2365, allocations: 1.258 MB / 419.7 MB, free: 14.95 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006622/0.2372, allocations: 349.8 kB / 420.1 MB, free: 14.61 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001829/0.2374, allocations: 19.94 kB / 420.1 MB, free: 14.59 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004663/0.2379, allocations: 27.98 kB / 420.1 MB, free: 14.56 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.365e-05/0.238, allocations: 51.84 kB / 420.1 MB, free: 14.51 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.213e-05/0.238, allocations: 35.97 kB / 420.2 MB, free: 14.48 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0008774/0.2389, allocations: 1.12 MB / 421.3 MB, free: 13.36 MB / 394.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2389, allocations: 0 / 421.3 MB, free: 13.36 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002304/0.2412, allocations: 0.8671 MB / 422.2 MB, free: 12.5 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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 (79): * Single equations (assignments): 75 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002631/0.2414, allocations: 156.1 kB / 422.3 MB, free: 12.34 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002059/0.2435, allocations: 2.256 MB / 424.6 MB, free: 10.09 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001478/0.2436, allocations: 100.5 kB / 424.7 MB, free: 9.98 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003077/0.244, allocations: 352.9 kB / 425 MB, free: 9.617 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001153/0.2451, allocations: 498 kB / 425.5 MB, free: 9.133 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006284/0.2514, allocations: 6.23 MB / 431.7 MB, free: 2.789 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008167/0.2522, allocations: 1.066 MB / 432.8 MB, free: 1.699 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0009371/0.2531, allocations: 465.2 kB / 433.3 MB, free: 1.242 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005756/0.2537, allocations: 493 kB / 433.7 MB, free: 0.7617 MB / 394.7 MB Notification: Performance of SimCode: time 1.252e-06/0.2537, allocations: 0 / 433.7 MB, free: 0.7617 MB / 394.7 MB Notification: Performance of Templates: time 0.0407/0.2944, allocations: 21.9 MB / 455.6 MB, free: 10.95 MB / 426.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.813815006054938]