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.0009493/0.0009493, allocations: 81.08 kB / 20.65 MB, free: 3.84 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.000916/0.000916, allocations: 177 kB / 24.06 MB, free: 448 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.9309/0.9309, allocations: 158.6 MB / 185.9 MB, free: 2.805 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.1403/0.1403, allocations: 32.37 MB / 270.7 MB, free: 14.53 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 1.773e-06/1.773e-06, allocations: 0 / 348.1 MB, free: 9.195 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.593e-05/2.77e-05, allocations: 8.219 kB / 348.1 MB, free: 9.188 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.008003/0.008031, allocations: 9.487 MB / 357.6 MB, free: 15.66 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007299/0.01533, allocations: 3.606 MB / 361.2 MB, free: 12.04 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00146/0.01679, allocations: 59.75 kB / 361.3 MB, free: 11.98 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0031/0.01989, allocations: 2.071 MB / 363.3 MB, free: 9.902 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004693/0.02458, allocations: 1.87 MB / 365.2 MB, free: 8.023 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001214/0.0258, allocations: 0.6158 MB / 365.8 MB, free: 7.406 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00532/0.03112, allocations: 4.109 MB / 369.9 MB, free: 3.289 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002676/0.03379, allocations: 2.483 MB / 372.4 MB, free: 0.7461 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003017/0.03681, allocations: 2.288 MB / 374.7 MB, free: 14.45 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00254/0.03935, allocations: 1.999 MB / 376.7 MB, free: 12.45 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004434/0.03979, allocations: 280 kB / 377 MB, free: 12.18 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001753/0.04155, allocations: 1.108 MB / 378.1 MB, free: 11.07 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001479/0.04303, allocations: 1.804 MB / 379.9 MB, free: 9.258 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001235/0.04426, allocations: 1.114 MB / 381 MB, free: 8.141 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00535/0.04961, allocations: 4.32 MB / 385.3 MB, free: 3.805 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.04962, allocations: 4 kB / 385.3 MB, free: 3.801 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.442e-06/0.04962, allocations: 0 / 385.3 MB, free: 3.801 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.185e-05/0.04969, allocations: 0 / 385.3 MB, free: 3.801 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: 1367 * Number of variables: 1367 Notification: Performance of Generate backend data structure: time 0.006292/0.05598, allocations: 4.481 MB / 389.8 MB, free: 15.25 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.083e-05/0.05603, allocations: 8.031 kB / 389.8 MB, free: 15.25 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009227/0.06526, allocations: 1.949 MB / 391.8 MB, free: 13.29 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003386/0.06865, allocations: 1.781 MB / 393.6 MB, free: 11.47 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001081/0.06875, allocations: 205.3 kB / 393.8 MB, free: 11.27 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000345/0.0691, allocations: 260.2 kB / 394 MB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006272/0.07537, allocations: 4.861 MB / 398.9 MB, free: 5.262 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001218/0.07549, allocations: 39.64 kB / 398.9 MB, free: 5.223 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000234/0.07573, allocations: 127.9 kB / 399 MB, free: 5.098 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001637/0.07736, allocations: 1.61 MB / 400.6 MB, free: 3.488 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004502/0.08187, allocations: 2.123 MB / 402.8 MB, free: 1.355 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02796/0.1098, allocations: 38.6 MB / 441.4 MB, free: 9.426 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001988/0.1118, allocations: 0.8215 MB / 442.2 MB, free: 8.555 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003062/0.1121, allocations: 256 kB / 442.4 MB, free: 8.289 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003506/0.1156, allocations: 2.546 MB / 445 MB, free: 5.715 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.421e-05/0.1157, allocations: 45.39 kB / 445 MB, free: 5.66 MB / 378.7 MB Notification: Performance of pre-optimization done (n=91): time 5.099e-06/0.1157, allocations: 0 / 445 MB, free: 5.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=100): time 0.007317/0.123, allocations: 2.899 MB / 447.9 MB, free: 2.715 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.943e-05/0.1231, allocations: 191.9 kB / 448.1 MB, free: 2.484 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1435/0.2666, allocations: 3.527 MB / 451.6 MB, free: 98.59 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001708/0.2667, allocations: 39.67 kB / 451.7 MB, free: 98.56 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001432/0.2682, allocations: 3.369 MB / 455.1 MB, free: 97.02 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003843/0.2685, allocations: 479.4 kB / 455.5 MB, free: 96.81 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001202/0.2697, allocations: 1.325 MB / 456.8 MB, free: 96.65 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.075e-05/0.2698, allocations: 478 kB / 457.3 MB, free: 96.18 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009094/0.2707, allocations: 497.5 kB / 457.8 MB, free: 96.16 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00254/0.2732, allocations: 6.471 MB / 464.3 MB, free: 88.4 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004042/0.2773, allocations: 7.57 MB / 471.8 MB, free: 80.46 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.742e-05/0.2774, allocations: 37.25 kB / 471.9 MB, free: 80.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=766) (initialization): time 0.005102/0.2825, allocations: 4.724 MB / 476.6 MB, free: 79.22 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.087e-05/0.2825, allocations: 69.84 kB / 476.7 MB, free: 79.22 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001071/0.2826, allocations: 145.3 kB / 476.8 MB, free: 79.22 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002888/0.2829, allocations: 224.5 kB / 477 MB, free: 79.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001854/0.2848, allocations: 1.337 MB / 478.4 MB, free: 79.08 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007134/0.2855, allocations: 1.996 MB / 480.4 MB, free: 77.31 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002393/0.2879, allocations: 280.6 kB / 480.6 MB, free: 77.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002515/0.2881, allocations: 325.3 kB / 481 MB, free: 76.95 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.0008868/0.289, allocations: 0.6645 MB / 481.6 MB, free: 76.28 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003243/0.2894, allocations: 326 kB / 481.9 MB, free: 75.96 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005545/0.2899, allocations: 0.5534 MB / 482.5 MB, free: 75.49 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.12e-05/0.2899, allocations: 16 kB / 482.5 MB, free: 75.47 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.2899, allocations: 0 / 482.5 MB, free: 75.47 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.214e-06/0.2899, allocations: 7.172 kB / 482.5 MB, free: 75.47 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003636/0.2936, allocations: 3.326 MB / 485.8 MB, free: 72.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.953e-06/0.2936, allocations: 7.75 kB / 485.8 MB, free: 72.87 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003201/0.2939, allocations: 134.9 kB / 486 MB, free: 72.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001296/0.294, allocations: 35.14 kB / 486 MB, free: 72.72 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.201e-05/0.2941, allocations: 23.75 kB / 486 MB, free: 72.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005802/0.2946, allocations: 1.738 MB / 487.8 MB, free: 70.88 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.367e-06/0.2946, allocations: 4 kB / 487.8 MB, free: 70.87 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001036/0.2957, allocations: 1.516 MB / 489.3 MB, free: 69.35 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004866/0.2962, allocations: 371.7 kB / 489.7 MB, free: 69.02 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001737/0.2963, allocations: 22.69 kB / 489.7 MB, free: 69 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000487/0.2968, allocations: 24 kB / 489.7 MB, free: 68.98 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.785e-05/0.2969, allocations: 60.58 kB / 489.8 MB, free: 68.95 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.877e-05/0.2969, allocations: 35.69 kB / 489.8 MB, free: 68.91 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009539/0.2979, allocations: 1.377 MB / 491.2 MB, free: 67.8 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.2979, allocations: 4 kB / 491.2 MB, free: 67.8 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003012/0.3009, allocations: 0.8628 MB / 492 MB, free: 66.94 MB / 378.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.0002446/0.3011, allocations: 181.1 kB / 492.2 MB, free: 66.77 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002392/0.3035, allocations: 2.481 MB / 494.7 MB, free: 64.57 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.3035, allocations: 0 / 494.7 MB, free: 64.57 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003163/0.3039, allocations: 448.7 kB / 495.1 MB, free: 64.15 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001043/0.3049, allocations: 314.1 kB / 495.4 MB, free: 63.88 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006207/0.3111, allocations: 6.287 MB / 0.49 GB, free: 57.81 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006692/0.3118, allocations: 1.078 MB / 0.491 GB, free: 56.71 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.00103/0.3128, allocations: 465.9 kB / 0.4915 GB, free: 56.25 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004736/0.3133, allocations: 0.4981 MB / 0.492 GB, free: 55.75 MB / 378.7 MB Notification: Performance of SimCode: time 1.293e-06/0.3133, allocations: 0 / 0.492 GB, free: 55.75 MB / 378.7 MB Notification: Performance of Templates: time 0.03284/0.3461, allocations: 21.97 MB / 0.5134 GB, free: 33.91 MB / 378.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 -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: 4.051833474077284]