Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_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.001836/0.001836, allocations: 95.61 kB / 20.96 MB, free: 3.457 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.001898/0.001898, allocations: 161.3 kB / 24.27 MB, free: 152 kB / 18.57 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.568/1.568, allocations: 177.1 MB / 204.6 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 178] 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.3599/0.3599, allocations: 34.27 MB / 295.3 MB, free: 0.6797 MB / 266.7 MB " [Timeout remaining time 179] 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.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.194e-06/2.194e-06, allocations: 0 / 377.3 MB, free: 2.992 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.56e-05/3.779e-05, allocations: 2.312 kB / 377.3 MB, free: 2.988 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01393/0.01396, allocations: 8.74 MB / 386 MB, free: 10.21 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.008992/0.02296, allocations: 3.496 MB / 389.5 MB, free: 6.699 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001448/0.0244, allocations: 55.75 kB / 389.6 MB, free: 6.645 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004677/0.02908, allocations: 2.052 MB / 391.6 MB, free: 4.586 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00466/0.03374, allocations: 1.672 MB / 393.3 MB, free: 2.906 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001592/0.03533, allocations: 0.6197 MB / 393.9 MB, free: 2.285 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.006429/0.04176, allocations: 4.043 MB / 398 MB, free: 14.23 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003778/0.04554, allocations: 2.311 MB / 400.3 MB, free: 11.86 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00315/0.04869, allocations: 1.789 MB / 402.1 MB, free: 10.07 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002836/0.05153, allocations: 1.82 MB / 403.9 MB, free: 8.242 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005048/0.05203, allocations: 251.9 kB / 404.1 MB, free: 7.996 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002301/0.05433, allocations: 1.065 MB / 405.2 MB, free: 6.93 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001896/0.05623, allocations: 1.624 MB / 406.8 MB, free: 5.301 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001664/0.05789, allocations: 0.9695 MB / 407.8 MB, free: 4.328 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008629/0.06652, allocations: 5.782 MB / 413.6 MB, free: 14.53 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.06653, allocations: 3.938 kB / 413.6 MB, free: 14.52 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.424e-06/0.06653, allocations: 4 kB / 413.6 MB, free: 14.52 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001052/0.06663, allocations: 0 / 413.6 MB, free: 14.52 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1211 * Number of variables: 1211 Notification: Performance of Generate backend data structure: time 0.009853/0.07649, allocations: 4.542 MB / 418.1 MB, free: 9.914 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.049e-05/0.07654, allocations: 8.031 kB / 418.1 MB, free: 9.906 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0189/0.09544, allocations: 2.764 MB / 420.9 MB, free: 7.137 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006925/0.1024, allocations: 2.058 MB / 422.9 MB, free: 5.043 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000207/0.1026, allocations: 180.8 kB / 423.1 MB, free: 4.863 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008759/0.1034, allocations: 240.2 kB / 423.4 MB, free: 4.629 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01156/0.115, allocations: 5.183 MB / 428.5 MB, free: 14.56 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001137/0.1151, allocations: 35.69 kB / 428.6 MB, free: 14.53 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003648/0.1155, allocations: 119.9 kB / 428.7 MB, free: 14.41 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003093/0.1186, allocations: 1.582 MB / 430.3 MB, free: 12.83 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008876/0.1275, allocations: 2.716 MB / 433 MB, free: 10.1 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2153/0.3428, allocations: 39.3 MB / 472.3 MB, free: 64.68 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003323/0.3461, allocations: 1.016 MB / 473.3 MB, free: 64.39 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006668/0.3468, allocations: 377.8 kB / 473.7 MB, free: 64.29 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002471/0.347, allocations: 98.97 kB / 473.8 MB, free: 64.27 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.824e-05/0.347, allocations: 51.55 kB / 473.8 MB, free: 64.22 MB / 410.7 MB Notification: Performance of pre-optimization done (n=104): time 3.887e-06/0.347, allocations: 3.938 kB / 473.8 MB, free: 64.22 MB / 410.7 MB Notification: Performance of matching and sorting (n=118): time 0.01889/0.3659, allocations: 7.002 MB / 480.8 MB, free: 61.56 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.193e-05/0.366, allocations: 191 kB / 481 MB, free: 61.34 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004304/0.3703, allocations: 4.06 MB / 485.1 MB, free: 59.6 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000153/0.3704, allocations: 44.23 kB / 485.1 MB, free: 59.56 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001368/0.3718, allocations: 3.164 MB / 488.3 MB, free: 57.27 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004319/0.3722, allocations: 0.5534 MB / 488.8 MB, free: 56.89 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001398/0.3736, allocations: 1.425 MB / 490.3 MB, free: 56.14 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.093e-05/0.3737, allocations: 480.7 kB / 490.7 MB, free: 55.66 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001197/0.3749, allocations: 0.615 MB / 491.3 MB, free: 55.56 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002947/0.3778, allocations: 6.132 MB / 497.5 MB, free: 48.12 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005317/0.3832, allocations: 7.336 MB / 0.493 GB, free: 39.93 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001382/0.3833, allocations: 36.69 kB / 0.493 GB, free: 39.93 MB / 410.7 MB Notification: Performance of matching and sorting (n=717) (initialization): time 0.01024/0.3935, allocations: 5.113 MB / 0.498 GB, free: 38.03 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001004/0.3936, allocations: 59.75 kB / 0.4981 GB, free: 38.03 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001581/0.3938, allocations: 125.9 kB / 0.4982 GB, free: 38.03 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00161/0.3954, allocations: 471.4 kB / 0.4986 GB, free: 38 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003378/0.3988, allocations: 1.252 MB / 0.4999 GB, free: 37.84 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00309/0.4019, allocations: 2.981 MB / 0.5028 GB, free: 35.48 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003867/0.4057, allocations: 336 kB / 0.5031 GB, free: 35.37 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005175/0.4063, allocations: 341.9 kB / 0.5034 GB, free: 35.32 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 577 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.twoHeadedArrow,distance2.arrow.headAtOrigin,distance1.arrow.twoHeadedArrow,distance1.arrow.headAtOrigin,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 (682): * Single equations (assignments): 678 * 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 {(2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001445/0.4077, allocations: 0.6983 MB / 0.5041 GB, free: 34.79 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005447/0.4082, allocations: 312.7 kB / 0.5044 GB, free: 34.62 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002338/0.4106, allocations: 1.028 MB / 0.5054 GB, free: 34.27 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.912e-05/0.4106, allocations: 12.28 kB / 0.5054 GB, free: 34.27 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.788e-06/0.4106, allocations: 3.438 kB / 0.5054 GB, free: 34.27 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.033e-05/0.4106, allocations: 6.5 kB / 0.5054 GB, free: 34.27 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008317/0.4189, allocations: 4.627 MB / 0.5099 GB, free: 32.23 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.685e-06/0.4189, allocations: 0 / 0.5099 GB, free: 32.23 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000697/0.4196, allocations: 157.1 kB / 0.5101 GB, free: 32.22 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001185/0.4208, allocations: 296.6 kB / 0.5104 GB, free: 32.19 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.832e-05/0.4209, allocations: 21.06 kB / 0.5104 GB, free: 32.18 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002203/0.4231, allocations: 2.373 MB / 0.5127 GB, free: 30.17 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.4231, allocations: 1.625 kB / 0.5127 GB, free: 30.17 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003273/0.4264, allocations: 2.059 MB / 0.5147 GB, free: 29.13 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006495/0.427, allocations: 277.5 kB / 0.515 GB, free: 28.95 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003063/0.4273, allocations: 18.5 kB / 0.515 GB, free: 28.94 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001098/0.4284, allocations: 85.58 kB / 0.5151 GB, free: 28.93 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001861/0.4286, allocations: 67.41 kB / 0.5151 GB, free: 28.91 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.681e-05/0.4287, allocations: 36.19 kB / 0.5152 GB, free: 28.9 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002176/0.4309, allocations: 1.63 MB / 0.5168 GB, free: 27.53 MB / 410.7 MB Notification: Performance of sort global known variables: time 9e-08/0.4309, allocations: 0 / 0.5168 GB, free: 27.53 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004168/0.435, allocations: 0.8627 MB / 0.5176 GB, free: 26.67 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (88): * Single equations (assignments): 84 * 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,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004612/0.4355, allocations: 161.7 kB / 0.5178 GB, free: 26.52 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005167/0.4407, allocations: 2.896 MB / 0.5206 GB, free: 23.91 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.013e-06/0.4407, allocations: 0 / 0.5206 GB, free: 23.91 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009091/0.4416, allocations: 0.6194 MB / 0.5212 GB, free: 23.33 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002256/0.4438, allocations: 325.8 kB / 0.5215 GB, free: 23.07 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009568/0.4534, allocations: 5.867 MB / 0.5272 GB, free: 17.64 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002405/0.4558, allocations: 1.959 MB / 0.5292 GB, free: 16.23 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003244/0.4591, allocations: 1.451 MB / 0.5306 GB, free: 15.4 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004761/0.4595, allocations: 196.1 kB / 0.5308 GB, free: 15.21 MB / 410.7 MB Notification: Performance of SimCode: time 1.804e-06/0.4595, allocations: 0 / 0.5308 GB, free: 15.21 MB / 410.7 MB Notification: Performance of Templates: time 0.0472/0.5067, allocations: 23.68 MB / 0.5539 GB, free: 9.34 MB / 426.7 MB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.4825527319917455]