Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.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.001232/0.001232, allocations: 84.73 kB / 21.5 MB, free: 2.992 MB / 18.57 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.001863/0.001863, allocations: 166.2 kB / 24.91 MB, free: 8.77 MB / 18.57 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 0.9434/0.9434, allocations: 177 MB / 205.2 MB, free: 5.035 MB / 186.7 MB " [Timeout remaining time 179] 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.2594/0.2594, allocations: 34.86 MB / 296.6 MB, free: 456 kB / 266.7 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.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.914e-06/1.914e-06, allocations: 0 / 325.9 MB, free: 7.172 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.391e-05/2.582e-05, allocations: 5.312 kB / 325.9 MB, free: 7.168 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.007045/0.007071, allocations: 8.509 MB / 334.4 MB, free: 14.62 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.005561/0.01263, allocations: 3.571 MB / 338 MB, free: 11.04 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001115/0.01375, allocations: 55.75 kB / 338 MB, free: 10.98 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002042/0.01579, allocations: 1.775 MB / 339.8 MB, free: 9.199 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002994/0.01878, allocations: 1.668 MB / 341.5 MB, free: 7.523 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009382/0.01972, allocations: 0.6235 MB / 342.1 MB, free: 6.898 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.003592/0.02331, allocations: 3.956 MB / 346.1 MB, free: 2.941 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002303/0.02562, allocations: 2.208 MB / 348.3 MB, free: 0.668 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002776/0.02839, allocations: 2.168 MB / 350.4 MB, free: 14.49 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00209/0.03048, allocations: 1.621 MB / 352.1 MB, free: 12.87 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005659/0.03105, allocations: 228 kB / 352.3 MB, free: 12.64 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001435/0.03248, allocations: 1.037 MB / 353.3 MB, free: 11.61 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001351/0.03383, allocations: 1.515 MB / 354.8 MB, free: 10.09 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001782/0.03562, allocations: 0.911 MB / 355.7 MB, free: 9.172 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004081/0.0397, allocations: 3.705 MB / 359.4 MB, free: 5.453 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.0397, allocations: 0 / 359.4 MB, free: 5.453 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.0397, allocations: 0 / 359.4 MB, free: 5.453 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001414/0.03984, allocations: 0 / 359.4 MB, free: 5.453 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1141 * Number of variables: 1141 Notification: Performance of Generate backend data structure: time 0.004652/0.0445, allocations: 3.411 MB / 362.9 MB, free: 1.992 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.603e-05/0.04453, allocations: 12.03 kB / 362.9 MB, free: 1.98 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002898/0.04743, allocations: 0.9879 MB / 363.9 MB, free: 0.9922 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00196/0.04939, allocations: 1.465 MB / 365.3 MB, free: 15.49 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.074e-05/0.04947, allocations: 160.5 kB / 365.5 MB, free: 15.33 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002951/0.04977, allocations: 224.2 kB / 365.7 MB, free: 15.11 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003798/0.05356, allocations: 3.779 MB / 369.5 MB, free: 10.68 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.647e-05/0.05362, allocations: 39.67 kB / 369.5 MB, free: 10.64 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001761/0.0538, allocations: 107.9 kB / 369.6 MB, free: 10.54 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001084/0.05488, allocations: 1.34 MB / 371 MB, free: 9.195 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002894/0.05778, allocations: 1.842 MB / 372.8 MB, free: 7.32 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02027/0.07804, allocations: 24.73 MB / 397.5 MB, free: 13.61 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002074/0.08012, allocations: 0.8076 MB / 398.3 MB, free: 12.77 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003056/0.08042, allocations: 196.3 kB / 398.5 MB, free: 12.56 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00347/0.08389, allocations: 2.207 MB / 400.7 MB, free: 10.33 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.527e-05/0.08393, allocations: 46.5 kB / 400.8 MB, free: 10.27 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 3.657e-06/0.08393, allocations: 4 kB / 400.8 MB, free: 10.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=101): time 0.01069/0.09462, allocations: 3.501 MB / 404.3 MB, free: 6.707 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.735e-05/0.09471, allocations: 196.4 kB / 404.5 MB, free: 6.473 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002844/0.09756, allocations: 2.81 MB / 407.3 MB, free: 3.637 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.677e-05/0.09762, allocations: 37.7 kB / 407.3 MB, free: 3.594 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001373/0.099, allocations: 2.572 MB / 409.9 MB, free: 0.9922 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003444/0.09934, allocations: 452.8 kB / 410.3 MB, free: 0.5469 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009937/0.1003, allocations: 1.005 MB / 411.3 MB, free: 15.53 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.152e-05/0.1004, allocations: 305.1 kB / 411.6 MB, free: 15.23 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001156/0.1016, allocations: 0.6111 MB / 412.2 MB, free: 14.61 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002837/0.1044, allocations: 3.999 MB / 416.2 MB, free: 8.852 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004347/0.1088, allocations: 5.028 MB / 421.3 MB, free: 2.086 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.069e-05/0.1088, allocations: 32 kB / 421.3 MB, free: 2.055 MB / 394.7 MB Notification: Performance of matching and sorting (n=681) (initialization): time 0.005395/0.1142, allocations: 3.556 MB / 424.9 MB, free: 14.48 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.37e-05/0.1143, allocations: 60.94 kB / 424.9 MB, free: 14.43 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001427/0.1144, allocations: 124 kB / 425 MB, free: 14.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003532/0.1148, allocations: 207.6 kB / 425.2 MB, free: 14.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002486/0.1173, allocations: 1.174 MB / 426.4 MB, free: 12.92 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001064/0.1183, allocations: 1.439 MB / 427.9 MB, free: 11.39 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002696/0.121, allocations: 235.8 kB / 428.1 MB, free: 11.16 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003158/0.1213, allocations: 288 kB / 428.4 MB, free: 10.88 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 560 * Number of states: 0 () * Number of discrete variables: 29 (Distance1.arrow.twoHeadedArrow,Distance1.arrow.headAtOrigin,BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Distance1.arrowColor[3],Distance1.arrowColor[2],Distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (656): * Single equations (assignments): 652 * 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.0009542/0.1223, allocations: 0.5641 MB / 428.9 MB, free: 10.3 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003138/0.1226, allocations: 151.8 kB / 429.1 MB, free: 10.15 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007387/0.1233, allocations: 0.5001 MB / 429.6 MB, free: 9.637 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.79e-05/0.1234, allocations: 12 kB / 429.6 MB, free: 9.625 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.1234, allocations: 0 / 429.6 MB, free: 9.625 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.087e-06/0.1234, allocations: 11.97 kB / 429.6 MB, free: 9.613 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003879/0.1273, allocations: 2.581 MB / 432.2 MB, free: 6.945 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.007e-06/0.1273, allocations: 8.062 kB / 432.2 MB, free: 6.938 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004547/0.1277, allocations: 123.8 kB / 432.3 MB, free: 6.816 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003802/0.1281, allocations: 208.3 kB / 432.5 MB, free: 6.605 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.408e-05/0.1281, allocations: 16 kB / 432.5 MB, free: 6.59 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007619/0.1289, allocations: 1.214 MB / 433.7 MB, free: 5.277 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/0.1289, allocations: 4 kB / 433.8 MB, free: 5.273 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001359/0.1303, allocations: 1.269 MB / 435 MB, free: 3.934 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003928/0.1307, allocations: 258 kB / 435.3 MB, free: 3.68 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002323/0.1309, allocations: 15.98 kB / 435.3 MB, free: 3.664 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006262/0.1315, allocations: 32.14 kB / 435.3 MB, free: 3.633 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001041/0.1316, allocations: 59.78 kB / 435.4 MB, free: 3.574 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.659e-05/0.1317, allocations: 27.98 kB / 435.4 MB, free: 3.547 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0009696/0.1327, allocations: 0.997 MB / 436.4 MB, free: 2.547 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1327, allocations: 0 / 436.4 MB, free: 2.547 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002362/0.135, allocations: 0.7694 MB / 437.2 MB, free: 1.777 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 (rev.w,damper.phi_rel) * 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 (78): * Single equations (assignments): 74 * 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.0002858/0.1353, allocations: 140.1 kB / 437.3 MB, free: 1.633 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002302/0.1376, allocations: 2.037 MB / 439.3 MB, free: 15.59 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 0.000136/0.1377, allocations: 95.98 kB / 439.4 MB, free: 15.49 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003412/0.1381, allocations: 350.4 kB / 439.8 MB, free: 15.13 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001256/0.1393, allocations: 453.7 kB / 440.2 MB, free: 14.69 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006818/0.1462, allocations: 5.451 MB / 445.7 MB, free: 9.133 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008423/0.147, allocations: 0.9162 MB / 446.6 MB, free: 8.199 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001209/0.1482, allocations: 430.1 kB / 447 MB, free: 7.773 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005749/0.1488, allocations: 433.2 kB / 447.4 MB, free: 7.348 MB / 426.7 MB Notification: Performance of SimCode: time 1.483e-06/0.1488, allocations: 0 / 447.4 MB, free: 7.348 MB / 426.7 MB Notification: Performance of Templates: time 0.1586/0.3074, allocations: 21.21 MB / 468.6 MB, free: 119.9 MB / 426.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.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.634029747918248]