/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 72 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 = 7450
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1300.4+1416_daily_bin50
RA = 195.12, Dec = 14.2701
tmin = 252288001, tmax = 252547201
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='92647', job_status='RUN', time_executed='2021-09-06 14:26:59.724167', time_epoch_executed='1630963619.72' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='50'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/92647

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/92647/ft1_4FGL_J1300.4+1416_daily_bin50.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/92647/ft2_4FGL_J1300.4+1416_daily_bin50.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/92647/ft1_4FGL_J1300.4+1416_daily_bin50.fits outfile=/scratch/kocevski/92647/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin50.fits ra=195.12 dec=14.2701 rad=12.0 tmin=252288001.0 tmax=252547201.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 2.73
user 2.37
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/92647/ft1_filtered_4FGL_J1300.4+1416_daily_bin50.fits" evtable="EVENTS" scfile=/scratch/kocevski/92647/ft2_4FGL_J1300.4+1416_daily_bin50.fits sctable="SC_DATA" outfile=/scratch/kocevski/92647/ltcube_252288001_252547201_4FGL_J1300.4+1416_daily_bin50.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/92647/ft2_4FGL_J1300.4+1416_daily_bin50.fits
.....................!
real 13.77
user 13.31
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/92647/ft1_filtered_4FGL_J1300.4+1416_daily_bin50.fits evtable="EVENTS" scfile=/scratch/kocevski/92647/ft2_4FGL_J1300.4+1416_daily_bin50.fits sctable="SC_DATA" expcube=/scratch/kocevski/92647/ltcube_252288001_252547201_4FGL_J1300.4+1416_daily_bin50.fits outfile=/scratch/kocevski/92647/expmap_252288001_252547201_4FGL_J1300.4+1416_daily_bin50.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/92647/ltcube_252288001_252547201_4FGL_J1300.4+1416_daily_bin50.fits
.....................!
real 192.90
user 188.17
sys 4.22

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/92647/ft1_filtered_4FGL_J1300.4+1416_daily_bin50.fits scfile=/scratch/kocevski/92647/ft2_4FGL_J1300.4+1416_daily_bin50.fits outfile=/scratch/kocevski/92647/cmap_252288001_252547201_4FGL_J1300.4+1416_daily_bin50.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.56
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/92647/ft1_filtered_4FGL_J1300.4+1416_daily_bin50.fits scfile=/scratch/kocevski/92647/ft2_4FGL_J1300.4+1416_daily_bin50.fits outfile=/scratch/kocevski/92647/cmap_HighResolution_252288001_252547201_4FGL_J1300.4+1416_daily_bin50.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8611       1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.559       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    23.713       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.6095       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.7151       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10288E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .21066E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.9795       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    12.469       1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.904       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4776       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .65731       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=   9589.927     FROM MIGRAD    STATUS=CONVERGED    442 CALLS     1828 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8612        2.5558       -.30993E-07   -.12631E-03
   2  Prefactor     16.559        15.635        .79453E-07    .29584E-05
   3  norm          .10000E-03    .64193E-01    .17174E-07** at limit **
   4  Prefactor     .10000E-03    23.092       -.78700E-06** at limit **
   5  Prefactor     .10000E-03    7.6376       -.37218E-07** at limit **
   6  Prefactor     .10000E-03    34.555        .14880E-05** at limit **
   7  norm          23.713        2.6187       -.31497E-07    .22882E-04
   8  Prefactor     .10000E-03    10.198        .26011E-07** at limit **
   9  Prefactor     2.6076        5.9537       -.51888E-05   -.17138E-03
  10  Prefactor     2.7080        3.6204        .84314E-06   -.85962E-03
  11  Prefactor     .10000E-03    5.9397       -.82400E-07** at limit **
  12  norm          .10013E-03    1.3335        .21092E-06** at limit **
  13  norm          .10000E-03    17.437        .19297E-06** at limit **
  14  norm          2.9802        3.3529        .24418E-07    .19061E-03
  15  Prefactor     .10000E-03    2.3608       -.75326E-07** at limit **
  16  Prefactor     .10000E-03    22.895        .12320E-06** at limit **
  17  norm          12.468        7.7024       -.40757E-06   -.13802E-04
  18  Prefactor     22.902        27.060       -.17868E-06    .24707E-05
  19  Normalizat    1.4778        .15657        .91299E-06   -.64087E-04
  20  Prefactor     .65720        .13241       -.15261E-06    .59584E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.86125
  Prefactor  = 16.5594
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 23.7132
  Prefactor  = 0.0001
  Prefactor  = 2.60761
  Prefactor  = 2.70796
  Prefactor  = 0.0001
  norm       = 0.000100125
  norm       = 0.0001
  norm       = 2.98021
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.4677
  Prefactor  = 22.9019
  Normalizat = 1.47778
  Prefactor  = 0.6572
 **********
 **   18 **HESSE 
 **********

 FCN=   9589.927     FROM HESSE     STATUS=OK           299 CALLS     2127 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8612        2.5496        .17683E-03   -1.5435    
   2  Prefactor     16.559        15.636        .98424E-04   -1.4894    
   3  norm          .10000E-03    .10318        .48275E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    23.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.7550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    34.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          23.713        2.6187        .50956E-04   -1.4734    
   8  Prefactor     .10000E-03    10.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.6076        6.0332        .25252E-03   -1.5385    
  10  Prefactor     2.7080        9.1806        .12359E-02   -1.5379    
  11  Prefactor     .10000E-03    5.9765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10013E-03    2.0452        .40955E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    17.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.9802        3.3526        .90470E-03   -1.5363    
  15  Prefactor     .10000E-03    2.3684        .14694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    23.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          12.468        7.7045        .11344E-03   -1.5002    
  18  Prefactor     22.902        27.069        .83697E-04   -1.4750    
  19  Normalizat    1.4778        .18978        .23780E-03   -.78405    
  20  Prefactor     .65720        .15744        .29328E-03   -1.0523    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28574e-09
Minuit parameter uncertainties:
  1  2.54978
  2  15.6396
  3  4.69542e-07
  4  8.31557e-06
  5  1.58729e-05
  6  6.33447e-05
  7  2.61867
  8  5.86161e-06
  9  6.03457
  10  9.1854
  11  1.10612e-05
  12  0.00101307
  13  9.09973e-07
  14  3.35285
  15  2.34512e-06
  16  1.65232e-05
  17  7.70511
  18  27.0832
  19  0.18987
  20  0.157545
Done.

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

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  1.106e-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:  6.572e-01  1.575e-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.478e+00  1.899e-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: 6.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/92647/likelihoodResults_252288001_252547201_4FGL_J1300.4+1416_daily_bin50.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) = 9589.92817677
delta logL = -0.000797415606939

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9589.92737941
delta logL = -5.63104549656e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7546       1.0000          .0000       10.000    
     3 'Normalizat'    1.4777       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65726       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=   9589.878     FROM MIGRAD    STATUS=CONVERGED    155 CALLS      312 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16712        2.6489        .18142E-01    .22489E-02
   2  Index         5.6064        2.2160        .50000        .57629E-05
   3  Normalizat    1.4581        .12846E-01    .23780E-03   -.54729E-03
   4  Prefactor     .66784        .11081E-01    .29329E-03   -.33391E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.167121
  Index      = 5.60644
  Normalizat = 1.45811
  Prefactor  = 0.667838
 **********
 **   18 **HESSE 
 **********

 FCN=   9589.878     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      343 TOTAL
                     EDM=   .48E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16712        74.708        .96299E-03   -1.5626    
   2  Index         5.6064        5.7431        .13692E-01    6.4048    
   3  Normalizat    1.4581        .11071        .47559E-04   -.78962    
   4  Prefactor     .66784        .87223E-01    .11731E-04   -1.0480    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.79628e-06
Minuit parameter uncertainties:
  1  7.07367
  2  29.6442
  3  0.110727
  4  0.0872404
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/92647': 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) = 9589.8775367
delta logL = 0.0498426591057

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.671e-01  7.074e+00  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  5.606e+00  2.964e+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.678e-01  8.724e-02  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.458e+00  1.107e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/92647/cmap_HighResolution_252288001_252547201_4FGL_J1300.4+1416_daily_bin50.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.29e-03', job_status='DONE', photon_flux_upper_limit='6.71e-08', time_completed='2021-09-06 14:39:25.287779', job_id='92647', GAL2='0.67', fit_tolerance='1e-08', EG2='1.46', EG='1.48', time_epoch_completed='1630964365.29', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='4.98e-02', ts2='0.11', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='50' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:39:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 92647: <4FGL_J1300.4+1416_daily_bin50> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin50 195.12 14.2701 252288001 252547201 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 :                                   736.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             319.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            831 sec.

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

