Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001408/0.001408, allocations: 96.25 kB / 20.96 MB, free: 3.469 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001586/0.001586, allocations: 156.9 kB / 24.26 MB, free: 172 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.567/1.567, allocations: 177 MB / 204.4 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4026/0.4026, allocations: 34.25 MB / 295.2 MB, free: 0.6523 MB / 266.7 MB " [Timeout remaining time 179] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.914e-06/1.914e-06, allocations: 0 / 377.2 MB, free: 2.906 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.867e-05/3.059e-05, allocations: 3.859 kB / 377.2 MB, free: 2.902 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01173/0.01177, allocations: 7.915 MB / 385.1 MB, free: 10.95 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.00822/0.01999, allocations: 3.383 MB / 388.5 MB, free: 7.551 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00147/0.02146, allocations: 55.75 kB / 388.6 MB, free: 7.496 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00396/0.02542, allocations: 1.736 MB / 390.3 MB, free: 5.754 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004792/0.03021, allocations: 1.637 MB / 391.9 MB, free: 4.109 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001528/0.03174, allocations: 0.6041 MB / 392.5 MB, free: 3.504 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.006807/0.03854, allocations: 3.966 MB / 396.5 MB, free: 15.53 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003539/0.04208, allocations: 2.134 MB / 398.6 MB, free: 13.34 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003189/0.04527, allocations: 1.684 MB / 400.3 MB, free: 11.65 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003183/0.04845, allocations: 1.711 MB / 402 MB, free: 9.938 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000578/0.04903, allocations: 224 kB / 402.2 MB, free: 9.719 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002207/0.05124, allocations: 1.053 MB / 403.3 MB, free: 8.664 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001841/0.05308, allocations: 1.511 MB / 404.8 MB, free: 7.148 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001506/0.05458, allocations: 0.9111 MB / 405.7 MB, free: 6.234 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008716/0.0633, allocations: 5.49 MB / 411.2 MB, free: 0.7266 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.06331, allocations: 0 / 411.2 MB, free: 0.7266 MB / 378.7 MB Notification: Performance of FrontEnd: time 8.01e-07/0.06331, allocations: 0 / 411.2 MB, free: 0.7266 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000177/0.06348, allocations: 0 / 411.2 MB, free: 0.7266 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.009887/0.07337, allocations: 3.713 MB / 414.9 MB, free: 12.96 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.841e-05/0.07342, allocations: 8.031 kB / 414.9 MB, free: 12.95 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01703/0.09045, allocations: 2.776 MB / 417.7 MB, free: 10.17 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005965/0.09641, allocations: 2.13 MB / 419.8 MB, free: 8.004 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001826/0.0966, allocations: 168.4 kB / 420 MB, free: 7.836 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007529/0.09735, allocations: 220.1 kB / 420.2 MB, free: 7.621 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01461/0.112, allocations: 7.511 MB / 427.7 MB, free: 15.47 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001202/0.1121, allocations: 39.7 kB / 427.8 MB, free: 15.43 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003494/0.1124, allocations: 107.9 kB / 427.9 MB, free: 15.33 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002933/0.1154, allocations: 1.546 MB / 429.4 MB, free: 13.78 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01313/0.1285, allocations: 6.342 MB / 435.8 MB, free: 7.43 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2357/0.3642, allocations: 28.68 MB / 464.4 MB, free: 76.88 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004203/0.3684, allocations: 1.719 MB / 466.2 MB, free: 76.38 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001359/0.3698, allocations: 1.06 MB / 467.2 MB, free: 75.96 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00037/0.3701, allocations: 106.5 kB / 467.3 MB, free: 75.95 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.23e-05/0.3702, allocations: 55.72 kB / 467.4 MB, free: 75.9 MB / 410.7 MB Notification: Performance of pre-optimization done (n=108): time 4.338e-06/0.3702, allocations: 0 / 467.4 MB, free: 75.9 MB / 410.7 MB Notification: Performance of matching and sorting (n=132): time 0.05125/0.4214, allocations: 19.01 MB / 486.4 MB, free: 71.17 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.149e-05/0.4215, allocations: 196.3 kB / 486.6 MB, free: 70.95 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005103/0.4266, allocations: 3.44 MB / 490 MB, free: 69.71 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003067/0.4269, allocations: 42.02 kB / 490.1 MB, free: 69.67 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00168/0.4286, allocations: 2.643 MB / 492.7 MB, free: 67.74 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007635/0.4294, allocations: 0.5539 MB / 493.3 MB, free: 67.34 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001538/0.4309, allocations: 1.071 MB / 494.3 MB, free: 66.81 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.752e-05/0.4309, allocations: 305.7 kB / 494.6 MB, free: 66.51 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002938/0.4339, allocations: 1.941 MB / 496.6 MB, free: 65.87 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004517/0.4384, allocations: 5.328 MB / 0.4901 GB, free: 60.64 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007925/0.4463, allocations: 7.753 MB / 0.4977 GB, free: 54.16 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001294/0.4464, allocations: 36.34 kB / 0.4977 GB, free: 54.16 MB / 410.7 MB Notification: Performance of matching and sorting (n=692) (initialization): time 0.01368/0.4601, allocations: 7.702 MB / 0.5053 GB, free: 48.82 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.99e-05/0.4602, allocations: 57 kB / 0.5053 GB, free: 48.76 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001357/0.4603, allocations: 116 kB / 0.5054 GB, free: 48.65 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001661/0.462, allocations: 0.6761 MB / 0.5061 GB, free: 48.14 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004195/0.4662, allocations: 1.247 MB / 0.5073 GB, free: 47.06 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003843/0.47, allocations: 3.95 MB / 0.5112 GB, free: 43.25 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004634/0.4747, allocations: 359.5 kB / 0.5115 GB, free: 42.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006726/0.4754, allocations: 328 kB / 0.5118 GB, free: 42.58 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.002392/0.4777, allocations: 1.701 MB / 0.5135 GB, free: 40.87 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007976/0.4785, allocations: 310.1 kB / 0.5138 GB, free: 40.57 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003624/0.4822, allocations: 2.506 MB / 0.5162 GB, free: 38.04 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.261e-05/0.4822, allocations: 16 kB / 0.5162 GB, free: 38.03 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.051e-05/0.4822, allocations: 4 kB / 0.5162 GB, free: 38.02 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.016e-05/0.4822, allocations: 3.984 kB / 0.5162 GB, free: 38.02 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008627/0.4908, allocations: 5.575 MB / 0.5217 GB, free: 32.42 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.185e-06/0.4908, allocations: 0 / 0.5217 GB, free: 32.42 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001083/0.4919, allocations: 227.7 kB / 0.5219 GB, free: 32.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001394/0.4933, allocations: 0.5091 MB / 0.5224 GB, free: 31.68 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001178/0.4934, allocations: 28 kB / 0.5224 GB, free: 31.66 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003142/0.4966, allocations: 3.32 MB / 0.5257 GB, free: 28.24 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.4966, allocations: 4 kB / 0.5257 GB, free: 28.23 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005954/0.5025, allocations: 4.921 MB / 0.5305 GB, free: 23.28 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009707/0.5035, allocations: 274 kB / 0.5307 GB, free: 23.01 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003701/0.5039, allocations: 28.06 kB / 0.5308 GB, free: 22.98 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001846/0.5057, allocations: 139.6 kB / 0.5309 GB, free: 22.85 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00034/0.5061, allocations: 76.45 kB / 0.531 GB, free: 22.78 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001718/0.5062, allocations: 39.98 kB / 0.531 GB, free: 22.74 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002555/0.5088, allocations: 1.991 MB / 0.533 GB, free: 20.75 MB / 410.7 MB Notification: Performance of sort global known variables: time 9e-08/0.5088, allocations: 0 / 0.533 GB, free: 20.75 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004988/0.5138, allocations: 0.8866 MB / 0.5338 GB, free: 19.86 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.000502/0.5143, allocations: 170.5 kB / 0.534 GB, free: 19.68 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006198/0.5205, allocations: 4.377 MB / 0.5383 GB, free: 15.32 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.602e-06/0.5205, allocations: 3.938 kB / 0.5383 GB, free: 15.32 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00142/0.5219, allocations: 1.261 MB / 0.5395 GB, free: 14.05 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002371/0.5243, allocations: 333.4 kB / 0.5398 GB, free: 13.75 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01088/0.5352, allocations: 7.402 MB / 0.547 GB, free: 6.289 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001909/0.5371, allocations: 2.082 MB / 0.5491 GB, free: 4.188 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003084/0.5402, allocations: 1.676 MB / 0.5507 GB, free: 2.504 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006086/0.5408, allocations: 196.5 kB / 0.5509 GB, free: 2.312 MB / 410.7 MB Notification: Performance of SimCode: time 1.123e-06/0.5408, allocations: 0 / 0.5509 GB, free: 2.312 MB / 410.7 MB Notification: Performance of Templates: time 0.05787/0.5986, allocations: 25.56 MB / 0.5759 GB, free: 9.156 MB / 442.7 MB " [Timeout remaining time 659] make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_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_trunk_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.694390823948197]