/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 92 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 = 7435
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2040.5-1705_daily_bin1337
RA = 310.136, Dec = -17.0901
tmin = 585878401, tmax = 586137601
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='113186', job_status='RUN', time_executed='2021-09-25 16:02:35.500233', time_epoch_executed='1632610955.5' WHERE source_name='4FGL J2040.5-1705' and cadence='daily' and bin_id='1337'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/113186

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/113186/ft1_4FGL_J2040.5-1705_daily_bin1337.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/113186/ft2_4FGL_J2040.5-1705_daily_bin1337.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/113186/ft1_4FGL_J2040.5-1705_daily_bin1337.fits outfile=/scratch/kocevski/113186/ft1_filteredMKT_4FGL_J2040.5-1705_daily_bin1337.fits ra=310.136 dec=-17.0901 rad=12.0 tmin=585878401.0 tmax=586137601.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 2.89
user 2.63
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/113186/ft2_4FGL_J2040.5-1705_daily_bin1337.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/113186/ft1_filteredMKT_4FGL_J2040.5-1705_daily_bin1337.fits evtable="EVENTS" outfile="/scratch/kocevski/113186/ft1_filtered_4FGL_J2040.5-1705_daily_bin1337.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.54
user 0.37
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/113186/ft1_filtered_4FGL_J2040.5-1705_daily_bin1337.fits" evtable="EVENTS" scfile=/scratch/kocevski/113186/ft2_4FGL_J2040.5-1705_daily_bin1337.fits sctable="SC_DATA" outfile=/scratch/kocevski/113186/ltcube_585878401_586137601_4FGL_J2040.5-1705_daily_bin1337.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/113186/ft2_4FGL_J2040.5-1705_daily_bin1337.fits
.....................!
real 18.03
user 17.60
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/113186/ft1_filtered_4FGL_J2040.5-1705_daily_bin1337.fits evtable="EVENTS" scfile=/scratch/kocevski/113186/ft2_4FGL_J2040.5-1705_daily_bin1337.fits sctable="SC_DATA" expcube=/scratch/kocevski/113186/ltcube_585878401_586137601_4FGL_J2040.5-1705_daily_bin1337.fits outfile=/scratch/kocevski/113186/expmap_585878401_586137601_4FGL_J2040.5-1705_daily_bin1337.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/113186/ltcube_585878401_586137601_4FGL_J2040.5-1705_daily_bin1337.fits
.....................!
real 191.98
user 186.03
sys 4.95

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/113186/ft1_filtered_4FGL_J2040.5-1705_daily_bin1337.fits scfile=/scratch/kocevski/113186/ft2_4FGL_J2040.5-1705_daily_bin1337.fits outfile=/scratch/kocevski/113186/cmap_585878401_586137601_4FGL_J2040.5-1705_daily_bin1337.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.54
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/113186/ft1_filtered_4FGL_J2040.5-1705_daily_bin1337.fits scfile=/scratch/kocevski/113186/ft2_4FGL_J2040.5-1705_daily_bin1337.fits outfile=/scratch/kocevski/113186/cmap_HighResolution_585878401_586137601_4FGL_J2040.5-1705_daily_bin1337.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.55
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/113186/ft1_filtered_4FGL_J2040.5-1705_daily_bin1337.fits evtable="EVENTS" scfile=/scratch/kocevski/113186/ft2_4FGL_J2040.5-1705_daily_bin1337.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/113186/Model_4FGL_J2040.5-1705_daily_bin1337.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/113186/ft1_filtered_4FGL_J2040.5-1705_daily_bin1337.fits.......................!
real 25.17
user 23.93
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/113186/ft1_filtered_4FGL_J2040.5-1705_daily_bin1337.fits', '/scratch/kocevski/113186/ft2_4FGL_J2040.5-1705_daily_bin1337.fits', expMap='/scratch/kocevski/113186/expmap_585878401_586137601_4FGL_J2040.5-1705_daily_bin1337.fits', expCube='/scratch/kocevski/113186/ltcube_585878401_586137601_4FGL_J2040.5-1705_daily_bin1337.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/113186/Model_4FGL_J2040.5-1705_daily_bin1337.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/113186/ft1_filtered_4FGL_J2040.5-1705_daily_bin1337.fits
Spacecraft file(s): /scratch/kocevski/113186/ft2_4FGL_J2040.5-1705_daily_bin1337.fits
Exposure map: /scratch/kocevski/113186/expmap_585878401_586137601_4FGL_J2040.5-1705_daily_bin1337.fits
Exposure cube: /scratch/kocevski/113186/ltcube_585878401_586137601_4FGL_J2040.5-1705_daily_bin1337.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/113186/Model_4FGL_J2040.5-1705_daily_bin1337.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) = 1552.08227203

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.6516       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    18.524       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14261E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10170E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.1518       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.213       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    242.79       1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .10031E-01   1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2459       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1552.072     FROM MIGRAD    STATUS=CONVERGED    107 CALLS     1995 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10125E-03    16.582       -.99068E-05** at limit **
   2  Prefactor     .10030E-03    19.524       -.44289E-04** at limit **
   3  Prefactor     9.6511        6.5624       -.75900E-05   -.10685E-02
   4  Prefactor     .10054E-03    34.430        .44525E-04** at limit **
   5  norm          .10000E-03    10.701        .16821E-04** at limit **
   6  norm          18.501        3.0922       -.38102E-05   -.57871E-03
   7  Prefactor     .13939E-03    217.50       -.19575E-03** at limit **
   8  norm          .10000E-03    14.491        .12004E-04** at limit **
   9  norm          .12404E-03    58.639        .25660E-04** at limit **
  10  norm          .10000E-03    1.2306       -.75951E-06** at limit **
  11  Prefactor     4.1435        1.0803        .62184E-06   -.26181E-04
  12  Prefactor     13.183        2.8765       -.10020E-05   -.11165E-02
  13  norm          .10000E-03    5.6460       -.27465E-05** at limit **
  14  Prefactor     .10000E-03    4.3262        .12402E-05** at limit **
  15  Prefactor     242.80        1.1501        .32194E-06   -.17001E-02
  16  norm          .10333E-03    20.368       -.47716E-04** at limit **
  17  Prefactor     .10099E-03    31.802        .60115E-04** at limit **
  18  Prefactor     .10000E-03    16.613       -.13495E-04** at limit **
  19  Prefactor     .10001E-03    10.977       -.23303E-04** at limit **
  20  Prefactor     .10345E-03    21.186        .32002E-04** at limit **
  21  Normalizat    .10000E-01    7.2981       -.19629E-03** at limit **
  22  Prefactor     1.2460        .11992        .17071E-06   -.11196E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101248
  Prefactor  = 0.000100295
  Prefactor  = 9.65113
  Prefactor  = 0.000100542
  norm       = 0.0001
  norm       = 18.5012
  Prefactor  = 0.000139389
  norm       = 0.000100005
  norm       = 0.000124041
  norm       = 0.0001
  Prefactor  = 4.14351
  Prefactor  = 13.1828
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 242.796
  norm       = 0.000103327
  Prefactor  = 0.000100988
  Prefactor  = 0.000100004
  Prefactor  = 0.000100006
  Prefactor  = 0.000103452
  Normalizat = 0.01
  Prefactor  = 1.246
 **********
 **   18 **HESSE 
 **********

 FCN=   1552.072     FROM HESSE     STATUS=OK           374 CALLS     2369 TOTAL
                     EDM=   .63E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10125E-03    59.625        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10030E-03    51.766        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.6511        6.7410        .32248E-02   -1.5087    
   4  Prefactor     .10054E-03    36.335        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    10.706        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          18.501        31.335        .23265E-02   -1.4847    
   7  Prefactor     .13939E-03    291.31        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    14.497        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .12404E-03    117.40        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.2126        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.1435        21.317        .49453E-02   -1.5301    
  12  Prefactor     13.183        27.619        .27549E-02   -1.4982    
  13  norm          .10000E-03    5.6327        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.3248        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     242.80        299.09        .64971E-03   -1.2579    
  16  norm          .10333E-03    44.876        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10099E-03    79.197        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.565        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    10.986        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10345E-03    68.182        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .10000E-01    .69438        .32095       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.2460        .18904        .33626E-01   -.84927    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.30737e-07
Minuit parameter uncertainties:
  1  0.0172705
  2  0.00782367
  3  6.74156
  4  0.00888037
  5  0.000100244
  6  31.3629
  7  0.215292
  8  0.000525376
  9  0.106464
  10  2.35044e-05
  11  18.8068
  12  27.6455
  13  0.000200261
  14  8.10844e-05
  15  301.008
  16  0.0244552
  17  0.0177186
  18  0.000482101
  19  0.00052027
  20  0.0307186
  21  1.95201e-05
  22  0.189144
Done.

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

Extracting fit parameters...

4FGL J2040.5-1705
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  8.108e-05  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:  1.246e+00  1.891e-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.000e-02  1.952e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 310.136 -17.090
Photon Flux Upper Limit: 2.69e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.10e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/113186/likelihoodResults_585878401_586137601_4FGL_J2040.5-1705_daily_bin1337.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) = 1552.07269866
delta logL = -0.00103294451287

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1552.0716656
delta logL = 1.1117140275e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5181       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2460       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=   1552.072     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      266 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    50.346        .82035E-02** at limit **
   2  Index         1.8111        5.8213        .50000       -.31611E-07
   3  Normalizat    .10000E-01    .81195E-01    .12777E-01** at limit **
   4  Prefactor     1.2460        .14574E-01    .13821E-03   -.46277E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.81114
  Normalizat = 0.01
  Prefactor  = 1.24601
 **********
 **   18 **HESSE 
 **********

 FCN=   1552.072     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      295 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    371.69        .10016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8111        7.7390        .50000       -.69160    
   3  Normalizat    .10000E-01    .67926        .51107E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2460        .41898E-01    .27643E-04   -.84927    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.48165e-10
Minuit parameter uncertainties:
  1  0.000274776
  2  1003.36
  3  1.3225e-05
  4  0.0418992
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/113186': 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) = 1552.07166154
delta logL = 4.17512751483e-06

Extracting fit parameters...

4FGL J2040.5-1705
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  2.748e-04  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  1.811e+00  1.003e+03  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:  1.246e+00  4.190e-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.000e-02  1.323e-05  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/113186/cmap_HighResolution_585878401_586137601_4FGL_J2040.5-1705_daily_bin1337.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.10e-02', job_status='DONE', photon_flux_upper_limit='2.69e-07', time_completed='2021-09-25 16:09:18.915369', job_id='113186', GAL2='1.25', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632611358.92', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.25', dlogl='4.18e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='1337' AND source_name='4FGL J2040.5-1705' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 16:09:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 113186: <4FGL_J2040.5-1705_daily_bin1337> in cluster <slac> Done

Job <4FGL_J2040.5-1705_daily_bin1337> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep 25 16:00:39 2021
Job was executed on host(s) <bullet0286>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 16:00:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 25 16:00:53 2021
Terminated at Sat Sep 25 16:09:19 2021
Results reported at Sat Sep 25 16:09:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2040.5-1705_daily_bin1337 310.136 -17.0901 585878401 586137601 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 :                                   398.54 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             276.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   506 sec.
    Turnaround time :                            520 sec.

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

