Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.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.0009524/0.0009524, allocations: 80.05 kB / 20.72 MB, free: 3.77 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.0009618/0.0009618, allocations: 169 kB / 24.14 MB, free: 360 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.9349/0.9349, allocations: 158.6 MB / 186 MB, free: 2.562 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.1663/0.1663, allocations: 32.38 MB / 270.7 MB, free: 14.57 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.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 299.1 MB, free: 2.191 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.447e-05/2.608e-05, allocations: 2.312 kB / 299.1 MB, free: 2.188 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.1619/0.162, allocations: 9.488 MB / 308.5 MB, free: 15.49 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.007065/0.169, allocations: 3.737 MB / 312.3 MB, free: 13.17 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001872/0.1709, allocations: 64.38 kB / 312.3 MB, free: 13.15 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003212/0.1741, allocations: 2.084 MB / 314.4 MB, free: 12.28 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00478/0.1789, allocations: 1.886 MB / 316.3 MB, free: 11.04 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001423/0.1803, allocations: 0.6337 MB / 316.9 MB, free: 10.62 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.005255/0.1856, allocations: 4.11 MB / 321.1 MB, free: 8.215 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0028/0.1884, allocations: 2.55 MB / 323.6 MB, free: 5.598 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003618/0.192, allocations: 2.276 MB / 325.9 MB, free: 3.316 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002393/0.1944, allocations: 1.905 MB / 327.8 MB, free: 1.406 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006336/0.195, allocations: 280 kB / 328.1 MB, free: 1.133 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001595/0.1966, allocations: 1.104 MB / 329.2 MB, free: 28 kB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001689/0.1983, allocations: 1.811 MB / 331 MB, free: 14.21 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002151/0.2005, allocations: 1.098 MB / 332.1 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00616/0.2066, allocations: 4.32 MB / 336.4 MB, free: 8.773 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.796e-06/0.2066, allocations: 8 kB / 336.4 MB, free: 8.766 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2066, allocations: 0 / 336.4 MB, free: 8.766 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0002092/0.2068, allocations: 0 / 336.4 MB, free: 8.766 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1367 * Number of variables: 1367 Notification: Performance of Generate backend data structure: time 0.006426/0.2133, allocations: 3.935 MB / 340.3 MB, free: 4.781 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.822e-05/0.2133, allocations: 8.031 kB / 340.3 MB, free: 4.773 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003485/0.2168, allocations: 1.128 MB / 341.5 MB, free: 3.645 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002546/0.2193, allocations: 1.629 MB / 343.1 MB, free: 1.973 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001098/0.2195, allocations: 193.3 kB / 343.3 MB, free: 1.781 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000361/0.2198, allocations: 266.2 kB / 343.6 MB, free: 1.523 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005488/0.2253, allocations: 4.343 MB / 347.9 MB, free: 12.52 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.474e-05/0.2254, allocations: 39.69 kB / 347.9 MB, free: 12.48 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002422/0.2256, allocations: 131.8 kB / 348.1 MB, free: 12.35 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001513/0.2271, allocations: 1.618 MB / 349.7 MB, free: 10.73 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00448/0.2316, allocations: 2.151 MB / 351.8 MB, free: 8.57 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02493/0.2566, allocations: 27.66 MB / 379.5 MB, free: 11.84 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002226/0.2588, allocations: 0.8461 MB / 380.3 MB, free: 10.95 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002703/0.259, allocations: 199.7 kB / 380.5 MB, free: 10.74 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003877/0.2629, allocations: 2.412 MB / 382.9 MB, free: 8.309 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.966e-05/0.263, allocations: 50.48 kB / 383 MB, free: 8.25 MB / 346.7 MB Notification: Performance of pre-optimization done (n=91): time 4.559e-06/0.263, allocations: 0 / 383 MB, free: 8.25 MB / 346.7 MB Notification: Performance of matching and sorting (n=100): time 0.006702/0.2697, allocations: 2.677 MB / 385.7 MB, free: 5.527 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.379e-05/0.2697, allocations: 191.9 kB / 385.9 MB, free: 5.297 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00306/0.2728, allocations: 3.152 MB / 389 MB, free: 2.137 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.301e-05/0.2729, allocations: 37.7 kB / 389 MB, free: 2.094 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00134/0.2742, allocations: 3.022 MB / 392.1 MB, free: 15.04 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003608/0.2746, allocations: 456.8 kB / 392.5 MB, free: 14.59 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009437/0.2755, allocations: 1.139 MB / 393.7 MB, free: 13.44 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.336e-05/0.2756, allocations: 305.1 kB / 394 MB, free: 13.14 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009908/0.2766, allocations: 0.6718 MB / 394.6 MB, free: 12.46 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002925/0.2795, allocations: 4.569 MB / 399.2 MB, free: 5.871 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004735/0.2843, allocations: 5.736 MB / 404.9 MB, free: 14.14 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001034/0.2844, allocations: 40 kB / 405 MB, free: 14.1 MB / 378.7 MB Notification: Performance of matching and sorting (n=766) (initialization): time 0.005738/0.2901, allocations: 4.022 MB / 409 MB, free: 10.05 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.669e-05/0.2902, allocations: 78.5 kB / 409.1 MB, free: 9.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000103/0.2903, allocations: 140 kB / 409.2 MB, free: 9.844 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003499/0.2906, allocations: 223.6 kB / 409.4 MB, free: 9.621 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002176/0.2928, allocations: 1.329 MB / 410.8 MB, free: 8.289 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001019/0.2938, allocations: 1.47 MB / 412.2 MB, free: 6.719 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003059/0.2969, allocations: 279.7 kB / 412.5 MB, free: 6.445 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003801/0.2973, allocations: 332 kB / 412.8 MB, free: 6.121 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 647 * Number of states: 0 () * Number of discrete variables: 31 (LessEqualThreshold1.y,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[1],distance1.arrowColor[3],distance1.arrowColor[2],distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.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 (741): * Single equations (assignments): 737 * 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.001235/0.2985, allocations: 0.6184 MB / 413.4 MB, free: 5.488 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004259/0.2989, allocations: 171.8 kB / 413.6 MB, free: 5.32 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006953/0.2996, allocations: 0.4986 MB / 414.1 MB, free: 4.801 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.52e-05/0.2996, allocations: 19.98 kB / 414.1 MB, free: 4.781 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.2996, allocations: 4 kB / 414.1 MB, free: 4.777 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.2997, allocations: 3.984 kB / 414.1 MB, free: 4.773 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004149/0.3038, allocations: 2.767 MB / 416.9 MB, free: 1.922 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.758e-06/0.3038, allocations: 7.562 kB / 416.9 MB, free: 1.918 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000388/0.3042, allocations: 119.8 kB / 417 MB, free: 1.801 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000393/0.3046, allocations: 225.4 kB / 417.2 MB, free: 1.574 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.771e-05/0.3046, allocations: 16.31 kB / 417.3 MB, free: 1.559 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008305/0.3055, allocations: 1.213 MB / 418.5 MB, free: 256 kB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.3055, allocations: 7.938 kB / 418.5 MB, free: 248 kB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002001/0.3075, allocations: 1.266 MB / 419.7 MB, free: 14.91 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000722/0.3082, allocations: 345.8 kB / 420.1 MB, free: 14.57 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002038/0.3084, allocations: 23.94 kB / 420.1 MB, free: 14.54 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005141/0.3089, allocations: 20 kB / 420.1 MB, free: 14.52 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001025/0.309, allocations: 59.83 kB / 420.2 MB, free: 14.46 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.527e-05/0.3091, allocations: 24 kB / 420.2 MB, free: 14.44 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00125/0.3103, allocations: 1.124 MB / 421.3 MB, free: 13.32 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3103, allocations: 0 / 421.3 MB, free: 13.32 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003321/0.3136, allocations: 0.8671 MB / 422.2 MB, free: 12.46 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 (Revolute1.phi,Revolute1.w) * Number of discrete variables: 1 (LessEqualThreshold1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (79): * Single equations (assignments): 75 * 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.0003753/0.314, allocations: 148.2 kB / 422.3 MB, free: 12.3 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003024/0.317, allocations: 2.262 MB / 424.6 MB, free: 10.05 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001724/0.3172, allocations: 104.1 kB / 424.7 MB, free: 9.941 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004102/0.3176, allocations: 333.2 kB / 425 MB, free: 9.598 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002125/0.3197, allocations: 0.5008 MB / 425.5 MB, free: 9.098 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009252/0.329, allocations: 6.226 MB / 431.8 MB, free: 2.758 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009559/0.33, allocations: 1.078 MB / 432.8 MB, free: 1.656 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001225/0.3312, allocations: 465.2 kB / 433.3 MB, free: 1.199 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005742/0.3318, allocations: 481.2 kB / 433.8 MB, free: 0.7305 MB / 394.7 MB Notification: Performance of SimCode: time 2.505e-06/0.3318, allocations: 0 / 433.8 MB, free: 0.7305 MB / 394.7 MB Notification: Performance of Templates: time 0.03895/0.3707, allocations: 21.9 MB / 455.7 MB, free: 10.91 MB / 426.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.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.022610653657466]