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


Performing analysis on: 4FGL_J0800.9+4401_daily_bin1455
RA = 120.246, Dec = 44.0181
tmin = 616464001, tmax = 616723201
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='47677', job_status='RUN', time_executed='2021-08-28 21:37:36.999921', time_epoch_executed='1630211857.0' WHERE source_name='4FGL J0800.9+4401' and cadence='daily' and bin_id='1455'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/47677

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/47677/ft1_4FGL_J0800.9+4401_daily_bin1455.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/47677/ft2_4FGL_J0800.9+4401_daily_bin1455.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/47677/ft1_4FGL_J0800.9+4401_daily_bin1455.fits outfile=/scratch/kocevski/47677/ft1_filteredMKT_4FGL_J0800.9+4401_daily_bin1455.fits ra=120.246 dec=44.0181 rad=12.0 tmin=616464001.0 tmax=616723201.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.23
user 2.71
sys 0.46

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/47677/ft1_filtered_4FGL_J0800.9+4401_daily_bin1455.fits" evtable="EVENTS" scfile=/scratch/kocevski/47677/ft2_4FGL_J0800.9+4401_daily_bin1455.fits sctable="SC_DATA" outfile=/scratch/kocevski/47677/ltcube_616464001_616723201_4FGL_J0800.9+4401_daily_bin1455.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/47677/ft2_4FGL_J0800.9+4401_daily_bin1455.fits
.....................!
real 12.88
user 12.18
sys 0.66

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/47677/ft1_filtered_4FGL_J0800.9+4401_daily_bin1455.fits evtable="EVENTS" scfile=/scratch/kocevski/47677/ft2_4FGL_J0800.9+4401_daily_bin1455.fits sctable="SC_DATA" expcube=/scratch/kocevski/47677/ltcube_616464001_616723201_4FGL_J0800.9+4401_daily_bin1455.fits outfile=/scratch/kocevski/47677/expmap_616464001_616723201_4FGL_J0800.9+4401_daily_bin1455.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/47677/ltcube_616464001_616723201_4FGL_J0800.9+4401_daily_bin1455.fits
.....................!
real 189.35
user 184.52
sys 4.44

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/47677/ft1_filtered_4FGL_J0800.9+4401_daily_bin1455.fits scfile=/scratch/kocevski/47677/ft2_4FGL_J0800.9+4401_daily_bin1455.fits outfile=/scratch/kocevski/47677/cmap_616464001_616723201_4FGL_J0800.9+4401_daily_bin1455.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 0.83
user 0.37
sys 0.43

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/47677/ft1_filtered_4FGL_J0800.9+4401_daily_bin1455.fits scfile=/scratch/kocevski/47677/ft2_4FGL_J0800.9+4401_daily_bin1455.fits outfile=/scratch/kocevski/47677/cmap_HighResolution_616464001_616723201_4FGL_J0800.9+4401_daily_bin1455.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 0.83
user 0.38
sys 0.43

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.731       1.0000         .10000E-03   10000.    
     2 'norm      '    5.9257       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.9924       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.2102       1.0000         .10000E-03   10000.    
     5 'norm      '    4.8603       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .14874E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10373E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10232E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    12.959       1.0000         .10000E-03   10000.    
    17 'norm      '    3.4343       1.0000         .10000E-03   10000.    
    18 'norm      '    .10109E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11325E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    71.788       1.0000         .10000E-03   10000.    
    21 'Prefactor '    951.86       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .16441E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0331       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=   1156.426     FROM MIGRAD    STATUS=CONVERGED    696 CALLS     4067 TOTAL
                     EDM=   .83E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.730        9.0066       -.10128E-06    .13624E-05
   2  norm          5.9236        10.081        .12691E-06    .54925E-04
   3  Prefactor     5.0000        10.995       -.29864E-06    .98133E-05
   4  Prefactor     3.2209        75.832       -.81550E-06    .56587E-05
   5  norm          4.8644        17.709       -.73367E-06    .78538E-05
   6  Prefactor     .10000E-03    107.71       -.21337E-06** at limit **
   7  Prefactor     .10000E-03    10.893        .23022E-07** at limit **
   8  norm          .10000E-03    .72303        .31151E-06** at limit **
   9  Prefactor     .10000E-03    8.8209        .53025E-07** at limit **
  10  Prefactor     .10000E-03    19.751       -.19024E-06** at limit **
  11  norm          .10000E-03    111.86       -.16267E-07** at limit **
  12  norm          .10000E-03    3.0507        .10458E-06** at limit **
  13  Prefactor     .10000E-03    13.011       -.34942E-06** at limit **
  14  Prefactor     .10000E-03    122.14       -.65838E-06** at limit **
  15  Prefactor     .10000E-03    54.631       -.30263E-05** at limit **
  16  norm          12.958        8.2934       -.10071E-06   -.28061E-06
  17  norm          3.4342        3.3165       -.33746E-07   -.24583E-05
  18  norm          .10000E-03    3.5259       -.93650E-06** at limit **
  19  Prefactor     .10000E-03    558.39        .55437E-06** at limit **
  20  Prefactor     70.664        1684.1       -.42863E-05    .20200E-05
  21  Prefactor     950.36        7611.2        .77507E-05    .12491E-05
  22  Prefactor     .10000E-03    158.06       -.16254E-05** at limit **
  23  Prefactor     .10000E-03    10.434       -.11651E-08** at limit **
  24  norm          .10000E-03    22.533        .52219E-07** at limit **
  25  norm          .10000E-03    13.440        .74402E-07** at limit **
  26  Prefactor     10000.        316.01        .77425E-06** at limit **
  27  Normalizat    .10000E-01    .13564        .12364E-05** at limit **
  28  Prefactor     1.0330        .18386       -.20742E-05    .47684E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.7297
  norm       = 5.9236
  Prefactor  = 4.99997
  Prefactor  = 3.22094
  norm       = 4.8644
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 12.9583
  norm       = 3.43416
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 70.6645
  Prefactor  = 950.364
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10000
  Normalizat = 0.01
  Prefactor  = 1.03299
 **********
 **   18 **HESSE 
 **********

 FCN=   1156.426     FROM HESSE     STATUS=OK           511 CALLS     4578 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.730        9.0148        .89234E-04   -1.5053    
   2  norm          5.9236        9.9164        .56120E-03   -1.5221    
   3  Prefactor     5.0000        10.903        .14166E-03   -1.5261    
   4  Prefactor     3.2209        73.877        .22612E-03   -1.5349    
   5  norm          4.8644        17.756        .18246E-03   -1.5267    
   6  Prefactor     .10000E-03    108.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.894        .10965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .83296        .56192E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.8312        .98669E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.761        .14767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    111.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.0867        .58032E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.027        .11987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    122.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    55.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          12.958        8.2975        .76006E-04   -1.4988    
  17  norm          3.4342        3.3218        .59095E-04   -1.5337    
  18  norm          .10000E-03    3.6230        .63006E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    559.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     70.664        1739.4        .23691E-03   -1.4025    
  21  Prefactor     950.36        7697.3        .68150E-04   -.94403    
  22  Prefactor     .10000E-03    158.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    10.434        .10732E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    22.533        .15773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    13.439        .12180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     10000.        315.93        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .10000E-01    .16500        .77744E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     1.0330        .18998        .16674E-03   -.91638    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9159e-10
Minuit parameter uncertainties:
  1  9.01597
  2  9.91917
  3  10.907
  4  30.8941
  5  17.7755
  6  9.54588e-05
  7  2.20255e-06
  8  2.47304e-06
  9  5.95047e-06
  10  6.49261e-06
  11  0.000122188
  12  4.89144e-06
  13  1.8551e-05
  14  0.000133701
  15  0.000413304
  16  8.29825
  17  3.32197
  18  3.808e-05
  19  0.00210897
  20  726.227
  21  7243.36
  22  8.69621e-05
  23  2.66409e-07
  24  3.12306e-06
  25  2.53152e-06
  26  3.24245e-05
  27  3.80487e-06
  28  0.190101
Done.

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

Extracting fit parameters...

4FGL J0800.9+4401
   Spectrum: PowerLaw
278    Prefactor:  1.000e-04  1.855e-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:  1.033e+00  1.901e-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  3.805e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 120.246 44.018
Photon Flux Upper Limit: 2.51e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.91e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/47677/likelihoodResults_616464001_616723201_4FGL_J0800.9+4401_daily_bin1455.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) = 1156.42592248
delta logL = -0.000361061583817

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1156.4255637
delta logL = -2.29017564379e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10737E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1422       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0327       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=   1156.426     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      244 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10253E-03    156.41        .12452E-02** at limit **
   2  Index         2.0720        8.9496        .50000        .16273E-04
   3  Normalizat    .10000E-01    .36128E-02    .77754E-02** at limit **
   4  Prefactor     1.0330        .22546E-01    .16674E-03   -.24598E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102531
  Index      = 2.07203
  Normalizat = 0.01
  Prefactor  = 1.03298
 **********
 **   18 **HESSE 
 **********

 FCN=   1156.426     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10253E-03    604.13        .24904E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0720        5.0081        .50000       -.62561    
   3  Normalizat    .10000E-01    .15133E-01    .15551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0330        .46143E-01    .33347E-04   -.91638    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.23151e-08
Minuit parameter uncertainties:
  1  0.0790115
  2  687.595
  3  6.03033e-07
  4  0.0461452
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/47677': 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) = 1156.42556106
delta logL = 3.55908923666e-07

Extracting fit parameters...

4FGL J0800.9+4401
   Spectrum: PowerLaw
278    Prefactor:  1.025e-04  7.901e-02  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  2.072e+00  6.876e+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:  1.033e+00  4.615e-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.000e-02  6.030e-07  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/47677/cmap_HighResolution_616464001_616723201_4FGL_J0800.9+4401_daily_bin1455.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.91e-02', job_status='DONE', photon_flux_upper_limit='2.51e-07', time_completed='2021-08-28 21:45:14.169050', job_id='47677', GAL2='1.03', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630212314.17', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='3.56e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1455' AND source_name='4FGL J0800.9+4401' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 21:45:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 47677: <4FGL_J0800.9+4401_daily_bin1455> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0800.9+4401_daily_bin1455 120.246 44.0181 616464001 616723201 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 :                                   438.28 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             261.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   589 sec.
    Turnaround time :                            590 sec.

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

