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.001541/0.001541, allocations: 84.34 kB / 20.95 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.00202/0.00202, allocations: 169.3 kB / 24.27 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.482/1.482, allocations: 177.1 MB / 204.6 MB, free: 5.598 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.3407/0.3407, allocations: 34.27 MB / 295.3 MB, free: 0.6836 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 2.274e-06/2.274e-06, allocations: 0 / 377.3 MB, free: 2.977 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.31e-05/3.538e-05, allocations: 2.312 kB / 377.3 MB, free: 2.973 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01246/0.01249, allocations: 7.926 MB / 385.2 MB, free: 11.01 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.008333/0.02083, allocations: 3.376 MB / 388.6 MB, free: 7.621 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001666/0.02249, allocations: 59.69 kB / 388.6 MB, free: 7.562 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004312/0.0268, allocations: 1.732 MB / 390.4 MB, free: 5.824 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005156/0.03196, allocations: 1.637 MB / 392 MB, free: 4.18 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00173/0.03369, allocations: 0.6157 MB / 392.6 MB, free: 3.562 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.006695/0.04038, allocations: 3.965 MB / 396.6 MB, free: 15.59 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004292/0.04468, allocations: 2.126 MB / 398.7 MB, free: 13.41 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0043/0.04898, allocations: 1.684 MB / 400.4 MB, free: 11.72 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003719/0.0527, allocations: 1.703 MB / 402.1 MB, free: 10.01 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009065/0.0536, allocations: 228 kB / 402.3 MB, free: 9.789 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002752/0.05635, allocations: 1.061 MB / 403.4 MB, free: 8.727 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00241/0.05876, allocations: 1.504 MB / 404.9 MB, free: 7.219 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002208/0.06097, allocations: 0.9149 MB / 405.8 MB, free: 6.301 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008976/0.06995, allocations: 5.479 MB / 411.3 MB, free: 0.8047 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.578e-06/0.06996, allocations: 3.984 kB / 411.3 MB, free: 0.8008 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.06996, allocations: 3.938 kB / 411.3 MB, free: 0.7969 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000235/0.07019, allocations: 0 / 411.3 MB, free: 0.7969 MB / 378.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.01197/0.08216, allocations: 3.713 MB / 415 MB, free: 13.02 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.414e-05/0.08222, allocations: 12.03 kB / 415 MB, free: 13.01 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01785/0.1001, allocations: 2.78 MB / 417.8 MB, free: 10.23 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006086/0.1062, allocations: 2.126 MB / 419.9 MB, free: 8.066 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002301/0.1064, allocations: 160.5 kB / 420.1 MB, free: 7.906 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009996/0.1074, allocations: 220.2 kB / 420.3 MB, free: 7.691 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01656/0.1239, allocations: 7.515 MB / 427.8 MB, free: 15.54 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001307/0.1241, allocations: 43.62 kB / 427.8 MB, free: 15.5 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003873/0.1245, allocations: 111.9 kB / 428 MB, free: 15.39 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002996/0.1275, allocations: 1.542 MB / 429.5 MB, free: 13.84 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01361/0.1411, allocations: 6.338 MB / 435.8 MB, free: 7.492 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2117/0.3527, allocations: 28.68 MB / 464.5 MB, free: 76.89 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004863/0.3576, allocations: 1.707 MB / 466.2 MB, free: 76.39 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001261/0.3589, allocations: 1.056 MB / 467.3 MB, free: 75.97 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003251/0.3592, allocations: 106.5 kB / 467.4 MB, free: 75.96 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.441e-05/0.3592, allocations: 49 kB / 467.4 MB, free: 75.92 MB / 410.7 MB Notification: Performance of pre-optimization done (n=108): time 5.149e-06/0.3592, allocations: 1.125 kB / 467.4 MB, free: 75.92 MB / 410.7 MB Notification: Performance of matching and sorting (n=132): time 0.05122/0.4104, allocations: 19.02 MB / 486.5 MB, free: 71.18 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.302e-05/0.4105, allocations: 200.6 kB / 486.7 MB, free: 70.95 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004671/0.4152, allocations: 3.433 MB / 490.1 MB, free: 69.73 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002488/0.4155, allocations: 46.98 kB / 490.1 MB, free: 69.68 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001652/0.4171, allocations: 2.648 MB / 492.8 MB, free: 67.74 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006455/0.4178, allocations: 0.5421 MB / 493.3 MB, free: 67.35 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001453/0.4192, allocations: 1.074 MB / 494.4 MB, free: 66.82 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.1e-05/0.4193, allocations: 307.2 kB / 494.7 MB, free: 66.52 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002878/0.4221, allocations: 1.94 MB / 496.6 MB, free: 65.88 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003818/0.426, allocations: 5.322 MB / 0.4902 GB, free: 60.66 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00702/0.433, allocations: 7.762 MB / 0.4978 GB, free: 54.18 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.702e-05/0.4331, allocations: 32.28 kB / 0.4978 GB, free: 54.18 MB / 410.7 MB Notification: Performance of matching and sorting (n=692) (initialization): time 0.01061/0.4437, allocations: 7.709 MB / 0.5053 GB, free: 48.82 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.114e-05/0.4437, allocations: 56 kB / 0.5054 GB, free: 48.76 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-05/0.4438, allocations: 119.9 kB / 0.5055 GB, free: 48.64 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001595/0.4454, allocations: 0.6794 MB / 0.5062 GB, free: 48.13 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003376/0.4488, allocations: 1.247 MB / 0.5074 GB, free: 47.05 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003713/0.4525, allocations: 3.939 MB / 0.5112 GB, free: 43.29 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003998/0.4565, allocations: 359.5 kB / 0.5116 GB, free: 42.93 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004029/0.4569, allocations: 331.2 kB / 0.5119 GB, free: 42.61 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 537 * 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 (657): * Single equations (assignments): 653 * 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.002024/0.4589, allocations: 1.693 MB / 0.5135 GB, free: 40.91 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007069/0.4596, allocations: 314.2 kB / 0.5138 GB, free: 40.6 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003686/0.4633, allocations: 2.502 MB / 0.5163 GB, free: 38.08 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.079e-05/0.4633, allocations: 12 kB / 0.5163 GB, free: 38.07 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.109e-05/0.4633, allocations: 4 kB / 0.5163 GB, free: 38.07 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.025e-05/0.4634, allocations: 7.984 kB / 0.5163 GB, free: 38.06 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008649/0.472, allocations: 5.581 MB / 0.5218 GB, free: 32.45 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.324e-05/0.472, allocations: 4 kB / 0.5218 GB, free: 32.45 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001077/0.4731, allocations: 223.7 kB / 0.522 GB, free: 32.23 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001352/0.4745, allocations: 0.5051 MB / 0.5225 GB, free: 31.72 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001129/0.4746, allocations: 27.98 kB / 0.5225 GB, free: 31.69 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003026/0.4776, allocations: 3.329 MB / 0.5257 GB, free: 28.27 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.4776, allocations: 0 / 0.5257 GB, free: 28.27 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005821/0.4834, allocations: 4.929 MB / 0.5306 GB, free: 23.3 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009793/0.4844, allocations: 270 kB / 0.5308 GB, free: 23.04 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003635/0.4848, allocations: 31.75 kB / 0.5308 GB, free: 23.01 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00136/0.4861, allocations: 135.8 kB / 0.531 GB, free: 22.88 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002263/0.4863, allocations: 76.12 kB / 0.531 GB, free: 22.81 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001008/0.4864, allocations: 36 kB / 0.5311 GB, free: 22.77 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002225/0.4887, allocations: 1.995 MB / 0.533 GB, free: 20.78 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.4887, allocations: 4.062 kB / 0.533 GB, free: 20.77 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004838/0.4935, allocations: 0.8943 MB / 0.5339 GB, free: 19.88 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.0004096/0.4939, allocations: 154.9 kB / 0.5341 GB, free: 19.72 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005538/0.4995, allocations: 4.388 MB / 0.5383 GB, free: 15.35 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/0.4995, allocations: 0 / 0.5383 GB, free: 15.35 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001433/0.5009, allocations: 1.256 MB / 0.5396 GB, free: 14.08 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002152/0.503, allocations: 326.1 kB / 0.5399 GB, free: 13.78 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01004/0.5131, allocations: 7.403 MB / 0.5471 GB, free: 6.32 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001935/0.515, allocations: 2.076 MB / 0.5491 GB, free: 4.223 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003332/0.5184, allocations: 1.686 MB / 0.5508 GB, free: 2.531 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007211/0.5191, allocations: 192.5 kB / 0.551 GB, free: 2.344 MB / 410.7 MB Notification: Performance of SimCode: time 2.154e-06/0.5191, allocations: 4 kB / 0.551 GB, free: 2.34 MB / 410.7 MB Notification: Performance of Templates: time 0.05705/0.5761, allocations: 25.56 MB / 0.5759 GB, free: 9.184 MB / 442.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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 480] 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.505783935077488]