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


Performing analysis on: 4FGL_J0800.9+4401_daily_bin1456
RA = 120.246, Dec = 44.0181
tmin = 616723201, tmax = 616982401
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='47678', job_status='RUN', time_executed='2021-08-28 21:37:56.887656', time_epoch_executed='1630211876.89' WHERE source_name='4FGL J0800.9+4401' and cadence='daily' and bin_id='1456'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/47678

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/47678/ft1_4FGL_J0800.9+4401_daily_bin1456.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/47678/ft2_4FGL_J0800.9+4401_daily_bin1456.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/47678/ft1_4FGL_J0800.9+4401_daily_bin1456.fits outfile=/scratch/kocevski/47678/ft1_filteredMKT_4FGL_J0800.9+4401_daily_bin1456.fits ra=120.246 dec=44.0181 rad=12.0 tmin=616723201.0 tmax=616982401.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 11.77
user 2.83
sys 8.88

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/47678/ft2_4FGL_J0800.9+4401_daily_bin1456.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/47678/ft1_filteredMKT_4FGL_J0800.9+4401_daily_bin1456.fits evtable="EVENTS" outfile="/scratch/kocevski/47678/ft1_filtered_4FGL_J0800.9+4401_daily_bin1456.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 9.21
user 0.36
sys 8.77

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/47678/ft1_filtered_4FGL_J0800.9+4401_daily_bin1456.fits" evtable="EVENTS" scfile=/scratch/kocevski/47678/ft2_4FGL_J0800.9+4401_daily_bin1456.fits sctable="SC_DATA" outfile=/scratch/kocevski/47678/ltcube_616723201_616982401_4FGL_J0800.9+4401_daily_bin1456.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/47678/ft2_4FGL_J0800.9+4401_daily_bin1456.fits
.....................!
real 25.55
user 15.26
sys 10.13

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/47678/ft1_filtered_4FGL_J0800.9+4401_daily_bin1456.fits evtable="EVENTS" scfile=/scratch/kocevski/47678/ft2_4FGL_J0800.9+4401_daily_bin1456.fits sctable="SC_DATA" expcube=/scratch/kocevski/47678/ltcube_616723201_616982401_4FGL_J0800.9+4401_daily_bin1456.fits outfile=/scratch/kocevski/47678/expmap_616723201_616982401_4FGL_J0800.9+4401_daily_bin1456.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/47678/ltcube_616723201_616982401_4FGL_J0800.9+4401_daily_bin1456.fits
.....................!
real 203.40
user 186.06
sys 16.41

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/47678/ft1_filtered_4FGL_J0800.9+4401_daily_bin1456.fits scfile=/scratch/kocevski/47678/ft2_4FGL_J0800.9+4401_daily_bin1456.fits outfile=/scratch/kocevski/47678/cmap_616723201_616982401_4FGL_J0800.9+4401_daily_bin1456.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 9.13
user 0.37
sys 8.45

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/47678/ft1_filtered_4FGL_J0800.9+4401_daily_bin1456.fits scfile=/scratch/kocevski/47678/ft2_4FGL_J0800.9+4401_daily_bin1456.fits outfile=/scratch/kocevski/47678/cmap_HighResolution_616723201_616982401_4FGL_J0800.9+4401_daily_bin1456.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 9.13
user 0.36
sys 8.46

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .17052E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4787       1.0000         .10000E-03   10000.    
     4 'Prefactor '    40.028       1.0000         .10000E-03   10000.    
     5 'norm      '    16.363       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.449       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14101E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .21663       1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.025       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10101E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.0062       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .92026E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    23.968       1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10715E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .22899E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    463.66       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10627E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10171E-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.2435       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=   1713.266     FROM MIGRAD    STATUS=CONVERGED    709 CALLS     4162 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.7060       -.28820E-07** at limit **
   2  norm          .10000E-03    8.0178       -.12167E-05** at limit **
   3  Prefactor     1.4719        10.175        .87624E-06    .30540E-04
   4  Prefactor     40.036        28.679        .69824E-06   -.25628E-04
   5  norm          16.376        14.659        .86877E-07   -.14217E-03
   6  Prefactor     14.469        31.789        .24418E-06   -.65143E-04
   7  Prefactor     .10000E-03    116.51       -.39627E-06** at limit **
   8  norm          .21696        .99801       -.11821E-06   -.18243E-03
   9  Prefactor     17.990        21.864        .16472E-06   -.54987E-04
  10  Prefactor     .10000E-03    15.384        .17364E-06** at limit **
  11  norm          .10000E-03    53.973        .63877E-07** at limit **
  12  norm          1.0138        6.6207       -.25933E-06   -.83322E-04
  13  Prefactor     .10000E-03    112.80       -.17399E-04** at limit **
  14  Prefactor     .10000E-03    48.384        .26553E-06** at limit **
  15  Prefactor     .10000E-03    9.2523        .82491E-06** at limit **
  16  norm          23.968        9.7002        .36786E-07   -.10170E-03
  17  norm          .10000E-03    1.3217       -.92716E-08** at limit **
  18  norm          .10000E-03    1.2759        .47287E-06** at limit **
  19  Prefactor     .10000E-03    161.35        .33757E-05** at limit **
  20  Prefactor     .10000E-03    271.72        .13011E-04** at limit **
  21  Prefactor     458.29        5843.7       -.87950E-05   -.20622E-05
  22  Prefactor     .10000E-03    141.22        .44682E-06** at limit **
  23  Prefactor     .10000E-03    14.438       -.31332E-07** at limit **
  24  norm          .10000E-03    41.223        .64951E-07** at limit **
  25  norm          .10000E-03    44.550       -.12888E-06** at limit **
  26  Prefactor    10000.0        238.38       -.31078E-06** at limit **
  27  Normalizat    .10000E-01    .14286       -.72419E-05** at limit **
  28  Prefactor     1.2432        .16609       -.73691E-06   -.28065E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.47187
  Prefactor  = 40.0356
  norm       = 16.3756
  Prefactor  = 14.4688
  Prefactor  = 0.0001
  norm       = 0.216962
  Prefactor  = 17.9905
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.01385
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 23.9678
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 458.291
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10000
  Normalizat = 0.01
  Prefactor  = 1.24316
 **********
 **   18 **HESSE 
 **********

 FCN=   1713.266     FROM HESSE     STATUS=OK           511 CALLS     4673 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.7067        .52804E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    14.966        .21638E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.4719        9.3593        .22948E-03   -1.5465    
   4  Prefactor     40.036        28.689        .63355E-04   -1.4442    
   5  norm          16.376        14.555        .99012E-04   -1.4898    
   6  Prefactor     14.469        31.833        .10537E-03   -1.4947    
   7  Prefactor     .10000E-03    117.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .21696        1.0234        .77978E-04   -1.5615    
   9  Prefactor     17.990        21.364        .94337E-04   -1.4859    
  10  Prefactor     .10000E-03    15.392        .15860E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    54.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.0138        6.3444        .18407E-03   -1.5507    
  13  Prefactor     .10000E-03    121.16        .40125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    48.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.2574        .12297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          23.968        9.6970        .79718E-04   -1.4728    
  17  norm          .10000E-03    1.3258        .46465E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.2766        .45657E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    161.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    271.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     458.29        5855.8        .95113E-04   -1.1393    
  22  Prefactor     .10000E-03    141.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    14.441        .15365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    41.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    44.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor    10000.0        238.35        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .10000E-01    .20505        .91911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     1.2432        .17191        .17417E-03   -.85013    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.2442e-10
Minuit parameter uncertainties:
  1  1.17037e-06
  2  0.000146735
  3  7.42456
  4  28.6992
  5  14.5582
  6  31.8705
  7  0.000161604
  8  0.942222
  9  21.3727
  10  5.29008e-06
  11  6.52473e-05
  12  5.0729
  13  0.00120961
  14  5.22723e-05
  15  6.38761e-06
  16  9.69761
  17  3.6155e-07
  18  1.60157e-06
  19  0.000287903
  20  0.000877048
  21  2928.89
  22  0.00020209
  23  3.39874e-06
  24  5.16786e-05
  25  5.87879e-05
  26  0.000107313
  27  6.93564e-06
  28  0.171984
Done.

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

Extracting fit parameters...

4FGL J0800.9+4401
   Spectrum: PowerLaw
278    Prefactor:  1.000e-04  1.210e-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:  1.243e+00  1.720e-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  6.936e-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.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.60e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/47678/likelihoodResults_616723201_616982401_4FGL_J0800.9+4401_daily_bin1456.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) = 1713.26623885
delta logL = -4.78349843434e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1713.26622882
delta logL = -3.78038150757e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .95938E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1712       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2431       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=   1713.196     FROM MIGRAD    STATUS=CONVERGED    276 CALLS      435 TOTAL
                     EDM=   .69E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.2211        27.820        .36301E-03    .29861E-05
   2  Index         1.5275        1.0502        .97696E-02    .49168E-05
   3  Normalizat    .10000E-01    .20934        .92097E-02** at limit **
   4  Prefactor     1.2361        .14305        .17459E-03    .16425E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.22107
  Index      = 1.52746
  Normalizat = 0.01
  Prefactor  = 1.23607
 **********
 **   18 **HESSE 
 **********

 FCN=   1713.196     FROM HESSE     STATUS=OK            27 CALLS      462 TOTAL
                     EDM=   .66E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.2211        27.755        .72603E-04   -1.5101    
   2  Index         1.5275        1.0481        .39079E-03   -.76774    
   3  Normalizat    .10000E-01    .20937        .18419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2361        .14302        .69837E-05   -.85228    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.62097e-12
Minuit parameter uncertainties:
  1  27.7939
  2  1.0635
  3  8.84537e-07
  4  0.143065
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/47678': 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) = 1713.19585513
delta logL = 0.0703358856126

Extracting fit parameters...

4FGL J0800.9+4401
   Spectrum: PowerLaw
278    Prefactor:  9.221e+00  2.779e+01  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  1.527e+00  1.063e+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:  1.236e+00  1.431e-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  8.845e-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/47678/cmap_HighResolution_616723201_616982401_4FGL_J0800.9+4401_daily_bin1456.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.60e-02', job_status='DONE', photon_flux_upper_limit='2.10e-07', time_completed='2021-08-28 21:48:57.662850', job_id='47678', GAL2='1.24', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630212537.66', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='7.03e-02', ts2='0.14', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1456' AND source_name='4FGL J0800.9+4401' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 21:48:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 47678: <4FGL_J0800.9+4401_daily_bin1456> in cluster <slac> Done

Job <4FGL_J0800.9+4401_daily_bin1456> 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) <bullet0279>, 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:48:59 2021
Results reported at Sat Aug 28 21:48:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0800.9+4401_daily_bin1456 120.246 44.0181 616723201 616982401 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 :                                   762.48 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             235.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            815 sec.

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

