/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 219 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 = 5262
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1404.8+6554_daily_bin73
RA = 211.216, Dec = 65.9048
tmin = 258249601, tmax = 258508801
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='166266', job_status='RUN', time_executed='2021-09-08 23:54:23.537826', time_epoch_executed='1631170463.54' WHERE source_name='4FGL J1404.8+6554' and cadence='daily' and bin_id='73'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/166266

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

Retrieving the FT1 file...

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

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

Retrieving 33 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/166266/ft1_4FGL_J1404.8+6554_daily_bin73.fits


Retrieving the FT1 file...

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

Retrieving 33 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/166266/ft2_4FGL_J1404.8+6554_daily_bin73.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/166266/ft1_4FGL_J1404.8+6554_daily_bin73.fits outfile=/scratch/kocevski/166266/ft1_filteredMKT_4FGL_J1404.8+6554_daily_bin73.fits ra=211.216 dec=65.9048 rad=12.0 tmin=258249601.0 tmax=258508801.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 1.16
user 0.98
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/166266/ft2_4FGL_J1404.8+6554_daily_bin73.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/166266/ft2_4FGL_J1404.8+6554_daily_bin73.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/166266/ft1_filteredMKT_4FGL_J1404.8+6554_daily_bin73.fits evtable="EVENTS" outfile="/scratch/kocevski/166266/ft1_filtered_4FGL_J1404.8+6554_daily_bin73.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/166266/ft1_filtered_4FGL_J1404.8+6554_daily_bin73.fits" evtable="EVENTS" scfile=/scratch/kocevski/166266/ft2_4FGL_J1404.8+6554_daily_bin73.fits sctable="SC_DATA" outfile=/scratch/kocevski/166266/ltcube_258249601_258508801_4FGL_J1404.8+6554_daily_bin73.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/166266/ft2_4FGL_J1404.8+6554_daily_bin73.fits
.....................!
real 10.02
user 9.65
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/166266/ft1_filtered_4FGL_J1404.8+6554_daily_bin73.fits evtable="EVENTS" scfile=/scratch/kocevski/166266/ft2_4FGL_J1404.8+6554_daily_bin73.fits sctable="SC_DATA" expcube=/scratch/kocevski/166266/ltcube_258249601_258508801_4FGL_J1404.8+6554_daily_bin73.fits outfile=/scratch/kocevski/166266/expmap_258249601_258508801_4FGL_J1404.8+6554_daily_bin73.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/166266/ltcube_258249601_258508801_4FGL_J1404.8+6554_daily_bin73.fits
.....................!
real 191.21
user 185.95
sys 4.44

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 223 point sources and 0 extended sources

Setting source of interest to:
4FGL J1404.8+6554 @ 211.216 65.9048

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/166266/ft1_filtered_4FGL_J1404.8+6554_daily_bin73.fits scfile=/scratch/kocevski/166266/ft2_4FGL_J1404.8+6554_daily_bin73.fits outfile=/scratch/kocevski/166266/cmap_258249601_258508801_4FGL_J1404.8+6554_daily_bin73.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=211.216 yref=65.9048 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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/166266/ft1_filtered_4FGL_J1404.8+6554_daily_bin73.fits scfile=/scratch/kocevski/166266/ft2_4FGL_J1404.8+6554_daily_bin73.fits outfile=/scratch/kocevski/166266/cmap_HighResolution_258249601_258508801_4FGL_J1404.8+6554_daily_bin73.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=211.216 yref=65.9048 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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/166266/ft1_filtered_4FGL_J1404.8+6554_daily_bin73.fits evtable="EVENTS" scfile=/scratch/kocevski/166266/ft2_4FGL_J1404.8+6554_daily_bin73.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/166266/Model_4FGL_J1404.8+6554_daily_bin73.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/166266/ft1_filtered_4FGL_J1404.8+6554_daily_bin73.fits.....................!
real 38.88
user 37.59
sys 1.09

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/166266/ft1_filtered_4FGL_J1404.8+6554_daily_bin73.fits', '/scratch/kocevski/166266/ft2_4FGL_J1404.8+6554_daily_bin73.fits', expMap='/scratch/kocevski/166266/expmap_258249601_258508801_4FGL_J1404.8+6554_daily_bin73.fits', expCube='/scratch/kocevski/166266/ltcube_258249601_258508801_4FGL_J1404.8+6554_daily_bin73.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/166266/Model_4FGL_J1404.8+6554_daily_bin73.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1404.8+6554'

4FGL J1404.8+6554
   Spectrum: PowerLaw
366    Prefactor:  7.015e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
367        Index:  1.926e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
368        Scale:  2.467e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/166266/ft1_filtered_4FGL_J1404.8+6554_daily_bin73.fits
Spacecraft file(s): /scratch/kocevski/166266/ft2_4FGL_J1404.8+6554_daily_bin73.fits
Exposure map: /scratch/kocevski/166266/expmap_258249601_258508801_4FGL_J1404.8+6554_daily_bin73.fits
Exposure cube: /scratch/kocevski/166266/ltcube_258249601_258508801_4FGL_J1404.8+6554_daily_bin73.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/166266/Model_4FGL_J1404.8+6554_daily_bin73.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) = 3427.32441512

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.532       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.6678       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.8553       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.4576       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10186E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.131       1.0000         .10000E-03   10000.    
    16 'norm      '    5.3448       1.0000         .10000E-03   10000.    
    17 'Prefactor '    98.131       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .53342E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.641       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.550       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    17.811       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    13.809       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0514       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0025       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3427.270     FROM MIGRAD    STATUS=CONVERGED    777 CALLS     4655 TOTAL
                     EDM=   .94E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.542        67.623        .57302E-06    .23742E-05
   2  norm          .10000E-03    4.5627       -.16250E-06** at limit **
   3  norm          4.6677        3.8608        .49579E-07    .26517E-04
   4  Prefactor     .10000E-03    74.321       -.19847E-05** at limit **
   5  Prefactor     .10000E-03    13.254       -.81361E-06** at limit **
   6  Prefactor     .10000E-03    40.587        .23605E-05** at limit **
   7  Prefactor     .10000E-03    22.288       -.25657E-06** at limit **
   8  Prefactor     .10000E-03    28.879       -.50376E-06** at limit **
   9  Prefactor     2.8601        7.9955        .35420E-05   -.36335E-04
  10  Prefactor     7.4587        19.692        .55499E-07   -.87453E-06
  11  Prefactor     .10000E-03    18.221        .98615E-06** at limit **
  12  Prefactor     .10000E-03    8.4634        .18335E-06** at limit **
  13  Prefactor     .10000E-03    8.3141        .20710E-06** at limit **
  14  norm          .10000E-03    118.34        .21925E-05** at limit **
  15  Prefactor     24.135        33.411        .15179E-06    .47196E-05
  16  norm          5.3457        7.2498        .44763E-07    .14628E-05
  17  Prefactor     98.106        76.635        .71295E-06   -.12421E-04
  18  Prefactor     .10000E-03    260.26        .48988E-05** at limit **
  19  Prefactor     11.642        6.0285        .62955E-07    .30070E-04
  20  Prefactor     .10000E-03    71.361       -.21579E-05** at limit **
  21  Prefactor     18.601        94.359       -.74998E-05    .99812E-05
  22  Prefactor     .10000E-03    29.682       -.39215E-06** at limit **
  23  Prefactor     .10000E-03    22.979       -.61561E-06** at limit **
  24  Prefactor     17.801        32.902        .56646E-06   -.83248E-06
  25  Prefactor     .10000E-03    6.7396       -.60618E-07** at limit **
  26  Prefactor     .10000E-03    11.655        .48350E-06** at limit **
  27  Prefactor     .10000E-03    21.823        .12210E-08** at limit **
  28  norm          .10000E-03    2.9121        .13383E-05** at limit **
  29  Prefactor     13.985        434.96       -.30176E-04   -.70086E-06
  30  Normalizat    1.0508        .25167       -.30214E-05    .44108E-04
  31  Prefactor     1.0030        .25012        .35695E-05   -.16824E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.5421
  norm       = 0.0001
  norm       = 4.66769
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.86006
  Prefactor  = 7.45871
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 24.1353
  norm       = 5.34574
  Prefactor  = 98.1058
  Prefactor  = 0.0001
  Prefactor  = 11.6422
  Prefactor  = 0.0001
  Prefactor  = 18.6009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.801
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.9855
  Normalizat = 1.05083
  Prefactor  = 1.00296
 **********
 **   18 **HESSE 
 **********

 FCN=   3427.270     FROM HESSE     STATUS=OK           616 CALLS     5271 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.542        69.002        .12346E-03   -1.5058    
   2  norm          .10000E-03    4.5940        .12212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.6677        3.8631        .10177E-03   -1.5276    
   4  Prefactor     .10000E-03    74.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    40.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    22.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    28.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.8601        8.0295        .12030E-02   -1.5370    
  10  Prefactor     7.4587        19.665        .73431E-03   -1.5162    
  11  Prefactor     .10000E-03    18.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.4990        .16647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.3828        .16478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    118.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     24.135        33.424        .81543E-04   -1.4725    
  16  norm          5.3457        7.2445        .17384E-03   -1.5246    
  17  Prefactor     98.106        76.687        .20290E-03   -1.3724    
  18  Prefactor     .10000E-03    260.04        .21125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.642        6.0285        .99893E-04   -1.5025    
  20  Prefactor     .10000E-03    71.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     18.601        93.728        .92994E-04   -1.4845    
  22  Prefactor     .10000E-03    29.695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    23.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     17.801        32.909        .94902E-04   -1.4864    
  25  Prefactor     .10000E-03    6.7568        .14843E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    11.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    21.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    3.0113        .98390E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     13.985        442.56        .10779E-03   -1.4960    
  30  Normalizat    1.0508        .28505        .23472E-03   -.91347    
  31  Prefactor     1.0030        .28380        .25764E-03   -.92631    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73294e-10
Minuit parameter uncertainties:
  1  54.0325
  2  7.83042e-06
  3  3.86335
  4  5.46046e-05
  5  7.65671e-06
  6  9.38507e-05
  7  2.31749e-06
  8  1.30331e-05
  9  8.03248
  10  19.6822
  11  2.66755e-05
  12  1.92991e-06
  13  9.71754e-06
  14  0.000155043
  15  33.45
  16  7.2457
  17  76.7642
  18  0.00047009
  19  6.02883
  20  1.00451e-05
  21  83.7181
  22  6.23028e-07
  23  5.97222e-06
  24  32.9429
  25  8.2576e-07
  26  8.6254e-06
  27  1.8653e-05
  28  6.77379e-05
  29  158.644
  30  0.285461
  31  0.284226
Done.

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

Extracting fit parameters...

4FGL J1404.8+6554
   Spectrum: PowerLaw
366    Prefactor:  9.811e+01  7.676e+01  1.000e-04  1.000e+04 ( 1.000e-14)
367        Index:  1.926e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
368        Scale:  2.467e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
711    Prefactor:  1.003e+00  2.842e-01  0.000e+00  1.000e+01 ( 1.000e+00)
712        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
713        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
710   Normalization:  1.051e+00  2.855e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.55
Ra Dec: 211.216 65.905
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 5.08e-08 +/- 3.98e-08
Energy Flux (Fixed Index): 4.24e-05 +/- 3.32e-05

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): 0
logL (Free Index) = 3427.175922
delta logL = 0.0939196127083

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3427.17009145
delta logL = 0.0997501532788

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    74.064       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2259       1.0000          .0000       10.000    
     3 'Normalizat'    1.0237       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0170       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7140E+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=   3427.170     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      289 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     73.986        91.747        .23327E-03   -.31120E-03
   2  Index         2.2255        .74953        .45217E-02   -.99247E-04
   3  Normalizat    1.0231        .26673        .23741E-03   -.32610E-04
   4  Prefactor     1.0183        .27886        .25583E-03   -.15731E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 73.9855
  Index      = 2.2255
  Normalizat = 1.02306
  Prefactor  = 1.01831
 **********
 **   18 **HESSE 
 **********

 FCN=   3427.170     FROM HESSE     STATUS=OK            25 CALLS      314 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     73.986        82.458        .46653E-04   -1.3986    
   2  Index         2.2255        .67287        .18087E-03   -.58824    
   3  Normalizat    1.0231        .26491        .94966E-05   -.92262    
   4  Prefactor     1.0183        .27813        .51165E-04   -.92122    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.96025e-10
Minuit parameter uncertainties:
  1  82.5855
  2  0.675844
  3  0.265248
  4  0.278526
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/166266': 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): 0
logL (Free Index) = 3427.17007234
delta logL = 0.0997692655092

Extracting fit parameters...

4FGL J1404.8+6554
   Spectrum: PowerLaw
366    Prefactor:  7.399e+01  8.259e+01  1.000e-04  1.000e+04 ( 1.000e-14)
367        Index:  2.226e+00  6.758e-01  0.000e+00  1.000e+01 (-1.000e+00)
368        Scale:  2.467e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
711    Prefactor:  1.018e+00  2.785e-01  0.000e+00  1.000e+01 ( 1.000e+00)
712        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
713        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
710   Normalization:  1.023e+00  2.652e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.73
Ra Dec: 211.216 65.905
Photon Index (Free Index): 2.23 +/- 0.68
Photon Flux (Free Index): 7.57e-08 +/- 7.66e-08
Energy Flux (Free Index): 3.25e-05 +/- 2.70e-05

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/166266/cmap_HighResolution_258249601_258508801_4FGL_J1404.8+6554_daily_bin73.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.08e-08', energy_flux2='3.25e-05', photon_flux_error='3.98e-08', dlogl='9.98e-02', energy_flux='4.24e-05', photon_flux2='7.57e-08', job_status='DONE', time_completed='2021-09-09 00:05:07.867272', photon_index_error2='0.68', photon_index2='2.23', ts='7.55', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='2.70e-05', EG='1.05', time_epoch_completed='1631171107.87', return_code='0', job_id='166266', GAL2='1.02', EG2='1.02', return_code2='0', energy_flux_error='3.32e-05', photon_flux_error2='7.66e-08', ts2='7.73', photon_index='1.93' WHERE bin_id='73' AND source_name='4FGL J1404.8+6554' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 00:05:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 166266: <4FGL_J1404.8+6554_daily_bin73> in cluster <slac> Done

Job <4FGL_J1404.8+6554_daily_bin73> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 23:50:34 2021
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 23:50:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 23:50:35 2021
Terminated at Thu Sep  9 00:05:08 2021
Results reported at Thu Sep  9 00:05:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1404.8+6554_daily_bin73 211.216 65.9048 258249601 258508801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1404.8+6554 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   641.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             253.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            874 sec.

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

