Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.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.001494/0.001494, allocations: 79.69 kB / 21.7 MB, free: 2.852 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.00122/0.00122, allocations: 157 kB / 24.99 MB, free: 8.801 MB / 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.002/1.002, allocations: 177 MB / 205.2 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 179] 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.2826/0.2826, allocations: 34.87 MB / 296.6 MB, free: 0.5586 MB / 266.7 MB " [Timeout remaining time 180] 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.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.052e-06/1.052e-06, allocations: 0 / 378.7 MB, free: 2.434 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.624e-05/1.729e-05, allocations: 6.312 kB / 378.7 MB, free: 2.426 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.007217/0.007235, allocations: 8.777 MB / 387.5 MB, free: 9.605 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.005419/0.01265, allocations: 3.492 MB / 391 MB, free: 6.102 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007974/0.01345, allocations: 55.75 kB / 391.1 MB, free: 6.047 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002133/0.01558, allocations: 2.056 MB / 393.1 MB, free: 3.984 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002566/0.01815, allocations: 1.668 MB / 394.8 MB, free: 2.309 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009728/0.01912, allocations: 0.6313 MB / 395.4 MB, free: 1.676 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.003678/0.0228, allocations: 4.049 MB / 399.5 MB, free: 13.62 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001582/0.02438, allocations: 2.315 MB / 401.8 MB, free: 11.24 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00133/0.02571, allocations: 1.785 MB / 403.6 MB, free: 9.453 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001707/0.02742, allocations: 1.824 MB / 405.4 MB, free: 7.625 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002489/0.02767, allocations: 244 kB / 405.6 MB, free: 7.387 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001071/0.02874, allocations: 1.065 MB / 406.7 MB, free: 6.32 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009321/0.02967, allocations: 1.621 MB / 408.3 MB, free: 4.695 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007413/0.03041, allocations: 0.9773 MB / 409.3 MB, free: 3.715 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0032/0.03361, allocations: 3.877 MB / 413.2 MB, free: 15.82 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.03362, allocations: 0 / 413.2 MB, free: 15.82 MB / 394.7 MB Notification: Performance of FrontEnd: time 9.51e-07/0.03362, allocations: 0 / 413.2 MB, free: 15.82 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.779e-05/0.03364, allocations: 0 / 413.2 MB, free: 15.82 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.003992/0.03764, allocations: 4.21 MB / 417.4 MB, free: 11.55 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.517e-05/0.03767, allocations: 12.03 kB / 417.4 MB, free: 11.54 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00771/0.04538, allocations: 2.76 MB / 420.2 MB, free: 8.773 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002279/0.04766, allocations: 2.015 MB / 422.2 MB, free: 6.723 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.568e-05/0.04775, allocations: 176.8 kB / 422.3 MB, free: 6.547 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002612/0.04801, allocations: 232.2 kB / 422.6 MB, free: 6.32 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00439/0.0524, allocations: 4.859 MB / 427.4 MB, free: 0.5781 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.863e-05/0.05246, allocations: 39.69 kB / 427.5 MB, free: 0.5391 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002034/0.05266, allocations: 115.9 kB / 427.6 MB, free: 436 kB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001446/0.05411, allocations: 1.578 MB / 429.2 MB, free: 14.85 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004012/0.05812, allocations: 2.453 MB / 431.6 MB, free: 12.39 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.177/0.2351, allocations: 36.51 MB / 468.1 MB, free: 67.84 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002166/0.2373, allocations: 0.9547 MB / 469.1 MB, free: 67.6 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000419/0.2377, allocations: 356.2 kB / 469.4 MB, free: 67.51 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001642/0.2379, allocations: 96.41 kB / 469.5 MB, free: 67.5 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.515e-05/0.2379, allocations: 43.08 kB / 469.6 MB, free: 67.45 MB / 410.7 MB Notification: Performance of pre-optimization done (n=104): time 3.918e-06/0.2379, allocations: 0 / 469.6 MB, free: 67.45 MB / 410.7 MB Notification: Performance of matching and sorting (n=118): time 0.01157/0.2495, allocations: 6.922 MB / 476.5 MB, free: 64.85 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.589e-05/0.2495, allocations: 193.4 kB / 476.7 MB, free: 64.63 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002391/0.2519, allocations: 3.261 MB / 479.9 MB, free: 63.29 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.06e-05/0.252, allocations: 41.08 kB / 480 MB, free: 63.25 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009629/0.2529, allocations: 2.971 MB / 482.9 MB, free: 61.09 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002838/0.2532, allocations: 0.5216 MB / 483.5 MB, free: 60.72 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008352/0.2541, allocations: 1.218 MB / 484.7 MB, free: 60.07 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.835e-05/0.2541, allocations: 484 kB / 485.2 MB, free: 59.6 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007846/0.2549, allocations: 0.559 MB / 485.7 MB, free: 59.52 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002087/0.257, allocations: 5.904 MB / 491.6 MB, free: 52.25 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003739/0.2607, allocations: 7.069 MB / 498.7 MB, free: 44.21 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.838e-05/0.2607, allocations: 36.62 kB / 498.7 MB, free: 44.21 MB / 410.7 MB Notification: Performance of matching and sorting (n=717) (initialization): time 0.005442/0.2662, allocations: 5.004 MB / 0.4919 GB, free: 42.36 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.215e-05/0.2663, allocations: 60.19 kB / 0.492 GB, free: 42.36 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001428/0.2664, allocations: 125.8 kB / 0.4921 GB, free: 42.36 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001013/0.2674, allocations: 469 kB / 0.4925 GB, free: 42.33 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002157/0.2696, allocations: 1.251 MB / 0.4938 GB, free: 42.17 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002115/0.2717, allocations: 2.882 MB / 0.4966 GB, free: 39.88 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002508/0.2742, allocations: 337.3 kB / 0.4969 GB, free: 39.76 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004637/0.2747, allocations: 343 kB / 0.4972 GB, free: 39.72 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 577 * 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 (682): * Single equations (assignments): 678 * 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.001134/0.2758, allocations: 0.6162 MB / 0.4978 GB, free: 39.22 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004138/0.2762, allocations: 314.3 kB / 0.4981 GB, free: 39.05 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001767/0.278, allocations: 1.003 MB / 0.4991 GB, free: 38.72 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-05/0.278, allocations: 17.06 kB / 0.4991 GB, free: 38.72 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.56e-05/0.278, allocations: 3.469 kB / 0.4991 GB, free: 38.72 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.332e-05/0.278, allocations: 5.109 kB / 0.4991 GB, free: 38.72 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005982/0.284, allocations: 3.873 MB / 0.5029 GB, free: 37.05 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.714e-06/0.284, allocations: 1.094 kB / 0.5029 GB, free: 37.05 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004356/0.2845, allocations: 159.1 kB / 0.5031 GB, free: 37.04 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009015/0.2854, allocations: 291.5 kB / 0.5033 GB, free: 37 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.242e-05/0.2854, allocations: 26.33 kB / 0.5034 GB, free: 36.99 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001932/0.2874, allocations: 2.285 MB / 0.5056 GB, free: 35.04 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.2874, allocations: 4.031 kB / 0.5056 GB, free: 35.03 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002565/0.2899, allocations: 1.952 MB / 0.5075 GB, free: 34.05 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003567/0.2903, allocations: 276.8 kB / 0.5078 GB, free: 33.86 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000231/0.2905, allocations: 21.86 kB / 0.5078 GB, free: 33.85 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007877/0.2913, allocations: 86.7 kB / 0.5079 GB, free: 33.84 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001615/0.2915, allocations: 69.19 kB / 0.5079 GB, free: 33.83 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.109e-05/0.2915, allocations: 30.03 kB / 0.508 GB, free: 33.82 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001632/0.2932, allocations: 1.376 MB / 0.5093 GB, free: 33.35 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.2932, allocations: 7.969 kB / 0.5093 GB, free: 33.34 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003668/0.2968, allocations: 0.8641 MB / 0.5102 GB, free: 33.24 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.0003453/0.2972, allocations: 156 kB / 0.5103 GB, free: 33.12 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003591/0.3008, allocations: 2.625 MB / 0.5129 GB, free: 31.94 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.3008, allocations: 4 kB / 0.5129 GB, free: 31.94 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006448/0.3014, allocations: 0.5596 MB / 0.5134 GB, free: 31.41 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001386/0.3028, allocations: 327.5 kB / 0.5137 GB, free: 31.14 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007131/0.3099, allocations: 5.804 MB / 0.5194 GB, free: 25.79 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001002/0.3109, allocations: 0.9816 MB / 0.5204 GB, free: 25.07 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002703/0.3136, allocations: 1.455 MB / 0.5218 GB, free: 24.25 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003876/0.314, allocations: 193.5 kB / 0.522 GB, free: 24.07 MB / 410.7 MB Notification: Performance of SimCode: time 1.483e-06/0.314, allocations: 0 / 0.522 GB, free: 24.07 MB / 410.7 MB Notification: Performance of Templates: time 0.03576/0.3498, allocations: 23.72 MB / 0.5451 GB, free: 2.746 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_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","",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.221989060984924]