Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.002638/0.002638, allocations: 92.97 kB / 20.21 MB, free: 4.207 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.003086/0.003086, allocations: 169.2 kB / 23.53 MB, free: 0.8945 MB / 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 1.345/1.345, allocations: 158.6 MB / 185.3 MB, free: 2.891 MB / 170.7 MB " [Timeout remaining time 178] 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.2258/0.2258, allocations: 32.37 MB / 270 MB, free: 14.63 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.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.024e-06/2.024e-06, allocations: 0 / 346.9 MB, free: 9.801 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.039e-05/3.241e-05, allocations: 2.312 kB / 346.9 MB, free: 9.797 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01096/0.01099, allocations: 9.095 MB / 356 MB, free: 0.6641 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01004/0.02104, allocations: 3.528 MB / 359.6 MB, free: 13.12 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001966/0.023, allocations: 59.75 kB / 359.6 MB, free: 13.07 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00508/0.02808, allocations: 1.81 MB / 361.4 MB, free: 11.25 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005713/0.03379, allocations: 1.742 MB / 363.2 MB, free: 9.5 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001894/0.03569, allocations: 0.6118 MB / 363.8 MB, free: 8.887 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.007508/0.0432, allocations: 3.869 MB / 367.6 MB, free: 5.012 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00435/0.04755, allocations: 2.239 MB / 369.9 MB, free: 2.719 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004404/0.05195, allocations: 1.789 MB / 371.7 MB, free: 0.9258 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004135/0.05609, allocations: 1.835 MB / 373.5 MB, free: 15.09 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007904/0.05688, allocations: 240 kB / 373.7 MB, free: 14.85 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002997/0.05987, allocations: 1.069 MB / 374.8 MB, free: 13.78 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002643/0.06252, allocations: 1.632 MB / 376.4 MB, free: 12.14 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002962/0.06548, allocations: 0.985 MB / 377.4 MB, free: 11.16 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01239/0.07787, allocations: 5.864 MB / 383.3 MB, free: 5.273 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.544e-06/0.07788, allocations: 3.938 kB / 383.3 MB, free: 5.27 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.07788, allocations: 0 / 383.3 MB, free: 5.27 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002398/0.07812, allocations: 4 kB / 383.3 MB, free: 5.266 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: 1219 * Number of variables: 1219 Notification: Performance of Generate backend data structure: time 0.01319/0.09131, allocations: 4.588 MB / 387.9 MB, free: 0.6133 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.476e-05/0.09136, allocations: 8.031 kB / 387.9 MB, free: 0.6055 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01831/0.1097, allocations: 2.798 MB / 390.7 MB, free: 13.8 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006314/0.116, allocations: 2.089 MB / 392.8 MB, free: 11.67 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001763/0.1162, allocations: 172.7 kB / 393 MB, free: 11.5 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005137/0.1167, allocations: 224.2 kB / 393.2 MB, free: 11.28 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01002/0.1267, allocations: 5.174 MB / 398.3 MB, free: 5.246 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001045/0.1268, allocations: 47.61 kB / 398.4 MB, free: 5.199 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003343/0.1271, allocations: 111.9 kB / 398.5 MB, free: 5.09 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003169/0.1303, allocations: 1.668 MB / 400.2 MB, free: 3.422 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008386/0.1387, allocations: 2.779 MB / 402.9 MB, free: 0.6328 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05193/0.1906, allocations: 38.89 MB / 441.8 MB, free: 8.516 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004116/0.1947, allocations: 1.073 MB / 442.9 MB, free: 7.395 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009242/0.1957, allocations: 416.1 kB / 443.3 MB, free: 6.973 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003274/0.196, allocations: 84.31 kB / 443.4 MB, free: 6.891 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.537e-05/0.196, allocations: 49.89 kB / 443.4 MB, free: 6.832 MB / 378.7 MB Notification: Performance of pre-optimization done (n=117): time 3.697e-06/0.196, allocations: 4 kB / 443.4 MB, free: 6.828 MB / 378.7 MB Notification: Performance of matching and sorting (n=141): time 0.1831/0.3792, allocations: 8.998 MB / 452.4 MB, free: 102.1 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.704e-05/0.3792, allocations: 199.7 kB / 452.6 MB, free: 101.9 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005131/0.3844, allocations: 3.989 MB / 456.6 MB, free: 101.4 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002004/0.3846, allocations: 49.77 kB / 456.7 MB, free: 101.4 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001535/0.3861, allocations: 3.117 MB / 459.8 MB, free: 99.88 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004902/0.3866, allocations: 0.6365 MB / 460.4 MB, free: 99.46 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00145/0.3881, allocations: 1.417 MB / 461.8 MB, free: 98.72 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.589e-05/0.3881, allocations: 480.5 kB / 462.3 MB, free: 98.25 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001242/0.3893, allocations: 0.6765 MB / 463 MB, free: 98.14 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0029/0.3922, allocations: 6.008 MB / 469 MB, free: 90.98 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005103/0.3974, allocations: 7.305 MB / 476.3 MB, free: 83.11 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001286/0.3975, allocations: 35.09 kB / 476.3 MB, free: 83.11 MB / 378.7 MB Notification: Performance of matching and sorting (n=719) (initialization): time 0.008346/0.4058, allocations: 5.169 MB / 481.5 MB, free: 79.21 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.912e-05/0.4059, allocations: 56 kB / 481.6 MB, free: 79.15 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.143e-05/0.406, allocations: 120 kB / 481.7 MB, free: 79.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001435/0.4074, allocations: 471.4 kB / 482.1 MB, free: 78.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003167/0.4106, allocations: 1.263 MB / 483.4 MB, free: 77.59 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002892/0.4135, allocations: 2.976 MB / 486.4 MB, free: 74.65 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003691/0.4172, allocations: 343.5 kB / 486.7 MB, free: 74.31 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004527/0.4176, allocations: 332 kB / 487 MB, free: 73.99 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * Number of states: 0 () * Number of discrete variables: 27 (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 (684): * Single equations (assignments): 680 * 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.001269/0.4189, allocations: 0.6896 MB / 487.7 MB, free: 73.29 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005582/0.4195, allocations: 333.8 kB / 488.1 MB, free: 72.96 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002822/0.4223, allocations: 1.269 MB / 489.3 MB, free: 71.68 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.156e-05/0.4223, allocations: 16 kB / 489.3 MB, free: 71.67 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.237e-06/0.4223, allocations: 8 kB / 489.3 MB, free: 71.66 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.082e-05/0.4223, allocations: 3.984 kB / 489.4 MB, free: 71.66 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009144/0.4315, allocations: 5.035 MB / 494.4 MB, free: 66.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.15e-05/0.4315, allocations: 4 kB / 494.4 MB, free: 66.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009791/0.4325, allocations: 207.7 kB / 494.6 MB, free: 66.38 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00121/0.4337, allocations: 299.2 kB / 494.9 MB, free: 66.09 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.572e-05/0.4338, allocations: 24 kB / 494.9 MB, free: 66.06 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002277/0.436, allocations: 2.359 MB / 497.3 MB, free: 63.59 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.436, allocations: 0 / 497.3 MB, free: 63.59 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003932/0.44, allocations: 2.375 MB / 499.6 MB, free: 61.17 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001463/0.4414, allocations: 457.8 kB / 0.4884 GB, free: 60.72 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004754/0.4419, allocations: 23.94 kB / 0.4884 GB, free: 60.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001301/0.4432, allocations: 111.8 kB / 0.4885 GB, free: 60.59 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002009/0.4434, allocations: 80.44 kB / 0.4886 GB, free: 60.51 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000108/0.4435, allocations: 43.44 kB / 0.4886 GB, free: 60.47 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002103/0.4456, allocations: 1.619 MB / 0.4902 GB, free: 58.85 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.4456, allocations: 4.031 kB / 0.4902 GB, free: 58.85 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004148/0.4498, allocations: 0.91 MB / 0.4911 GB, free: 57.94 MB / 378.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 (112): * Single equations (assignments): 108 * 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.0003711/0.4501, allocations: 170.4 kB / 0.4913 GB, free: 57.77 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004376/0.4545, allocations: 3.024 MB / 0.4942 GB, free: 54.75 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.4545, allocations: 8.062 kB / 0.4942 GB, free: 54.74 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009709/0.4555, allocations: 0.723 MB / 0.4949 GB, free: 53.99 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001814/0.4573, allocations: 331 kB / 0.4952 GB, free: 53.68 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007724/0.465, allocations: 6.113 MB / 0.5012 GB, free: 47.5 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001802/0.4668, allocations: 2.014 MB / 0.5032 GB, free: 45.47 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002889/0.4697, allocations: 1.475 MB / 0.5046 GB, free: 43.99 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005298/0.4702, allocations: 204.5 kB / 0.5048 GB, free: 43.8 MB / 378.7 MB Notification: Performance of SimCode: time 2.044e-06/0.4702, allocations: 0 / 0.5048 GB, free: 43.8 MB / 378.7 MB Notification: Performance of Templates: time 0.04195/0.5122, allocations: 24.88 MB / 0.5291 GB, free: 19.07 MB / 378.7 MB " [Timeout remaining time 659] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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.398615128011443]