Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_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.001733/0.001733, allocations: 84.34 kB / 20.96 MB, free: 3.445 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.002105/0.002105, allocations: 165.3 kB / 24.27 MB, free: 140 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.549/1.549, allocations: 177.1 MB / 204.6 MB, free: 5.582 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.3434/0.3434, allocations: 34.26 MB / 295.3 MB, free: 0.6836 MB / 266.7 MB " [Timeout remaining time 180] 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.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.414e-06/2.414e-06, allocations: 0 / 377.3 MB, free: 2.988 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.386e-05/3.628e-05, allocations: 2.312 kB / 377.3 MB, free: 2.984 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01308/0.01311, allocations: 8.028 MB / 385.3 MB, free: 10.91 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.009213/0.02232, allocations: 3.391 MB / 388.7 MB, free: 7.512 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001503/0.02383, allocations: 55.75 kB / 388.8 MB, free: 7.457 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004773/0.0286, allocations: 2.001 MB / 390.8 MB, free: 5.449 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004934/0.03353, allocations: 1.672 MB / 392.4 MB, free: 3.77 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001668/0.0352, allocations: 0.6197 MB / 393 MB, free: 3.148 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.006027/0.04123, allocations: 4.049 MB / 397.1 MB, free: 15.09 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003843/0.04507, allocations: 2.311 MB / 399.4 MB, free: 12.72 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00374/0.04881, allocations: 1.781 MB / 401.2 MB, free: 10.94 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003319/0.05213, allocations: 1.8 MB / 403 MB, free: 9.133 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007392/0.05287, allocations: 248 kB / 403.2 MB, free: 8.891 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0024/0.05527, allocations: 1.069 MB / 404.3 MB, free: 7.82 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002244/0.05751, allocations: 1.617 MB / 405.9 MB, free: 6.199 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002086/0.0596, allocations: 0.9734 MB / 406.9 MB, free: 5.223 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007617/0.06722, allocations: 5.798 MB / 412.7 MB, free: 15.41 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.06722, allocations: 0 / 412.7 MB, free: 15.41 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.06723, allocations: 0 / 412.7 MB, free: 15.41 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001544/0.06738, allocations: 0 / 412.7 MB, free: 15.41 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1211 * Number of variables: 1211 Notification: Performance of Generate backend data structure: time 0.009698/0.07708, allocations: 3.897 MB / 416.6 MB, free: 11.45 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.117e-05/0.07713, allocations: 8.031 kB / 416.6 MB, free: 11.45 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0167/0.09383, allocations: 2.811 MB / 419.4 MB, free: 8.629 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006435/0.1003, allocations: 2.196 MB / 421.6 MB, free: 6.398 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002533/0.1005, allocations: 176.8 kB / 421.8 MB, free: 6.223 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00103/0.1015, allocations: 236.2 kB / 422 MB, free: 5.992 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01588/0.1174, allocations: 7.88 MB / 429.9 MB, free: 13.45 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001439/0.1176, allocations: 43.64 kB / 429.9 MB, free: 13.41 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006511/0.1182, allocations: 119.9 kB / 430 MB, free: 13.29 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003098/0.1213, allocations: 1.59 MB / 431.6 MB, free: 11.7 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01367/0.135, allocations: 6.613 MB / 438.2 MB, free: 5.074 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1955/0.3305, allocations: 30.07 MB / 468.3 MB, free: 74.53 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004301/0.3348, allocations: 1.881 MB / 470.2 MB, free: 73.98 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001284/0.336, allocations: 1.051 MB / 471.2 MB, free: 73.56 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003559/0.3364, allocations: 115.5 kB / 471.4 MB, free: 73.55 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.963e-05/0.3364, allocations: 49.38 kB / 471.4 MB, free: 73.5 MB / 410.7 MB Notification: Performance of pre-optimization done (n=104): time 3.637e-06/0.3364, allocations: 0 / 471.4 MB, free: 73.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=118): time 0.02697/0.3634, allocations: 10.89 MB / 482.3 MB, free: 69.76 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.708e-05/0.3635, allocations: 196.1 kB / 482.5 MB, free: 69.54 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004927/0.3684, allocations: 3.601 MB / 486.1 MB, free: 68.25 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001348/0.3685, allocations: 42.05 kB / 486.1 MB, free: 68.21 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001579/0.3701, allocations: 2.802 MB / 488.9 MB, free: 66.17 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006223/0.3707, allocations: 0.5061 MB / 489.4 MB, free: 65.81 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001994/0.3727, allocations: 1.105 MB / 490.5 MB, free: 65.26 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.436e-05/0.3728, allocations: 302.2 kB / 490.8 MB, free: 64.96 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002987/0.3758, allocations: 1.761 MB / 492.6 MB, free: 64.41 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004681/0.3805, allocations: 5.365 MB / 498 MB, free: 58.95 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007755/0.3882, allocations: 7.633 MB / 0.4937 GB, free: 52.31 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003471/0.3886, allocations: 36.28 kB / 0.4938 GB, free: 52.31 MB / 410.7 MB Notification: Performance of matching and sorting (n=715) (initialization): time 0.01381/0.4024, allocations: 7.514 MB / 0.5011 GB, free: 49.47 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002023/0.4026, allocations: 58 kB / 0.5012 GB, free: 49.47 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003651/0.4029, allocations: 126.4 kB / 0.5013 GB, free: 49.47 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002177/0.4051, allocations: 0.698 MB / 0.502 GB, free: 49.36 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004063/0.4092, allocations: 1.258 MB / 0.5032 GB, free: 49.21 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004587/0.4138, allocations: 3.947 MB / 0.5071 GB, free: 45.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004572/0.4183, allocations: 344.2 kB / 0.5074 GB, free: 45.61 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009618/0.4193, allocations: 348.3 kB / 0.5077 GB, free: 45.28 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 575 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.twoHeadedArrow,distance2.arrow.headAtOrigin,distance1.arrow.twoHeadedArrow,distance1.arrow.headAtOrigin,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 (680): * Single equations (assignments): 676 * 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 {(2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003328/0.4226, allocations: 1.769 MB / 0.5094 GB, free: 43.71 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007273/0.4234, allocations: 314.8 kB / 0.5097 GB, free: 43.4 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003609/0.427, allocations: 1.954 MB / 0.5117 GB, free: 41.84 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.428e-05/0.427, allocations: 19.94 kB / 0.5117 GB, free: 41.82 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.308e-05/0.427, allocations: 0.8906 kB / 0.5117 GB, free: 41.82 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.497e-05/0.427, allocations: 12.27 kB / 0.5117 GB, free: 41.81 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008195/0.4352, allocations: 4.701 MB / 0.5163 GB, free: 37.93 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.648e-06/0.4352, allocations: 4 kB / 0.5163 GB, free: 37.92 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008137/0.436, allocations: 170.2 kB / 0.5164 GB, free: 37.79 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001405/0.4375, allocations: 0.5086 MB / 0.5169 GB, free: 37.44 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001059/0.4376, allocations: 19.7 kB / 0.517 GB, free: 37.43 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003383/0.4409, allocations: 3.344 MB / 0.5202 GB, free: 34.38 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.4409, allocations: 0 / 0.5202 GB, free: 34.38 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005147/0.4461, allocations: 4.026 MB / 0.5242 GB, free: 30.44 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001115/0.4472, allocations: 281.9 kB / 0.5244 GB, free: 30.16 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007935/0.448, allocations: 20 kB / 0.5244 GB, free: 30.14 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0017/0.4497, allocations: 104 kB / 0.5245 GB, free: 30.04 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002259/0.4499, allocations: 68.38 kB / 0.5246 GB, free: 29.98 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.606e-05/0.45, allocations: 28 kB / 0.5246 GB, free: 29.95 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003214/0.4532, allocations: 2.081 MB / 0.5267 GB, free: 27.87 MB / 410.7 MB Notification: Performance of sort global known variables: time 9e-08/0.4532, allocations: 0 / 0.5267 GB, free: 27.87 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005057/0.4583, allocations: 0.8748 MB / 0.5275 GB, free: 27 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (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,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.0004664/0.4587, allocations: 166.5 kB / 0.5277 GB, free: 26.82 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005982/0.4647, allocations: 4.016 MB / 0.5316 GB, free: 22.82 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.4647, allocations: 1.188 kB / 0.5316 GB, free: 22.82 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001237/0.466, allocations: 1.018 MB / 0.5326 GB, free: 21.79 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002499/0.4685, allocations: 330.6 kB / 0.5329 GB, free: 21.49 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0119/0.4804, allocations: 7.383 MB / 0.5401 GB, free: 14.07 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003402/0.4838, allocations: 2.161 MB / 0.5422 GB, free: 11.87 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003655/0.4874, allocations: 1.685 MB / 0.5439 GB, free: 10.18 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007395/0.4882, allocations: 196.5 kB / 0.5441 GB, free: 9.98 MB / 410.7 MB Notification: Performance of SimCode: time 1.763e-06/0.4882, allocations: 0 / 0.5441 GB, free: 9.98 MB / 410.7 MB Notification: Performance of Templates: time 0.05127/0.5394, allocations: 23.64 MB / 0.5672 GB, free: 2.789 MB / 426.7 MB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.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.536481949035078]