/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 212 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 = 7558
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1300.4+1416_daily_bin320
RA = 195.12, Dec = 14.2701
tmin = 322272001, tmax = 322531201
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='93001', job_status='RUN', time_executed='2021-09-06 14:29:56.023348', time_epoch_executed='1630963796.02' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='320'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/93001

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/93001/ft1_4FGL_J1300.4+1416_daily_bin320.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/93001/ft2_4FGL_J1300.4+1416_daily_bin320.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/93001/ft1_4FGL_J1300.4+1416_daily_bin320.fits outfile=/scratch/kocevski/93001/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin320.fits ra=195.12 dec=14.2701 rad=12.0 tmin=322272001.0 tmax=322531201.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.40
user 3.17
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/93001/ft2_4FGL_J1300.4+1416_daily_bin320.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/93001/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin320.fits evtable="EVENTS" outfile="/scratch/kocevski/93001/ft1_filtered_4FGL_J1300.4+1416_daily_bin320.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/93001/ft1_filtered_4FGL_J1300.4+1416_daily_bin320.fits" evtable="EVENTS" scfile=/scratch/kocevski/93001/ft2_4FGL_J1300.4+1416_daily_bin320.fits sctable="SC_DATA" outfile=/scratch/kocevski/93001/ltcube_322272001_322531201_4FGL_J1300.4+1416_daily_bin320.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/93001/ft2_4FGL_J1300.4+1416_daily_bin320.fits
.....................!
real 11.81
user 11.43
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/93001/ft1_filtered_4FGL_J1300.4+1416_daily_bin320.fits evtable="EVENTS" scfile=/scratch/kocevski/93001/ft2_4FGL_J1300.4+1416_daily_bin320.fits sctable="SC_DATA" expcube=/scratch/kocevski/93001/ltcube_322272001_322531201_4FGL_J1300.4+1416_daily_bin320.fits outfile=/scratch/kocevski/93001/expmap_322272001_322531201_4FGL_J1300.4+1416_daily_bin320.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/93001/ltcube_322272001_322531201_4FGL_J1300.4+1416_daily_bin320.fits
.....................!
real 191.59
user 186.20
sys 5.03

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/93001/ft1_filtered_4FGL_J1300.4+1416_daily_bin320.fits scfile=/scratch/kocevski/93001/ft2_4FGL_J1300.4+1416_daily_bin320.fits outfile=/scratch/kocevski/93001/cmap_322272001_322531201_4FGL_J1300.4+1416_daily_bin320.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/93001/ft1_filtered_4FGL_J1300.4+1416_daily_bin320.fits scfile=/scratch/kocevski/93001/ft2_4FGL_J1300.4+1416_daily_bin320.fits outfile=/scratch/kocevski/93001/cmap_HighResolution_322272001_322531201_4FGL_J1300.4+1416_daily_bin320.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.54
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/93001/ft1_filtered_4FGL_J1300.4+1416_daily_bin320.fits', '/scratch/kocevski/93001/ft2_4FGL_J1300.4+1416_daily_bin320.fits', expMap='/scratch/kocevski/93001/expmap_322272001_322531201_4FGL_J1300.4+1416_daily_bin320.fits', expCube='/scratch/kocevski/93001/ltcube_322272001_322531201_4FGL_J1300.4+1416_daily_bin320.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/93001/Model_4FGL_J1300.4+1416_daily_bin320.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/93001/ft1_filtered_4FGL_J1300.4+1416_daily_bin320.fits
Spacecraft file(s): /scratch/kocevski/93001/ft2_4FGL_J1300.4+1416_daily_bin320.fits
Exposure map: /scratch/kocevski/93001/expmap_322272001_322531201_4FGL_J1300.4+1416_daily_bin320.fits
Exposure cube: /scratch/kocevski/93001/ltcube_322272001_322531201_4FGL_J1300.4+1416_daily_bin320.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/93001/Model_4FGL_J1300.4+1416_daily_bin320.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) = 5873.36848822

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.652       1.0000         .10000E-03   10000.    
     3 'norm      '    1.4098       1.0000         .10000E-03   10000.    
     4 'Prefactor '    199.95       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.2066       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    9.8572       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.3394       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .63098E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.215       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    8.3070       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.6157       1.0000         .10000E-03   10000.    
    17 'norm      '    14.318       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2416       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .83785       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=   5873.367     FROM MIGRAD    STATUS=CONVERGED    414 CALLS     2011 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.3505        .36030E-06** at limit **
   2  Prefactor     19.654        30.297       -.68870E-06   -.14632E-04
   3  norm          1.4098        .35145        .17744E-07   -.51231E-03
   4  Prefactor     199.91        219.43        .10096E-04    .21092E-04
   5  Prefactor     5.2039        9.0667        .64733E-07    .31074E-03
   6  Prefactor     .10000E-03    38.643       -.24195E-06** at limit **
   7  norm          9.8574        2.6988       -.34587E-07   -.16790E-03
   8  Prefactor     .10000E-03    18.312       -.12952E-05** at limit **
   9  Prefactor     4.3394        4.2256       -.55837E-07   -.29615E-03
  10  Prefactor     .10000E-03    29.028       -.22142E-04** at limit **
  11  Prefactor     20.218        15.853       -.17958E-05   -.61266E-03
  12  norm          .10000E-03    .88436        .50934E-07** at limit **
  13  norm          .10000E-03    6.4829        .78578E-07** at limit **
  14  norm          8.3069        7.8016        .31381E-06    .25691E-03
  15  Prefactor     .10000E-03    10.027        .34341E-06** at limit **
  16  Prefactor     7.6167        32.733        .96364E-06    .15641E-04
  17  norm          14.318        9.4776       -.13880E-07    .18100E-04
  18  Prefactor     .10000E-03    84.958        .29836E-05** at limit **
  19  Normalizat    1.2417        .19974       -.12521E-05   -.53296E-03
  20  Prefactor     .83770        .17317       -.66394E-06   -.53559E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 19.6536
  norm       = 1.40983
  Prefactor  = 199.909
  Prefactor  = 5.20395
  Prefactor  = 0.000100005
  norm       = 9.85738
  Prefactor  = 0.0001
  Prefactor  = 4.3394
  Prefactor  = 0.000100005
  Prefactor  = 20.2178
  norm       = 0.0001
  norm       = 0.0001
  norm       = 8.30685
  Prefactor  = 0.0001
  Prefactor  = 7.61672
  norm       = 14.3184
  Prefactor  = 0.0001
  Normalizat = 1.24172
  Prefactor  = 0.837699
 **********
 **   18 **HESSE 
 **********

 FCN=   5873.367     FROM HESSE     STATUS=OK           287 CALLS     2298 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.4916        .27397E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.654        30.286        .90349E-04   -1.4821    
   3  norm          1.4098        .35212        .21852E-04   -1.5470    
   4  Prefactor     199.91        219.54        .14288E-03   -1.2871    
   5  Prefactor     5.2039        9.0314        .17617E-03   -1.5252    
   6  Prefactor     .10000E-03    38.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          9.8574        2.6993        .63384E-04   -1.5080    
   8  Prefactor     .10000E-03    18.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.3394        4.2311        .15124E-03   -1.5291    
  10  Prefactor     .10000E-03    28.648        .36119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     20.218        15.517        .89084E-04   -1.4808    
  12  norm          .10000E-03    .88598        .70384E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.4877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          8.3069        7.8076        .13909E-03   -1.5131    
  15  Prefactor     .10000E-03    10.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.6167        32.802        .14532E-03   -1.5156    
  17  norm          14.318        9.4760        .10585E-03   -1.4951    
  18  Prefactor     .10000E-03    85.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2417        .23459        .25198E-03   -.85323    
  20  Prefactor     .83770        .20316        .26583E-03   -.98353    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40771e-09
Minuit parameter uncertainties:
  1  5.6219e-05
  2  30.3099
  3  0.352123
  4  220.451
  5  9.0338
  6  0.000848872
  7  2.69938
  8  1.04575e-05
  9  4.23141
  10  0.000732919
  11  15.5204
  12  3.35884e-06
  13  1.48033e-05
  14  7.80859
  15  8.49839e-05
  16  31.6421
  17  9.47694
  18  0.000405094
  19  0.234785
  20  0.203342
Done.

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

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  2.022e+01  1.552e+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:  8.377e-01  2.033e-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.242e+00  2.348e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.25
Ra Dec: 195.120 14.270
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 6.86e-08 +/- 5.26e-08
Energy Flux (Fixed Index): 1.60e-05 +/- 1.23e-05

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

Saving results to:
/scratch/kocevski/93001/likelihoodResults_322272001_322531201_4FGL_J1300.4+1416_daily_bin320.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) = 5873.31040428
delta logL = 0.0568914362975

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5873.30713909
delta logL = 0.0601566208461

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5873.307     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      303 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.074        19.741        .40853E-03   -.20064E-04
   2  Index         2.4520        .73958        .88103E-02   -.66597E-05
   3  Normalizat    1.2568        .23074        .25065E-03    .88446E-05
   4  Prefactor     .82424        .20359        .26769E-03    .34400E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.0744
  Index      = 2.45198
  Normalizat = 1.25685
  Prefactor  = 0.824238
 **********
 **   18 **HESSE 
 **********

 FCN=   5873.307     FROM HESSE     STATUS=OK            25 CALLS      328 TOTAL
                     EDM=   .21E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.074        19.373        .16341E-04   -1.4726    
   2  Index         2.4520        .72563        .35241E-03   -.53472    
   3  Normalizat    1.2568        .23087        .10026E-04   -.84864    
   4  Prefactor     .82424        .20357        .10708E-04   -.98841    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07162e-12
Minuit parameter uncertainties:
  1  19.3778
  2  0.729114
  3  0.231056
  4  0.203756
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/93001': 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) = 5873.30712746
delta logL = 0.060168250885

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  2.407e+01  1.938e+01  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  2.452e+00  7.291e-01  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:  8.242e-01  2.038e-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.257e+00  2.311e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.32
Ra Dec: 195.120 14.270
Photon Index (Free Index): 2.45 +/- 0.73
Photon Flux (Free Index): 6.38e-08 +/- 5.15e-08
Energy Flux (Free Index): 1.96e-05 +/- 1.86e-05

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/93001/cmap_HighResolution_322272001_322531201_4FGL_J1300.4+1416_daily_bin320.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.36e-02', comment='SUCCESS', photon_flux='6.86e-08', energy_flux2='1.96e-05', photon_flux_error='5.26e-08', dlogl='6.02e-02', energy_flux='1.60e-05', photon_flux2='6.38e-08', job_status='DONE', time_completed='2021-09-06 14:39:42.518912', photon_index_error2='0.73', photon_index2='2.45', ts='2.25', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='1.72e-07', energy_flux_error2='1.86e-05', EG='1.24', time_epoch_completed='1630964382.52', return_code='0', job_id='93001', GAL2='0.82', EG2='1.26', return_code2='0', energy_flux_error='1.23e-05', photon_flux_error2='5.15e-08', ts2='2.32', photon_index='2.74' WHERE bin_id='320' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:39:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0130>
Subject: Job 93001: <4FGL_J1300.4+1416_daily_bin320> in cluster <slac> Done

Job <4FGL_J1300.4+1416_daily_bin320> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 14:26:05 2021
Job was executed on host(s) <bullet0130>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:26:07 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:26:07 2021
Terminated at Mon Sep  6 14:39:43 2021
Results reported at Mon Sep  6 14:39:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin320 195.12 14.2701 322272001 322531201 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 :                                   579.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             226.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            818 sec.

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

