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


Performing analysis on: 4FGL_J0800.9+4401_daily_bin1385
RA = 120.246, Dec = 44.0181
tmin = 598320001, tmax = 598579201
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='47573', job_status='RUN', time_executed='2021-08-28 21:37:35.936961', time_epoch_executed='1630211855.94' WHERE source_name='4FGL J0800.9+4401' and cadence='daily' and bin_id='1385'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/47573

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/47573/ft1_4FGL_J0800.9+4401_daily_bin1385.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/47573/ft2_4FGL_J0800.9+4401_daily_bin1385.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/47573/ft1_4FGL_J0800.9+4401_daily_bin1385.fits outfile=/scratch/kocevski/47573/ft1_filteredMKT_4FGL_J0800.9+4401_daily_bin1385.fits ra=120.246 dec=44.0181 rad=12.0 tmin=598320001.0 tmax=598579201.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 3.84
user 3.08
sys 0.73

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/47573/ft2_4FGL_J0800.9+4401_daily_bin1385.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/47573/ft1_filteredMKT_4FGL_J0800.9+4401_daily_bin1385.fits evtable="EVENTS" outfile="/scratch/kocevski/47573/ft1_filtered_4FGL_J0800.9+4401_daily_bin1385.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.04
user 0.35
sys 0.66

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/47573/ft1_filtered_4FGL_J0800.9+4401_daily_bin1385.fits" evtable="EVENTS" scfile=/scratch/kocevski/47573/ft2_4FGL_J0800.9+4401_daily_bin1385.fits sctable="SC_DATA" outfile=/scratch/kocevski/47573/ltcube_598320001_598579201_4FGL_J0800.9+4401_daily_bin1385.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/47573/ft2_4FGL_J0800.9+4401_daily_bin1385.fits
.....................!
real 12.96
user 11.94
sys 0.87

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/47573/ft1_filtered_4FGL_J0800.9+4401_daily_bin1385.fits evtable="EVENTS" scfile=/scratch/kocevski/47573/ft2_4FGL_J0800.9+4401_daily_bin1385.fits sctable="SC_DATA" expcube=/scratch/kocevski/47573/ltcube_598320001_598579201_4FGL_J0800.9+4401_daily_bin1385.fits outfile=/scratch/kocevski/47573/expmap_598320001_598579201_4FGL_J0800.9+4401_daily_bin1385.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/47573/ltcube_598320001_598579201_4FGL_J0800.9+4401_daily_bin1385.fits
.....................!
real 192.77
user 186.88
sys 5.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/47573/ft1_filtered_4FGL_J0800.9+4401_daily_bin1385.fits scfile=/scratch/kocevski/47573/ft2_4FGL_J0800.9+4401_daily_bin1385.fits outfile=/scratch/kocevski/47573/cmap_598320001_598579201_4FGL_J0800.9+4401_daily_bin1385.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 1.50
user 0.38
sys 0.66

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/47573/ft1_filtered_4FGL_J0800.9+4401_daily_bin1385.fits scfile=/scratch/kocevski/47573/ft2_4FGL_J0800.9+4401_daily_bin1385.fits outfile=/scratch/kocevski/47573/cmap_HighResolution_598320001_598579201_4FGL_J0800.9+4401_daily_bin1385.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 1.22
user 0.38
sys 0.66

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.343       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.3039       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    43.799       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    13.161       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.9345       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.7914       1.0000         .10000E-03   10000.    
    18 'norm      '    .10164E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.1045       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.7720       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .98157E-01   1.0000         .10000E-03   10000.    
    25 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1488       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .62568       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=   1152.914     FROM MIGRAD    STATUS=CONVERGED    708 CALLS     3518 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    11.010        .38161E-06** at limit **
   2  norm          .10000E-03    6.3201        .25280E-06** at limit **
   3  Prefactor     14.319        23.680       -.85948E-06    .21816E-04
   4  Prefactor     .10000E-03    19.438        .24485E-06** at limit **
   5  norm          3.2956        71.006        .34112E-05    .22882E-04
   6  Prefactor     .10000E-03    25.493        .17274E-06** at limit **
   7  Prefactor     .10000E-03    26.638        .16573E-06** at limit **
   8  norm          .10000E-03    .61322        .20213E-07** at limit **
   9  Prefactor     43.757        42.599       -.24296E-06    .21637E-04
  10  Prefactor     .10000E-03    30.775       -.25155E-06** at limit **
  11  norm          13.108        43.736       -.70317E-06   -.16333E-06
  12  norm          .10000E-03    4.9595       -.94929E-07** at limit **
  13  Prefactor     .10000E-03    9.0939       -.80336E-06** at limit **
  14  Prefactor     2.8033        478.34       -.36792E-05   -.49909E-05
  15  Prefactor     .10000E-03    13.027       -.12724E-05** at limit **
  16  norm          .10000E-03    4.2661        .35054E-07** at limit **
  17  norm          1.7907        3.4828        .53309E-07   -.41316E-05
  18  norm          .10000E-03    1.5723       -.23715E-05** at limit **
  19  Prefactor     7.1645        93.852       -.14810E-05    .16570E-03
  20  Prefactor     8.7569        13.457        .20921E-05    .62605E-03
  21  Prefactor     .10000E-03    23.659       -.41527E-06** at limit **
  22  Prefactor     .10000E-03    9.2873       -.16354E-06** at limit **
  23  Prefactor     .10000E-03    48.654        .42754E-06** at limit **
  24  norm          .10122E-03    38.136        .92357E-06** at limit **
  25  norm          .10000E-03    10.995        .79392E-07** at limit **
  26  Prefactor     .10000E-03    4.6004        .90536E-07** at limit **
  27  Normalizat    1.1498        .41718        .42680E-05    .12846E-03
  28  Prefactor     .62551        .27248       -.46083E-05    .14068E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 14.3193
  Prefactor  = 0.0001
  norm       = 3.29558
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 43.7572
  Prefactor  = 0.0001
  norm       = 13.1084
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.80331
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.79073
  norm       = 0.0001
  Prefactor  = 7.16445
  Prefactor  = 8.75693
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000101221
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.14985
  Prefactor  = 0.625513
 **********
 **   18 **HESSE 
 **********

 FCN=   1152.914     FROM HESSE     STATUS=OK           519 CALLS     4037 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    11.031        .11002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    6.3344        .83359E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.319        23.098        .10576E-03   -1.4951    
   4  Prefactor     .10000E-03    19.450        .14626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.2956        66.657        .22273E-03   -1.5345    
   6  Prefactor     .10000E-03    25.535        .16751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    26.639        .17125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .61347        .25971E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     43.757        42.687        .60577E-04   -1.4384    
  10  Prefactor     .10000E-03    30.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          13.108        44.064        .11041E-03   -1.4984    
  12  norm          .10000E-03    4.9723        .73782E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.0990        .10003E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.8033        491.46        .23711E-03   -1.5373    
  15  Prefactor     .10000E-03    13.142        .11970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.2679        .68490E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.7907        3.4461        .85824E-04   -1.5440    
  18  norm          .10000E-03    1.6814        .74369E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.1645        87.263        .15050E-03   -1.5173    
  20  Prefactor     8.7569        13.166        .51200E-03   -1.5116    
  21  Prefactor     .10000E-03    23.669        .16140E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.2893        .10109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    48.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10122E-03    59.181        .55077E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    11.003        .10998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    4.6209        .71086E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.1498        .47903        .23932E-03   -.88167    
  28  Prefactor     .62551        .30312        .22107E-03   -1.0652    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.0976e-10
Minuit parameter uncertainties:
  1  1.6835e-05
  2  1.04763e-05
  3  23.1121
  4  3.46585e-05
  5  29.6802
  6  4.31361e-06
  7  3.75686e-05
  8  1.64232e-07
  9  42.7169
  10  1.5302e-05
  11  44.1741
  12  8.61146e-07
  13  1.5713e-05
  14  74.8669
  15  3.58461e-05
  16  3.82005e-07
  17  3.44648
  18  3.80171e-05
  19  50.0983
  20  13.1702
  21  7.68826e-05
  22  9.81252e-06
  23  2.68312e-05
  24  0.0170152
  25  1.10588e-06
  26  1.67113e-06
  27  0.480866
  28  0.303914
Done.

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

Extracting fit parameters...

4FGL J0800.9+4401
   Spectrum: PowerLaw
278    Prefactor:  1.000e-04  1.571e-05  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:  6.255e-01  3.039e-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.150e+00  4.809e-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: 1.72e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.31e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/47573/likelihoodResults_598320001_598579201_4FGL_J0800.9+4401_daily_bin1385.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) = 1152.91416474
delta logL = -0.000496936914942

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1152.91366773
delta logL = 7.25422069081e-08

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1152.914     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      238 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10246E-03    135.85        .10334E-02** at limit **
   2  Index         2.0733        7.3931        .50000        .22014E-04
   3  Normalizat    1.1498        .37973E-01    .23931E-03    .45130E-07
   4  Prefactor     .62551        .26746E-01    .22107E-03   -.26921E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102459
  Index      = 2.07328
  Normalizat = 1.14985
  Prefactor  = 0.625511
 **********
 **   18 **HESSE 
 **********

 FCN=   1152.914     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      267 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10246E-03    504.92        .20668E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0733        5.9775        .50000       -.62530    
   3  Normalizat    1.1498        .76956E-01    .47862E-04   -.88167    
   4  Prefactor     .62551        .54203E-01    .88428E-05   -1.0652    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.31438e-08
Minuit parameter uncertainties:
  1  0.0710868
  2  665.211
  3  0.0769634
  4  0.0542072
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/47573': 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) = 1152.91366734
delta logL = 4.6419836508e-07

Extracting fit parameters...

4FGL J0800.9+4401
   Spectrum: PowerLaw
278    Prefactor:  1.025e-04  7.109e-02  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  2.073e+00  6.652e+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:  6.255e-01  5.421e-02  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.150e+00  7.696e-02  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/47573/cmap_HighResolution_598320001_598579201_4FGL_J0800.9+4401_daily_bin1385.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.31e-02', job_status='DONE', photon_flux_upper_limit='1.72e-07', time_completed='2021-08-28 21:45:19.629176', job_id='47573', GAL2='0.63', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1630212319.63', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='4.64e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1385' AND source_name='4FGL J0800.9+4401' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 21:45:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 47573: <4FGL_J0800.9+4401_daily_bin1385> in cluster <slac> Done

Job <4FGL_J0800.9+4401_daily_bin1385> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Aug 28 21:35:16 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 21:35:19 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:35:19 2021
Terminated at Sat Aug 28 21:45:20 2021
Results reported at Sat Aug 28 21:45:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0800.9+4401_daily_bin1385 120.246 44.0181 598320001 598579201 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 :                                   445.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             268.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   600 sec.
    Turnaround time :                            604 sec.

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

