Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001554/0.001554, 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.001747/0.001747, allocations: 163.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.9365/0.9365, allocations: 177.1 MB / 206.1 MB, free: 4.473 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.14/0.14, allocations: 32.8 MB / 295.4 MB, free: 15.38 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0.0_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.473e-06/1.473e-06, allocations: 0 / 377.3 MB, free: 25.6 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.594e-05/2.741e-05, allocations: 6.312 kB / 377.3 MB, free: 25.59 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.006503/0.00653, allocations: 8.479 MB / 385.7 MB, free: 17.07 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.005191/0.01172, allocations: 3.451 MB / 389.2 MB, free: 13.61 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001251/0.01297, allocations: 55.75 kB / 389.3 MB, free: 13.55 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001995/0.01497, allocations: 1.767 MB / 391 MB, free: 11.78 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002953/0.01792, allocations: 1.649 MB / 392.7 MB, free: 10.12 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008991/0.01882, allocations: 0.6118 MB / 393.3 MB, free: 9.508 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.003204/0.02202, allocations: 3.968 MB / 397.2 MB, free: 5.539 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001617/0.02364, allocations: 2.153 MB / 399.4 MB, free: 3.332 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001991/0.02563, allocations: 2.179 MB / 401.6 MB, free: 1.148 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001531/0.02716, allocations: 1.707 MB / 403.3 MB, free: 15.44 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003317/0.02749, allocations: 224 kB / 403.5 MB, free: 15.22 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00152/0.02901, allocations: 1.049 MB / 404.6 MB, free: 14.17 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009777/0.02999, allocations: 1.519 MB / 406.1 MB, free: 12.64 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008034/0.03079, allocations: 0.9071 MB / 407 MB, free: 11.73 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003758/0.03455, allocations: 3.702 MB / 410.7 MB, free: 8.016 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.03456, allocations: 4 kB / 410.7 MB, free: 8.012 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.03456, allocations: 0 / 410.7 MB, free: 8.012 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.525e-05/0.03462, allocations: 0 / 410.7 MB, free: 8.012 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: 1141 * Number of variables: 1141 Notification: Performance of Generate backend data structure: time 0.005339/0.03996, allocations: 3.904 MB / 414.6 MB, free: 4.043 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.302e-05/0.04001, allocations: 11.98 kB / 414.6 MB, free: 4.031 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007188/0.04719, allocations: 1.786 MB / 416.4 MB, free: 2.242 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002891/0.05009, allocations: 1.578 MB / 418 MB, free: 0.6211 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001031/0.05019, allocations: 172.5 kB / 418.1 MB, free: 460 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004062/0.05059, allocations: 220.2 kB / 418.3 MB, free: 240 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005174/0.05577, allocations: 4.26 MB / 422.6 MB, free: 11.12 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.852e-05/0.05584, allocations: 39.69 kB / 422.6 MB, free: 11.08 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001997/0.05604, allocations: 103.9 kB / 422.7 MB, free: 10.98 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001134/0.05717, allocations: 1.348 MB / 424.1 MB, free: 9.633 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003499/0.06067, allocations: 1.8 MB / 425.9 MB, free: 7.809 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02372/0.08439, allocations: 34.82 MB / 460.7 MB, free: 3.781 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001902/0.08629, allocations: 0.7741 MB / 461.5 MB, free: 2.957 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002939/0.08659, allocations: 234.5 kB / 461.7 MB, free: 2.711 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003184/0.08977, allocations: 2.359 MB / 464.1 MB, free: 328 kB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.323e-05/0.0898, allocations: 49.33 kB / 464.1 MB, free: 268 kB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 2.605e-06/0.08981, allocations: 0 / 464.1 MB, free: 268 kB / 378.7 MB Notification: Performance of matching and sorting (n=101): time 0.009346/0.09915, allocations: 3.776 MB / 467.9 MB, free: 12.42 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.714e-05/0.09922, allocations: 192.4 kB / 468.1 MB, free: 12.19 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002679/0.1019, allocations: 3.171 MB / 471.3 MB, free: 8.984 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.525e-05/0.102, allocations: 41.7 kB / 471.3 MB, free: 8.938 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00131/0.1033, allocations: 2.897 MB / 474.2 MB, free: 6.012 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003136/0.1036, allocations: 472.8 kB / 474.7 MB, free: 5.547 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001112/0.1047, allocations: 1.175 MB / 475.8 MB, free: 4.359 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001183/0.1048, allocations: 476.8 kB / 476.3 MB, free: 3.891 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006852/0.1055, allocations: 462.1 kB / 476.8 MB, free: 3.434 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003022/0.1085, allocations: 5.653 MB / 482.4 MB, free: 11.38 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004389/0.1129, allocations: 6.634 MB / 489 MB, free: 2.383 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.354e-05/0.113, allocations: 36 kB / 489.1 MB, free: 2.348 MB / 410.7 MB Notification: Performance of matching and sorting (n=681) (initialization): time 0.005201/0.1182, allocations: 4.19 MB / 493.3 MB, free: 14.15 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.291e-05/0.1182, allocations: 60 kB / 493.3 MB, free: 14.09 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.833e-05/0.1183, allocations: 120 kB / 493.4 MB, free: 13.97 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002909/0.1186, allocations: 200.3 kB / 493.6 MB, free: 13.77 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001886/0.1205, allocations: 1.174 MB / 494.8 MB, free: 12.6 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009983/0.1215, allocations: 1.955 MB / 496.8 MB, free: 10.53 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002255/0.1237, allocations: 251.8 kB / 497 MB, free: 10.29 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002793/0.124, allocations: 288 kB / 497.3 MB, free: 10 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 560 * 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 (656): * Single equations (assignments): 652 * 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.0009111/0.1249, allocations: 0.603 MB / 497.9 MB, free: 9.387 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000406/0.1253, allocations: 298.1 kB / 498.2 MB, free: 9.094 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000727/0.1261, allocations: 0.5539 MB / 498.7 MB, free: 8.527 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.55e-05/0.1261, allocations: 12 kB / 498.8 MB, free: 8.516 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.635e-06/0.1261, allocations: 4 kB / 498.8 MB, free: 8.512 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.276e-06/0.1261, allocations: 3.984 kB / 498.8 MB, free: 8.508 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004592/0.1307, allocations: 3.083 MB / 0.4901 GB, free: 5.32 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.262e-06/0.1307, allocations: 4 kB / 0.4901 GB, free: 5.316 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003684/0.1311, allocations: 120.2 kB / 0.4902 GB, free: 5.199 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001546/0.1312, allocations: 47.64 kB / 0.4902 GB, free: 5.148 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.023e-05/0.1313, allocations: 20 kB / 0.4903 GB, free: 5.129 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008319/0.1321, allocations: 1.748 MB / 0.492 GB, free: 3.266 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.1321, allocations: 4 kB / 0.492 GB, free: 3.262 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001442/0.1335, allocations: 1.514 MB / 0.4935 GB, free: 1.672 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004178/0.134, allocations: 258 kB / 0.4937 GB, free: 1.418 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002099/0.1342, allocations: 23.98 kB / 0.4937 GB, free: 1.395 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005033/0.1347, allocations: 19.98 kB / 0.4937 GB, free: 1.375 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.135e-05/0.1348, allocations: 63.78 kB / 0.4938 GB, free: 1.312 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.466e-05/0.1348, allocations: 28.09 kB / 0.4938 GB, free: 1.285 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001194/0.136, allocations: 1.255 MB / 0.4951 GB, free: 32 kB / 426.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.136, allocations: 0 / 0.4951 GB, free: 32 kB / 426.7 MB Notification: Performance of remove unused functions: time 0.1651/0.3011, allocations: 0.7592 MB / 0.4958 GB, free: 121.8 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 (rev.w,damper.phi_rel) * 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 (78): * Single equations (assignments): 74 * 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.000326/0.3014, allocations: 151.3 kB / 0.4959 GB, free: 121.7 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003483/0.3049, allocations: 2.261 MB / 0.4981 GB, free: 121.5 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.701e-06/0.3049, allocations: 0.875 kB / 0.4981 GB, free: 121.5 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006218/0.3055, allocations: 442.5 kB / 0.4986 GB, free: 121.3 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001912/0.3075, allocations: 311.6 kB / 0.4989 GB, free: 121.3 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009145/0.3166, allocations: 5.517 MB / 0.5043 GB, free: 118.9 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009488/0.3176, allocations: 0.9222 MB / 0.5052 GB, free: 118.8 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001395/0.3189, allocations: 421.7 kB / 0.5056 GB, free: 118.7 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006923/0.3196, allocations: 477.3 kB / 0.506 GB, free: 118.7 MB / 426.7 MB Notification: Performance of SimCode: time 1.633e-06/0.3196, allocations: 4 kB / 0.506 GB, free: 118.7 MB / 426.7 MB Notification: Performance of Templates: time 0.03811/0.3578, allocations: 21.74 MB / 0.5272 GB, free: 101.4 MB / 426.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.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.1603802987374365]