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


Performing analysis on: 4FGL_J0800.9+4401_daily_bin1334
RA = 120.246, Dec = 44.0181
tmin = 585100801, tmax = 585360001
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='46260', job_status='RUN', time_executed='2021-08-28 21:35:20.154226', time_epoch_executed='1630211720.15' WHERE source_name='4FGL J0800.9+4401' and cadence='daily' and bin_id='1334'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/46260

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/46260/ft1_4FGL_J0800.9+4401_daily_bin1334.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/46260/ft2_4FGL_J0800.9+4401_daily_bin1334.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/46260/ft1_4FGL_J0800.9+4401_daily_bin1334.fits outfile=/scratch/kocevski/46260/ft1_filteredMKT_4FGL_J0800.9+4401_daily_bin1334.fits ra=120.246 dec=44.0181 rad=12.0 tmin=585100801.0 tmax=585360001.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 10.17
user 2.83
sys 7.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/46260/ft2_4FGL_J0800.9+4401_daily_bin1334.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/46260/ft1_filteredMKT_4FGL_J0800.9+4401_daily_bin1334.fits evtable="EVENTS" outfile="/scratch/kocevski/46260/ft1_filtered_4FGL_J0800.9+4401_daily_bin1334.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 8.57
user 0.34
sys 8.00

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/46260/ft1_filtered_4FGL_J0800.9+4401_daily_bin1334.fits" evtable="EVENTS" scfile=/scratch/kocevski/46260/ft2_4FGL_J0800.9+4401_daily_bin1334.fits sctable="SC_DATA" outfile=/scratch/kocevski/46260/ltcube_585100801_585360001_4FGL_J0800.9+4401_daily_bin1334.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/46260/ft2_4FGL_J0800.9+4401_daily_bin1334.fits
.....................!
real 22.71
user 13.25
sys 9.15

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/46260/ft1_filtered_4FGL_J0800.9+4401_daily_bin1334.fits evtable="EVENTS" scfile=/scratch/kocevski/46260/ft2_4FGL_J0800.9+4401_daily_bin1334.fits sctable="SC_DATA" expcube=/scratch/kocevski/46260/ltcube_585100801_585360001_4FGL_J0800.9+4401_daily_bin1334.fits outfile=/scratch/kocevski/46260/expmap_585100801_585360001_4FGL_J0800.9+4401_daily_bin1334.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/46260/ltcube_585100801_585360001_4FGL_J0800.9+4401_daily_bin1334.fits
.....................!
real 201.41
user 185.58
sys 15.28

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/46260/ft1_filtered_4FGL_J0800.9+4401_daily_bin1334.fits scfile=/scratch/kocevski/46260/ft2_4FGL_J0800.9+4401_daily_bin1334.fits outfile=/scratch/kocevski/46260/cmap_585100801_585360001_4FGL_J0800.9+4401_daily_bin1334.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 8.23
user 0.36
sys 7.84

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/46260/ft1_filtered_4FGL_J0800.9+4401_daily_bin1334.fits scfile=/scratch/kocevski/46260/ft2_4FGL_J0800.9+4401_daily_bin1334.fits outfile=/scratch/kocevski/46260/cmap_HighResolution_585100801_585360001_4FGL_J0800.9+4401_daily_bin1334.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 8.24
user 0.37
sys 7.83

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/46260/ft1_filtered_4FGL_J0800.9+4401_daily_bin1334.fits', '/scratch/kocevski/46260/ft2_4FGL_J0800.9+4401_daily_bin1334.fits', expMap='/scratch/kocevski/46260/expmap_585100801_585360001_4FGL_J0800.9+4401_daily_bin1334.fits', expCube='/scratch/kocevski/46260/ltcube_585100801_585360001_4FGL_J0800.9+4401_daily_bin1334.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/46260/Model_4FGL_J0800.9+4401_daily_bin1334.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/46260/ft1_filtered_4FGL_J0800.9+4401_daily_bin1334.fits
Spacecraft file(s): /scratch/kocevski/46260/ft2_4FGL_J0800.9+4401_daily_bin1334.fits
Exposure map: /scratch/kocevski/46260/expmap_585100801_585360001_4FGL_J0800.9+4401_daily_bin1334.fits
Exposure cube: /scratch/kocevski/46260/ltcube_585100801_585360001_4FGL_J0800.9+4401_daily_bin1334.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/46260/Model_4FGL_J0800.9+4401_daily_bin1334.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) = 898.102973482

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.1445       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.4287       1.0000         .10000E-03   10000.    
     9 'Prefactor '    86.246       1.0000         .10000E-03   10000.    
    10 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    11 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    12 'norm      '    .20755E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11045E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    39.634       1.0000         .10000E-03   10000.    
    17 'norm      '    24.482       1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    35.362       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    38.182       1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.234       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    5.5521       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.4871       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    28 'Prefactor '    .91950       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=   897.9162     FROM MIGRAD    STATUS=CONVERGED    694 CALLS     4125 TOTAL
                     EDM=   .69E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.4497        .47699E-06** at limit **
   2  norm          6.1420        8.4791       -.18836E-06   -.89026E-04
   3  Prefactor     .10000E-03    25.129        .56382E-06** at limit **
   4  Prefactor     .10000E-03    16.063       -.17367E-06** at limit **
   5  norm          .10000E-03    17.222        .36364E-06** at limit **
   6  Prefactor     .10000E-03    178.43       -.58938E-04** at limit **
   7  Prefactor     .10000E-03    60.328        .16031E-05** at limit **
   8  norm          1.4288        2.7129        .91736E-07   -.14938E-03
   9  Prefactor     86.308        413.76        .64089E-04   -.17512E-04
  10  Prefactor    10000.0        674.81        .19213E-03** at limit **
  11  norm          10000.        6880.5        .56846E-03** at limit **
  12  norm          .10000E-03    223.47        .82575E-04** at limit **
  13  Prefactor     .10000E-03    489.17        .67391E-04** at limit **
  14  Prefactor     .10000E-03    197.61        .62770E-05** at limit **
  15  Prefactor     .10000E-03    103.26        .28339E-05** at limit **
  16  norm          39.645        41.306       -.26711E-05   -.32696E-04
  17  norm          24.495        21.339       -.40496E-05   -.55978E-04
  18  norm          .10000E-03    1.7014        .23704E-06** at limit **
  19  Prefactor     35.376        58.048        .65550E-05   -.17916E-04
  20  Prefactor     .10000E-03    6.3581        .12833E-07** at limit **
  21  Prefactor     38.154        98.654       -.27008E-04   -.19440E-04
  22  Prefactor     14.235        26.707        .59435E-05   -.38940E-04
  23  Prefactor     .10000E-03    6.7768       -.44335E-06** at limit **
  24  norm          5.5515        10.155        .20375E-05   -.74101E-04
  25  norm          .10000E-03    3.7086       -.11168E-05** at limit **
  26  Prefactor     7.4848        4.7145       -.11482E-07   -.10153E-03
  27  Normalizat    .10000E-01    .24171        .34124E-05** at limit **
  28  Prefactor     .91896        .23193        .92000E-07   -.10072E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 6.14199
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.42881
  Prefactor  = 86.3076
  Prefactor  = 10000
  norm       = 10000
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 39.6449
  norm       = 24.4947
  norm       = 0.0001
  Prefactor  = 35.3761
  Prefactor  = 0.0001
  Prefactor  = 38.1541
  Prefactor  = 14.2349
  Prefactor  = 0.0001
  norm       = 5.55149
  norm       = 0.0001
  Prefactor  = 7.48483
  Normalizat = 0.01
  Prefactor  = 0.918961
 **********
 **   18 **HESSE 
 **********

 FCN=   897.9162     FROM HESSE     STATUS=OK           501 CALLS     4626 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.4626        .68332E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.1420        8.4684        .98186E-04   -1.5212    
   3  Prefactor     .10000E-03    25.403        .14645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.067        .11734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    17.261        .12150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    178.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    60.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.4288        2.6704        .65495E-04   -1.5469    
   9  Prefactor     86.308        410.79        .21630E-03   -1.3847    
  10  Prefactor    10000.0        675.59        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          10000.        6882.0        .20416E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    222.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    489.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    197.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    103.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          39.645        41.323        .63668E-04   -1.4448    
  17  norm          24.495        21.355        .80957E-04   -1.4718    
  18  norm          .10000E-03    1.7224        .38153E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     35.376        57.957        .67392E-04   -1.4518    
  20  Prefactor     .10000E-03    6.3592        .73737E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     38.154        98.601        .64864E-04   -1.4472    
  22  Prefactor     14.235        26.727        .10616E-03   -1.4953    
  23  Prefactor     .10000E-03    6.7821        .76203E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          5.5515        10.155        .12307E-03   -1.5237    
  25  norm          .10000E-03    3.7098        .56370E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     7.4848        4.7025        .49589E-04   -1.5161    
  27  Normalizat    .10000E-01    .29019        .81513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .91896        .21707        .19934E-03   -.95482    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18228e-10
Minuit parameter uncertainties:
  1  7.15942e-06
  2  8.47004
  3  0.00013599
  4  2.31383e-05
  5  1.69408e-05
  6  4.70183e-06
  7  0.000120064
  8  2.67061
  9  380.923
  10  5.44802e-05
  11  0.000112914
  12  0.0013224
  13  5.97492e-06
  14  5.15841e-06
  15  7.40945e-05
  16  41.3524
  17  21.3621
  18  2.34814e-06
  19  58.049
  20  1.29078e-05
  21  99.0266
  22  26.7494
  23  6.44309e-06
  24  10.1586
  25  1.72765e-06
  26  4.70277
  27  5.11039e-07
  28  0.217277
Done.

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

Extracting fit parameters...

4FGL J0800.9+4401
   Spectrum: PowerLaw
278    Prefactor:  1.000e-04  5.975e-06  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:  9.190e-01  2.173e-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.000e-02  5.110e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 120.246 44.018
Photon Flux Upper Limit: 5.45e-06 ph cm-2 s-1
Energy Flux Upper Limit: 4.15e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/46260/likelihoodResults_585100801_585360001_4FGL_J0800.9+4401_daily_bin1334.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) = 897.916252292
delta logL = -1.03577237951e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 897.91624196
delta logL = -2.57821284322e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11995E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1535       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91895       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=   897.9162     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      241 TOTAL
                     EDM=   .36E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7286.6        .90712E-02** at limit **
   2  Index         2.1743        6.9012        .50000       -.37196E-06
   3  Normalizat    .10000E-01    .70363E-01    .22565    ** at limit **
   4  Prefactor     .91896        .12292        .45246E-01   -.27802E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.17428
  Normalizat = 0.01
  Prefactor  = 0.918962
 **********
 **   18 **HESSE 
 **********

 FCN=   897.9162     FROM HESSE     STATUS=OK            33 CALLS      274 TOTAL
                     EDM=   .29E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    569.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1743        6.0310        .50000       -.60061    
   3  Normalizat    .10000E-01    .25997        .81512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .91896        .19613        .19934E-03   -.95482    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.94446e-13
Minuit parameter uncertainties:
  1  0.000627512
  2  4.87793
  3  1.25887e-10
  4  0.196282
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/46260': 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) = 897.916241934
delta logL = 1.98724592337e-10

Extracting fit parameters...

4FGL J0800.9+4401
   Spectrum: PowerLaw
278    Prefactor:  1.000e-04  6.275e-04  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  2.174e+00  4.878e+00  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:  9.190e-01  1.963e-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.000e-02  1.259e-10  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/46260/cmap_HighResolution_585100801_585360001_4FGL_J0800.9+4401_daily_bin1334.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.15e-01', job_status='DONE', photon_flux_upper_limit='5.45e-06', time_completed='2021-08-28 21:44:17.989528', job_id='46260', GAL2='0.92', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630212257.99', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.99e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1334' AND source_name='4FGL J0800.9+4401' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 21:44:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 46260: <4FGL_J0800.9+4401_daily_bin1334> in cluster <slac> Done

Job <4FGL_J0800.9+4401_daily_bin1334> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 28 21:30:46 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 21:30:47 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:30:47 2021
Terminated at Sat Aug 28 21:44:20 2021
Results reported at Sat Aug 28 21:44:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0800.9+4401_daily_bin1334 120.246 44.0181 585100801 585360001 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 :                                   652.42 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             212.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            814 sec.

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

