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


Performing analysis on: 4FGL_J0800.9+4401_daily_bin456
RA = 120.246, Dec = 44.0181
tmin = 357523201, tmax = 357782401
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='41315', job_status='RUN', time_executed='2021-08-28 21:15:58.150639', time_epoch_executed='1630210558.15' WHERE source_name='4FGL J0800.9+4401' and cadence='daily' and bin_id='456'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/41315

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/41315/ft1_4FGL_J0800.9+4401_daily_bin456.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/41315/ft2_4FGL_J0800.9+4401_daily_bin456.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/41315/ft1_4FGL_J0800.9+4401_daily_bin456.fits outfile=/scratch/kocevski/41315/ft1_filteredMKT_4FGL_J0800.9+4401_daily_bin456.fits ra=120.246 dec=44.0181 rad=12.0 tmin=357523201.0 tmax=357782401.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.80
user 3.33
sys 0.46

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/41315/ft1_filtered_4FGL_J0800.9+4401_daily_bin456.fits" evtable="EVENTS" scfile=/scratch/kocevski/41315/ft2_4FGL_J0800.9+4401_daily_bin456.fits sctable="SC_DATA" outfile=/scratch/kocevski/41315/ltcube_357523201_357782401_4FGL_J0800.9+4401_daily_bin456.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/41315/ft2_4FGL_J0800.9+4401_daily_bin456.fits
.....................!
real 12.28
user 11.66
sys 0.58

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/41315/ft1_filtered_4FGL_J0800.9+4401_daily_bin456.fits evtable="EVENTS" scfile=/scratch/kocevski/41315/ft2_4FGL_J0800.9+4401_daily_bin456.fits sctable="SC_DATA" expcube=/scratch/kocevski/41315/ltcube_357523201_357782401_4FGL_J0800.9+4401_daily_bin456.fits outfile=/scratch/kocevski/41315/expmap_357523201_357782401_4FGL_J0800.9+4401_daily_bin456.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/41315/ltcube_357523201_357782401_4FGL_J0800.9+4401_daily_bin456.fits
.....................!
real 190.48
user 185.15
sys 4.95

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/41315/ft1_filtered_4FGL_J0800.9+4401_daily_bin456.fits scfile=/scratch/kocevski/41315/ft2_4FGL_J0800.9+4401_daily_bin456.fits outfile=/scratch/kocevski/41315/cmap_357523201_357782401_4FGL_J0800.9+4401_daily_bin456.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.79
user 0.38
sys 0.40

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/41315/ft1_filtered_4FGL_J0800.9+4401_daily_bin456.fits scfile=/scratch/kocevski/41315/ft2_4FGL_J0800.9+4401_daily_bin456.fits outfile=/scratch/kocevski/41315/cmap_HighResolution_357523201_357782401_4FGL_J0800.9+4401_daily_bin456.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.80
user 0.38
sys 0.41

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .92151       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10820E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.5239       1.0000         .10000E-03   10000.    
     5 'norm      '    12.065       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .44970       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14741E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.590       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.536       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.7974       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .50173       1.0000         .10000E-03   10000.    
    18 'norm      '    .27745       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .20696E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.0750       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.0810       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.2217       1.0000         .10000E-03   10000.    
    24 'norm      '    4.9556       1.0000         .10000E-03   10000.    
    25 'norm      '    21.433       1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.8647       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .76280       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2538       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=   8070.674     FROM MIGRAD    STATUS=CONVERGED    691 CALLS     3074 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .92182        2.2418        .48302E-07    .14335E-05
   2  norm          .10000E-03    1.6236        .13632E-07** at limit **
   3  Prefactor     .10045E-03    2.2010       -.12964E-05** at limit **
   4  Prefactor     6.5250        11.036        .42017E-07    .81040E-04
   5  norm          12.066        7.0042        .13929E-06    .30060E-03
   6  Prefactor     .10000E-03    5.9924        .19137E-06** at limit **
   7  Prefactor     .10000E-03    21.126       -.37951E-05** at limit **
   8  norm          .44959        .78272       -.69149E-07   -.48399E-03
   9  Prefactor     .10005E-03    6.4019        .12195E-05** at limit **
  10  Prefactor     20.588        17.111       -.87442E-06   -.43540E-04
  11  norm          .10000E-03    9.1135        .67825E-06** at limit **
  12  norm          .10000E-03    1.9340       -.67583E-07** at limit **
  13  Prefactor     17.538        10.259        .53955E-07    .77356E-04
  14  Prefactor     .10000E-03    33.514       -.36625E-05** at limit **
  15  Prefactor     2.7980        3.5106       -.11009E-05   -.91880E-04
  16  norm          .10000E-03    1.8492        .48958E-07** at limit **
  17  norm          .50195        .97566        .27426E-07   -.36136E-04
  18  norm          .27759        .33700        .75162E-07    .14794E-02
  19  Prefactor     .10009E-03    9.3991       -.29224E-05** at limit **
  20  Prefactor     1.0813        3.3137        .17550E-05    .81290E-03
  21  Prefactor     .10000E-03    22.995        .10520E-04** at limit **
  22  Prefactor     3.0825        5.7576        .40715E-06   -.96570E-03
  23  Prefactor     4.2216        5.6007        .28398E-06    .13619E-04
  24  norm          4.9540        6.1990       -.14684E-06   -.10947E-02
  25  norm          21.431        9.1674       -.62726E-07   -.13116E-04
  26  Prefactor     4.8643        2.8593        .67519E-06    .40625E-03
  27  Normalizat    .76292        .18950       -.58161E-06    .27128E-03
  28  Prefactor     1.2538        .13282        .31395E-06    .37891E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.92182
  norm       = 0.0001
  Prefactor  = 0.000100453
  Prefactor  = 6.52498
  norm       = 12.066
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.44959
  Prefactor  = 0.000100055
  Prefactor  = 20.5876
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 17.5375
  Prefactor  = 0.0001
  Prefactor  = 2.79801
  norm       = 0.0001
  norm       = 0.501947
  norm       = 0.27759
  Prefactor  = 0.000100086
  Prefactor  = 1.08132
  Prefactor  = 0.000100002
  Prefactor  = 3.08253
  Prefactor  = 4.22159
  norm       = 4.95404
  norm       = 21.4309
  Prefactor  = 4.86433
  Normalizat = 0.762916
  Prefactor  = 1.25378
 **********
 **   18 **HESSE 
 **********

 FCN=   8070.674     FROM HESSE     STATUS=OK           537 CALLS     3611 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .92182        1.7251        .20466E-02   -1.5516    
   2  norm          .10000E-03    1.6358        .11171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10045E-03    23.458        .24375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.5250        11.008        .15712E-03   -1.5197    
   5  norm          12.066        6.9679        .11533E-03   -1.5013    
   6  Prefactor     .10000E-03    6.0367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    21.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .44959        .72135        .99854E-03   -1.5574    
   9  Prefactor     .10005E-03    39.019        .42707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     20.588        17.095        .88270E-04   -1.4800    
  11  norm          .10000E-03    9.2100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.9966        .24314E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     17.538        10.245        .95642E-04   -1.4870    
  14  Prefactor     .10000E-03    33.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.7980        3.4762        .17901E-03   -1.5373    
  16  norm          .10000E-03    1.8937        .23825E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .50195        .73438        .12015E-02   -1.5566    
  18  norm          .27759        .30864        .55171E-03   -1.5603    
  19  Prefactor     .10009E-03    43.022        .45439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.0813        3.0747        .24552E-03   -1.5500    
  21  Prefactor     .10000E-03    22.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.0825        8.3023        .11554E-02   -1.5357    
  23  Prefactor     4.2216        5.5916        .19612E-03   -1.5297    
  24  norm          4.9540        7.4530        .90332E-03   -1.5263    
  25  norm          21.431        9.2585        .86518E-04   -1.4782    
  26  Prefactor     4.8643        2.8622        .11205E-03   -1.5267    
  27  Normalizat    .76292        .21111        .33365E-03   -1.0146    
  28  Prefactor     1.2538        .14978        .19654E-03   -.84692    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.20485e-08
Minuit parameter uncertainties:
  1  1.72522
  2  4.39127e-06
  3  0.00652377
  4  11.0116
  5  6.96834
  6  5.31367e-06
  7  0.000164065
  8  0.721369
  9  0.00292907
  10  17.0986
  11  1.75359e-05
  12  5.04505e-06
  13  10.2464
  14  0.000174353
  15  3.47644
  16  2.19425e-07
  17  0.734396
  18  0.308646
  19  0.00384925
  20  3.07517
  21  0.000464547
  22  8.30541
  23  5.59225
  24  7.45439
  25  9.25908
  26  2.86231
  27  0.211339
  28  0.149835
Done.

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

Extracting fit parameters...

4FGL J0800.9+4401
   Spectrum: PowerLaw
278    Prefactor:  1.754e+01  1.025e+01  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.254e+00  1.498e-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:  7.629e-01  2.113e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.50
Ra Dec: 120.246 44.018
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 6.18e-08 +/- 3.61e-08
Energy Flux (Fixed Index): 2.92e-05 +/- 1.71e-05

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): 0
logL (Free Index) = 8070.6631017
delta logL = 0.0111346020076

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8070.64980277
delta logL = 0.0244335336683

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.320       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2912       1.0000          .0000       10.000    
     3 'Normalizat'    .75366       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2581       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=   8070.650     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      244 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.315        15.542        .10233E-03    .88446E-03
   2  Index         2.2916        .62489        .57661E-02    .24310E-03
   3  Normalizat    .75368        .20601        .33550E-03   -.79745E-03
   4  Prefactor     1.2581        .14965        .19625E-03   -.20922E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.3147
  Index      = 2.29156
  Normalizat = 0.753677
  Prefactor  = 1.25811
 **********
 **   18 **HESSE 
 **********

 FCN=   8070.650     FROM HESSE     STATUS=OK            25 CALLS      269 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.315        13.821        .40932E-05   -1.4925    
   2  Index         2.2916        .55530        .23064E-03   -.57244    
   3  Normalizat    .75368        .20499        .67099E-04   -1.0181    
   4  Prefactor     1.2581        .14924        .39250E-04   -.84561    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26891e-09
Minuit parameter uncertainties:
  1  13.8234
  2  0.556928
  3  0.205201
  4  0.149292
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/41315': 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) = 8070.64980258
delta logL = 0.02443372575

Extracting fit parameters...

4FGL J0800.9+4401
   Spectrum: PowerLaw
278    Prefactor:  1.531e+01  1.382e+01  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  2.292e+00  5.569e-01  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.258e+00  1.493e-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:  7.537e-01  2.052e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.55
Ra Dec: 120.246 44.018
Photon Index (Free Index): 2.29 +/- 0.56
Photon Flux (Free Index): 6.82e-08 +/- 4.74e-08
Energy Flux (Free Index): 2.62e-05 +/- 1.93e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/41315/cmap_HighResolution_357523201_357782401_4FGL_J0800.9+4401_daily_bin456.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.18e-08', energy_flux2='2.62e-05', photon_flux_error='3.61e-08', dlogl='2.44e-02', energy_flux='2.92e-05', photon_flux2='6.82e-08', job_status='DONE', time_completed='2021-08-28 21:30:15.711953', photon_index_error2='0.56', photon_index2='2.29', ts='5.50', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', energy_flux_error2='1.93e-05', EG='0.76', time_epoch_completed='1630211415.71', return_code='0', job_id='41315', GAL2='1.26', EG2='0.75', return_code2='0', energy_flux_error='1.71e-05', photon_flux_error2='4.74e-08', ts2='5.55', photon_index='2.17' WHERE bin_id='456' AND source_name='4FGL J0800.9+4401' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 21:30:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 41315: <4FGL_J0800.9+4401_daily_bin456> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0800.9+4401_daily_bin456 120.246 44.0181 357523201 357782401 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 :                                   857.13 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             315.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            882 sec.

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

