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


Performing analysis on: 4FGL_J1300.4+1416_daily_bin519
RA = 195.12, Dec = 14.2701
tmin = 373852801, tmax = 374112001
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='94313', job_status='RUN', time_executed='2021-09-06 14:32:51.359982', time_epoch_executed='1630963971.36' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='519'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/94313

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/94313/ft1_4FGL_J1300.4+1416_daily_bin519.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/94313/ft2_4FGL_J1300.4+1416_daily_bin519.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/94313/ft1_4FGL_J1300.4+1416_daily_bin519.fits outfile=/scratch/kocevski/94313/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin519.fits ra=195.12 dec=14.2701 rad=12.0 tmin=373852801.0 tmax=374112001.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 4.45
user 4.20
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/94313/ft2_4FGL_J1300.4+1416_daily_bin519.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/94313/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin519.fits evtable="EVENTS" outfile="/scratch/kocevski/94313/ft1_filtered_4FGL_J1300.4+1416_daily_bin519.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/94313/ft1_filtered_4FGL_J1300.4+1416_daily_bin519.fits" evtable="EVENTS" scfile=/scratch/kocevski/94313/ft2_4FGL_J1300.4+1416_daily_bin519.fits sctable="SC_DATA" outfile=/scratch/kocevski/94313/ltcube_373852801_374112001_4FGL_J1300.4+1416_daily_bin519.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/94313/ft2_4FGL_J1300.4+1416_daily_bin519.fits
.....................!
real 11.73
user 11.33
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/94313/ft1_filtered_4FGL_J1300.4+1416_daily_bin519.fits evtable="EVENTS" scfile=/scratch/kocevski/94313/ft2_4FGL_J1300.4+1416_daily_bin519.fits sctable="SC_DATA" expcube=/scratch/kocevski/94313/ltcube_373852801_374112001_4FGL_J1300.4+1416_daily_bin519.fits outfile=/scratch/kocevski/94313/expmap_373852801_374112001_4FGL_J1300.4+1416_daily_bin519.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/94313/ltcube_373852801_374112001_4FGL_J1300.4+1416_daily_bin519.fits
.....................!
real 190.99
user 185.26
sys 5.29

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/94313/ft1_filtered_4FGL_J1300.4+1416_daily_bin519.fits scfile=/scratch/kocevski/94313/ft2_4FGL_J1300.4+1416_daily_bin519.fits outfile=/scratch/kocevski/94313/cmap_373852801_374112001_4FGL_J1300.4+1416_daily_bin519.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.57
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/94313/ft1_filtered_4FGL_J1300.4+1416_daily_bin519.fits scfile=/scratch/kocevski/94313/ft2_4FGL_J1300.4+1416_daily_bin519.fits outfile=/scratch/kocevski/94313/cmap_HighResolution_373852801_374112001_4FGL_J1300.4+1416_daily_bin519.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.62
user 0.38
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .88955       1.0000         .10000E-03   10000.    
     2 'Prefactor '    67.757       1.0000         .10000E-03   10000.    
     3 'norm      '    2.7824       1.0000         .10000E-03   10000.    
     4 'Prefactor '    155.68       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.9373       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    12.834       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10273E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.9684       1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.911       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.1020       1.0000         .10000E-03   10000.    
    12 'norm      '    .20164E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    16.192       1.0000         .10000E-03   10000.    
    14 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.3166       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    30.653       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.7948       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .60195       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=   6924.070     FROM MIGRAD    STATUS=CONVERGED    401 CALLS     2009 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .88941        2.4017       -.82536E-06   -.12804E-02
   2  Prefactor     67.754        44.617       -.25939E-05   -.12738E-05
   3  norm          2.7823        .45661        .69260E-08    .20417E-03
   4  Prefactor     155.68        158.50       -.18425E-05   -.24922E-06
   5  Prefactor     9.9361        9.1653        .79355E-07   -.30772E-04
   6  Prefactor     .10000E-03    10.103        .30291E-05** at limit **
   7  norm          12.834        2.9173        .16741E-07   -.98399E-05
   8  Prefactor     .10000E-03    29.528       -.29903E-05** at limit **
   9  Prefactor     5.9694        6.1021       -.36948E-06   -.55642E-04
  10  Prefactor     20.901        18.342       -.14839E-05   -.15868E-03
  11  Prefactor     1.0774        9.4041        .11340E-05   -.44162E-03
  12  norm          .10000E-03    4.0308        .78733E-08** at limit **
  13  norm          16.193        22.147        .86575E-06   -.94476E-05
  14  norm          .10000E-03    6.9787        .11374E-06** at limit **
  15  Prefactor     9.3162        7.3441        .30503E-06    .54877E-03
  16  Prefactor     .10000E-03    15.183        .94528E-05** at limit **
  17  norm          30.654        11.537       -.48537E-06   -.16501E-04
  18  Prefactor     .10000E-03    13.149       -.10949E-04** at limit **
  19  Normalizat    1.7953        .22286        .64796E-06   -.15201E-03
  20  Prefactor     .60162        .18294       -.18488E-06   -.78861E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.889408
  Prefactor  = 67.7543
  norm       = 2.78227
  Prefactor  = 155.675
  Prefactor  = 9.93613
  Prefactor  = 0.0001
  norm       = 12.8338
  Prefactor  = 0.0001
  Prefactor  = 5.96941
  Prefactor  = 20.9006
  Prefactor  = 1.07742
  norm       = 0.0001
  norm       = 16.193
  norm       = 0.0001
  Prefactor  = 9.31625
  Prefactor  = 0.0001
  norm       = 30.6537
  Prefactor  = 0.0001
  Normalizat = 1.79532
  Prefactor  = 0.601622
 **********
 **   18 **HESSE 
 **********

 FCN=   6924.070     FROM HESSE     STATUS=OK           297 CALLS     2306 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .88941        2.4224        .21118E-03   -1.5519    
   2  Prefactor     67.754        44.570        .48761E-04   -1.4060    
   3  norm          2.7823        .45814        .21966E-04   -1.5374    
   4  Prefactor     155.68        158.48        .16156E-03   -1.3206    
   5  Prefactor     9.9361        9.1680        .12711E-03   -1.5077    
   6  Prefactor     .10000E-03    10.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          12.834        2.9184        .65381E-04   -1.4991    
   8  Prefactor     .10000E-03    29.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.9694        6.1052        .16436E-03   -1.5219    
  10  Prefactor     20.901        18.364        .87590E-04   -1.4793    
  11  Prefactor     1.0774        48.955        .44214E-02   -1.5500    
  12  norm          .10000E-03    4.2052        .32596E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          16.193        22.159        .99533E-04   -1.4903    
  14  norm          .10000E-03    7.0573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.3162        7.3804        .65650E-03   -1.5097    
  16  Prefactor     .10000E-03    14.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          30.654        11.553        .72369E-04   -1.4600    
  18  Prefactor     .10000E-03    12.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.7953        .26233        .25616E-03   -.69786    
  20  Prefactor     .60162        .21220        .35344E-03   -1.0752    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.07379e-09
Minuit parameter uncertainties:
  1  2.42263
  2  44.5918
  3  0.458137
  4  158.921
  5  9.16926
  6  1.00776e-06
  7  2.91848
  8  3.75037e-05
  9  6.10588
  10  18.3691
  11  14.5371
  12  4.25332e-06
  13  22.1702
  14  7.12998e-06
  15  7.38112
  16  6.32563e-06
  17  11.5535
  18  8.26096e-07
  19  0.262533
  20  0.212483
Done.

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

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.077e+00  1.454e+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:  6.016e-01  2.125e-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.795e+00  2.625e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/94313/likelihoodResults_373852801_374112001_4FGL_J1300.4+1416_daily_bin519.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) = 6924.02978512
delta logL = 0.0405280887881

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6923.61757499
delta logL = 0.452738218962

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20001E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    9.9303       1.0000          .0000       10.000    
     3 'Normalizat'    1.7256       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64306       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6923.618     FROM MIGRAD    STATUS=FAILED       123 CALLS      378 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19039E-02    .30303E-02    .20333E-03** at limit **
   2  Index         9.9678        7.0391        .50000       -.12831E-03
   3  Normalizat    1.7258        .25760        .25997E-03    .61949E-04
   4  Prefactor     .64276        .21522        .34296E-03    .11807E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6923.618     FROM SIMPLEX   STATUS=UNCHANGED     72 CALLS      450 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19039E-02    .30303E-02    .29931E-05   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.9678        7.0391        .47691E-02    1.4573    
   3  Normalizat    1.7258        .25760        .94562E-04   -.71616    
   4  Prefactor     .64276        .21522        .25121E-03   -1.0581    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6923.618     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      485 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19039E-02    .23892E-02    .19825E-04** at limit **
   2  Index         9.9678        6.4138        .50000       -.11742E-03
   3  Normalizat    1.7258        .25707        .51994E-04    .12686E-03
   4  Prefactor     .64276        .21512        .13719E-04    .12132E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00190389
  Index      = 9.96783
  Normalizat = 1.72581
  Prefactor  = 0.642763
 **********
 **   18 **HESSE 
 **********

 FCN=   6923.618     FROM HESSE     STATUS=OK            31 CALLS      516 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19039E-02    .23586E-02    .79301E-06   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.9678        6.3859        .50000        1.4573    
   3  Normalizat    1.7258        .25707        .10399E-04   -.71616    
   4  Prefactor     .64276        .21510        .27437E-05   -1.0581    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37819e-08
Minuit parameter uncertainties:
  1  0.00235865
  2  0.567743
  3  0.257267
  4  0.215374
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/94313': 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) = 6923.61755125
delta logL = 0.452761959417

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.904e-03  2.359e-03  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  9.968e+00  5.677e-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:  6.428e-01  2.154e-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.726e+00  2.573e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 195.120 14.270

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/94313/cmap_HighResolution_373852801_374112001_4FGL_J1300.4+1416_daily_bin519.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.01e-03', job_status='DONE', photon_flux_upper_limit='1.14e-07', time_completed='2021-09-06 14:44:04.798162', job_id='94313', GAL2='0.64', fit_tolerance='1e-08', EG2='1.73', EG='1.80', time_epoch_completed='1630964644.8', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.60', dlogl='4.53e-01', ts2='0.97', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='519' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:44:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0179>
Subject: Job 94313: <4FGL_J1300.4+1416_daily_bin519> in cluster <slac> Done

Job <4FGL_J1300.4+1416_daily_bin519> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 14:30:47 2021
Job was executed on host(s) <bullet0179>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:30:49 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:49 2021
Terminated at Mon Sep  6 14:44:05 2021
Results reported at Mon Sep  6 14:44:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin519 195.12 14.2701 373852801 374112001 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 :                                   662.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            798 sec.

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

