Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.0009388/0.0009388, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001398/0.002337, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0008724/0.0008724, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001072/0.001944, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.176/1.176, allocations: 177.2 MB / 189.6 MB, free: 5.312 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1405/1.316, allocations: 53.65 MB / 243.3 MB, free: 15.59 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3761/0.3761, allocations: 32.8 MB / 276.8 MB, free: 15.86 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.03398/0.41, allocations: 12.53 MB / 289.3 MB, free: 8.676 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0.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.0.0_ModelicaTest.MultiBody.Sensors.Distance2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.074e-06/2.074e-06, allocations: 0 / 290.6 MB, free: 7.66 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.66e-05/1.867e-05, allocations: 4.312 kB / 290.6 MB, free: 7.656 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.008105/0.008124, allocations: 8.719 MB / 299.3 MB, free: 15.56 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005631/0.01375, allocations: 3.634 MB / 303 MB, free: 11.92 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006635/0.01442, allocations: 55.75 kB / 303 MB, free: 11.86 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002017/0.01644, allocations: 1.954 MB / 305 MB, free: 9.902 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002149/0.01858, allocations: 1.653 MB / 306.6 MB, free: 8.242 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007434/0.01933, allocations: 0.5767 MB / 307.2 MB, free: 7.664 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003073/0.0224, allocations: 3.796 MB / 311 MB, free: 3.863 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001624/0.02403, allocations: 2.109 MB / 313.1 MB, free: 1.684 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001882/0.02591, allocations: 2.174 MB / 315.3 MB, free: 15.5 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001512/0.02742, allocations: 1.699 MB / 317 MB, free: 13.8 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002342/0.02765, allocations: 248 kB / 317.2 MB, free: 13.55 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001307/0.02896, allocations: 1.104 MB / 318.3 MB, free: 12.45 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009037/0.02986, allocations: 1.453 MB / 319.8 MB, free: 10.99 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006669/0.03053, allocations: 0.7944 MB / 320.6 MB, free: 10.2 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002969/0.0335, allocations: 3.584 MB / 324.2 MB, free: 6.598 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.667e-05/0.03352, allocations: 0 / 324.2 MB, free: 6.598 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.03352, allocations: 0 / 324.2 MB, free: 6.598 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.492e-05/0.03355, allocations: 0 / 324.2 MB, free: 6.598 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: 1211 * Number of variables: 1211 Notification: Performance of Generate backend data structure: time 0.004091/0.03765, allocations: 4.338 MB / 328.5 MB, free: 2.191 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/0.03769, allocations: 12.02 kB / 328.5 MB, free: 2.18 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002732/0.04042, allocations: 1.007 MB / 329.5 MB, free: 1.172 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001656/0.04207, allocations: 1.516 MB / 331 MB, free: 15.62 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.046e-05/0.04216, allocations: 180.8 kB / 331.2 MB, free: 15.44 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002684/0.04243, allocations: 232.2 kB / 331.4 MB, free: 15.21 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003774/0.04621, allocations: 3.996 MB / 335.4 MB, free: 10.55 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.065e-05/0.04627, allocations: 35.64 kB / 335.5 MB, free: 10.52 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001861/0.04645, allocations: 115.9 kB / 335.6 MB, free: 10.41 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00117/0.04762, allocations: 1.402 MB / 337 MB, free: 9.004 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002384/0.05001, allocations: 1.929 MB / 338.9 MB, free: 7.047 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0166/0.06661, allocations: 25.87 MB / 364.8 MB, free: 12.15 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00151/0.06812, allocations: 0.7895 MB / 365.6 MB, free: 11.32 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002218/0.06834, allocations: 174.8 kB / 365.7 MB, free: 11.13 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00248/0.07082, allocations: 2.235 MB / 368 MB, free: 8.867 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.494e-05/0.07086, allocations: 38.8 kB / 368 MB, free: 8.82 MB / 362.7 MB Notification: Performance of pre-optimization done (n=82): time 3.196e-06/0.07086, allocations: 0 / 368 MB, free: 8.82 MB / 362.7 MB Notification: Performance of matching and sorting (n=91): time 0.00517/0.07603, allocations: 2.456 MB / 370.5 MB, free: 6.324 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.6e-05/0.07609, allocations: 140.5 kB / 370.6 MB, free: 6.156 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002276/0.07837, allocations: 2.978 MB / 373.6 MB, free: 3.16 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.228e-05/0.07841, allocations: 41.69 kB / 373.6 MB, free: 3.113 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00125/0.07966, allocations: 2.738 MB / 376.4 MB, free: 352 kB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002498/0.07991, allocations: 421.1 kB / 376.8 MB, free: 15.93 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008025/0.08072, allocations: 1.064 MB / 377.8 MB, free: 14.86 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.759e-05/0.0808, allocations: 309.1 kB / 378.1 MB, free: 14.55 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008634/0.08167, allocations: 0.6236 MB / 378.8 MB, free: 13.92 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00271/0.08438, allocations: 4.255 MB / 383 MB, free: 7.773 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004624/0.089, allocations: 5.332 MB / 388.3 MB, free: 0.5742 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.161e-05/0.08907, allocations: 40 kB / 388.4 MB, free: 0.5352 MB / 378.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.004281/0.09335, allocations: 3.757 MB / 392.1 MB, free: 12.77 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.313e-05/0.09342, allocations: 67.94 kB / 392.2 MB, free: 12.7 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.212e-05/0.09351, allocations: 132 kB / 392.3 MB, free: 12.57 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003132/0.09382, allocations: 212.2 kB / 392.5 MB, free: 12.36 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00208/0.0959, allocations: 1.369 MB / 393.9 MB, free: 10.99 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001001/0.0969, allocations: 1.455 MB / 395.4 MB, free: 9.43 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001881/0.09878, allocations: 259.8 kB / 395.6 MB, free: 9.176 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002704/0.09905, allocations: 308 kB / 395.9 MB, free: 8.875 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 604 * 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 (689): * Single equations (assignments): 685 * 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.001107/0.1002, allocations: 0.5833 MB / 396.5 MB, free: 8.277 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003072/0.1005, allocations: 163.8 kB / 396.7 MB, free: 8.117 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005797/0.101, allocations: 451.5 kB / 397.1 MB, free: 7.664 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.536e-05/0.1011, allocations: 15.98 kB / 397.1 MB, free: 7.648 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.291e-06/0.1011, allocations: 0 / 397.1 MB, free: 7.648 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.516e-06/0.1011, allocations: 7.984 kB / 397.1 MB, free: 7.641 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00335/0.1044, allocations: 2.499 MB / 399.6 MB, free: 5.051 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.202e-06/0.1044, allocations: 4 kB / 399.6 MB, free: 5.047 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003218/0.1048, allocations: 123.8 kB / 399.8 MB, free: 4.926 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003437/0.1051, allocations: 261.9 kB / 400 MB, free: 4.668 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003174/0.1054, allocations: 213.2 kB / 400.2 MB, free: 4.453 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.763e-05/0.1055, allocations: 27.92 kB / 400.2 MB, free: 4.426 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007407/0.1062, allocations: 1.202 MB / 401.4 MB, free: 3.125 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.439e-06/0.1062, allocations: 4 kB / 401.5 MB, free: 3.121 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001015/0.1072, allocations: 1.208 MB / 402.7 MB, free: 1.844 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001805/0.1074, allocations: 19.94 kB / 402.7 MB, free: 1.824 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004171/0.1078, allocations: 16 kB / 402.7 MB, free: 1.809 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.837e-05/0.1079, allocations: 55.84 kB / 402.8 MB, free: 1.754 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.686e-05/0.1079, allocations: 35.92 kB / 402.8 MB, free: 1.719 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0009133/0.1089, allocations: 1.053 MB / 403.8 MB, free: 0.668 MB / 394.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1089, allocations: 0 / 403.8 MB, free: 0.668 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002679/0.1115, allocations: 0.7773 MB / 404.6 MB, free: 15.89 MB / 410.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 (69): * Single equations (assignments): 65 * 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.0003326/0.1119, allocations: 152.1 kB / 404.8 MB, free: 15.73 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00246/0.1143, allocations: 2.119 MB / 406.9 MB, free: 13.62 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001591/0.1145, allocations: 100.1 kB / 407 MB, free: 13.51 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003227/0.1148, allocations: 313 kB / 407.3 MB, free: 13.19 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001311/0.1161, allocations: 0.6553 MB / 407.9 MB, free: 12.54 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00835/0.1245, allocations: 5.732 MB / 413.7 MB, free: 6.695 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009796/0.1255, allocations: 0.9633 MB / 414.6 MB, free: 5.715 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0009394/0.1264, allocations: 443.2 kB / 415.1 MB, free: 5.277 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000535/0.1269, allocations: 445.3 kB / 415.5 MB, free: 4.84 MB / 410.7 MB Notification: Performance of SimCode: time 1.332e-06/0.1269, allocations: 0 / 415.5 MB, free: 4.84 MB / 410.7 MB Notification: Performance of Templates: time 0.04128/0.1682, allocations: 20.96 MB / 436.5 MB, free: 112 kB / 426.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/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.44280472677201]