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


Performing analysis on: 4FGL_J0801.1+6444_monthly_bin118
RA = 120.293, Dec = 64.7438
tmin = 542851201, tmax = 545443201
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='137381', job_status='RUN', time_executed='2021-10-19 03:25:21.395821', time_epoch_executed='1634639121.4' WHERE source_name='4FGL J0801.1+6444' and cadence='monthly' and bin_id='118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/137381

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

Retrieving the FT1 file...

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

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

Retrieving 176 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/137381/ft1_4FGL_J0801.1+6444_monthly_bin118.fits


Retrieving the FT1 file...

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

Retrieving 178 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/137381/ft2_4FGL_J0801.1+6444_monthly_bin118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/137381/ft1_4FGL_J0801.1+6444_monthly_bin118.fits outfile=/scratch/kocevski/137381/ft1_filteredMKT_4FGL_J0801.1+6444_monthly_bin118.fits ra=120.293 dec=64.7438 rad=12.0 tmin=542851201.0 tmax=545443201.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 18.63
user 17.97
sys 0.42

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/137381/ft2_4FGL_J0801.1+6444_monthly_bin118.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/137381/ft1_filteredMKT_4FGL_J0801.1+6444_monthly_bin118.fits evtable="EVENTS" outfile="/scratch/kocevski/137381/ft1_filtered_4FGL_J0801.1+6444_monthly_bin118.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.60
user 0.42
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/137381/ft1_filtered_4FGL_J0801.1+6444_monthly_bin118.fits" evtable="EVENTS" scfile=/scratch/kocevski/137381/ft2_4FGL_J0801.1+6444_monthly_bin118.fits sctable="SC_DATA" outfile=/scratch/kocevski/137381/ltcube_542851201_545443201_4FGL_J0801.1+6444_monthly_bin118.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/137381/ft2_4FGL_J0801.1+6444_monthly_bin118.fits
.....................!
real 43.40
user 42.92
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/137381/ft1_filtered_4FGL_J0801.1+6444_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/137381/ft2_4FGL_J0801.1+6444_monthly_bin118.fits sctable="SC_DATA" expcube=/scratch/kocevski/137381/ltcube_542851201_545443201_4FGL_J0801.1+6444_monthly_bin118.fits outfile=/scratch/kocevski/137381/expmap_542851201_545443201_4FGL_J0801.1+6444_monthly_bin118.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/137381/ltcube_542851201_545443201_4FGL_J0801.1+6444_monthly_bin118.fits
.....................!
real 193.56
user 188.51
sys 4.42

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/137381/ft1_filtered_4FGL_J0801.1+6444_monthly_bin118.fits scfile=/scratch/kocevski/137381/ft2_4FGL_J0801.1+6444_monthly_bin118.fits outfile=/scratch/kocevski/137381/cmap_542851201_545443201_4FGL_J0801.1+6444_monthly_bin118.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 0.61
user 0.44
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/137381/ft1_filtered_4FGL_J0801.1+6444_monthly_bin118.fits scfile=/scratch/kocevski/137381/ft2_4FGL_J0801.1+6444_monthly_bin118.fits outfile=/scratch/kocevski/137381/cmap_HighResolution_542851201_545443201_4FGL_J0801.1+6444_monthly_bin118.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 0.61
user 0.45
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/137381/ft1_filtered_4FGL_J0801.1+6444_monthly_bin118.fits', '/scratch/kocevski/137381/ft2_4FGL_J0801.1+6444_monthly_bin118.fits', expMap='/scratch/kocevski/137381/expmap_542851201_545443201_4FGL_J0801.1+6444_monthly_bin118.fits', expCube='/scratch/kocevski/137381/ltcube_542851201_545443201_4FGL_J0801.1+6444_monthly_bin118.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/137381/Model_4FGL_J0801.1+6444_monthly_bin118.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/137381/ft1_filtered_4FGL_J0801.1+6444_monthly_bin118.fits
Spacecraft file(s): /scratch/kocevski/137381/ft2_4FGL_J0801.1+6444_monthly_bin118.fits
Exposure map: /scratch/kocevski/137381/expmap_542851201_545443201_4FGL_J0801.1+6444_monthly_bin118.fits
Exposure cube: /scratch/kocevski/137381/ltcube_542851201_545443201_4FGL_J0801.1+6444_monthly_bin118.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/137381/Model_4FGL_J0801.1+6444_monthly_bin118.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) = 848.779145909

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    137.93       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    50.276       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10231E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    174.65       1.0000         .10000E-03   10000.    
     7 'norm      '    9.7583       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10455E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.5068       1.0000         .10000E-03   10000.    
    12 'Prefactor '    41.917       1.0000         .10000E-03   10000.    
    13 'norm      '    3.4452       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    10.671       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.7248       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    15.908       1.0000         .10000E-03   10000.    
    21 'Prefactor '    227.69       1.0000         .10000E-03   10000.    
    22 'Prefactor '    75.650       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10310E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10776E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.9096       1.0000         .10000E-03   10000.    
    26 'Prefactor '    38.525       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    10.777       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2926       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .42638       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=   848.7741     FROM MIGRAD    STATUS=CONVERGED    728 CALLS     5104 TOTAL
                     EDM=   .18E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     138.00        178.44       -.85028E-06    .89896E-05
   2  Prefactor     .10000E-03    44.149        .27080E-06** at limit **
   3  Prefactor     .10000E-03    48.348        .88802E-07** at limit **
   4  Prefactor     50.182        118.36       -.96247E-06   -.10475E-04
   5  Prefactor     .10000E-03    33.399       -.25239E-06** at limit **
   6  Prefactor     174.63        102.76       -.16403E-06   -.60561E-05
   7  norm          9.7580        4.1284       -.52979E-07    .15874E-04
   8  Prefactor     .10000E-03    153.66       -.20898E-06** at limit **
   9  Prefactor     .10000E-03    250.47        .32517E-06** at limit **
  10  Prefactor     .10000E-03    55.707       -.54546E-07** at limit **
  11  norm          4.5059        3.8096       -.49247E-07    .73228E-05
  12  Prefactor     42.132        224.12        .54323E-05    .63379E-05
  13  norm          3.4450        14.126        .82526E-06   -.68127E-05
  14  Prefactor     .10000E-03    11.750        .19157E-07** at limit **
  15  Prefactor     .10000E-03    49.957       -.11259E-06** at limit **
  16  norm          10.672        11.846       -.48377E-07    .28983E-05
  17  Prefactor     9.7139        13.521       -.11916E-05    .55438E-04
  18  Prefactor     .10000E-03    15.672       -.30158E-07** at limit **
  19  Prefactor     .10000E-03    11.057       -.63116E-08** at limit **
  20  norm          15.904        12.923        .13073E-06   -.98500E-05
  21  Prefactor     227.66        224.37        .89254E-06   -.19125E-05
  22  Prefactor     75.667        76.892       -.19001E-06    .63966E-05
  23  Prefactor     .10000E-03    123.85        .38068E-06** at limit **
  24  Prefactor     .10000E-03    40.678       -.26291E-06** at limit **
  25  norm          1.9259        7.3844       -.54472E-05   -.33888E-04
  26  Prefactor     38.576        96.036       -.36827E-05    .75103E-05
  27  Prefactor     .10000E-03    77.231       -.54209E-06** at limit **
  28  Prefactor     10.589        647.50        .44373E-04   -.20883E-05
  29  Normalizat    1.2928        .71674        .24556E-05   -.81919E-05
  30  Prefactor     .42632        .35811        .90337E-07    .56591E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 137.996
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 50.1819
  Prefactor  = 0.0001
  Prefactor  = 174.629
  norm       = 9.75802
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 4.50587
  Prefactor  = 42.1315
  norm       = 3.445
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.6718
  Prefactor  = 9.71394
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.9038
  Prefactor  = 227.656
  Prefactor  = 75.6669
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.92593
  Prefactor  = 38.576
  Prefactor  = 0.0001
  Prefactor  = 10.5893
  Normalizat = 1.29281
  Prefactor  = 0.426322
 **********
 **   18 **HESSE 
 **********

 FCN=   848.7741     FROM HESSE     STATUS=OK           588 CALLS     5692 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     138.00        182.19        .17148E-03   -1.3353    
   2  Prefactor     .10000E-03    44.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    48.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     50.182        118.63        .28279E-03   -1.4290    
   5  Prefactor     .10000E-03    33.397        .16455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     174.63        103.40        .15268E-03   -1.3057    
   7  norm          9.7580        4.1392        .36864E-04   -1.5083    
   8  Prefactor     .10000E-03    153.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    249.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    55.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.5059        3.8481        .49338E-04   -1.5283    
  12  Prefactor     42.132        225.88        .30958E-03   -1.4409    
  13  norm          3.4450        13.902        .18626E-03   -1.5337    
  14  Prefactor     .10000E-03    11.752        .97572E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    49.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          10.672        11.850        .10306E-03   -1.5054    
  17  Prefactor     9.7139        13.596        .85709E-04   -1.5085    
  18  Prefactor     .10000E-03    15.674        .11269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.065        .94644E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          15.904        13.018        .89834E-04   -1.4910    
  21  Prefactor     227.66        224.49        .13408E-03   -1.2679    
  22  Prefactor     75.667        77.122        .23083E-03   -1.3966    
  23  Prefactor     .10000E-03    123.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    40.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.9259        7.4012        .11432E-03   -1.5430    
  26  Prefactor     38.576        96.082        .64575E-04   -1.4465    
  27  Prefactor     .10000E-03    77.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     10.589        675.59        .12205E-03   -1.5057    
  29  Normalizat    1.2928        .86700        .30981E-03   -.83781    
  30  Prefactor     .42632        .42131        .29369E-03   -1.1549    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.00511e-11
Minuit parameter uncertainties:
  1  182.937
  2  1.70045e-05
  3  2.47017e-05
  4  119.198
  5  1.49096e-05
  6  103.503
  7  4.13928
  8  0.000155489
  9  0.00106235
  10  9.08331e-05
  11  3.84836
  12  196.269
  13  13.8464
  14  2.9652e-06
  15  3.78027e-05
  16  11.8526
  17  13.6004
  18  9.18317e-07
  19  4.37925e-06
  20  13.0206
  21  225.351
  22  77.2239
  23  0.000212429
  24  0.000166418
  25  7.40476
  26  96.4708
  27  3.68127e-05
  28  171.223
  29  0.877031
  30  0.424423
Done.

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

Extracting fit parameters...

4FGL J0801.1+6444
   Spectrum: PowerLaw
298    Prefactor:  4.213e+01  1.963e+02  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:  4.263e-01  4.244e-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:  1.293e+00  8.770e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.10
Ra Dec: 120.293 64.744
Photon Flux Upper Limit: 4.54e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.42e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/137381/likelihoodResults_542851201_545443201_4FGL_J0801.1+6444_monthly_bin118.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): 0
logL (Free Index) = 848.512376604
delta logL = 0.261765590054

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 848.490953255
delta logL = 0.28318893919

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.612       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0517       1.0000          .0000       10.000    
     3 'Normalizat'    1.1819       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .45903       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   848.4909     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      302 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.605        91.305        .11756E-03   -.42685E-03
   2  Index         3.0527        1.9531        .26347E-02   -.23309E-03
   3  Normalizat    1.1820        .69283        .32039E-03   -.28728E-03
   4  Prefactor     .45848        .38861        .28294E-03   -.28379E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.605
  Index      = 3.05272
  Normalizat = 1.18201
  Prefactor  = 0.458482
 **********
 **   18 **HESSE 
 **********

 FCN=   848.4909     FROM HESSE     STATUS=OK            23 CALLS      325 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.605        42.715        .47024E-05   -1.5027    
   2  Index         3.0527        1.3048        .10539E-03   -.40004    
   3  Normalizat    1.1820        .69278        .64078E-04   -.87161    
   4  Prefactor     .45848        .38846        .56588E-04   -1.1392    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47046e-09
Minuit parameter uncertainties:
  1  42.8284
  2  1.32288
  3  0.698254
  4  0.390726
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/137381': 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) = 848.490949555
delta logL = 0.283192639279

Extracting fit parameters...

4FGL J0801.1+6444
   Spectrum: PowerLaw
298    Prefactor:  1.160e+01  4.283e+01  1.000e-04  1.000e+04 ( 1.000e-14)
299        Index:  3.053e+00  1.323e+00  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:  4.585e-01  3.907e-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:  1.182e+00  6.983e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.10
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/137381/cmap_HighResolution_542851201_545443201_4FGL_J0801.1+6444_monthly_bin118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.42e-02', job_status='DONE', photon_flux_upper_limit='4.54e-07', time_completed='2021-10-19 03:35:27.439406', job_id='137381', GAL2='0.46', fit_tolerance='1e-08', EG2='1.18', EG='1.29', time_epoch_completed='1634639727.44', return_code2='0', ts='0.10', comment='SUCCESS', return_code='0', GAL='0.43', dlogl='2.83e-01', ts2='0.69', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='118' AND source_name='4FGL J0801.1+6444' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue Oct 19 03:35:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 137381: <4FGL_J0801.1+6444_monthly_bin118> in cluster <slac> Done

Job <4FGL_J0801.1+6444_monthly_bin118> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Tue Oct 19 03:20:15 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct 19 03:22:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct 19 03:22:23 2021
Terminated at Tue Oct 19 03:35:28 2021
Results reported at Tue Oct 19 03:35:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0801.1+6444_monthly_bin118 120.293 64.7438 542851201 545443201 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 :                                   581.00 sec.
    Max Memory :                                 1041 MB
    Average Memory :                             221.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            913 sec.

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

