aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 120 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 = 7544
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2040.5-1705_daily_bin1689
RA = 310.136, Dec = -17.0901
tmin = 677116801, tmax = 677376001
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='993979', job_status='RUN', time_executed='2022-06-20 01:03:19.361478', time_epoch_executed='1655712199.36' WHERE source_name='4FGL J2040.5-1705' and cadence='daily' and bin_id='1689'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993979

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993979/ft1_4FGL_J2040.5-1705_daily_bin1689.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993979/ft2_4FGL_J2040.5-1705_daily_bin1689.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993979/ft1_4FGL_J2040.5-1705_daily_bin1689.fits outfile=/scratch/kocevski/993979/ft1_filteredMKT_4FGL_J2040.5-1705_daily_bin1689.fits ra=310.136 dec=-17.0901 rad=12.0 tmin=677116801.0 tmax=677376001.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.73
user 2.51
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/993979/ft2_4FGL_J2040.5-1705_daily_bin1689.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/993979/ft1_filteredMKT_4FGL_J2040.5-1705_daily_bin1689.fits evtable="EVENTS" outfile="/scratch/kocevski/993979/ft1_filtered_4FGL_J2040.5-1705_daily_bin1689.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.50
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 269

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/993979/ft1_filtered_4FGL_J2040.5-1705_daily_bin1689.fits" evtable="EVENTS" scfile=/scratch/kocevski/993979/ft2_4FGL_J2040.5-1705_daily_bin1689.fits sctable="SC_DATA" outfile=/scratch/kocevski/993979/ltcube_677116801_677376001_4FGL_J2040.5-1705_daily_bin1689.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/993979/ft2_4FGL_J2040.5-1705_daily_bin1689.fits
.....................!
real 14.70
user 14.31
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993979/ft1_filtered_4FGL_J2040.5-1705_daily_bin1689.fits evtable="EVENTS" scfile=/scratch/kocevski/993979/ft2_4FGL_J2040.5-1705_daily_bin1689.fits sctable="SC_DATA" expcube=/scratch/kocevski/993979/ltcube_677116801_677376001_4FGL_J2040.5-1705_daily_bin1689.fits outfile=/scratch/kocevski/993979/expmap_677116801_677376001_4FGL_J2040.5-1705_daily_bin1689.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/993979/ltcube_677116801_677376001_4FGL_J2040.5-1705_daily_bin1689.fits
.....................!
real 192.81
user 186.41
sys 5.60

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/993979/ft1_filtered_4FGL_J2040.5-1705_daily_bin1689.fits scfile=/scratch/kocevski/993979/ft2_4FGL_J2040.5-1705_daily_bin1689.fits outfile=/scratch/kocevski/993979/cmap_677116801_677376001_4FGL_J2040.5-1705_daily_bin1689.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/993979/ft1_filtered_4FGL_J2040.5-1705_daily_bin1689.fits scfile=/scratch/kocevski/993979/ft2_4FGL_J2040.5-1705_daily_bin1689.fits outfile=/scratch/kocevski/993979/cmap_HighResolution_677116801_677376001_4FGL_J2040.5-1705_daily_bin1689.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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/993979/ft1_filtered_4FGL_J2040.5-1705_daily_bin1689.fits evtable="EVENTS" scfile=/scratch/kocevski/993979/ft2_4FGL_J2040.5-1705_daily_bin1689.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/993979/Model_4FGL_J2040.5-1705_daily_bin1689.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/993979/ft1_filtered_4FGL_J2040.5-1705_daily_bin1689.fits.....................!
real 37.69
user 35.26
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    38.695       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.693       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.563       1.0000         .10000E-03   10000.    
     5 'norm      '    12.223       1.0000         .10000E-03   10000.    
     6 'norm      '    .40692       1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.034       1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .11499E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10652E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .29954E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .87064       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .37573E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10156E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.5279       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.8537       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2398       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .84634       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=   3081.575     FROM MIGRAD    STATUS=CONVERGED    524 CALLS     2418 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    46.450       -.21826E-04** at limit **
   2  Prefactor     38.866        95.693        .12510E-03    .75980E-04
   3  Prefactor     12.686        8.7320       -.23060E-05    .17329E-02
   4  Prefactor     10.775        98.181        .33152E-04    .37428E-03
   5  norm          12.290        40.707       -.73828E-04    .58971E-04
   6  norm          .24363        24.857       -.13676E-04    .34246E-03
   7  Prefactor     17.102        371.62        .13469E-03    .35426E-04
   8  norm          .10000E-03    12.140       -.22951E-06** at limit **
   9  norm          .10000E-03    49.471        .20485E-04** at limit **
  10  norm          .10000E-03    .60380       -.26031E-07** at limit **
  11  Prefactor     .10000E-03    5.8259       -.48847E-07** at limit **
  12  Prefactor     .10000E-03    36.046        .26608E-05** at limit **
  13  norm          .10000E-03    4.2160       -.14413E-06** at limit **
  14  Prefactor     .86893        7.8690       -.12470E-05   -.13813E-03
  15  Prefactor     .10000E-03    185.80       -.11795E-03** at limit **
  16  norm          .10000E-03    23.425        .38526E-07** at limit **
  17  Prefactor     .10000E-03    4.0584        .66539E-07** at limit **
  18  Prefactor     5.5258        11.426        .42669E-05   -.93159E-05
  19  Prefactor     4.8535        10.607        .15064E-05   -.64629E-04
  20  Prefactor     .10000E-03    4.8075        .50480E-07** at limit **
  21  Normalizat    1.2397        .35206        .24820E-05    .34170E-03
  22  Prefactor     .84636        .15411       -.15089E-05    .88351E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 38.8658
  Prefactor  = 12.6861
  Prefactor  = 10.7753
  norm       = 12.2899
  norm       = 0.243633
  Prefactor  = 17.102
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.868925
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.52581
  Prefactor  = 4.8535
  Prefactor  = 0.0001
  Normalizat = 1.23972
  Prefactor  = 0.846358
 **********
 **   18 **HESSE 
 **********

 FCN=   3081.575     FROM HESSE     STATUS=OK           342 CALLS     2760 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    46.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     38.866        95.669        .64434E-04   -1.4460    
   3  Prefactor     12.686        8.7103        .10243E-03   -1.4995    
   4  Prefactor     10.775        99.868        .12328E-03   -1.5051    
   5  norm          12.290        40.820        .11458E-03   -1.5007    
   6  norm          .24363        37.607        .80844E-01   -1.5609    
   7  Prefactor     17.102        373.12        .97042E-04   -1.4881    
   8  norm          .10000E-03    12.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    49.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .60656        .42121E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.8271        .13087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    37.433        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    20.646        .21984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .86893        14.373        .28879E-02   -1.5522    
  15  Prefactor     .10000E-03    186.06        .21292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    23.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.0595        .10923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.5258        11.441        .17088E-03   -1.5238    
  19  Prefactor     4.8535        10.592        .18259E-03   -1.5267    
  20  Prefactor     .10000E-03    4.8100        .11888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2397        .42194        .33114E-03   -.85384    
  22  Prefactor     .84636        .18654        .17383E-03   -.98041    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.27292e-09
Minuit parameter uncertainties:
  1  0.000219271
  2  96.0504
  3  8.71116
  4  65.7531
  5  40.9126
  6  6.05651
  7  160.916
  8  1.92266e-05
  9  0.000179902
  10  2.20579e-06
  11  3.80266e-06
  12  0.000280827
  13  0.000129818
  14  7.06963
  15  0.000561168
  16  1.76157e-05
  17  6.37517e-07
  18  11.4458
  19  10.5962
  20  2.07547e-06
  21  0.423114
  22  0.186681
Done.

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

Extracting fit parameters...

4FGL J2040.5-1705
   Spectrum: PowerLaw
323    Prefactor:  8.689e-01  7.070e+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

GAL_V02
   Spectrum: PowerLaw
596    Prefactor:  8.464e-01  1.867e-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.240e+00  4.231e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/993979/likelihoodResults_677116801_677376001_4FGL_J2040.5-1705_daily_bin1689.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) = 3081.5016705
delta logL = 0.0735381452682

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3081.34161421
delta logL = 0.233594441791

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    8.9434       1.0000          .0000       10.000    
     3 'Normalizat'    1.1468       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87421       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=   3081.342     FROM MIGRAD    STATUS=CONVERGED    240 CALLS      504 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .13785E-01    .23734E-03** at limit **
   2  Index         8.9439        9.1834        .28711        .46026E-04
   3  Normalizat    1.1469        .89964E-01    .33029E-02   -.23585E-04
   4  Prefactor     .87416        .39474E-01    .17389E-03   -.32708E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 8.94391
  Normalizat = 1.14688
  Prefactor  = 0.874159
 **********
 **   18 **HESSE 
 **********

 FCN=   3081.342     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      541 TOTAL
                     EDM=   .35E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .39655E-01    .19757E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.9439        8.8917        .12140E-01    .90883    
   3  Normalizat    1.1469        .17676        .13212E-03   -.88261    
   4  Prefactor     .87416        .76811E-01    .34779E-04   -.97050    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.51039e-07
Minuit parameter uncertainties:
  1  3.26642e-08
  2  9.75747
  3  0.176848
  4  0.0768208
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993979': 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) = 3081.34161176
delta logL = 0.233596883751

Extracting fit parameters...

4FGL J2040.5-1705
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  3.266e-08  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  8.944e+00  9.757e+00  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:  8.742e-01  7.682e-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.147e+00  1.768e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/993979/cmap_HighResolution_677116801_677376001_4FGL_J2040.5-1705_daily_bin1689.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.82e-02', job_status='DONE', photon_flux_upper_limit='2.34e-07', time_completed='2022-06-20 01:11:34.493946', job_id='993979', GAL2='0.87', fit_tolerance='1e-08', EG2='1.15', EG='1.24', time_epoch_completed='1655712694.49', return_code2='102', ts='0.02', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='2.34e-01', ts2='0.53', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='1689' AND source_name='4FGL J2040.5-1705' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jun 20 01:11:34 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 993979: <4FGL_J2040.5-1705_daily_bin1689> in cluster <slac> Done

Job <4FGL_J2040.5-1705_daily_bin1689> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Jun 20 01:00:21 2022
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jun 20 01:01:10 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jun 20 01:01:10 2022
Terminated at Mon Jun 20 01:11:35 2022
Results reported at Mon Jun 20 01:11:35 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2040.5-1705_daily_bin1689 310.136 -17.0901 677116801 677376001 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 :                                   496.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             338.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   624 sec.
    Turnaround time :                            674 sec.

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

