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


Performing analysis on: 4FGL_J0801.1+6444_daily_bin653
RA = 120.293, Dec = 64.7438
tmin = 408585601, tmax = 408844801
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='51251', job_status='RUN', time_executed='2021-08-28 21:46:20.141289', time_epoch_executed='1630212380.14' WHERE source_name='4FGL J0801.1+6444' and cadence='daily' and bin_id='653'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/51251

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/51251/ft1_4FGL_J0801.1+6444_daily_bin653.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/51251/ft2_4FGL_J0801.1+6444_daily_bin653.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/51251/ft1_4FGL_J0801.1+6444_daily_bin653.fits outfile=/scratch/kocevski/51251/ft1_filteredMKT_4FGL_J0801.1+6444_daily_bin653.fits ra=120.293 dec=64.7438 rad=12.0 tmin=408585601.0 tmax=408844801.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 5.14
user 4.06
sys 1.03

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/51251/ft2_4FGL_J0801.1+6444_daily_bin653.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/51251/ft2_4FGL_J0801.1+6444_daily_bin653.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/51251/ft1_filteredMKT_4FGL_J0801.1+6444_daily_bin653.fits evtable="EVENTS" outfile="/scratch/kocevski/51251/ft1_filtered_4FGL_J0801.1+6444_daily_bin653.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 1.32
user 0.33
sys 0.96

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/51251/ft1_filtered_4FGL_J0801.1+6444_daily_bin653.fits" evtable="EVENTS" scfile=/scratch/kocevski/51251/ft2_4FGL_J0801.1+6444_daily_bin653.fits sctable="SC_DATA" outfile=/scratch/kocevski/51251/ltcube_408585601_408844801_4FGL_J0801.1+6444_daily_bin653.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/51251/ft2_4FGL_J0801.1+6444_daily_bin653.fits
.....................!
real 12.53
user 11.20
sys 1.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/51251/ft1_filtered_4FGL_J0801.1+6444_daily_bin653.fits evtable="EVENTS" scfile=/scratch/kocevski/51251/ft2_4FGL_J0801.1+6444_daily_bin653.fits sctable="SC_DATA" expcube=/scratch/kocevski/51251/ltcube_408585601_408844801_4FGL_J0801.1+6444_daily_bin653.fits outfile=/scratch/kocevski/51251/expmap_408585601_408844801_4FGL_J0801.1+6444_daily_bin653.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/51251/ltcube_408585601_408844801_4FGL_J0801.1+6444_daily_bin653.fits
.....................!
real 191.54
user 184.44
sys 6.65

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

Setting source of interest to:
4FGL J0801.1+6444 @ 120.293 64.7438

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/51251/ft1_filtered_4FGL_J0801.1+6444_daily_bin653.fits scfile=/scratch/kocevski/51251/ft2_4FGL_J0801.1+6444_daily_bin653.fits outfile=/scratch/kocevski/51251/cmap_408585601_408844801_4FGL_J0801.1+6444_daily_bin653.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=120.293 yref=64.7438 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 1.33
user 0.36
sys 0.95

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/51251/ft1_filtered_4FGL_J0801.1+6444_daily_bin653.fits scfile=/scratch/kocevski/51251/ft2_4FGL_J0801.1+6444_daily_bin653.fits outfile=/scratch/kocevski/51251/cmap_HighResolution_408585601_408844801_4FGL_J0801.1+6444_daily_bin653.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=120.293 yref=64.7438 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 1.33
user 0.38
sys 0.94

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/51251/ft1_filtered_4FGL_J0801.1+6444_daily_bin653.fits evtable="EVENTS" scfile=/scratch/kocevski/51251/ft2_4FGL_J0801.1+6444_daily_bin653.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/51251/Model_4FGL_J0801.1+6444_daily_bin653.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/51251/ft1_filtered_4FGL_J0801.1+6444_daily_bin653.fits......................!
real 38.04
user 34.51
sys 2.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/51251/ft1_filtered_4FGL_J0801.1+6444_daily_bin653.fits', '/scratch/kocevski/51251/ft2_4FGL_J0801.1+6444_daily_bin653.fits', expMap='/scratch/kocevski/51251/expmap_408585601_408844801_4FGL_J0801.1+6444_daily_bin653.fits', expCube='/scratch/kocevski/51251/ltcube_408585601_408844801_4FGL_J0801.1+6444_daily_bin653.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/51251/Model_4FGL_J0801.1+6444_daily_bin653.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0801.1+6444'

4FGL J0801.1+6444
   Spectrum: PowerLaw
298    Prefactor:  2.258e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
299        Index:  2.062e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
300        Scale:  2.934e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/51251/ft1_filtered_4FGL_J0801.1+6444_daily_bin653.fits
Spacecraft file(s): /scratch/kocevski/51251/ft2_4FGL_J0801.1+6444_daily_bin653.fits
Exposure map: /scratch/kocevski/51251/expmap_408585601_408844801_4FGL_J0801.1+6444_daily_bin653.fits
Exposure cube: /scratch/kocevski/51251/ltcube_408585601_408844801_4FGL_J0801.1+6444_daily_bin653.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/51251/Model_4FGL_J0801.1+6444_daily_bin653.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) = 2481.88643939

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.204       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.0418       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    43.133       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .73738       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.5587       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14093E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.2465       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .89903       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1257       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2481.878     FROM MIGRAD    STATUS=CONVERGED    778 CALLS     3887 TOTAL
                     EDM=   .34E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    52.048        .18844E-05** at limit **
   2  Prefactor     .10000E-03    18.681       -.18824E-06** at limit **
   3  Prefactor     .10000E-03    12.044        .26862E-06** at limit **
   4  Prefactor     13.278        153.21       -.15093E-04   -.23924E-07
   5  Prefactor     .10000E-03    44.279        .20268E-06** at limit **
   6  Prefactor     .10000E-03    91.140       -.12656E-05** at limit **
   7  norm          1.0418        1.0341        .16345E-07    .38219E-04
   8  Prefactor     .10000E-03    14.291       -.20679E-06** at limit **
   9  Prefactor     .10000E-03    153.17        .18585E-05** at limit **
  10  Prefactor     43.143        49.621       -.75008E-06    .11667E-05
  11  norm          .10000E-03    .79257       -.10102E-06** at limit **
  12  Prefactor     .10000E-03    94.542       -.13676E-05** at limit **
  13  norm          .74225        5.8157        .26578E-06   -.55572E-04
  14  Prefactor     .10000E-03    5.6078       -.16311E-07** at limit **
  15  Prefactor     .10000E-03    28.450       -.19455E-06** at limit **
  16  norm          .10000E-03    4.4810       -.81489E-07** at limit **
  17  Prefactor     2.5584        3.2724        .40657E-06    .65527E-04
  18  Prefactor     .10004E-03    12.754       -.63963E-06** at limit **
  19  Prefactor     .10000E-03    5.4799       -.14997E-06** at limit **
  20  norm          2.2494        4.8990        .14564E-05    .28879E-04
  21  Prefactor     .10000E-03    33.486       -.16904E-05** at limit **
  22  Prefactor     .10000E-03    13.157        .57384E-06** at limit **
  23  Prefactor     .10000E-03    25.924        .12960E-05** at limit **
  24  Prefactor     .10000E-03    6.4719       -.75149E-07** at limit **
  25  norm          .10000E-03    .39601       -.24102E-07** at limit **
  26  Prefactor     .10000E-03    14.541       -.48555E-06** at limit **
  27  Prefactor     .10000E-03    11.523       -.50428E-06** at limit **
  28  Prefactor     .10000E-03    9.7338        .99991E-08** at limit **
  29  Normalizat    .89848        .33495       -.12548E-05    .48379E-04
  30  Prefactor     1.1259        .21429        .13044E-05    .32539E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.2783
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.04182
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.1428
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.742247
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.55843
  Prefactor  = 0.00010004
  Prefactor  = 0.0001
  norm       = 2.24944
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.898477
  Prefactor  = 1.12593
 **********
 **   18 **HESSE 
 **********

 FCN=   2481.878     FROM HESSE     STATUS=OK           576 CALLS     4463 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    52.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.043        .16888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.278        153.76        .11023E-03   -1.4979    
   5  Prefactor     .10000E-03    44.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    92.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.0418        1.0050        .47450E-04   -1.5504    
   8  Prefactor     .10000E-03    14.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    153.15        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     43.143        49.571        .61041E-04   -1.4393    
  11  norm          .10000E-03    .81603        .86583E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    95.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .74225        8.6496        .20600E-02   -1.5536    
  14  Prefactor     .10000E-03    5.6792        .11522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    28.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.5041        .10300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.5584        3.2073        .46519E-03   -1.5388    
  18  Prefactor     .10004E-03    141.50        .34216E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.5137        .11389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.2494        4.8906        .73775E-03   -1.5408    
  21  Prefactor     .10000E-03    33.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    13.159        .17646E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    25.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    6.4898        .12379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .39676        .30617E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    14.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    11.527        .16521E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    9.7429        .15181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .89848        .37500        .29864E-03   -.96514    
  30  Prefactor     1.1259        .24421        .19000E-03   -.88642    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.4742e-09
Minuit parameter uncertainties:
  1  3.19044e-05
  2  9.89034e-06
  3  1.56779e-06
  4  90.6644
  5  3.75462e-05
  6  0.000101708
  7  1.00499
  8  1.08895e-06
  9  3.51309e-05
  10  49.6188
  11  1.75781e-06
  12  9.63783e-05
  13  5.06817
  14  4.26176e-06
  15  9.56371e-06
  16  4.046e-06
  17  3.20748
  18  0.00477922
  19  4.92805e-06
  20  4.89149
  21  8.38275e-06
  22  6.52939e-06
  23  2.12274e-05
  24  5.43287e-06
  25  4.29023e-07
  26  1.24718e-05
  27  2.01275e-06
  28  5.13648e-06
  29  0.376093
  30  0.244454
Done.

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

Extracting fit parameters...

4FGL J0801.1+6444
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  9.638e-05  1.000e-04  1.000e+04 ( 1.000e-14)
299        Index:  2.062e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
300        Scale:  2.934e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  1.126e+00  2.445e-01  0.000e+00  1.000e+01 ( 1.000e+00)
708        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
709        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
706   Normalization:  8.985e-01  3.761e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 120.293 64.744
Photon Flux Upper Limit: 1.21e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/51251/likelihoodResults_408585601_408844801_4FGL_J0801.1+6444_daily_bin653.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) = 2481.87770737
delta logL = -4.9729696002e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2481.87770736
delta logL = -4.97243922837e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96353E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0616       1.0000          .0000       10.000    
     3 'Normalizat'    .89848       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1259       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2481.878     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      202 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.729        .90713E-02** at limit **
   2  Index         2.0687        8.5424        .50000       -.55421E-06
   3  Normalizat    .89848        .26224E-02    .67508E-01    .92923E-05
   4  Prefactor     1.1259        .18546E-02    .36676E-01    .23036E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.06874
  Normalizat = 0.898476
  Prefactor  = 1.12593
 **********
 **   18 **HESSE 
 **********

 FCN=   2481.878     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      233 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    507.82        .18143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0687        8.6887        .50000       -.62642    
   3  Normalizat    .89848        .18155E-01    .29865E-03   -.96514    
   4  Prefactor     1.1259        .12858E-01    .19000E-03   -.88642    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.29806e-08
Minuit parameter uncertainties:
  1  5.06043e-06
  2  832.906
  3  0.0181548
  4  0.0128578
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/51251': 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) = 2481.87765764
delta logL = 1.04182618088e-09

Extracting fit parameters...

4FGL J0801.1+6444
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  5.060e-06  1.000e-04  1.000e+04 ( 1.000e-14)
299        Index:  2.069e+00  8.329e+02  0.000e+00  1.000e+01 (-1.000e+00)
300        Scale:  2.934e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  1.126e+00  1.286e-02  0.000e+00  1.000e+01 ( 1.000e+00)
708        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
709        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
706   Normalization:  8.985e-01  1.815e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 120.293 64.744

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/51251/cmap_HighResolution_408585601_408844801_4FGL_J0801.1+6444_daily_bin653.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.12e-03', job_status='DONE', photon_flux_upper_limit='1.21e-07', time_completed='2021-08-28 21:56:40.726711', job_id='51251', GAL2='1.13', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1630213000.73', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='1.04e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='653' AND source_name='4FGL J0801.1+6444' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 21:56:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 51251: <4FGL_J0801.1+6444_daily_bin653> in cluster <slac> Done

Job <4FGL_J0801.1+6444_daily_bin653> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Aug 28 21:45:49 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 21:45:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 28 21:45:50 2021
Terminated at Sat Aug 28 21:56:41 2021
Results reported at Sat Aug 28 21:56:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0801.1+6444_daily_bin653 120.293 64.7438 408585601 408844801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0801.1+6444 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   625.19 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             317.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   651 sec.
    Turnaround time :                            652 sec.

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

