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.001562/0.001562, allocations: 81.08 kB / 20.65 MB, free: 3.84 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.001612/0.001612, allocations: 173.4 kB / 24.05 MB, free: 456 kB / 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 0.8546/0.8546, allocations: 158.6 MB / 185.9 MB, free: 2.812 MB / 170.7 MB " [Timeout remaining time 179] 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.1274/0.1274, allocations: 32.38 MB / 270.7 MB, free: 14.54 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 1.613e-06/1.613e-06, allocations: 0 / 348.1 MB, free: 9.191 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.915e-05/2.076e-05, allocations: 6.25 kB / 348.1 MB, free: 9.184 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.006307/0.006328, allocations: 8.963 MB / 357.1 MB, free: 188 kB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.004944/0.01127, allocations: 3.517 MB / 360.6 MB, free: 12.66 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005686/0.01184, allocations: 55.75 kB / 360.6 MB, free: 12.6 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001856/0.0137, allocations: 1.783 MB / 362.4 MB, free: 10.81 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002054/0.01575, allocations: 1.754 MB / 364.2 MB, free: 9.051 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000676/0.01643, allocations: 0.608 MB / 364.8 MB, free: 8.441 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002594/0.01902, allocations: 3.879 MB / 368.7 MB, free: 4.551 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001624/0.02064, allocations: 2.235 MB / 370.9 MB, free: 2.262 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001802/0.02245, allocations: 2.109 MB / 373 MB, free: 152 kB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001499/0.02395, allocations: 1.8 MB / 374.8 MB, free: 14.34 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003572/0.0243, allocations: 244 kB / 375.1 MB, free: 14.1 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001146/0.02545, allocations: 1.08 MB / 376.1 MB, free: 13.02 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001029/0.02648, allocations: 1.624 MB / 377.8 MB, free: 11.39 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007654/0.02724, allocations: 0.9773 MB / 378.7 MB, free: 10.41 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003567/0.03081, allocations: 3.95 MB / 382.7 MB, free: 6.445 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.03081, allocations: 0 / 382.7 MB, free: 6.445 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.03082, allocations: 0 / 382.7 MB, free: 6.445 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.347e-05/0.03085, allocations: 0 / 382.7 MB, free: 6.445 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.004252/0.0351, allocations: 4.107 MB / 386.8 MB, free: 2.273 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.94e-05/0.03514, allocations: 12.03 kB / 386.8 MB, free: 2.262 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006535/0.04168, allocations: 1.856 MB / 388.7 MB, free: 412 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002154/0.04383, allocations: 1.664 MB / 390.3 MB, free: 14.7 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000112/0.04394, allocations: 172.7 kB / 390.5 MB, free: 14.53 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002958/0.04424, allocations: 224.2 kB / 390.7 MB, free: 14.31 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00432/0.04856, allocations: 4.45 MB / 395.2 MB, free: 8.992 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.41e-05/0.04863, allocations: 39.67 kB / 395.2 MB, free: 8.953 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002135/0.04885, allocations: 123.8 kB / 395.3 MB, free: 8.832 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001282/0.05013, allocations: 1.449 MB / 396.8 MB, free: 7.383 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003778/0.05391, allocations: 1.93 MB / 398.7 MB, free: 5.434 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02308/0.07699, allocations: 35.87 MB / 434.6 MB, free: 320 kB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001727/0.07871, allocations: 0.8168 MB / 435.4 MB, free: 15.45 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000292/0.079, allocations: 260.7 kB / 435.6 MB, free: 15.18 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002934/0.08194, allocations: 2.469 MB / 438.1 MB, free: 12.68 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.15e-05/0.08198, allocations: 45.72 kB / 438.2 MB, free: 12.62 MB / 378.7 MB Notification: Performance of pre-optimization done (n=93): time 2.865e-06/0.08198, allocations: 0 / 438.2 MB, free: 12.62 MB / 378.7 MB Notification: Performance of matching and sorting (n=110): time 0.009285/0.09127, allocations: 3.954 MB / 442.1 MB, free: 8.598 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.052e-05/0.09135, allocations: 192.4 kB / 442.3 MB, free: 8.367 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002809/0.09416, allocations: 3.254 MB / 445.6 MB, free: 5.086 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.13e-05/0.09421, allocations: 45.64 kB / 445.6 MB, free: 5.035 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001808/0.09602, allocations: 3.029 MB / 448.6 MB, free: 1.977 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003043/0.09632, allocations: 0.4887 MB / 449.1 MB, free: 1.484 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00097/0.09729, allocations: 1.219 MB / 450.3 MB, free: 260 kB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.163/0.2602, allocations: 477.4 kB / 450.8 MB, free: 97.55 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001961/0.2622, allocations: 483.5 kB / 451.3 MB, free: 97.54 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003235/0.2654, allocations: 5.822 MB / 457.1 MB, free: 90.61 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004915/0.2704, allocations: 6.839 MB / 463.9 MB, free: 83.61 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001506/0.2705, allocations: 37.12 kB / 464 MB, free: 83.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=706) (initialization): time 0.007313/0.2778, allocations: 4.335 MB / 468.3 MB, free: 82.64 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001027/0.2779, allocations: 58.19 kB / 468.4 MB, free: 82.64 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002593/0.2782, allocations: 126.9 kB / 468.5 MB, free: 82.64 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005165/0.2787, allocations: 205.1 kB / 468.7 MB, free: 82.62 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003501/0.2822, allocations: 1.222 MB / 469.9 MB, free: 82.51 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001282/0.2835, allocations: 1.972 MB / 471.9 MB, free: 80.76 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004673/0.2882, allocations: 253.1 kB / 472.1 MB, free: 80.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008945/0.2891, allocations: 294.6 kB / 472.4 MB, free: 80.75 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 576 * 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 (681): * Single equations (assignments): 677 * 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.001667/0.2907, allocations: 0.6159 MB / 473 MB, free: 80.47 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000559/0.2913, allocations: 313.3 kB / 473.3 MB, free: 80.47 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00086/0.2921, allocations: 0.613 MB / 474 MB, free: 80.37 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.142e-05/0.2922, allocations: 17.16 kB / 474 MB, free: 80.37 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.917e-06/0.2922, allocations: 0 / 474 MB, free: 80.37 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.758e-06/0.2922, allocations: 10.2 kB / 474 MB, free: 80.37 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004767/0.2969, allocations: 3.284 MB / 477.3 MB, free: 79.57 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.193e-06/0.297, allocations: 8.031 kB / 477.3 MB, free: 79.56 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003854/0.2973, allocations: 142.7 kB / 477.4 MB, free: 79.44 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001688/0.2975, allocations: 42.52 kB / 477.5 MB, free: 79.41 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.47e-05/0.2976, allocations: 23.48 kB / 477.5 MB, free: 79.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007329/0.2983, allocations: 1.752 MB / 479.2 MB, free: 77.61 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.2983, allocations: 7.938 kB / 479.2 MB, free: 77.61 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001836/0.3001, allocations: 1.58 MB / 480.8 MB, free: 76.21 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000772/0.3009, allocations: 358.5 kB / 481.2 MB, free: 75.96 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002483/0.3011, allocations: 25.28 kB / 481.2 MB, free: 75.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008413/0.302, allocations: 24.83 kB / 481.2 MB, free: 75.94 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001325/0.3021, allocations: 67.08 kB / 481.3 MB, free: 75.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.807e-05/0.3022, allocations: 29.66 kB / 481.3 MB, free: 75.88 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001865/0.3041, allocations: 1.294 MB / 482.6 MB, free: 75.09 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3041, allocations: 0 / 482.6 MB, free: 75.09 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.005215/0.3093, allocations: 0.8161 MB / 483.4 MB, free: 74.38 MB / 378.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 (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,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.0004685/0.3097, allocations: 170.5 kB / 483.6 MB, free: 74.23 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005388/0.3151, allocations: 2.351 MB / 485.9 MB, free: 72.22 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.637e-06/0.3151, allocations: 0 / 485.9 MB, free: 72.22 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006997/0.3158, allocations: 475.3 kB / 486.4 MB, free: 71.79 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002499/0.3183, allocations: 327.5 kB / 486.7 MB, free: 71.53 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01214/0.3305, allocations: 5.842 MB / 492.6 MB, free: 66.09 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001237/0.3317, allocations: 0.9864 MB / 493.5 MB, free: 65.38 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001991/0.3337, allocations: 437.8 kB / 494 MB, free: 65.07 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008838/0.3346, allocations: 496.2 kB / 494.5 MB, free: 64.61 MB / 378.7 MB Notification: Performance of SimCode: time 2.936e-06/0.3346, allocations: 0 / 494.5 MB, free: 64.61 MB / 378.7 MB Notification: Performance of Templates: time 0.03362/0.3682, allocations: 22.28 MB / 0.5046 GB, free: 42.62 MB / 378.7 MB " [Timeout remaining time 660] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.946791388094425]