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


Performing analysis on: 4FGL_J1300.4+1416_daily_bin466
RA = 195.12, Dec = 14.2701
tmin = 360115201, tmax = 360374401
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='94239', job_status='RUN', time_executed='2021-09-06 14:34:16.610009', time_epoch_executed='1630964056.61' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='466'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/94239

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/94239/ft1_4FGL_J1300.4+1416_daily_bin466.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/94239/ft2_4FGL_J1300.4+1416_daily_bin466.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/94239/ft1_4FGL_J1300.4+1416_daily_bin466.fits outfile=/scratch/kocevski/94239/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin466.fits ra=195.12 dec=14.2701 rad=12.0 tmin=360115201.0 tmax=360374401.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.51
user 3.24
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/94239/ft2_4FGL_J1300.4+1416_daily_bin466.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/94239/ft2_4FGL_J1300.4+1416_daily_bin466.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/94239/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin466.fits evtable="EVENTS" outfile="/scratch/kocevski/94239/ft1_filtered_4FGL_J1300.4+1416_daily_bin466.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.48
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/94239/ft1_filtered_4FGL_J1300.4+1416_daily_bin466.fits" evtable="EVENTS" scfile=/scratch/kocevski/94239/ft2_4FGL_J1300.4+1416_daily_bin466.fits sctable="SC_DATA" outfile=/scratch/kocevski/94239/ltcube_360115201_360374401_4FGL_J1300.4+1416_daily_bin466.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/94239/ft2_4FGL_J1300.4+1416_daily_bin466.fits
.....................!
real 11.86
user 11.53
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/94239/ft1_filtered_4FGL_J1300.4+1416_daily_bin466.fits evtable="EVENTS" scfile=/scratch/kocevski/94239/ft2_4FGL_J1300.4+1416_daily_bin466.fits sctable="SC_DATA" expcube=/scratch/kocevski/94239/ltcube_360115201_360374401_4FGL_J1300.4+1416_daily_bin466.fits outfile=/scratch/kocevski/94239/expmap_360115201_360374401_4FGL_J1300.4+1416_daily_bin466.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/94239/ltcube_360115201_360374401_4FGL_J1300.4+1416_daily_bin466.fits
.....................!
real 190.85
user 185.64
sys 4.87

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 177 point sources and 0 extended sources

Setting source of interest to:
4FGL J1300.4+1416 @ 195.12 14.2701

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/94239/ft1_filtered_4FGL_J1300.4+1416_daily_bin466.fits scfile=/scratch/kocevski/94239/ft2_4FGL_J1300.4+1416_daily_bin466.fits outfile=/scratch/kocevski/94239/cmap_360115201_360374401_4FGL_J1300.4+1416_daily_bin466.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=195.12 yref=14.2701 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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/94239/ft1_filtered_4FGL_J1300.4+1416_daily_bin466.fits scfile=/scratch/kocevski/94239/ft2_4FGL_J1300.4+1416_daily_bin466.fits outfile=/scratch/kocevski/94239/cmap_HighResolution_360115201_360374401_4FGL_J1300.4+1416_daily_bin466.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=195.12 yref=14.2701 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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/94239/ft1_filtered_4FGL_J1300.4+1416_daily_bin466.fits evtable="EVENTS" scfile=/scratch/kocevski/94239/ft2_4FGL_J1300.4+1416_daily_bin466.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/94239/Model_4FGL_J1300.4+1416_daily_bin466.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/94239/ft1_filtered_4FGL_J1300.4+1416_daily_bin466.fits.....................!
real 49.04
user 47.61
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/94239/ft1_filtered_4FGL_J1300.4+1416_daily_bin466.fits', '/scratch/kocevski/94239/ft2_4FGL_J1300.4+1416_daily_bin466.fits', expMap='/scratch/kocevski/94239/expmap_360115201_360374401_4FGL_J1300.4+1416_daily_bin466.fits', expCube='/scratch/kocevski/94239/ltcube_360115201_360374401_4FGL_J1300.4+1416_daily_bin466.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/94239/Model_4FGL_J1300.4+1416_daily_bin466.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1300.4+1416'

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  6.920e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  2.738e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  4.431e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/94239/ft1_filtered_4FGL_J1300.4+1416_daily_bin466.fits
Spacecraft file(s): /scratch/kocevski/94239/ft2_4FGL_J1300.4+1416_daily_bin466.fits
Exposure map: /scratch/kocevski/94239/expmap_360115201_360374401_4FGL_J1300.4+1416_daily_bin466.fits
Exposure cube: /scratch/kocevski/94239/ltcube_360115201_360374401_4FGL_J1300.4+1416_daily_bin466.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/94239/Model_4FGL_J1300.4+1416_daily_bin466.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) = 5682.55934801

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.2941       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.2393       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.890       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.362       1.0000         .10000E-03   10000.    
    12 'norm      '    .46921E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    20.680       1.0000         .10000E-03   10000.    
    14 'norm      '    .10037       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10452E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13375E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1922       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .91031       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5682.401     FROM MIGRAD    STATUS=CONVERGED    427 CALLS     1790 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.1017       -.29823E-07** at limit **
   2  Prefactor     .10000E-03    26.283        .12981E-04** at limit **
   3  norm          1.2943        .32548       -.21283E-07    .17413E-03
   4  Prefactor     .10000E-03    74.517       -.11317E-04** at limit **
   5  Prefactor     5.2491        8.0844       -.27057E-05   -.78238E-04
   6  Prefactor     .10000E-03    11.283       -.25415E-06** at limit **
   7  norm          .10000E-03    .79950       -.23822E-06** at limit **
   8  Prefactor     .10000E-03    35.619       -.21617E-04** at limit **
   9  Prefactor     .10000E-03    2.3262       -.15920E-07** at limit **
  10  Prefactor     18.911        14.553       -.23662E-05    .16567E-03
  11  Prefactor     14.358        15.252       -.14896E-05    .11515E-04
  12  norm          .10004E-03    2.0675        .17302E-05** at limit **
  13  norm          20.601        18.525       -.17069E-04   -.18238E-03
  14  norm          .20077        6.5638        .14131E-05    .29292E-03
  15  Prefactor     .10000E-03    4.7383       -.19578E-06** at limit **
  16  Prefactor     .10000E-03    36.911       -.17205E-04** at limit **
  17  norm          .10000E-03    4.7856        .27297E-06** at limit **
  18  Prefactor     .10000E-03    58.387        .33377E-04** at limit **
  19  Normalizat    1.1913        .19669        .24314E-05   -.33971E-03
  20  Prefactor     .91078        .16775        .60938E-07   -.91698E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.29433
  Prefactor  = 0.0001
  Prefactor  = 5.24907
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.911
  Prefactor  = 14.3576
  norm       = 0.000100041
  norm       = 20.6013
  norm       = 0.200768
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.19126
  Prefactor  = 0.910777
 **********
 **   18 **HESSE 
 **********

 FCN=   5682.401     FROM HESSE     STATUS=OK           289 CALLS     2079 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.1184        .77257E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    26.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.2943        .32590        .20852E-04   -1.5480    
   4  Prefactor     .10000E-03    74.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.2491        8.0799        .17561E-03   -1.5250    
   6  Prefactor     .10000E-03    11.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    5.9732        .13025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    35.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.3328        .11227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.911        14.553        .92152E-04   -1.4838    
  11  Prefactor     14.358        15.271        .10569E-03   -1.4950    
  12  norm          .10004E-03    8.2017        .20959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          20.601        18.865        .44038E-03   -1.4800    
  14  norm          .20077        54.124        .35162E-02   -1.5618    
  15  Prefactor     .10000E-03    4.7505        .16024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    37.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.8004        .16068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    58.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1913        .23581        .24293E-03   -.86873    
  20  Prefactor     .91078        .20038        .24565E-03   -.95766    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.05764e-09
Minuit parameter uncertainties:
  1  2.02987e-06
  2  6.28368e-05
  3  0.325899
  4  1.29838e-05
  5  8.08157
  6  2.30239e-05
  7  0.00016646
  8  0.000142667
  9  1.68111e-06
  10  14.5554
  11  15.2748
  12  0.00116594
  13  18.8704
  14  6.59723
  15  7.02063e-06
  16  4.03793e-06
  17  1.13676e-05
  18  0.000193425
  19  0.236019
  20  0.200539
Done.

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

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.436e+01  1.527e+01  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  2.738e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  4.431e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  9.108e-01  2.005e-01  0.000e+00  1.000e+01 ( 1.000e+00)
569        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
570        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
567   Normalization:  1.191e+00  2.360e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.20
Ra Dec: 195.120 14.270
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 4.87e-08 +/- 5.17e-08
Energy Flux (Fixed Index): 1.14e-05 +/- 1.21e-05

TS (Fixed Index): 1.20
Ra Dec: 195.120 14.270
Photon Flux Upper Limit: 1.51e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.19e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/94239/likelihoodResults_360115201_360374401_4FGL_J1300.4+1416_daily_bin466.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): 0
logL (Free Index) = 5681.64981301
delta logL = 0.751360261665

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5681.4966457
delta logL = 0.904527574623

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .87229E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    8.9988       1.0000          .0000       10.000    
     3 'Normalizat'    1.1372       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95906       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5681.497     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      379 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .85685E-02    .12726        .91626E-03    .47955E-02
   2  Index         9.0129        9.0740        .28113        .41984E-04
   3  Normalizat    1.1375        .59543E-01    .55989E-01    .38296E-05
   4  Prefactor     .95874        .53776E-01    .45753E-01    .63133E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00856854
  Index      = 9.01293
  Normalizat = 1.13754
  Prefactor  = 0.958743
 **********
 **   18 **HESSE 
 **********

 FCN=   5681.497     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      412 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .85685E-02    .23805        .49422E-05   -1.5690    
   2  Index         9.0129        9.5064        .13199E-01    .93162    
   3  Normalizat    1.1375        .19257        .24758E-03   -.88556    
   4  Prefactor     .95874        .17132        .24036E-03   -.94118    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.06732e-07
Minuit parameter uncertainties:
  1  0.0897996
  2  7.45297
  3  0.192691
  4  0.171415
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/94239': 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) = 5681.49663722
delta logL = 0.904536051239

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  8.569e-03  8.980e-02  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  9.013e+00  7.453e+00  0.000e+00  1.000e+01 (-1.000e+00)
299        Scale:  4.431e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  9.587e-01  1.714e-01  0.000e+00  1.000e+01 ( 1.000e+00)
569        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
570        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
567   Normalization:  1.138e+00  1.927e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.14
Ra Dec: 195.120 14.270
Photon Index (Free Index): 9.01 +/- 7.45
Photon Flux (Free Index): 7.36e-08 +/- 5.48e-08
Energy Flux (Free Index): 8.36e-06 +/- 6.75e-06

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/94239/cmap_HighResolution_360115201_360374401_4FGL_J1300.4+1416_daily_bin466.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-02', comment='SUCCESS', photon_flux='4.87e-08', energy_flux2='8.36e-06', photon_flux_error='5.17e-08', dlogl='9.05e-01', energy_flux='1.14e-05', photon_flux2='7.36e-08', job_status='DONE', time_completed='2021-09-06 14:43:47.772722', photon_index_error2='7.45', photon_index2='9.01', ts='1.20', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.51e-07', energy_flux_error2='6.75e-06', EG='1.19', time_epoch_completed='1630964627.77', return_code='0', job_id='94239', GAL2='0.96', EG2='1.14', return_code2='102', energy_flux_error='1.21e-05', photon_flux_error2='5.48e-08', ts2='3.14', photon_index='2.74' WHERE bin_id='466' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:43:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 94239: <4FGL_J1300.4+1416_daily_bin466> in cluster <slac> Done

Job <4FGL_J1300.4+1416_daily_bin466> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 14:30:43 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:30:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 14:30:44 2021
Terminated at Mon Sep  6 14:43:48 2021
Results reported at Mon Sep  6 14:43:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin466 195.12 14.2701 360115201 360374401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1300.4+1416 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   566.53 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            785 sec.

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

