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


Performing analysis on: 4FGL_J1300.4+1416_daily_bin56
RA = 195.12, Dec = 14.2701
tmin = 253843201, tmax = 254102401
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='92656', job_status='RUN', time_executed='2021-09-06 14:28:25.739960', time_epoch_executed='1630963705.74' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='56'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/92656

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/92656/ft1_4FGL_J1300.4+1416_daily_bin56.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/92656/ft2_4FGL_J1300.4+1416_daily_bin56.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/92656/ft1_4FGL_J1300.4+1416_daily_bin56.fits outfile=/scratch/kocevski/92656/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin56.fits ra=195.12 dec=14.2701 rad=12.0 tmin=253843201.0 tmax=254102401.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 1.48
user 1.30
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/92656/ft1_filtered_4FGL_J1300.4+1416_daily_bin56.fits" evtable="EVENTS" scfile=/scratch/kocevski/92656/ft2_4FGL_J1300.4+1416_daily_bin56.fits sctable="SC_DATA" outfile=/scratch/kocevski/92656/ltcube_253843201_254102401_4FGL_J1300.4+1416_daily_bin56.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/92656/ft2_4FGL_J1300.4+1416_daily_bin56.fits
.....................!
real 13.34
user 12.95
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/92656/ft1_filtered_4FGL_J1300.4+1416_daily_bin56.fits evtable="EVENTS" scfile=/scratch/kocevski/92656/ft2_4FGL_J1300.4+1416_daily_bin56.fits sctable="SC_DATA" expcube=/scratch/kocevski/92656/ltcube_253843201_254102401_4FGL_J1300.4+1416_daily_bin56.fits outfile=/scratch/kocevski/92656/expmap_253843201_254102401_4FGL_J1300.4+1416_daily_bin56.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/92656/ltcube_253843201_254102401_4FGL_J1300.4+1416_daily_bin56.fits
.....................!
real 193.97
user 188.39
sys 4.17

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/92656/ft1_filtered_4FGL_J1300.4+1416_daily_bin56.fits scfile=/scratch/kocevski/92656/ft2_4FGL_J1300.4+1416_daily_bin56.fits outfile=/scratch/kocevski/92656/cmap_253843201_254102401_4FGL_J1300.4+1416_daily_bin56.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/92656/ft1_filtered_4FGL_J1300.4+1416_daily_bin56.fits scfile=/scratch/kocevski/92656/ft2_4FGL_J1300.4+1416_daily_bin56.fits outfile=/scratch/kocevski/92656/cmap_HighResolution_253843201_254102401_4FGL_J1300.4+1416_daily_bin56.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.58
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .20440       1.0000         .10000E-03   10000.    
     4 'Prefactor '    96.663       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11281E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    27.801       1.0000         .10000E-03   10000.    
     7 'norm      '    12.693       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.9586       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.6871       1.0000         .10000E-03   10000.    
    12 'norm      '    8.3082       1.0000         .10000E-03   10000.    
    13 'norm      '    33.922       1.0000         .10000E-03   10000.    
    14 'norm      '    .14597E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .56652       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    8.4582       1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.343       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.5928       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .43015       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=   5560.529     FROM MIGRAD    STATUS=CONVERGED    418 CALLS     2036 TOTAL
                     EDM=   .61E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.5868       -.78356E-07** at limit **
   2  Prefactor     .10000E-03    14.810        .12413E-06** at limit **
   3  norm          .20443        .16498        .17753E-07    .80068E-04
   4  Prefactor     96.821        130.41       -.15306E-04   -.91778E-05
   5  Prefactor     .10000E-03    14.411        .21102E-06** at limit **
   6  Prefactor     27.810        29.100       -.74422E-06   -.10178E-04
   7  norm          12.693        2.6600        .46838E-07   -.67907E-04
   8  Prefactor     .10000E-03    32.248       -.36530E-06** at limit **
   9  Prefactor     5.9584        5.9438       -.96959E-07   -.10183E-04
  10  Prefactor     .10000E-03    16.140        .11242E-05** at limit **
  11  Prefactor     1.6898        23.508        .10643E-04    .12326E-04
  12  norm          8.3078        4.7869        .16198E-06    .30365E-05
  13  norm          33.919        23.775        .22676E-06    .21212E-05
  14  norm          .10000E-03    10.068       -.38260E-06** at limit **
  15  Prefactor     .55915        8.1909        .67457E-06   -.14130E-03
  16  Prefactor     .10000E-03    18.213        .76210E-07** at limit **
  17  norm          8.4509        7.4360        .69787E-07    .17409E-04
  18  Prefactor     16.369        31.797       -.39610E-05   -.84429E-05
  19  Normalizat    1.5926        .20739       -.22442E-05    .77373E-04
  20  Prefactor     .43034        .16647        .35613E-05   -.74703E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.204431
  Prefactor  = 96.8211
  Prefactor  = 0.0001
  Prefactor  = 27.8098
  norm       = 12.6926
  Prefactor  = 0.0001
  Prefactor  = 5.95837
  Prefactor  = 0.0001
  Prefactor  = 1.68984
  norm       = 8.30776
  norm       = 33.919
  norm       = 0.0001
  Prefactor  = 0.559152
  Prefactor  = 0.0001
  norm       = 8.45086
  Prefactor  = 16.3691
  Normalizat = 1.59258
  Prefactor  = 0.430337
 **********
 **   18 **HESSE 
 **********

 FCN=   5560.529     FROM HESSE     STATUS=OK           297 CALLS     2333 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.6979        .18251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .20443        .16275        .26421E-04   -1.5618    
   4  Prefactor     96.821        130.58        .20442E-03   -1.3737    
   5  Prefactor     .10000E-03    14.968        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     27.810        29.168        .75981E-04   -1.4653    
   7  norm          12.693        2.6607        .53658E-04   -1.4995    
   8  Prefactor     .10000E-03    32.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.9584        5.9416        .16450E-03   -1.5220    
  10  Prefactor     .10000E-03    16.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.6898        23.614        .16209E-02   -1.5448    
  12  norm          8.3078        4.7879        .59379E-03   -1.5131    
  13  norm          33.919        23.762        .68802E-04   -1.4543    
  14  norm          .10000E-03    10.345        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .55915        30.711        .40296E-02   -1.5558    
  16  Prefactor     .10000E-03    18.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.4509        7.4214        .13784E-03   -1.5126    
  18  Prefactor     16.369        31.795        .99072E-04   -1.4899    
  19  Normalizat    1.5926        .23447        .21459E-03   -.75209    
  20  Prefactor     .43034        .18745        .32724E-03   -1.1529    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15961e-10
Minuit parameter uncertainties:
  1  1.18605e-05
  2  4.69829e-05
  3  0.162753
  4  130.972
  5  3.78985e-05
  6  29.1825
  7  2.66073
  8  3.01238e-05
  9  5.94218
  10  4.71756e-05
  11  12.6397
  12  4.78811
  13  23.7691
  14  1.6578e-05
  15  8.29162
  16  1.75573e-05
  17  7.42217
  18  31.8277
  19  0.234633
  20  0.187718
Done.

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

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.690e+00  1.264e+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:  4.303e-01  1.877e-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.593e+00  2.346e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/92656/likelihoodResults_253843201_254102401_4FGL_J1300.4+1416_daily_bin56.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) = 5559.84084608
delta logL = 0.688606870006

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5559.72394029
delta logL = 0.805512668074

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .74147       1.0000         .10000E-03   10000.    
     2 'Index     '    5.5948       1.0000          .0000       10.000    
     3 'Normalizat'    1.5105       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .47535       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=   5559.724     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      226 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .73839        9.9805        .11981E-01    .93686E-03
   2  Index         5.5984        3.8402        .20288        .86000E-04
   3  Normalizat    1.5110        .44081E-01    .49570E-01   -.16726E-05
   4  Prefactor     .47502        .37448E-01    .70574E-01    .32968E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.738386
  Index      = 5.59841
  Normalizat = 1.511
  Prefactor  = 0.475019
 **********
 **   18 **HESSE 
 **********

 FCN=   5559.724     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      261 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .73839        27.831        .54783E-03   -1.5536    
   2  Index         5.5984        7.7550        .76675E-02    .11997    
   3  Normalizat    1.5110        .17782        .21913E-03   -.77470    
   4  Prefactor     .47502        .14697        .31246E-03   -1.1314    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.98797e-07
Minuit parameter uncertainties:
  1  9.07043
  2  9.32782
  3  0.177891
  4  0.14709
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/92656': 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) = 5559.72393674
delta logL = 0.805516213165

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  7.384e-01  9.070e+00  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  5.598e+00  9.328e+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:  4.750e-01  1.471e-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.511e+00  1.779e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.72
Ra Dec: 195.120 14.270
Photon Index (Free Index): 5.60 +/- 9.33
Photon Flux (Free Index): 6.74e-08 +/- 6.21e-08
Energy Flux (Free Index): 8.58e-06 +/- 1.09e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/92656/cmap_HighResolution_253843201_254102401_4FGL_J1300.4+1416_daily_bin56.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.54e-03', comment='SUCCESS', energy_flux2='8.58e-06', dlogl='8.06e-01', photon_flux2='6.74e-08', job_status='DONE', time_completed='2021-09-06 14:37:58.438741', photon_index_error2='9.33', photon_index2='5.60', ts='0.02', fit_tolerance='1e-08', GAL='0.43', photon_index_error='0.00', photon_flux_upper_limit='1.08e-07', energy_flux_error2='1.09e-05', EG='1.59', time_epoch_completed='1630964278.44', return_code='0', job_id='92656', GAL2='0.48', EG2='1.51', return_code2='102', photon_flux_error2='6.21e-08', ts2='1.72', photon_index='2.74' WHERE bin_id='56' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:37:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 92656: <4FGL_J1300.4+1416_daily_bin56> in cluster <slac> Done

Job <4FGL_J1300.4+1416_daily_bin56> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 14:25:36 2021
Job was executed on host(s) <bullet0234>, 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:38:01 2021
Results reported at Mon Sep  6 14:38:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin56 195.12 14.2701 253843201 254102401 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 :                                   568.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             294.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   741 sec.
    Turnaround time :                            745 sec.

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

