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


Performing analysis on: 4FGL_J0800.9+4401_daily_bin59
RA = 120.246, Dec = 44.0181
tmin = 254620801, tmax = 254880001
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='38195', job_status='RUN', time_executed='2021-08-28 21:08:58.546189', time_epoch_executed='1630210138.55' WHERE source_name='4FGL J0800.9+4401' and cadence='daily' and bin_id='59'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/38195

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

Retrieving the FT1 file...

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

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

Retrieving 43 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/38195/ft1_4FGL_J0800.9+4401_daily_bin59.fits


Retrieving the FT1 file...

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

Retrieving 43 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/38195/ft2_4FGL_J0800.9+4401_daily_bin59.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/38195/ft1_4FGL_J0800.9+4401_daily_bin59.fits outfile=/scratch/kocevski/38195/ft1_filteredMKT_4FGL_J0800.9+4401_daily_bin59.fits ra=120.246 dec=44.0181 rad=12.0 tmin=254620801.0 tmax=254880001.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.91
user 1.15
sys 1.71

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/38195/ft2_4FGL_J0800.9+4401_daily_bin59.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/38195/ft2_4FGL_J0800.9+4401_daily_bin59.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/38195/ft1_filteredMKT_4FGL_J0800.9+4401_daily_bin59.fits evtable="EVENTS" outfile="/scratch/kocevski/38195/ft1_filtered_4FGL_J0800.9+4401_daily_bin59.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.92
user 0.33
sys 1.55

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/38195/ft1_filtered_4FGL_J0800.9+4401_daily_bin59.fits" evtable="EVENTS" scfile=/scratch/kocevski/38195/ft2_4FGL_J0800.9+4401_daily_bin59.fits sctable="SC_DATA" outfile=/scratch/kocevski/38195/ltcube_254620801_254880001_4FGL_J0800.9+4401_daily_bin59.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/38195/ft2_4FGL_J0800.9+4401_daily_bin59.fits
.....................!
real 13.54
user 11.40
sys 2.08

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/38195/ft1_filtered_4FGL_J0800.9+4401_daily_bin59.fits evtable="EVENTS" scfile=/scratch/kocevski/38195/ft2_4FGL_J0800.9+4401_daily_bin59.fits sctable="SC_DATA" expcube=/scratch/kocevski/38195/ltcube_254620801_254880001_4FGL_J0800.9+4401_daily_bin59.fits outfile=/scratch/kocevski/38195/expmap_254620801_254880001_4FGL_J0800.9+4401_daily_bin59.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/38195/ltcube_254620801_254880001_4FGL_J0800.9+4401_daily_bin59.fits
.....................!
real 191.62
user 184.92
sys 6.32

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

Setting source of interest to:
4FGL J0800.9+4401 @ 120.246 44.0181

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/38195/ft1_filtered_4FGL_J0800.9+4401_daily_bin59.fits scfile=/scratch/kocevski/38195/ft2_4FGL_J0800.9+4401_daily_bin59.fits outfile=/scratch/kocevski/38195/cmap_254620801_254880001_4FGL_J0800.9+4401_daily_bin59.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.246 yref=44.0181 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 2.05
user 0.36
sys 1.68

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/38195/ft1_filtered_4FGL_J0800.9+4401_daily_bin59.fits scfile=/scratch/kocevski/38195/ft2_4FGL_J0800.9+4401_daily_bin59.fits outfile=/scratch/kocevski/38195/cmap_HighResolution_254620801_254880001_4FGL_J0800.9+4401_daily_bin59.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.246 yref=44.0181 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 2.07
user 0.37
sys 1.68

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/38195/ft1_filtered_4FGL_J0800.9+4401_daily_bin59.fits evtable="EVENTS" scfile=/scratch/kocevski/38195/ft2_4FGL_J0800.9+4401_daily_bin59.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/38195/Model_4FGL_J0800.9+4401_daily_bin59.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/38195/ft1_filtered_4FGL_J0800.9+4401_daily_bin59.fits.....................!
real 53.75
user 50.25
sys 3.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/38195/ft1_filtered_4FGL_J0800.9+4401_daily_bin59.fits', '/scratch/kocevski/38195/ft2_4FGL_J0800.9+4401_daily_bin59.fits', expMap='/scratch/kocevski/38195/expmap_254620801_254880001_4FGL_J0800.9+4401_daily_bin59.fits', expCube='/scratch/kocevski/38195/ltcube_254620801_254880001_4FGL_J0800.9+4401_daily_bin59.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/38195/Model_4FGL_J0800.9+4401_daily_bin59.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0800.9+4401'

4FGL J0800.9+4401
   Spectrum: PowerLaw
278    Prefactor:  1.350e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  2.172e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
280        Scale:  1.600e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/38195/ft1_filtered_4FGL_J0800.9+4401_daily_bin59.fits
Spacecraft file(s): /scratch/kocevski/38195/ft2_4FGL_J0800.9+4401_daily_bin59.fits
Exposure map: /scratch/kocevski/38195/expmap_254620801_254880001_4FGL_J0800.9+4401_daily_bin59.fits
Exposure cube: /scratch/kocevski/38195/ltcube_254620801_254880001_4FGL_J0800.9+4401_daily_bin59.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/38195/Model_4FGL_J0800.9+4401_daily_bin59.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) = 4861.20365687

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.2906       1.0000         .10000E-03   10000.    
     2 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    30.032       1.0000         .10000E-03   10000.    
     5 'norm      '    2.6641       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.2434       1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.099       1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.7130       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.9402       1.0000         .10000E-03   10000.    
    11 'norm      '    7.1573       1.0000         .10000E-03   10000.    
    12 'norm      '    3.1903       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .51635E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .55166E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.3512       1.0000         .10000E-03   10000.    
    18 'norm      '    2.3196       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.7438       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    5.3456       1.0000         .10000E-03   10000.    
    25 'norm      '    .10322E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.7545       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1177       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .84477       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4861.198     FROM MIGRAD    STATUS=CONVERGED    710 CALLS     3523 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.2906        4.6540       -.71917E-07    .51924E-04
   2  norm          .10000E-03    2.1869       -.15508E-06** at limit **
   3  Prefactor     .10000E-03    6.1994       -.32817E-06** at limit **
   4  Prefactor     30.043        18.926        .28244E-06   -.25784E-03
   5  norm          2.6668        6.8736        .53584E-05   -.17660E-03
   6  Prefactor     3.2502        15.288        .41291E-06    .53134E-04
   7  Prefactor     21.123        37.399        .32403E-06   -.34870E-04
   8  norm          .10000E-03    .54842       -.95653E-07** at limit **
   9  Prefactor     7.7065        16.971        .17587E-06   -.47595E-04
  10  Prefactor     7.9113        25.721       -.49751E-05   -.18687E-03
  11  norm          7.1602        13.100        .28244E-06    .65911E-04
  12  norm          3.1871        3.6194        .10772E-06   -.23645E-03
  13  Prefactor     .10001E-03    10.678        .51859E-05** at limit **
  14  Prefactor     .10001E-03    332.96        .55261E-05** at limit **
  15  Prefactor     .10000E-03    1.4935       -.10554E-08** at limit **
  16  norm          .10000E-03    13.102       -.50979E-06** at limit **
  17  norm          1.3541        2.4231        .12824E-06   -.52056E-04
  18  norm          2.3184        .90310       -.27967E-07   -.18849E-02
  19  Prefactor     .10000E-03    9.8021       -.93960E-07** at limit **
  20  Prefactor     .10000E-03    .98137       -.51639E-07** at limit **
  21  Prefactor     .10000E-03    50.610        .10532E-05** at limit **
  22  Prefactor     9.7296        18.358        .83161E-07   -.33687E-04
  23  Prefactor     .10000E-03    6.1320       -.91449E-07** at limit **
  24  norm          5.3395        7.9551        .20659E-06   -.21342E-04
  25  norm          .10000E-03    4.3917       -.91455E-07** at limit **
  26  Prefactor     4.7559        3.8168        .38306E-06   -.55236E-04
  27  Normalizat    1.1176        .22109       -.19968E-05   -.55087E-03
  28  Prefactor     .84467        .14740        .32829E-06   -.48163E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.29058
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.0432
  norm       = 2.66675
  Prefactor  = 3.2502
  Prefactor  = 21.1228
  norm       = 0.0001
  Prefactor  = 7.70655
  Prefactor  = 7.91135
  norm       = 7.16022
  norm       = 3.18713
  Prefactor  = 0.00010001
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.35413
  norm       = 2.31838
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.72964
  Prefactor  = 0.0001
  norm       = 5.33949
  norm       = 0.0001
  Prefactor  = 4.75588
  Normalizat = 1.11764
  Prefactor  = 0.844669
 **********
 **   18 **HESSE 
 **********

 FCN=   4861.198     FROM HESSE     STATUS=OK           517 CALLS     4040 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.2906        4.6532        .13700E-03   -1.5248    
   2  norm          .10000E-03    2.1949        .10070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.3231        .16947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     30.043        18.908        .73111E-04   -1.4611    
   5  norm          2.6668        7.0740        .12486E-02   -1.5381    
   6  Prefactor     3.2502        15.216        .22490E-03   -1.5347    
   7  Prefactor     21.123        37.365        .87199E-04   -1.4788    
   8  norm          .10000E-03    .57364        .10078E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.7065        16.911        .14439E-03   -1.5153    
  10  Prefactor     7.9113        26.017        .14229E-03   -1.5145    
  11  norm          7.1602        13.096        .14994E-03   -1.5173    
  12  norm          3.1871        3.6010        .13199E-03   -1.5351    
  13  Prefactor     .10001E-03    29.302        .38942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    339.28        .19064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.4961        .83197E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    13.477        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.3541        2.3773        .13899E-03   -1.5475    
  18  norm          2.3184        .90060        .39402E-04   -1.5403    
  19  Prefactor     .10000E-03    9.8670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .99104        .67428E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    50.870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.7296        18.438        .12838E-03   -1.5084    
  23  Prefactor     .10000E-03    6.1434        .16862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          5.3395        7.9484        .17382E-03   -1.5246    
  25  norm          .10000E-03    4.4195        .14267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     4.7559        3.8179        .58311E-03   -1.5272    
  27  Normalizat    1.1176        .25578        .26998E-03   -.89187    
  28  Prefactor     .84467        .17079        .21364E-03   -.98102    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31368e-09
Minuit parameter uncertainties:
  1  4.65352
  2  1.16001e-05
  3  5.72194e-05
  4  18.9115
  5  7.07621
  6  14.0704
  7  37.4059
  8  3.03324e-06
  9  16.9216
  10  26.0538
  11  13.1008
  12  3.60129
  13  0.00106789
  14  0.00407358
  15  8.9677e-08
  16  7.88195e-05
  17  2.37749
  18  0.900604
  19  6.95822e-06
  20  1.90351e-06
  21  0.000254992
  22  18.4492
  23  6.64388e-06
  24  7.94997
  25  8.57724e-06
  26  3.81811
  27  0.256066
  28  0.170894
Done.

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

Extracting fit parameters...

4FGL J0800.9+4401
   Spectrum: PowerLaw
278    Prefactor:  1.000e-04  1.068e-03  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  2.172e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
280        Scale:  1.600e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
656    Prefactor:  8.447e-01  1.709e-01  0.000e+00  1.000e+01 ( 1.000e+00)
657        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
658        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
655   Normalization:  1.118e+00  2.561e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 120.246 44.018
Photon Flux Upper Limit: 9.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/38195/likelihoodResults_254620801_254880001_4FGL_J0800.9+4401_daily_bin59.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) = 4861.19818006
delta logL = -0.000161421808116

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4861.19818003
delta logL = -0.000161397348165

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4861.198     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      218 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    .38396E-01    .90714E-01** at limit **
   2  Index         2.2420        8.6807        .50000       -.20091E-04
   3  Normalizat    1.1176        .44257E-03    .61043E-01   -.25841E-03
   4  Prefactor     .84467        .31048E-03    .44296E-01   -.32839E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100021
  Index      = 2.24201
  Normalizat = 1.11765
  Prefactor  = 0.844667
 **********
 **   18 **HESSE 
 **********

 FCN=   4861.198     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      249 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    46.241        .33511E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2420        6.0224        .50000       -.58428    
   3  Normalizat    1.1176        .62639E-02    .26999E-03   -.89187    
   4  Prefactor     .84467        .43967E-02    .21364E-03   -.98102    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.59084e-06
Minuit parameter uncertainties:
  1  0.0019606
  2  267.333
  3  0.00626387
  4  0.0043967
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/38195': 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) = 4861.1980183
delta logL = 3.33245225193e-07

Extracting fit parameters...

4FGL J0800.9+4401
   Spectrum: PowerLaw
278    Prefactor:  1.000e-04  1.961e-03  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  2.242e+00  2.673e+02  0.000e+00  1.000e+01 (-1.000e+00)
280        Scale:  1.600e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
656    Prefactor:  8.447e-01  4.397e-03  0.000e+00  1.000e+01 ( 1.000e+00)
657        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
658        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
655   Normalization:  1.118e+00  6.264e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 120.246 44.018

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/38195/cmap_HighResolution_254620801_254880001_4FGL_J0800.9+4401_daily_bin59.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.22e-03', job_status='DONE', photon_flux_upper_limit='9.49e-08', time_completed='2021-08-28 21:21:35.954794', job_id='38195', GAL2='0.84', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1630210895.95', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='3.33e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='59' AND source_name='4FGL J0800.9+4401' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 21:21:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 38195: <4FGL_J0800.9+4401_daily_bin59> in cluster <slac> Done

Job <4FGL_J0800.9+4401_daily_bin59> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 28 21:05:51 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 21:05:53 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:05:53 2021
Terminated at Sat Aug 28 21:21:36 2021
Results reported at Sat Aug 28 21:21:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0800.9+4401_daily_bin59 120.246 44.0181 254620801 254880001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0800.9+4401 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   780.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             271.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            945 sec.

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

