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.001532/0.001532, allocations: 81.97 kB / 22.21 MB, free: 2.289 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.001754/0.001754, allocations: 167.9 kB / 25.61 MB, free: 8.582 MB / 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 0.9434/0.9434, allocations: 177.2 MB / 206.1 MB, free: 4.465 MB / 186.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.1449/0.1449, allocations: 34.26 MB / 296.9 MB, free: 13.9 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.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.384e-06/2.384e-06, allocations: 0 / 379.3 MB, free: 23.4 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.608e-05/2.846e-05, allocations: 2.312 kB / 379.3 MB, free: 23.4 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.009071/0.0091, allocations: 8.596 MB / 387.9 MB, free: 14.76 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.007051/0.01615, allocations: 3.467 MB / 391.4 MB, free: 11.28 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001419/0.01757, allocations: 55.75 kB / 391.4 MB, free: 11.23 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003189/0.02076, allocations: 2.021 MB / 393.4 MB, free: 9.199 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002979/0.02374, allocations: 1.684 MB / 395.1 MB, free: 7.508 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008249/0.02456, allocations: 0.6158 MB / 395.7 MB, free: 6.891 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002745/0.02731, allocations: 4.066 MB / 399.8 MB, free: 2.82 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002251/0.02956, allocations: 2.334 MB / 402.1 MB, free: 440 kB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003007/0.03256, allocations: 2.265 MB / 404.4 MB, free: 14.16 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001882/0.03445, allocations: 1.8 MB / 406.2 MB, free: 12.36 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002917/0.03474, allocations: 244 kB / 406.4 MB, free: 12.12 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001353/0.03609, allocations: 1.08 MB / 407.5 MB, free: 11.04 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009948/0.03709, allocations: 1.609 MB / 409.1 MB, free: 9.418 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008582/0.03794, allocations: 0.9734 MB / 410.1 MB, free: 8.441 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00322/0.04116, allocations: 3.885 MB / 414 MB, free: 4.543 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.04117, allocations: 0 / 414 MB, free: 4.543 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.04117, allocations: 0 / 414 MB, free: 4.543 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.146e-05/0.04122, allocations: 0 / 414 MB, free: 4.543 MB / 330.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.004476/0.0457, allocations: 4.089 MB / 418.1 MB, free: 400 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.506e-05/0.04573, allocations: 8.031 kB / 418.1 MB, free: 392 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006823/0.05255, allocations: 1.82 MB / 419.9 MB, free: 14.56 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002238/0.05479, allocations: 1.637 MB / 421.5 MB, free: 12.88 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.346e-05/0.05489, allocations: 176.8 kB / 421.7 MB, free: 12.7 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00028/0.05517, allocations: 232.2 kB / 421.9 MB, free: 12.48 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004338/0.0595, allocations: 4.496 MB / 426.4 MB, free: 7.094 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.267e-05/0.05957, allocations: 35.67 kB / 426.5 MB, free: 7.059 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002098/0.05978, allocations: 119.9 kB / 426.6 MB, free: 6.941 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001182/0.06096, allocations: 1.391 MB / 428 MB, free: 5.551 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002974/0.06393, allocations: 1.898 MB / 429.9 MB, free: 3.633 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02142/0.08535, allocations: 36.43 MB / 466.3 MB, free: 13.94 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001676/0.08703, allocations: 0.7625 MB / 467.1 MB, free: 13.13 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002719/0.0873, allocations: 239 kB / 467.3 MB, free: 12.88 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002887/0.09019, allocations: 2.368 MB / 469.7 MB, free: 10.48 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.888e-05/0.09023, allocations: 53.56 kB / 469.7 MB, free: 10.41 MB / 394.7 MB Notification: Performance of pre-optimization done (n=82): time 4.137e-06/0.09023, allocations: 0 / 469.7 MB, free: 10.41 MB / 394.7 MB Notification: Performance of matching and sorting (n=91): time 0.005985/0.09622, allocations: 2.691 MB / 472.4 MB, free: 7.684 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.39e-05/0.0963, allocations: 199.6 kB / 472.6 MB, free: 7.445 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002728/0.09903, allocations: 3.336 MB / 475.9 MB, free: 4.086 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.394e-05/0.09907, allocations: 37.7 kB / 476 MB, free: 4.043 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001552/0.1006, allocations: 3.087 MB / 479.1 MB, free: 0.9258 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002811/0.1009, allocations: 437 kB / 479.5 MB, free: 0.4961 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009405/0.1018, allocations: 1.242 MB / 480.7 MB, free: 15.24 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001111/0.102, allocations: 480.8 kB / 481.2 MB, free: 14.77 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006348/0.1026, allocations: 454.6 kB / 481.6 MB, free: 14.32 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003185/0.1058, allocations: 6.049 MB / 487.7 MB, free: 5.68 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004454/0.1102, allocations: 7.053 MB / 494.7 MB, free: 12.08 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.718e-05/0.1103, allocations: 36 kB / 494.8 MB, free: 12.04 MB / 426.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.00463/0.1149, allocations: 4.391 MB / 499.2 MB, free: 7.648 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.646e-05/0.115, allocations: 68 kB / 499.2 MB, free: 7.582 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.317e-05/0.115, allocations: 132 kB / 499.4 MB, free: 7.453 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000292/0.1153, allocations: 211.5 kB / 499.6 MB, free: 7.242 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001843/0.1172, allocations: 1.236 MB / 0.4891 GB, free: 6.004 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001022/0.1182, allocations: 1.97 MB / 0.491 GB, free: 3.922 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001789/0.12, allocations: 267.6 kB / 0.4913 GB, free: 3.66 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002615/0.1203, allocations: 308 kB / 0.4915 GB, free: 3.359 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 604 * 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 (689): * Single equations (assignments): 685 * 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.0008988/0.1212, allocations: 0.6225 MB / 0.4922 GB, free: 2.723 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003003/0.1215, allocations: 306 kB / 0.4924 GB, free: 2.422 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005564/0.122, allocations: 487.5 kB / 0.4929 GB, free: 1.93 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.1e-05/0.122, allocations: 8 kB / 0.4929 GB, free: 1.922 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.122, allocations: 4 kB / 0.4929 GB, free: 1.918 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.122, allocations: 0 / 0.4929 GB, free: 1.918 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1866/0.3086, allocations: 3.027 MB / 0.4959 GB, free: 119 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.708e-06/0.3086, allocations: 3.062 kB / 0.4959 GB, free: 119 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000396/0.309, allocations: 110.3 kB / 0.496 GB, free: 119 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001585/0.3092, allocations: 45.25 kB / 0.496 GB, free: 119 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.931e-05/0.3092, allocations: 20.03 kB / 0.4961 GB, free: 119 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005451/0.3098, allocations: 1.74 MB / 0.4977 GB, free: 117.3 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.756e-06/0.3098, allocations: 3.594 kB / 0.4978 GB, free: 117.3 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001346/0.3111, allocations: 1.439 MB / 0.4992 GB, free: 116.6 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004287/0.3115, allocations: 265.7 kB / 0.4994 GB, free: 116.6 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002038/0.3118, allocations: 16.14 kB / 0.4994 GB, free: 116.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004726/0.3122, allocations: 25.11 kB / 0.4995 GB, free: 116.6 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.273e-05/0.3123, allocations: 56.28 kB / 0.4995 GB, free: 116.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.087e-05/0.3123, allocations: 26.31 kB / 0.4995 GB, free: 116.6 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001106/0.3135, allocations: 1.312 MB / 0.5008 GB, free: 116.4 MB / 426.7 MB Notification: Performance of sort global known variables: time 7e-08/0.3135, allocations: 0 / 0.5008 GB, free: 116.4 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003329/0.3168, allocations: 0.7821 MB / 0.5016 GB, free: 116.4 MB / 426.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 (69): * Single equations (assignments): 65 * 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.0002734/0.3171, allocations: 156.6 kB / 0.5017 GB, free: 116.3 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00254/0.3196, allocations: 2.324 MB / 0.504 GB, free: 116.1 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.3196, allocations: 0 / 0.504 GB, free: 116.1 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002858/0.3199, allocations: 408.3 kB / 0.5044 GB, free: 115.9 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009971/0.3209, allocations: 317.8 kB / 0.5047 GB, free: 115.8 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00628/0.3272, allocations: 5.668 MB / 0.5102 GB, free: 113.4 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007209/0.3279, allocations: 0.9697 MB / 0.5112 GB, free: 113.3 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0008559/0.3287, allocations: 429.7 kB / 0.5116 GB, free: 113.2 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004688/0.3292, allocations: 493.6 kB / 0.512 GB, free: 113 MB / 426.7 MB Notification: Performance of SimCode: time 8.72e-07/0.3292, allocations: 0 / 0.512 GB, free: 113 MB / 426.7 MB Notification: Performance of Templates: time 0.03048/0.3597, allocations: 21 MB / 0.5326 GB, free: 94.35 MB / 426.7 MB " [Timeout remaining time 660] 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","",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.337220035027713]