Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.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.0008336/0.0008336, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001158/0.001991, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0007427/0.0007427, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001147/0.00189, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.928/0.928, allocations: 177.2 MB / 189.6 MB, free: 5.32 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08209/1.01, allocations: 53.66 MB / 243.3 MB, free: 15.58 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2516/0.2516, allocations: 34.25 MB / 278.2 MB, free: 15.3 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02357/0.2751, allocations: 13.1 MB / 291.3 MB, free: 7.375 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.232e-06/1.232e-06, allocations: 0 / 292.6 MB, free: 6.312 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.839e-05/1.963e-05, allocations: 5.328 kB / 292.6 MB, free: 6.309 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.008029/0.008049, allocations: 8.618 MB / 301.2 MB, free: 13.65 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005551/0.0136, allocations: 3.603 MB / 304.8 MB, free: 10.04 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009811/0.01458, allocations: 55.75 kB / 304.9 MB, free: 9.984 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001828/0.01641, allocations: 1.705 MB / 306.6 MB, free: 8.273 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002826/0.01923, allocations: 1.618 MB / 308.2 MB, free: 6.648 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008754/0.02011, allocations: 0.5651 MB / 308.8 MB, free: 6.082 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003344/0.02345, allocations: 3.702 MB / 312.5 MB, free: 2.375 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001769/0.02522, allocations: 1.943 MB / 314.4 MB, free: 372 kB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002366/0.02759, allocations: 2.077 MB / 316.5 MB, free: 14.28 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001481/0.02907, allocations: 1.617 MB / 318.1 MB, free: 12.66 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002672/0.02934, allocations: 227.9 kB / 318.3 MB, free: 12.44 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001279/0.03062, allocations: 1.084 MB / 319.4 MB, free: 11.35 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008502/0.03147, allocations: 1.368 MB / 320.8 MB, free: 9.98 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007025/0.03217, allocations: 0.7438 MB / 321.5 MB, free: 9.234 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003489/0.03566, allocations: 3.402 MB / 324.9 MB, free: 5.82 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.336e-05/0.03567, allocations: 0 / 324.9 MB, free: 5.82 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.332e-06/0.03567, allocations: 0 / 324.9 MB, free: 5.82 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.929e-05/0.03573, allocations: 0 / 324.9 MB, free: 5.82 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.004351/0.04008, allocations: 4.131 MB / 329.1 MB, free: 1.621 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.566e-05/0.04012, allocations: 8.031 kB / 329.1 MB, free: 1.613 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00421/0.04433, allocations: 0.9995 MB / 330.1 MB, free: 0.6133 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00222/0.04655, allocations: 1.453 MB / 331.5 MB, free: 15.12 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000109/0.04666, allocations: 164.5 kB / 331.7 MB, free: 14.96 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000322/0.04698, allocations: 224.2 kB / 331.9 MB, free: 14.74 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004357/0.05134, allocations: 3.779 MB / 335.7 MB, free: 10.32 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003331/0.05167, allocations: 31.7 kB / 335.7 MB, free: 10.29 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000232/0.0519, allocations: 111.9 kB / 335.8 MB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001467/0.05337, allocations: 1.347 MB / 337.2 MB, free: 8.828 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003529/0.0569, allocations: 1.845 MB / 339 MB, free: 6.949 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02151/0.07841, allocations: 24.72 MB / 363.7 MB, free: 13.24 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001976/0.08039, allocations: 0.7936 MB / 364.5 MB, free: 12.41 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005683/0.08096, allocations: 193.9 kB / 364.7 MB, free: 12.21 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003435/0.08439, allocations: 2.203 MB / 366.9 MB, free: 9.977 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.173e-05/0.08442, allocations: 46.5 kB / 367 MB, free: 9.922 MB / 362.7 MB Notification: Performance of pre-optimization done (n=84): time 3.456e-06/0.08443, allocations: 3.938 kB / 367 MB, free: 9.918 MB / 362.7 MB Notification: Performance of matching and sorting (n=101): time 0.01021/0.09463, allocations: 3.453 MB / 370.4 MB, free: 6.406 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.853e-05/0.09469, allocations: 141 kB / 370.6 MB, free: 6.238 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00301/0.0977, allocations: 2.814 MB / 373.4 MB, free: 3.398 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.988e-05/0.09776, allocations: 37.7 kB / 373.4 MB, free: 3.355 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001273/0.09903, allocations: 2.579 MB / 376 MB, free: 0.75 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003259/0.09936, allocations: 444.8 kB / 376.4 MB, free: 320 kB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009702/0.1003, allocations: 1.005 MB / 377.4 MB, free: 15.29 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.274e-05/0.1004, allocations: 301.1 kB / 377.7 MB, free: 15 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001098/0.1015, allocations: 0.6189 MB / 378.3 MB, free: 14.37 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002616/0.1041, allocations: 3.999 MB / 382.3 MB, free: 8.609 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003594/0.1077, allocations: 5.016 MB / 387.4 MB, free: 1.855 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.808e-05/0.1078, allocations: 36 kB / 387.4 MB, free: 1.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=681) (initialization): time 0.004415/0.1122, allocations: 3.555 MB / 391 MB, free: 14.25 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.305e-05/0.1122, allocations: 67.69 kB / 391 MB, free: 14.19 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.794e-05/0.1123, allocations: 120 kB / 391.1 MB, free: 14.07 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002802/0.1126, allocations: 208.2 kB / 391.3 MB, free: 13.86 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00198/0.1146, allocations: 1.299 MB / 392.6 MB, free: 12.56 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008375/0.1154, allocations: 1.444 MB / 394.1 MB, free: 11.02 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002054/0.1175, allocations: 247.8 kB / 394.3 MB, free: 10.77 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002288/0.1177, allocations: 296 kB / 394.6 MB, free: 10.48 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.0008088/0.1185, allocations: 0.5523 MB / 395.2 MB, free: 9.918 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002637/0.1188, allocations: 159.9 kB / 395.3 MB, free: 9.762 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005955/0.1194, allocations: 0.4962 MB / 395.8 MB, free: 9.25 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.203e-05/0.1194, allocations: 12 kB / 395.8 MB, free: 9.238 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.1194, allocations: 4 kB / 395.8 MB, free: 9.234 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.244e-06/0.1194, allocations: 3.984 kB / 395.8 MB, free: 9.23 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003225/0.1226, allocations: 2.569 MB / 398.4 MB, free: 6.574 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.641e-06/0.1226, allocations: 7.938 kB / 398.4 MB, free: 6.566 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003742/0.123, allocations: 147.8 kB / 398.6 MB, free: 6.422 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002997/0.1233, allocations: 246.4 kB / 398.8 MB, free: 6.18 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002885/0.1236, allocations: 212.4 kB / 399 MB, free: 5.965 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.824e-05/0.1236, allocations: 16 kB / 399 MB, free: 5.949 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000581/0.1242, allocations: 1.214 MB / 400.2 MB, free: 4.637 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/0.1242, allocations: 4 kB / 400.2 MB, free: 4.633 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009711/0.1252, allocations: 1.281 MB / 401.5 MB, free: 3.281 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001865/0.1254, allocations: 20 kB / 401.5 MB, free: 3.262 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004394/0.1258, allocations: 19.98 kB / 401.6 MB, free: 3.242 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.825e-05/0.1259, allocations: 63.78 kB / 401.6 MB, free: 3.18 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.093e-05/0.1259, allocations: 23.98 kB / 401.6 MB, free: 3.156 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0007886/0.1267, allocations: 1.005 MB / 402.7 MB, free: 2.148 MB / 394.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1267, allocations: 0 / 402.7 MB, free: 2.148 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002664/0.1294, allocations: 0.7655 MB / 403.4 MB, free: 1.383 MB / 394.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.0002869/0.1296, allocations: 140.1 kB / 403.6 MB, free: 1.234 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002611/0.1323, allocations: 2.035 MB / 405.6 MB, free: 15.2 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001418/0.1324, allocations: 100.2 kB / 405.7 MB, free: 15.1 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003251/0.1327, allocations: 348.5 kB / 406 MB, free: 14.74 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001367/0.1341, allocations: 0.641 MB / 406.7 MB, free: 14.11 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008604/0.1427, allocations: 5.563 MB / 412.2 MB, free: 8.434 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007623/0.1435, allocations: 0.9288 MB / 413.2 MB, free: 7.488 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001036/0.1445, allocations: 418.1 kB / 413.6 MB, free: 7.074 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005702/0.1451, allocations: 441.2 kB / 414 MB, free: 6.641 MB / 410.7 MB Notification: Performance of SimCode: time 1.333e-06/0.1451, allocations: 4 kB / 414 MB, free: 6.637 MB / 410.7 MB Notification: Performance of Templates: time 0.03369/0.1788, allocations: 21.68 MB / 435.7 MB, free: 1.184 MB / 426.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_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.5150102730840445]