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


Performing analysis on: 4FGL_J1300.4+1416_daily_bin213
RA = 195.12, Dec = 14.2701
tmin = 294537601, tmax = 294796801
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='92886', job_status='RUN', time_executed='2021-09-06 14:26:07.793487', time_epoch_executed='1630963567.79' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='213'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/92886

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/92886/ft1_4FGL_J1300.4+1416_daily_bin213.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/92886/ft2_4FGL_J1300.4+1416_daily_bin213.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/92886/ft1_4FGL_J1300.4+1416_daily_bin213.fits outfile=/scratch/kocevski/92886/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin213.fits ra=195.12 dec=14.2701 rad=12.0 tmin=294537601.0 tmax=294796801.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.54
user 2.20
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/92886/ft1_filtered_4FGL_J1300.4+1416_daily_bin213.fits evtable="EVENTS" scfile=/scratch/kocevski/92886/ft2_4FGL_J1300.4+1416_daily_bin213.fits sctable="SC_DATA" expcube=/scratch/kocevski/92886/ltcube_294537601_294796801_4FGL_J1300.4+1416_daily_bin213.fits outfile=/scratch/kocevski/92886/expmap_294537601_294796801_4FGL_J1300.4+1416_daily_bin213.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/92886/ltcube_294537601_294796801_4FGL_J1300.4+1416_daily_bin213.fits
.....................!
real 191.70
user 185.60
sys 5.31

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/92886/ft1_filtered_4FGL_J1300.4+1416_daily_bin213.fits scfile=/scratch/kocevski/92886/ft2_4FGL_J1300.4+1416_daily_bin213.fits outfile=/scratch/kocevski/92886/cmap_294537601_294796801_4FGL_J1300.4+1416_daily_bin213.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.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.336       1.0000         .10000E-03   10000.    
     3 'norm      '    10.805       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.529       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.2874       1.0000         .10000E-03   10000.    
     8 'Prefactor '    48.350       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .95807       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .68395E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.3095       1.0000         .10000E-03   10000.    
    13 'norm      '    10.987       1.0000         .10000E-03   10000.    
    14 'norm      '    10.608       1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.343       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.5930       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.805       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4459       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .56920       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=   7881.066     FROM MIGRAD    STATUS=CONVERGED    431 CALLS     2044 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.1485       -.11294E-07** at limit **
   2  Prefactor     17.336        19.116       -.12300E-06    .15873E-04
   3  norm          10.805        .77723       -.13084E-08    .48548E-03
   4  Prefactor     .10000E-03    43.601       -.80571E-06** at limit **
   5  Prefactor     13.530        10.594       -.21717E-05    .69932E-03
   6  Prefactor     .10000E-03    11.186       -.22289E-06** at limit **
   7  norm          2.2874        1.5234       -.20830E-06    .17969E-03
   8  Prefactor     48.340        38.571       -.41295E-05    .28468E-03
   9  Prefactor     .95825        3.7771       -.31418E-05   -.11328E-02
  10  Prefactor     .10001E-03    6.3466        .10846E-05** at limit **
  11  Prefactor     .10000E-03    13.499       -.83886E-06** at limit **
  12  norm          2.3093        2.4980        .63974E-07    .10312E-03
  13  norm          10.987        13.717       -.60419E-07    .66233E-05
  14  norm          10.608        6.0390        .24980E-06   -.34787E-04
  15  Prefactor     19.344        11.826       -.22423E-06    .47837E-04
  16  Prefactor     .10000E-03    116.71       -.39231E-06** at limit **
  17  norm          3.5931        7.1986       -.13637E-05   -.64544E-04
  18  Prefactor     11.800        68.377       -.89315E-05    .85265E-04
  19  Normalizat    1.4459        .19166       -.37872E-06    .20796E-03
  20  Prefactor     .56913        .16079        .13017E-05    .73956E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 17.3361
  norm       = 10.8047
  Prefactor  = 0.0001
  Prefactor  = 13.5298
  Prefactor  = 0.0001
  norm       = 2.2874
  Prefactor  = 48.3395
  Prefactor  = 0.958247
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  norm       = 2.30928
  norm       = 10.9873
  norm       = 10.6076
  Prefactor  = 19.3438
  Prefactor  = 0.0001
  norm       = 3.59314
  Prefactor  = 11.8004
  Normalizat = 1.44594
  Prefactor  = 0.569129
 **********
 **   18 **HESSE 
 **********

 FCN=   7881.066     FROM HESSE     STATUS=OK           293 CALLS     2337 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.1719        .92897E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.336        19.115        .96194E-04   -1.4875    
   3  norm          10.805        .77956        .20223E-04   -1.5050    
   4  Prefactor     .10000E-03    43.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.530        10.309        .10890E-03   -1.4972    
   6  Prefactor     .10000E-03    11.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.2874        1.5202        .86157E-04   -1.5405    
   8  Prefactor     48.340        37.087        .57669E-04   -1.4316    
   9  Prefactor     .95825        5.5703        .40763E-03   -1.5512    
  10  Prefactor     .10001E-03    54.302        .41694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.3093        2.5017        .14169E-03   -1.5404    
  13  norm          10.987        13.713        .12087E-03   -1.5045    
  14  norm          10.608        6.0359        .12302E-03   -1.5056    
  15  Prefactor     19.344        11.833        .91067E-04   -1.4828    
  16  Prefactor     .10000E-03    120.69        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.5931        7.2277        .21318E-03   -1.5329    
  18  Prefactor     11.800        66.722        .11659E-03   -1.5021    
  19  Normalizat    1.4459        .22518        .26538E-03   -.79309    
  20  Prefactor     .56913        .18807        .34028E-03   -1.0890    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.84383e-09
Minuit parameter uncertainties:
  1  8.28305e-07
  2  19.1215
  3  0.779565
  4  0.000148431
  5  10.3103
  6  5.25211e-05
  7  1.52023
  8  37.1047
  9  4.62112
  10  0.00126888
  11  9.08217e-05
  12  2.5018
  13  13.7172
  14  6.03627
  15  11.8342
  16  0.00012979
  17  7.2295
  18  56.2151
  19  0.225334
  20  0.188278
Done.

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

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  9.082e-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:  5.691e-01  1.883e-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.446e+00  2.253e-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: 8.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/92886/likelihoodResults_294537601_294796801_4FGL_J1300.4+1416_daily_bin213.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) = 7881.06597354
delta logL = -0.000347045364833

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7881.06562643
delta logL = 6.34590833215e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10272E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7713       1.0000          .0000       10.000    
     3 'Normalizat'    1.4459       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56914       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7881.066     FROM MIGRAD    STATUS=FAILED       119 CALLS      277 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9178.9        .36285E-02** at limit **
   2  Index         3.2944        6.5940        .50000       -.27827E-04
   3  Normalizat    1.4459        .11577        .26538E-03   -.25661E-04
   4  Prefactor     .56913        .88139E-01    .34028E-03   -.18944E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7881.066     FROM SIMPLEX   STATUS=UNCHANGED    231 CALLS      508 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9178.9        .13744E-02** at limit **
   2  Index         3.2944        6.5940        .74862E-08   -.27827E-04
   3  Normalizat    1.4459        .11577        .11376E-08   -.25661E-04
   4  Prefactor     .56913        .88139E-01    .45737E-09   -.18944E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7881.066     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      544 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006E-03    143.47        .14514E-02** at limit **
   2  Index         3.2945        6.5949        .50000       -.27848E-04
   3  Normalizat    1.4459        .21809        .10615E-04   -.63616E-04
   4  Prefactor     .56913        .18428        .13611E-04   -.45939E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100062
  Index      = 3.2945
  Normalizat = 1.44593
  Prefactor  = 0.56913
 **********
 **   18 **HESSE 
 **********

 FCN=   7881.066     FROM HESSE     STATUS=OK            29 CALLS      573 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10006E-03    72.673        .29028E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.2945        6.5917        .50000       -.34809    
   3  Normalizat    1.4459        .21814        .21231E-05   -.79309    
   4  Prefactor     .56913        .18435        .27222E-05   -1.0890    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39389e-09
Minuit parameter uncertainties:
  1  0.00425382
  2  4.754
  3  0.218282
  4  0.18454
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/92886': 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) = 7881.06562354
delta logL = 2.95295285468e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  5.691e-01  1.845e-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.446e+00  2.183e-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/92886/cmap_HighResolution_294537601_294796801_4FGL_J1300.4+1416_daily_bin213.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.58e-03', job_status='DONE', photon_flux_upper_limit='8.34e-08', time_completed='2021-09-06 14:38:14.644018', job_id='92886', GAL2='0.57', fit_tolerance='1e-08', EG2='1.45', EG='1.45', time_epoch_completed='1630964294.64', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.57', dlogl='2.95e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='213' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:38:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0140>
Subject: Job 92886: <4FGL_J1300.4+1416_daily_bin213> in cluster <slac> Done

Job <4FGL_J1300.4+1416_daily_bin213> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 14:25:53 2021
Job was executed on host(s) <bullet0140>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:25:54 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:54 2021
Terminated at Mon Sep  6 14:38:15 2021
Results reported at Mon Sep  6 14:38:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin213 195.12 14.2701 294537601 294796801 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 :                                   722.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             355.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   740 sec.
    Turnaround time :                            742 sec.

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

