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.001199/0.001199, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001818/0.003017, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 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.001014/0.001014, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001385/0.002398, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 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.003/1.003, allocations: 177.5 MB / 190 MB, free: 4.801 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09504/1.098, allocations: 53.87 MB / 243.9 MB, free: 14.86 MB / 250.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.2565/0.2565, allocations: 34.88 MB / 279.6 MB, free: 14.92 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02463/0.2811, allocations: 13.23 MB / 292.8 MB, free: 6.398 MB / 282.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.262e-06/1.262e-06, allocations: 0 / 294.1 MB, free: 5.105 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.942e-05/2.068e-05, allocations: 4.484 kB / 294.1 MB, free: 5.102 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.006994/0.007015, allocations: 8.613 MB / 302.7 MB, free: 12.45 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005671/0.01269, allocations: 3.613 MB / 306.3 MB, free: 8.828 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008838/0.01357, allocations: 55.75 kB / 306.4 MB, free: 8.773 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001782/0.01535, allocations: 1.697 MB / 308.1 MB, free: 7.07 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002618/0.01797, allocations: 1.625 MB / 309.7 MB, free: 5.438 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001196/0.01916, allocations: 0.5612 MB / 310.3 MB, free: 4.875 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003939/0.0231, allocations: 3.688 MB / 313.9 MB, free: 1.184 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001908/0.02501, allocations: 1.939 MB / 315.9 MB, free: 15.18 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002281/0.02729, allocations: 2.077 MB / 318 MB, free: 13.09 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00166/0.02895, allocations: 1.613 MB / 319.6 MB, free: 11.47 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003698/0.02932, allocations: 228 kB / 319.8 MB, free: 11.25 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001466/0.03079, allocations: 1.088 MB / 320.9 MB, free: 10.16 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009423/0.03173, allocations: 1.356 MB / 322.2 MB, free: 8.801 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007549/0.03249, allocations: 0.7515 MB / 323 MB, free: 8.047 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003171/0.03566, allocations: 3.402 MB / 326.4 MB, free: 4.633 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.585e-05/0.03567, allocations: 0 / 326.4 MB, free: 4.633 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.03567, allocations: 0 / 326.4 MB, free: 4.633 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.268e-05/0.03576, allocations: 0 / 326.4 MB, free: 4.633 MB / 314.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.00459/0.04035, allocations: 4.131 MB / 330.5 MB, free: 444 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.714e-05/0.04038, allocations: 12.92 kB / 330.5 MB, free: 432 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002941/0.04332, allocations: 0.9917 MB / 331.5 MB, free: 15.43 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001732/0.04506, allocations: 1.457 MB / 333 MB, free: 13.94 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.419e-05/0.04513, allocations: 164.5 kB / 333.1 MB, free: 13.77 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002521/0.04538, allocations: 216.2 kB / 333.4 MB, free: 13.56 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003596/0.04898, allocations: 3.782 MB / 337.1 MB, free: 9.137 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.671e-05/0.04904, allocations: 39.69 kB / 337.2 MB, free: 9.098 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000171/0.04922, allocations: 107.9 kB / 337.3 MB, free: 8.992 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00104/0.05026, allocations: 1.258 MB / 338.5 MB, free: 7.734 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002918/0.05317, allocations: 1.84 MB / 340.4 MB, free: 5.871 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02048/0.07365, allocations: 24.74 MB / 365.1 MB, free: 12.15 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00162/0.07527, allocations: 0.7922 MB / 365.9 MB, free: 11.31 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002495/0.07552, allocations: 187.3 kB / 366.1 MB, free: 11.12 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00294/0.07846, allocations: 2.203 MB / 368.3 MB, free: 8.887 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.047e-05/0.07849, allocations: 42.5 kB / 368.3 MB, free: 8.836 MB / 362.7 MB Notification: Performance of pre-optimization done (n=84): time 3.336e-06/0.0785, allocations: 0 / 368.3 MB, free: 8.836 MB / 362.7 MB Notification: Performance of matching and sorting (n=101): time 0.008531/0.08703, allocations: 3.494 MB / 371.8 MB, free: 5.273 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.857e-05/0.08708, allocations: 137 kB / 372 MB, free: 5.109 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002267/0.08934, allocations: 2.807 MB / 374.8 MB, free: 2.277 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.487e-05/0.0894, allocations: 37.7 kB / 374.8 MB, free: 2.234 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001351/0.09075, allocations: 2.58 MB / 377.4 MB, free: 15.62 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002937/0.09104, allocations: 444.8 kB / 377.8 MB, free: 15.19 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007347/0.09178, allocations: 1.009 MB / 378.8 MB, free: 14.17 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.631e-05/0.09184, allocations: 305.1 kB / 379.1 MB, free: 13.87 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007982/0.09264, allocations: 0.6189 MB / 379.7 MB, free: 13.24 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002383/0.09503, allocations: 3.987 MB / 383.7 MB, free: 7.492 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003856/0.09888, allocations: 5.434 MB / 389.2 MB, free: 332 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.494e-05/0.09894, allocations: 35.94 kB / 389.2 MB, free: 296 kB / 378.7 MB Notification: Performance of matching and sorting (n=681) (initialization): time 0.003932/0.1029, allocations: 3.56 MB / 392.8 MB, free: 12.71 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.113e-05/0.1029, allocations: 65.41 kB / 392.8 MB, free: 12.65 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.286e-05/0.103, allocations: 128.9 kB / 393 MB, free: 12.52 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003165/0.1033, allocations: 199.6 kB / 393.2 MB, free: 12.32 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001973/0.1053, allocations: 1.302 MB / 394.5 MB, free: 11.02 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001121/0.1064, allocations: 1.435 MB / 395.9 MB, free: 9.48 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002265/0.1087, allocations: 247.7 kB / 396.1 MB, free: 9.238 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002384/0.1089, allocations: 292 kB / 396.4 MB, free: 8.953 MB / 394.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.0009385/0.1099, allocations: 0.5602 MB / 397 MB, free: 8.379 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003442/0.1102, allocations: 163.8 kB / 397.1 MB, free: 8.219 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006618/0.1109, allocations: 0.4923 MB / 397.6 MB, free: 7.715 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.515e-05/0.1109, allocations: 12 kB / 397.6 MB, free: 7.703 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.1109, allocations: 0 / 397.6 MB, free: 7.703 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.396e-06/0.1109, allocations: 3.984 kB / 397.6 MB, free: 7.699 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00425/0.1152, allocations: 2.565 MB / 400.2 MB, free: 5.047 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.035e-05/0.1152, allocations: 16.28 kB / 400.2 MB, free: 5.031 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004073/0.1156, allocations: 143.8 kB / 400.4 MB, free: 4.891 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005238/0.1161, allocations: 254 kB / 400.6 MB, free: 4.641 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003314/0.1164, allocations: 204.4 kB / 400.8 MB, free: 4.434 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.54e-05/0.1165, allocations: 20 kB / 400.8 MB, free: 4.414 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007388/0.1172, allocations: 1.22 MB / 402.1 MB, free: 3.098 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/0.1172, allocations: 4 kB / 402.1 MB, free: 3.094 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001197/0.1184, allocations: 1.277 MB / 403.3 MB, free: 1.746 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002291/0.1187, allocations: 20 kB / 403.4 MB, free: 1.727 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004902/0.1191, allocations: 24.14 kB / 403.4 MB, free: 1.703 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.488e-05/0.1192, allocations: 63.78 kB / 403.4 MB, free: 1.641 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.453e-05/0.1193, allocations: 27.98 kB / 403.5 MB, free: 1.613 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0008567/0.1201, allocations: 0.997 MB / 404.5 MB, free: 0.6133 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1201, allocations: 0 / 404.5 MB, free: 0.6133 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002641/0.1228, allocations: 0.7655 MB / 405.2 MB, free: 15.85 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.0003414/0.1231, allocations: 144 kB / 405.4 MB, free: 15.7 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002629/0.1257, allocations: 2.152 MB / 407.5 MB, free: 13.57 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001584/0.1259, allocations: 96.16 kB / 407.6 MB, free: 13.46 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004257/0.1263, allocations: 403.8 kB / 408 MB, free: 13.06 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002254/0.1286, allocations: 2.227 MB / 410.2 MB, free: 10.55 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008882/0.1375, allocations: 5.566 MB / 415.8 MB, free: 4.871 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009147/0.1384, allocations: 0.9171 MB / 416.7 MB, free: 3.934 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001017/0.1394, allocations: 414.2 kB / 417.1 MB, free: 3.523 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000548/0.1399, allocations: 437.2 kB / 417.6 MB, free: 3.098 MB / 410.7 MB Notification: Performance of SimCode: time 1.763e-06/0.1399, allocations: 0 / 417.6 MB, free: 3.098 MB / 410.7 MB Notification: Performance of Templates: time 0.1702/0.3102, allocations: 19.99 MB / 437.5 MB, free: 121.1 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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.4633465809747577]