/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 130 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7474
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2040.5-1705_daily_bin438
RA = 310.136, Dec = -17.0901
tmin = 352857601, tmax = 353116801
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='107343', job_status='RUN', time_executed='2021-09-25 15:44:58.778560', time_epoch_executed='1632609898.78' WHERE source_name='4FGL J2040.5-1705' and cadence='daily' and bin_id='438'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/107343

Creating custom pfile directory:
/scratch/kocevski/107343/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=352857601.0 && nMetStart<353116801.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=352857601.0 && nMetStart<353116801.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/107343/ft1_4FGL_J2040.5-1705_daily_bin438.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=352857601.0 && nMetStart<353116801.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/107343/ft2_4FGL_J2040.5-1705_daily_bin438.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/107343/ft1_4FGL_J2040.5-1705_daily_bin438.fits outfile=/scratch/kocevski/107343/ft1_filteredMKT_4FGL_J2040.5-1705_daily_bin438.fits ra=310.136 dec=-17.0901 rad=12.0 tmin=352857601.0 tmax=353116801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.51
user 3.28
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/107343/ft2_4FGL_J2040.5-1705_daily_bin438.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/107343/ft2_4FGL_J2040.5-1705_daily_bin438.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/107343/ft1_filteredMKT_4FGL_J2040.5-1705_daily_bin438.fits evtable="EVENTS" outfile="/scratch/kocevski/107343/ft1_filtered_4FGL_J2040.5-1705_daily_bin438.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.62
user 0.36
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/107343/ft1_filtered_4FGL_J2040.5-1705_daily_bin438.fits" evtable="EVENTS" scfile=/scratch/kocevski/107343/ft2_4FGL_J2040.5-1705_daily_bin438.fits sctable="SC_DATA" outfile=/scratch/kocevski/107343/ltcube_352857601_353116801_4FGL_J2040.5-1705_daily_bin438.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/107343/ft2_4FGL_J2040.5-1705_daily_bin438.fits
.....................!
real 14.68
user 14.27
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/107343/ft1_filtered_4FGL_J2040.5-1705_daily_bin438.fits evtable="EVENTS" scfile=/scratch/kocevski/107343/ft2_4FGL_J2040.5-1705_daily_bin438.fits sctable="SC_DATA" expcube=/scratch/kocevski/107343/ltcube_352857601_353116801_4FGL_J2040.5-1705_daily_bin438.fits outfile=/scratch/kocevski/107343/expmap_352857601_353116801_4FGL_J2040.5-1705_daily_bin438.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/107343/ltcube_352857601_353116801_4FGL_J2040.5-1705_daily_bin438.fits
.....................!
real 191.18
user 185.37
sys 5.19

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 181 point sources and 0 extended sources

Setting source of interest to:
4FGL J2040.5-1705 @ 310.136 -17.0901

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/107343/ft1_filtered_4FGL_J2040.5-1705_daily_bin438.fits scfile=/scratch/kocevski/107343/ft2_4FGL_J2040.5-1705_daily_bin438.fits outfile=/scratch/kocevski/107343/cmap_352857601_353116801_4FGL_J2040.5-1705_daily_bin438.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=310.136 yref=-17.0901 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.57
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/107343/ft1_filtered_4FGL_J2040.5-1705_daily_bin438.fits scfile=/scratch/kocevski/107343/ft2_4FGL_J2040.5-1705_daily_bin438.fits outfile=/scratch/kocevski/107343/cmap_HighResolution_352857601_353116801_4FGL_J2040.5-1705_daily_bin438.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=310.136 yref=-17.0901 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/107343/ft1_filtered_4FGL_J2040.5-1705_daily_bin438.fits evtable="EVENTS" scfile=/scratch/kocevski/107343/ft2_4FGL_J2040.5-1705_daily_bin438.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/107343/Model_4FGL_J2040.5-1705_daily_bin438.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/107343/ft1_filtered_4FGL_J2040.5-1705_daily_bin438.fits.....................!
real 56.81
user 55.47
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/107343/ft1_filtered_4FGL_J2040.5-1705_daily_bin438.fits', '/scratch/kocevski/107343/ft2_4FGL_J2040.5-1705_daily_bin438.fits', expMap='/scratch/kocevski/107343/expmap_352857601_353116801_4FGL_J2040.5-1705_daily_bin438.fits', expCube='/scratch/kocevski/107343/ltcube_352857601_353116801_4FGL_J2040.5-1705_daily_bin438.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/107343/Model_4FGL_J2040.5-1705_daily_bin438.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2040.5-1705'

4FGL J2040.5-1705
   Spectrum: PowerLaw
323    Prefactor:  1.223e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.541e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
325        Scale:  7.724e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/107343/ft1_filtered_4FGL_J2040.5-1705_daily_bin438.fits
Spacecraft file(s): /scratch/kocevski/107343/ft2_4FGL_J2040.5-1705_daily_bin438.fits
Exposure map: /scratch/kocevski/107343/expmap_352857601_353116801_4FGL_J2040.5-1705_daily_bin438.fits
Exposure cube: /scratch/kocevski/107343/ltcube_352857601_353116801_4FGL_J2040.5-1705_daily_bin438.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/107343/Model_4FGL_J2040.5-1705_daily_bin438.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 5646.66431923

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 5646.56836024

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.2571       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.6144       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .11282E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    6.2405       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11301E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.1744       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.058       1.0000         .10000E-03   10000.    
    13 'norm      '    .80805       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.3527       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.9014       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.9617       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2320       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .93606       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5646.568     FROM MIGRAD    STATUS=CONVERGED    485 CALLS     2020 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.861       -.64595E-07** at limit **
   2  Prefactor     7.2090        83.170       -.19394E-05   -.60733E-04
   3  Prefactor     2.6132        2.5167        .64989E-07    .13320E-04
   4  Prefactor     .10000E-03    15.069        .24133E-07** at limit **
   5  norm          .10000E-03    34.923        .83070E-06** at limit **
   6  norm          6.2341        13.502        .22509E-06   -.89477E-05
   7  Prefactor     .10000E-03    264.47       -.13211E-06** at limit **
   8  norm          .10000E-03    5.9965        .14571E-08** at limit **
   9  norm          .10000E-03    16.210       -.90316E-07** at limit **
  10  norm          2.1738        1.4103       -.69351E-08   -.93255E-04
  11  Prefactor     .10000E-03    11.273       -.33946E-08** at limit **
  12  Prefactor     11.058        12.245        .12612E-06   -.12057E-04
  13  norm          .80808        3.2259        .15014E-05    .76777E-05
  14  Prefactor     .10000E-03    1.6948        .22830E-07** at limit **
  15  Prefactor     .10000E-03    40.818       -.87519E-06** at limit **
  16  norm          .10000E-03    49.396        .65691E-06** at limit **
  17  Prefactor     5.3520        8.8583        .24903E-05   -.54510E-04
  18  Prefactor     .10000E-03    2.7263        .18973E-07** at limit **
  19  Prefactor     6.8939        16.271        .17748E-06    .19847E-04
  20  Prefactor     2.9469        13.670        .10404E-05    .36059E-04
  21  Normalizat    1.2320        .29067       -.22584E-05    .49576E-05
  22  Prefactor     .93614        .12298        .65241E-06   -.17205E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 7.20899
  Prefactor  = 2.61316
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.23411
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.17383
  Prefactor  = 0.0001
  Prefactor  = 11.0582
  norm       = 0.808075
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.000100001
  Prefactor  = 5.35198
  Prefactor  = 0.0001
  Prefactor  = 6.8939
  Prefactor  = 2.94694
  Normalizat = 1.23196
  Prefactor  = 0.936135
 **********
 **   18 **HESSE 
 **********

 FCN=   5646.568     FROM HESSE     STATUS=OK           340 CALLS     2360 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.2090        84.216        .14889E-03   -1.5171    
   3  Prefactor     2.6132        2.5049        .10933E-03   -1.5385    
   4  Prefactor     .10000E-03    15.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    35.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.2341        13.434        .16069E-03   -1.5209    
   7  Prefactor     .10000E-03    264.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.0011        .17972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    16.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.1738        1.4083        .68771E-04   -1.5413    
  11  Prefactor     .10000E-03    11.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.058        12.245        .12048E-03   -1.5043    
  13  norm          .80808        3.2045        .26151E-03   -1.5528    
  14  Prefactor     .10000E-03    1.7010        .95518E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    40.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    49.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.3520        8.8572        .86853E-03   -1.5245    
  18  Prefactor     .10000E-03    2.7280        .12118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.8939        16.184        .15272E-03   -1.5183    
  20  Prefactor     2.9469        13.526        .23595E-03   -1.5365    
  21  Normalizat    1.2320        .34521        .36442E-03   -.85621    
  22  Prefactor     .93614        .14835        .17214E-03   -.94890    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58885e-10
Minuit parameter uncertainties:
  1  3.23405e-06
  2  49.3662
  3  2.50503
  4  1.92799e-05
  5  0.000256711
  6  13.4406
  7  0.000230976
  8  1.58253e-07
  9  3.34828e-05
  10  1.40832
  11  4.6423e-06
  12  12.2479
  13  3.20514
  14  8.02801e-07
  15  0.000572101
  16  0.000384469
  17  8.85939
  18  1.23402e-06
  19  16.1946
  20  12.6316
  21  0.345853
  22  0.148409
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 5646.56835818

Extracting fit parameters...

4FGL J2040.5-1705
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  8.028e-07  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.541e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
325        Scale:  7.724e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
596    Prefactor:  9.361e-01  1.484e-01  0.000e+00  1.000e+01 ( 1.000e+00)
597        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
598        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
595   Normalization:  1.232e+00  3.459e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 310.136 -17.090
Photon Flux Upper Limit: 9.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/107343/likelihoodResults_352857601_353116801_4FGL_J2040.5-1705_daily_bin438.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5646.5711431
delta logL = -0.00278492170764

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5646.5683581
delta logL = 7.81319613452e-08

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5296       1.0000          .0000       10.000    
     3 'Normalizat'    1.2320       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93615       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5646.568     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      247 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.6369        .96046E-02** at limit **
   2  Index         2.1647        8.8196        .50000        .22683E-05
   3  Normalizat    1.2320        .15653E-01    .36442E-03   -.33706E-03
   4  Prefactor     .93614        .65902E-02    .17214E-03   -.69738E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.16465
  Normalizat = 1.23195
  Prefactor  = 0.936136
 **********
 **   18 **HESSE 
 **********

 FCN=   5646.568     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    83.666        .10035E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1647        7.1670        .50000       -.60294    
   3  Normalizat    1.2320        .51020E-01    .72883E-04   -.85621    
   4  Prefactor     .93614        .21481E-01    .34428E-04   -.94890    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.78567e-09
Minuit parameter uncertainties:
  1  0.000746577
  2  539.666
  3  0.0510222
  4  0.021481
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/107343': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5646.56835547
delta logL = 2.70292275673e-06

Extracting fit parameters...

4FGL J2040.5-1705
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  7.466e-04  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.165e+00  5.397e+02  0.000e+00  1.000e+01 (-1.000e+00)
325        Scale:  7.724e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
596    Prefactor:  9.361e-01  2.148e-02  0.000e+00  1.000e+01 ( 1.000e+00)
597        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
598        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
595   Normalization:  1.232e+00  5.102e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 310.136 -17.090

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/107343/cmap_HighResolution_352857601_353116801_4FGL_J2040.5-1705_daily_bin438.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/107343

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.62e-03', job_status='DONE', photon_flux_upper_limit='9.77e-08', time_completed='2021-09-25 15:54:55.308505', job_id='107343', GAL2='0.94', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1632610495.31', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='2.70e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='438' AND source_name='4FGL J2040.5-1705' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 15:54:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0129>
Subject: Job 107343: <4FGL_J2040.5-1705_daily_bin438> in cluster <slac> Done

Job <4FGL_J2040.5-1705_daily_bin438> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep 25 15:40:45 2021
Job was executed on host(s) <bullet0129>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 15:42:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 25 15:42:39 2021
Terminated at Sat Sep 25 15:54:56 2021
Results reported at Sat Sep 25 15:54:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2040.5-1705_daily_bin438 310.136 -17.0901 352857601 353116801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2040.5-1705 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   595.57 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   736 sec.
    Turnaround time :                            851 sec.

The output (if any) is above this job summary.

