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


Performing analysis on: 4FGL_J1300.4+1416_daily_bin138
RA = 195.12, Dec = 14.2701
tmin = 275097601, tmax = 275356801
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='92777', job_status='RUN', time_executed='2021-09-06 14:27:43.719964', time_epoch_executed='1630963663.72' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='138'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/92777

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/92777/ft1_4FGL_J1300.4+1416_daily_bin138.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/92777/ft2_4FGL_J1300.4+1416_daily_bin138.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/92777/ft1_4FGL_J1300.4+1416_daily_bin138.fits outfile=/scratch/kocevski/92777/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin138.fits ra=195.12 dec=14.2701 rad=12.0 tmin=275097601.0 tmax=275356801.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 5.01
user 4.67
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/92777/ft1_filtered_4FGL_J1300.4+1416_daily_bin138.fits" evtable="EVENTS" scfile=/scratch/kocevski/92777/ft2_4FGL_J1300.4+1416_daily_bin138.fits sctable="SC_DATA" outfile=/scratch/kocevski/92777/ltcube_275097601_275356801_4FGL_J1300.4+1416_daily_bin138.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/92777/ft2_4FGL_J1300.4+1416_daily_bin138.fits
.....................!
real 11.65
user 11.23
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/92777/ft1_filtered_4FGL_J1300.4+1416_daily_bin138.fits evtable="EVENTS" scfile=/scratch/kocevski/92777/ft2_4FGL_J1300.4+1416_daily_bin138.fits sctable="SC_DATA" expcube=/scratch/kocevski/92777/ltcube_275097601_275356801_4FGL_J1300.4+1416_daily_bin138.fits outfile=/scratch/kocevski/92777/expmap_275097601_275356801_4FGL_J1300.4+1416_daily_bin138.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/92777/ltcube_275097601_275356801_4FGL_J1300.4+1416_daily_bin138.fits
.....................!
real 191.75
user 185.72
sys 4.79

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/92777/ft1_filtered_4FGL_J1300.4+1416_daily_bin138.fits scfile=/scratch/kocevski/92777/ft2_4FGL_J1300.4+1416_daily_bin138.fits outfile=/scratch/kocevski/92777/cmap_275097601_275356801_4FGL_J1300.4+1416_daily_bin138.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/92777/ft1_filtered_4FGL_J1300.4+1416_daily_bin138.fits scfile=/scratch/kocevski/92777/ft2_4FGL_J1300.4+1416_daily_bin138.fits outfile=/scratch/kocevski/92777/cmap_HighResolution_275097601_275356801_4FGL_J1300.4+1416_daily_bin138.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.56
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.8824       1.0000         .10000E-03   10000.    
     2 'Prefactor '    29.766       1.0000         .10000E-03   10000.    
     3 'norm      '    2.4565       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.6200       1.0000         .10000E-03   10000.    
     7 'norm      '    16.541       1.0000         .10000E-03   10000.    
     8 'Prefactor '    58.363       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.6673       1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.812       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    15.213       1.0000         .10000E-03   10000.    
    13 'norm      '    3.9390       1.0000         .10000E-03   10000.    
    14 'norm      '    5.7151       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.9664       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.9166       1.0000         .10000E-03   10000.    
    18 'Prefactor '    37.163       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.7851       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .86450       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=   7815.722     FROM MIGRAD    STATUS=CONVERGED    413 CALLS     2089 TOTAL
                     EDM=   .75E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.8832        4.8487        .13929E-05   -.31806E-04
   2  Prefactor     29.767        31.048       -.11894E-06   -.31040E-05
   3  norm          2.4565        .49090       -.11173E-07   -.18796E-03
   4  Prefactor     .10000E-03    72.929       -.51442E-06** at limit **
   5  Prefactor     .10000E-03    6.0216       -.35202E-06** at limit **
   6  Prefactor     7.5993        39.193        .40010E-05    .11527E-05
   7  norm          16.541        3.4409        .33178E-07   -.27618E-04
   8  Prefactor     58.359        61.803        .68064E-06   -.35761E-05
   9  Prefactor     3.6677        6.1193        .18475E-06   -.12579E-05
  10  Prefactor     21.818        21.904       -.15126E-06   -.18208E-04
  11  Prefactor     .10000E-03    17.796        .93933E-07** at limit **
  12  norm          15.213        5.7809        .20545E-07   -.12614E-04
  13  norm          3.9383        12.553        .21354E-06   -.10263E-05
  14  norm          5.7155        5.9049        .83435E-07   -.65478E-05
  15  Prefactor     9.9652        11.105        .21631E-06   -.69092E-05
  16  Prefactor     .10000E-03    46.789        .23548E-06** at limit **
  17  norm          2.9165        7.4322        .27603E-06   -.19314E-05
  18  Prefactor     37.141        43.643        .30116E-05    .13915E-05
  19  Normalizat    1.7849        .23824       -.47744E-06    .68285E-06
  20  Prefactor     .86469        .18788       -.63040E-06   -.28821E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.88318
  Prefactor  = 29.767
  norm       = 2.45651
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.59929
  norm       = 16.5414
  Prefactor  = 58.3591
  Prefactor  = 3.66766
  Prefactor  = 21.8177
  Prefactor  = 0.0001
  norm       = 15.2129
  norm       = 3.93833
  norm       = 5.71547
  Prefactor  = 9.96522
  Prefactor  = 0.0001
  norm       = 2.91647
  Prefactor  = 37.1405
  Normalizat = 1.78489
  Prefactor  = 0.864692
 **********
 **   18 **HESSE 
 **********

 FCN=   7815.722     FROM HESSE     STATUS=OK           295 CALLS     2384 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.8832        4.8554        .91020E-03   -1.5266    
   2  Prefactor     29.767        31.057        .73437E-04   -1.4616    
   3  norm          2.4565        .49212        .26652E-04   -1.5394    
   4  Prefactor     .10000E-03    72.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.0509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.5993        39.377        .14528E-03   -1.5157    
   7  norm          16.541        3.4471        .71283E-04   -1.4894    
   8  Prefactor     58.359        61.778        .52514E-04   -1.4179    
   9  Prefactor     3.6677        6.1099        .21092E-03   -1.5325    
  10  Prefactor     21.818        22.143        .85764E-04   -1.4773    
  11  Prefactor     .10000E-03    17.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          15.213        5.7847        .10269E-03   -1.4928    
  13  norm          3.9383        12.531        .20326E-03   -1.5311    
  14  norm          5.7155        5.8871        .16802E-03   -1.5230    
  15  Prefactor     9.9652        11.105        .12693E-03   -1.5077    
  16  Prefactor     .10000E-03    47.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.9165        7.3982        .23789E-03   -1.5366    
  18  Prefactor     37.141        43.623        .65743E-04   -1.4488    
  19  Normalizat    1.7849        .28835        .29474E-03   -.70059    
  20  Prefactor     .86469        .22437        .33360E-03   -.97386    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.6602e-11
Minuit parameter uncertainties:
  1  4.85581
  2  31.0737
  3  0.492124
  4  1.83922e-06
  5  3.42175e-05
  6  34.6325
  7  3.44713
  8  61.8463
  9  6.11094
  10  22.1515
  11  2.17437e-05
  12  5.78492
  13  12.5395
  14  5.88774
  15  11.1076
  16  2.58289e-05
  17  7.4005
  18  43.6606
  19  0.288622
  20  0.224608
Done.

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

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  2.174e-05  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.647e-01  2.246e-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.785e+00  2.886e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 195.120 14.270
Photon Flux Upper Limit: 1.25e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/92777/likelihoodResults_275097601_275356801_4FGL_J1300.4+1416_daily_bin138.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) = 7815.72271816
delta logL = -0.000265687495812

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7814.98706432
delta logL = 0.735388147028

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24700E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    9.9999       1.0000          .0000       10.000    
     3 'Normalizat'    1.6964       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91514       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=   7814.987     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      370 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .24697E-02    .92336E-01    .10015E-02** at limit **
   2  Index        10.0000        9.5168        .50000    ** at limit **
   3  Normalizat    1.6965        .94155E-01    .67934E-01   -.61815E-04
   4  Prefactor     .91511        .75636E-01    .73547E-01   -.18653E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00246972
  Index      = 10
  Normalizat = 1.69646
  Prefactor  = 0.915113
 **********
 **   18 **HESSE 
 **********

 FCN=   7814.987     FROM HESSE     STATUS=OK            35 CALLS      405 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .24697E-02    .27482E-02    .43347E-04   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        1.7931        .50000        1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.6965        .27880        .30049E-03   -.72398    
   4  Prefactor     .91511        .22734        .32544E-03   -.95615    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49538e-10
Minuit parameter uncertainties:
  1  0.00274825
  2  0.000440882
  3  0.279058
  4  0.227573
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/92777': 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) = 7814.98706151
delta logL = 0.73539096413

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  2.470e-03  2.748e-03  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  1.000e+01  4.409e-04  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.151e-01  2.276e-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.696e+00  2.791e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.56
Ra Dec: 195.120 14.270
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 8.26e-08 +/- 8.91e-08
Energy Flux (Free Index): 9.23e-06 +/- 1.00e-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/92777/cmap_HighResolution_275097601_275356801_4FGL_J1300.4+1416_daily_bin138.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.85e-03', comment='SUCCESS', energy_flux2='9.23e-06', dlogl='7.35e-01', photon_flux2='8.26e-08', job_status='DONE', time_completed='2021-09-06 14:39:26.320779', photon_index_error2='0.00', photon_index2='10.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='1.25e-07', energy_flux_error2='1.00e-05', EG='1.78', time_epoch_completed='1630964366.32', return_code='0', job_id='92777', GAL2='0.92', EG2='1.70', return_code2='0', photon_flux_error2='8.91e-08', ts2='1.56', photon_index='2.74' WHERE bin_id='138' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:39:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0141>
Subject: Job 92777: <4FGL_J1300.4+1416_daily_bin138> in cluster <slac> Done

Job <4FGL_J1300.4+1416_daily_bin138> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 14:25:45 2021
Job was executed on host(s) <bullet0141>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:25:47 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:25:47 2021
Terminated at Mon Sep  6 14:39:27 2021
Results reported at Mon Sep  6 14:39:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin138 195.12 14.2701 275097601 275356801 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 :                                   695.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             315.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            822 sec.

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

