Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.0009555/0.0009555, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001276/0.002231, 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.0007625/0.0007625, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009451/0.001708, 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 1.046/1.046, allocations: 177.2 MB / 189.6 MB, free: 5.324 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1263/1.172, allocations: 53.65 MB / 243.3 MB, free: 15.59 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2993/0.2993, allocations: 32.8 MB / 276.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.03176/0.331, allocations: 12.54 MB / 289.3 MB, free: 8.668 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0.0_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.044e-06/2.044e-06, allocations: 0 / 290.6 MB, free: 7.656 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.4e-05/1.604e-05, allocations: 2.312 kB / 290.6 MB, free: 7.652 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01094/0.01095, allocations: 8.618 MB / 299.2 MB, free: 15.67 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008249/0.0192, allocations: 3.605 MB / 302.8 MB, free: 12.05 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001036/0.02024, allocations: 59.69 kB / 302.9 MB, free: 11.99 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001937/0.02218, allocations: 1.697 MB / 304.6 MB, free: 10.29 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003174/0.02535, allocations: 1.614 MB / 306.2 MB, free: 8.668 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001082/0.02643, allocations: 0.5728 MB / 306.8 MB, free: 8.094 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003209/0.02964, allocations: 3.7 MB / 310.5 MB, free: 4.387 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002008/0.03165, allocations: 1.943 MB / 312.4 MB, free: 2.379 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002131/0.03378, allocations: 2.085 MB / 314.5 MB, free: 292 kB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001652/0.03543, allocations: 1.613 MB / 316.1 MB, free: 14.66 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002409/0.03567, allocations: 224 kB / 316.3 MB, free: 14.45 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001363/0.03704, allocations: 1.088 MB / 317.4 MB, free: 13.36 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008603/0.0379, allocations: 1.368 MB / 318.8 MB, free: 11.98 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001216/0.03911, allocations: 0.7399 MB / 319.5 MB, free: 11.24 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002892/0.042, allocations: 3.402 MB / 322.9 MB, free: 7.828 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.081e-05/0.04202, allocations: 0 / 322.9 MB, free: 7.828 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.554e-06/0.04203, allocations: 0 / 322.9 MB, free: 7.828 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.342e-05/0.04207, allocations: 0 / 322.9 MB, free: 7.828 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.004477/0.04655, allocations: 4.134 MB / 327.1 MB, free: 3.625 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.051e-05/0.04659, allocations: 12.03 kB / 327.1 MB, free: 3.613 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002804/0.04939, allocations: 0.9879 MB / 328.1 MB, free: 2.625 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001725/0.05112, allocations: 1.461 MB / 329.5 MB, free: 1.129 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.791e-05/0.0512, allocations: 160.5 kB / 329.7 MB, free: 0.9688 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002533/0.05146, allocations: 216.2 kB / 329.9 MB, free: 0.7578 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004474/0.05593, allocations: 3.782 MB / 333.7 MB, free: 12.33 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.523e-05/0.05602, allocations: 43.62 kB / 333.7 MB, free: 12.29 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002372/0.05625, allocations: 103.9 kB / 333.8 MB, free: 12.18 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001841/0.05809, allocations: 1.355 MB / 335.2 MB, free: 10.83 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003501/0.0616, allocations: 1.839 MB / 337 MB, free: 8.957 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02101/0.08261, allocations: 24.73 MB / 361.7 MB, free: 15.25 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002208/0.08482, allocations: 0.7857 MB / 362.5 MB, free: 14.42 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003042/0.08512, allocations: 196.3 kB / 362.7 MB, free: 14.21 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003254/0.08838, allocations: 2.202 MB / 364.9 MB, free: 11.98 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.799e-05/0.08841, allocations: 46.56 kB / 365 MB, free: 11.93 MB / 362.7 MB Notification: Performance of pre-optimization done (n=84): time 3.446e-06/0.08842, allocations: 4 kB / 365 MB, free: 11.93 MB / 362.7 MB Notification: Performance of matching and sorting (n=101): time 0.01024/0.09866, allocations: 3.455 MB / 368.4 MB, free: 8.414 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.663e-05/0.09873, allocations: 141 kB / 368.6 MB, free: 8.246 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002795/0.1015, allocations: 2.814 MB / 371.4 MB, free: 5.406 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.443e-05/0.1016, allocations: 37.7 kB / 371.4 MB, free: 5.363 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001386/0.103, allocations: 2.575 MB / 374 MB, free: 2.762 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003297/0.1033, allocations: 448.8 kB / 374.4 MB, free: 2.32 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001034/0.1043, allocations: 1.005 MB / 375.4 MB, free: 1.305 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.023e-05/0.1044, allocations: 301.1 kB / 375.7 MB, free: 1.008 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001121/0.1055, allocations: 0.6189 MB / 376.3 MB, free: 392 kB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003278/0.1088, allocations: 3.991 MB / 380.3 MB, free: 10.63 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00507/0.1139, allocations: 5.031 MB / 385.4 MB, free: 3.863 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.859e-05/0.1139, allocations: 32 kB / 385.4 MB, free: 3.832 MB / 378.7 MB Notification: Performance of matching and sorting (n=681) (initialization): time 0.00431/0.1183, allocations: 3.556 MB / 388.9 MB, free: 268 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.311e-05/0.1183, allocations: 59.94 kB / 389 MB, free: 208 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.818e-05/0.1184, allocations: 124 kB / 389.1 MB, free: 84 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003171/0.1187, allocations: 196.2 kB / 389.3 MB, free: 15.88 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001972/0.1207, allocations: 1.302 MB / 390.6 MB, free: 14.58 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009746/0.1216, allocations: 1.44 MB / 392.1 MB, free: 13.04 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001846/0.1235, allocations: 247.8 kB / 392.3 MB, free: 12.8 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002481/0.1237, allocations: 292 kB / 392.6 MB, free: 12.51 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.0009785/0.1247, allocations: 0.5562 MB / 393.1 MB, free: 11.94 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000248/0.125, allocations: 159.8 kB / 393.3 MB, free: 11.79 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006193/0.1256, allocations: 0.5001 MB / 393.8 MB, free: 11.27 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.692e-05/0.1256, allocations: 12 kB / 393.8 MB, free: 11.26 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.1256, allocations: 0 / 393.8 MB, free: 11.26 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.275e-05/0.1256, allocations: 11.98 kB / 393.8 MB, free: 11.25 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00339/0.129, allocations: 2.572 MB / 396.4 MB, free: 8.59 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/0.129, allocations: 4 kB / 396.4 MB, free: 8.586 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000377/0.1294, allocations: 143.8 kB / 396.5 MB, free: 8.445 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002462/0.1296, allocations: 250 kB / 396.8 MB, free: 8.199 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003064/0.13, allocations: 212.7 kB / 397 MB, free: 7.984 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.046e-05/0.13, allocations: 16 kB / 397 MB, free: 7.969 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006672/0.1307, allocations: 1.217 MB / 398.2 MB, free: 6.652 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.1307, allocations: 4 kB / 398.2 MB, free: 6.648 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001026/0.1317, allocations: 1.269 MB / 399.5 MB, free: 5.309 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001572/0.1318, allocations: 20 kB / 399.5 MB, free: 5.289 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004288/0.1323, allocations: 23.98 kB / 399.5 MB, free: 5.266 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.885e-05/0.1324, allocations: 63.72 kB / 399.6 MB, free: 5.203 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.064e-05/0.1324, allocations: 24 kB / 399.6 MB, free: 5.18 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0008068/0.1332, allocations: 1.005 MB / 400.6 MB, free: 4.172 MB / 394.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1332, allocations: 0 / 400.6 MB, free: 4.172 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002272/0.1355, allocations: 0.7616 MB / 401.4 MB, free: 3.41 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.0003134/0.1358, allocations: 144.1 kB / 401.5 MB, free: 3.258 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002497/0.1383, allocations: 2.046 MB / 403.6 MB, free: 1.211 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001474/0.1384, allocations: 96.47 kB / 403.7 MB, free: 1.109 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003156/0.1387, allocations: 348.9 kB / 404 MB, free: 0.7539 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001227/0.14, allocations: 0.6396 MB / 404.6 MB, free: 124 kB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008645/0.1486, allocations: 5.563 MB / 410.2 MB, free: 10.45 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007614/0.1494, allocations: 0.9287 MB / 411.1 MB, free: 9.504 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0009023/0.1503, allocations: 426.1 kB / 411.6 MB, free: 9.082 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005618/0.1508, allocations: 433.2 kB / 412 MB, free: 8.656 MB / 410.7 MB Notification: Performance of SimCode: time 1.203e-06/0.1508, allocations: 4 kB / 412 MB, free: 8.652 MB / 410.7 MB Notification: Performance of Templates: time 0.03653/0.1874, allocations: 21.68 MB / 433.7 MB, free: 3.203 MB / 426.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.9529831828549504]