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.001538/0.001538, allocations: 83.58 kB / 21.19 MB, free: 3.379 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.001771/0.001771, allocations: 165 kB / 24.56 MB, free: 12 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.01/1.01, allocations: 177.1 MB / 205 MB, free: 5.598 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.2887/0.2887, allocations: 34.26 MB / 295.7 MB, free: 0.7539 MB / 266.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 1.473e-06/1.473e-06, allocations: 0 / 378 MB, free: 2.676 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.778e-05/2.926e-05, allocations: 2.312 kB / 378 MB, free: 2.672 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.007631/0.00766, allocations: 8.818 MB / 386.8 MB, free: 9.812 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.005719/0.01338, allocations: 3.508 MB / 390.4 MB, free: 6.293 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001249/0.01463, allocations: 55.75 kB / 390.4 MB, free: 6.238 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002454/0.01708, allocations: 2.052 MB / 392.5 MB, free: 4.18 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003192/0.02027, allocations: 1.676 MB / 394.1 MB, free: 2.496 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001011/0.02129, allocations: 0.6235 MB / 394.8 MB, free: 1.871 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.003863/0.02515, allocations: 4.043 MB / 398.8 MB, free: 13.81 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002212/0.02736, allocations: 2.323 MB / 401.1 MB, free: 11.43 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002262/0.02962, allocations: 1.781 MB / 402.9 MB, free: 9.648 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002171/0.03179, allocations: 1.828 MB / 404.7 MB, free: 7.816 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005002/0.03229, allocations: 244 kB / 405 MB, free: 7.578 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001693/0.03399, allocations: 1.069 MB / 406 MB, free: 6.508 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001289/0.03528, allocations: 1.624 MB / 407.7 MB, free: 4.879 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001078/0.03635, allocations: 0.9695 MB / 408.6 MB, free: 3.906 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004662/0.04102, allocations: 3.873 MB / 412.5 MB, free: 20 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.228e-06/0.04102, allocations: 8 kB / 412.5 MB, free: 12 kB / 378.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.04103, allocations: 0 / 412.5 MB, free: 12 kB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001674/0.04119, allocations: 4 kB / 412.5 MB, free: 8 kB / 378.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.005663/0.04686, allocations: 4.195 MB / 416.7 MB, free: 11.75 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.229e-05/0.04691, allocations: 8.031 kB / 416.7 MB, free: 11.74 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007699/0.05461, allocations: 2.76 MB / 419.5 MB, free: 8.977 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003445/0.05805, allocations: 2.019 MB / 421.5 MB, free: 6.922 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001074/0.05816, allocations: 180.8 kB / 421.7 MB, free: 6.742 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005149/0.05867, allocations: 236.2 kB / 421.9 MB, free: 6.512 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006327/0.065, allocations: 4.852 MB / 426.8 MB, free: 0.7734 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.973e-05/0.06507, allocations: 39.64 kB / 426.8 MB, free: 0.7344 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000222/0.06529, allocations: 115.9 kB / 426.9 MB, free: 0.6211 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001502/0.0668, allocations: 1.593 MB / 428.5 MB, free: 15.03 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00501/0.07181, allocations: 2.448 MB / 431 MB, free: 12.57 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1987/0.2705, allocations: 36.51 MB / 467.5 MB, free: 61.5 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002922/0.2735, allocations: 0.9473 MB / 468.4 MB, free: 61.36 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007714/0.2742, allocations: 360.9 kB / 468.8 MB, free: 61.31 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002474/0.2745, allocations: 98.88 kB / 468.9 MB, free: 61.31 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.924e-05/0.2745, allocations: 47.48 kB / 468.9 MB, free: 61.27 MB / 410.7 MB Notification: Performance of pre-optimization done (n=104): time 4.749e-06/0.2745, allocations: 0.5625 kB / 468.9 MB, free: 61.27 MB / 410.7 MB Notification: Performance of matching and sorting (n=118): time 0.0165/0.291, allocations: 6.921 MB / 475.8 MB, free: 59.05 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.989e-05/0.2911, allocations: 198.8 kB / 476 MB, free: 58.82 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003919/0.295, allocations: 3.264 MB / 479.3 MB, free: 58.11 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001195/0.2951, allocations: 44.11 kB / 479.3 MB, free: 58.07 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001357/0.2965, allocations: 2.973 MB / 482.3 MB, free: 55.97 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004711/0.297, allocations: 0.5236 MB / 482.8 MB, free: 55.61 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001214/0.2982, allocations: 1.22 MB / 484 MB, free: 54.95 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.408e-05/0.2982, allocations: 476.8 kB / 484.5 MB, free: 54.48 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001335/0.2996, allocations: 0.5611 MB / 485.1 MB, free: 54.41 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002832/0.3024, allocations: 5.902 MB / 491 MB, free: 47.14 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005962/0.3084, allocations: 7.05 MB / 498 MB, free: 39.48 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001887/0.3085, allocations: 38.28 kB / 498.1 MB, free: 39.48 MB / 410.7 MB Notification: Performance of matching and sorting (n=717) (initialization): time 0.01234/0.3209, allocations: 4.996 MB / 0.4913 GB, free: 37.64 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001213/0.321, allocations: 58.72 kB / 0.4913 GB, free: 37.64 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002133/0.3212, allocations: 127.9 kB / 0.4914 GB, free: 37.64 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001342/0.3226, allocations: 471.8 kB / 0.4919 GB, free: 37.61 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003018/0.3256, allocations: 1.254 MB / 0.4931 GB, free: 37.45 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002862/0.3284, allocations: 2.888 MB / 0.4959 GB, free: 35.16 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003929/0.3324, allocations: 322.8 kB / 0.4962 GB, free: 35.05 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008831/0.3333, allocations: 346.8 kB / 0.4966 GB, free: 35.01 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.001616/0.3349, allocations: 0.6215 MB / 0.4972 GB, free: 34.51 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005716/0.3354, allocations: 318.6 kB / 0.4975 GB, free: 34.34 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001622/0.3371, allocations: 0.9918 MB / 0.4985 GB, free: 34.01 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.492e-05/0.3371, allocations: 16.36 kB / 0.4985 GB, free: 34.01 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.115e-05/0.3371, allocations: 6.375 kB / 0.4985 GB, free: 34 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.012e-05/0.3371, allocations: 8.469 kB / 0.4985 GB, free: 34 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006111/0.3432, allocations: 3.877 MB / 0.5023 GB, free: 32.33 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.496e-06/0.3432, allocations: 5.969 kB / 0.5023 GB, free: 32.33 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004282/0.3437, allocations: 158.8 kB / 0.5024 GB, free: 32.32 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000723/0.3444, allocations: 284.4 kB / 0.5027 GB, free: 32.29 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.257e-05/0.3444, allocations: 25.33 kB / 0.5027 GB, free: 32.28 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001533/0.346, allocations: 2.296 MB / 0.505 GB, free: 30.32 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.346, allocations: 0 / 0.505 GB, free: 30.32 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002461/0.3484, allocations: 1.956 MB / 0.5069 GB, free: 29.33 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000565/0.349, allocations: 279.5 kB / 0.5071 GB, free: 29.15 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002232/0.3492, allocations: 15.59 kB / 0.5072 GB, free: 29.14 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006108/0.3498, allocations: 92.23 kB / 0.5072 GB, free: 29.12 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001319/0.35, allocations: 64.2 kB / 0.5073 GB, free: 29.11 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.134e-05/0.35, allocations: 34.08 kB / 0.5073 GB, free: 29.11 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00172/0.3517, allocations: 1.369 MB / 0.5087 GB, free: 28.64 MB / 410.7 MB Notification: Performance of sort global known variables: time 3e-08/0.3517, allocations: 0 / 0.5087 GB, free: 28.64 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003844/0.3556, allocations: 0.8703 MB / 0.5095 GB, free: 28.53 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.0004335/0.356, allocations: 162.3 kB / 0.5097 GB, free: 28.41 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0048/0.3608, allocations: 2.618 MB / 0.5122 GB, free: 27.45 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.051e-06/0.3608, allocations: 1.969 kB / 0.5122 GB, free: 27.45 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007104/0.3615, allocations: 0.5641 MB / 0.5128 GB, free: 27.17 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001742/0.3633, allocations: 320.5 kB / 0.5131 GB, free: 27.03 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008316/0.3716, allocations: 5.812 MB / 0.5188 GB, free: 22.45 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009634/0.3726, allocations: 0.9857 MB / 0.5197 GB, free: 21.73 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002458/0.375, allocations: 1.447 MB / 0.5212 GB, free: 20.91 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003923/0.3754, allocations: 197.3 kB / 0.5213 GB, free: 20.73 MB / 410.7 MB Notification: Performance of SimCode: time 1.723e-06/0.3754, allocations: 0 / 0.5213 GB, free: 20.73 MB / 410.7 MB Notification: Performance of Templates: time 0.03586/0.4113, allocations: 23.71 MB / 0.5445 GB, free: 392 kB / 410.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.3265189421363175]