Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.002604/0.002604, allocations: 91.61 kB / 20.96 MB, free: 3.453 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.00309/0.00309, allocations: 165.3 kB / 24.28 MB, free: 144 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.591/1.591, allocations: 177.1 MB / 204.6 MB, free: 5.602 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.3977/0.3977, allocations: 34.26 MB / 295.3 MB, free: 0.668 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.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.773e-06/1.773e-06, allocations: 0 / 377.3 MB, free: 2.973 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.26e-05/3.437e-05, allocations: 2.312 kB / 377.3 MB, free: 2.969 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01338/0.01341, allocations: 8.635 MB / 385.9 MB, free: 10.29 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.008046/0.02146, allocations: 3.473 MB / 389.4 MB, free: 6.812 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001186/0.02265, allocations: 55.75 kB / 389.4 MB, free: 6.758 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004036/0.02668, allocations: 1.783 MB / 391.2 MB, free: 4.969 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004354/0.03103, allocations: 1.637 MB / 392.9 MB, free: 3.324 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001461/0.0325, allocations: 0.608 MB / 393.5 MB, free: 2.715 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.006182/0.03868, allocations: 3.958 MB / 397.4 MB, free: 14.75 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003361/0.04204, allocations: 2.141 MB / 399.6 MB, free: 12.55 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002911/0.04495, allocations: 1.688 MB / 401.2 MB, free: 10.86 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003022/0.04797, allocations: 1.726 MB / 403 MB, free: 9.125 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005475/0.04852, allocations: 224 kB / 403.2 MB, free: 8.906 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002168/0.05069, allocations: 1.057 MB / 404.3 MB, free: 7.848 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00203/0.05272, allocations: 1.508 MB / 405.8 MB, free: 6.336 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00149/0.05421, allocations: 0.9149 MB / 406.7 MB, free: 5.418 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008297/0.06251, allocations: 5.471 MB / 412.1 MB, free: 15.93 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.007e-05/0.06252, allocations: 4 kB / 412.1 MB, free: 15.93 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.06252, allocations: 0 / 412.1 MB, free: 15.93 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001761/0.06269, allocations: 0 / 412.1 MB, free: 15.93 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: 1141 * Number of variables: 1141 Notification: Performance of Generate backend data structure: time 0.01106/0.07375, allocations: 4.341 MB / 416.5 MB, free: 11.52 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.209e-05/0.0738, allocations: 8.031 kB / 416.5 MB, free: 11.51 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01867/0.09248, allocations: 2.729 MB / 419.2 MB, free: 8.777 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006347/0.09883, allocations: 2.004 MB / 421.2 MB, free: 6.738 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002076/0.09903, allocations: 168.4 kB / 421.4 MB, free: 6.57 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008478/0.09988, allocations: 216.2 kB / 421.6 MB, free: 6.359 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01104/0.1109, allocations: 4.924 MB / 426.5 MB, free: 0.5859 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001166/0.111, allocations: 39.64 kB / 426.6 MB, free: 0.5469 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003305/0.1114, allocations: 107.8 kB / 426.7 MB, free: 452 kB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003035/0.1144, allocations: 1.539 MB / 428.2 MB, free: 14.9 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00841/0.1228, allocations: 2.606 MB / 430.8 MB, free: 12.29 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1981/0.3209, allocations: 37.47 MB / 468.3 MB, free: 66.76 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003245/0.3241, allocations: 1.009 MB / 469.3 MB, free: 66.47 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006839/0.3248, allocations: 377.5 kB / 469.7 MB, free: 66.37 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002611/0.3251, allocations: 97.75 kB / 469.8 MB, free: 66.36 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.96e-05/0.3251, allocations: 51.16 kB / 469.8 MB, free: 66.31 MB / 410.7 MB Notification: Performance of pre-optimization done (n=108): time 3.727e-06/0.3251, allocations: 0 / 469.8 MB, free: 66.31 MB / 410.7 MB Notification: Performance of matching and sorting (n=132): time 0.02692/0.352, allocations: 8.629 MB / 478.4 MB, free: 63.41 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.59e-05/0.3521, allocations: 196.8 kB / 478.6 MB, free: 63.19 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004122/0.3562, allocations: 3.864 MB / 482.5 MB, free: 61.52 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001425/0.3564, allocations: 40.7 kB / 482.5 MB, free: 61.48 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001405/0.3578, allocations: 2.984 MB / 485.5 MB, free: 59.32 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005063/0.3583, allocations: 0.5965 MB / 486.1 MB, free: 58.89 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001474/0.3597, allocations: 1.369 MB / 487.5 MB, free: 58.18 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.229e-05/0.3598, allocations: 476.8 kB / 487.9 MB, free: 57.71 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001253/0.3611, allocations: 0.6404 MB / 488.6 MB, free: 57.6 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003198/0.3643, allocations: 5.821 MB / 494.4 MB, free: 50.64 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005911/0.3702, allocations: 7.068 MB / 0.4897 GB, free: 42.91 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001333/0.3703, allocations: 38.38 kB / 0.4898 GB, free: 42.91 MB / 410.7 MB Notification: Performance of matching and sorting (n=694) (initialization): time 0.01021/0.3805, allocations: 4.992 MB / 0.4946 GB, free: 41.07 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.764e-05/0.3806, allocations: 58.72 kB / 0.4947 GB, free: 41.07 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001565/0.3808, allocations: 117.7 kB / 0.4948 GB, free: 41.07 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001684/0.3825, allocations: 458.1 kB / 0.4952 GB, free: 41.04 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003721/0.3862, allocations: 1.22 MB / 0.4964 GB, free: 40.88 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003336/0.3895, allocations: 2.991 MB / 0.4994 GB, free: 38.52 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00421/0.3937, allocations: 323.3 kB / 0.4997 GB, free: 38.41 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007539/0.3945, allocations: 330 kB / 0.5 GB, free: 38.37 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 539 * 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 (659): * Single equations (assignments): 655 * 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,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001656/0.3962, allocations: 0.6701 MB / 0.5006 GB, free: 37.85 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007087/0.3969, allocations: 316.7 kB / 0.5009 GB, free: 37.68 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002829/0.3997, allocations: 1.177 MB / 0.5021 GB, free: 37.29 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.275e-05/0.3997, allocations: 24.58 kB / 0.5021 GB, free: 37.28 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.18e-05/0.3997, allocations: 5.859 kB / 0.5021 GB, free: 37.28 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.098e-05/0.3997, allocations: 3.375 kB / 0.5021 GB, free: 37.28 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009297/0.409, allocations: 4.734 MB / 0.5067 GB, free: 35.19 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.102e-05/0.4091, allocations: 3.969 kB / 0.5067 GB, free: 35.19 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009207/0.41, allocations: 196.2 kB / 0.5069 GB, free: 35.17 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001258/0.4112, allocations: 296.6 kB / 0.5072 GB, free: 35.14 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001064/0.4113, allocations: 23.09 kB / 0.5072 GB, free: 35.13 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002434/0.4138, allocations: 2.359 MB / 0.5095 GB, free: 33.12 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.4138, allocations: 0 / 0.5095 GB, free: 33.12 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003959/0.4177, allocations: 2.271 MB / 0.5118 GB, free: 31.98 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001111/0.4188, allocations: 272 kB / 0.512 GB, free: 31.72 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005746/0.4194, allocations: 20 kB / 0.512 GB, free: 31.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001382/0.4208, allocations: 101.2 kB / 0.5121 GB, free: 31.64 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002484/0.4211, allocations: 75.52 kB / 0.5122 GB, free: 31.61 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.45e-05/0.4211, allocations: 39.17 kB / 0.5122 GB, free: 31.57 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002586/0.4237, allocations: 1.567 MB / 0.5138 GB, free: 30.24 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4237, allocations: 4.031 kB / 0.5138 GB, free: 30.23 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004466/0.4282, allocations: 0.8605 MB / 0.5146 GB, free: 29.38 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * 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 (102): * Single equations (assignments): 98 * 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.0004359/0.4286, allocations: 168.7 kB / 0.5148 GB, free: 29.21 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005219/0.4339, allocations: 2.906 MB / 0.5176 GB, free: 26.6 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/0.4339, allocations: 0 / 0.5176 GB, free: 26.6 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001004/0.4349, allocations: 0.6818 MB / 0.5183 GB, free: 25.95 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00203/0.4369, allocations: 326.2 kB / 0.5186 GB, free: 25.68 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00846/0.4454, allocations: 5.758 MB / 0.5242 GB, free: 20.35 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002313/0.4477, allocations: 1.883 MB / 0.526 GB, free: 19 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003311/0.451, allocations: 1.438 MB / 0.5275 GB, free: 18.17 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007247/0.4517, allocations: 194.5 kB / 0.5276 GB, free: 17.99 MB / 410.7 MB Notification: Performance of SimCode: time 3.997e-06/0.4517, allocations: 0 / 0.5276 GB, free: 17.99 MB / 410.7 MB Notification: Performance of Templates: time 0.04686/0.4986, allocations: 23.94 MB / 0.551 GB, free: 11.66 MB / 426.7 MB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.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.582594136008993]