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


Performing analysis on: 4FGL_J1300.4+1416_daily_bin251
RA = 195.12, Dec = 14.2701
tmin = 304387201, tmax = 304646401
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='92928', job_status='RUN', time_executed='2021-09-06 14:28:46.727154', time_epoch_executed='1630963726.73' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='251'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/92928

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/92928/ft1_4FGL_J1300.4+1416_daily_bin251.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/92928/ft2_4FGL_J1300.4+1416_daily_bin251.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/92928/ft1_4FGL_J1300.4+1416_daily_bin251.fits outfile=/scratch/kocevski/92928/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin251.fits ra=195.12 dec=14.2701 rad=12.0 tmin=304387201.0 tmax=304646401.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.35
user 3.92
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/92928/ft1_filtered_4FGL_J1300.4+1416_daily_bin251.fits" evtable="EVENTS" scfile=/scratch/kocevski/92928/ft2_4FGL_J1300.4+1416_daily_bin251.fits sctable="SC_DATA" outfile=/scratch/kocevski/92928/ltcube_304387201_304646401_4FGL_J1300.4+1416_daily_bin251.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/92928/ft2_4FGL_J1300.4+1416_daily_bin251.fits
.....................!
real 11.88
user 11.35
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/92928/ft1_filtered_4FGL_J1300.4+1416_daily_bin251.fits evtable="EVENTS" scfile=/scratch/kocevski/92928/ft2_4FGL_J1300.4+1416_daily_bin251.fits sctable="SC_DATA" expcube=/scratch/kocevski/92928/ltcube_304387201_304646401_4FGL_J1300.4+1416_daily_bin251.fits outfile=/scratch/kocevski/92928/expmap_304387201_304646401_4FGL_J1300.4+1416_daily_bin251.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/92928/ltcube_304387201_304646401_4FGL_J1300.4+1416_daily_bin251.fits
.....................!
real 195.68
user 190.30
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/92928/ft1_filtered_4FGL_J1300.4+1416_daily_bin251.fits scfile=/scratch/kocevski/92928/ft2_4FGL_J1300.4+1416_daily_bin251.fits outfile=/scratch/kocevski/92928/cmap_304387201_304646401_4FGL_J1300.4+1416_daily_bin251.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/92928/ft1_filtered_4FGL_J1300.4+1416_daily_bin251.fits scfile=/scratch/kocevski/92928/ft2_4FGL_J1300.4+1416_daily_bin251.fits outfile=/scratch/kocevski/92928/cmap_HighResolution_304387201_304646401_4FGL_J1300.4+1416_daily_bin251.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0472       1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.042       1.0000         .10000E-03   10000.    
     3 'norm      '    4.4365       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .43487E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.182       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    10.795       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.002       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.4242       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    10.968       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.2507       1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.621       1.0000         .10000E-03   10000.    
    17 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2244       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .90158       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=   6186.864     FROM MIGRAD    STATUS=CONVERGED    422 CALLS     2009 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0476        3.6658       -.76834E-07   -.16220E-03
   2  Prefactor     17.971        33.695        .10821E-04    .54582E-05
   3  norm          4.4366        .57207        .93622E-08   -.13043E-04
   4  Prefactor     .10000E-03    300.14       -.32006E-04** at limit **
   5  Prefactor     18.183        12.433        .16858E-06   -.10497E-04
   6  Prefactor     .10000E-03    16.056       -.36959E-06** at limit **
   7  norm          10.793        2.9397       -.11504E-07   -.32587E-04
   8  Prefactor     .10000E-03    38.995        .80288E-07** at limit **
   9  Prefactor     .10000E-03    2.5861       -.14445E-08** at limit **
  10  Prefactor     17.004        12.372        .32439E-06   -.31886E-04
  11  Prefactor     .10000E-03    2.8491       -.45265E-08** at limit **
  12  norm          2.4248        3.9010       -.37202E-06   -.58932E-03
  13  norm          .10000E-03    8.0501       -.36208E-07** at limit **
  14  norm          10.969        6.9723        .22129E-05   -.34980E-04
  15  Prefactor     7.2515        8.9051       -.12339E-06   -.54721E-04
  16  Prefactor     21.625        29.259       -.38524E-05   -.58353E-05
  17  norm          .10000E-03    7.2284       -.35197E-06** at limit **
  18  Prefactor     .10000E-03    14.380        .42054E-06** at limit **
  19  Normalizat    1.2244        .21464       -.79520E-06    .29504E-04
  20  Prefactor     .90152        .18513       -.84771E-07   -.19170E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.04761
  Prefactor  = 17.9713
  norm       = 4.43656
  Prefactor  = 0.0001
  Prefactor  = 18.1835
  Prefactor  = 0.0001
  norm       = 10.7927
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.0039
  Prefactor  = 0.0001
  norm       = 2.4248
  norm       = 0.0001
  norm       = 10.9689
  Prefactor  = 7.25151
  Prefactor  = 21.625
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.22438
  Prefactor  = 0.901515
 **********
 **   18 **HESSE 
 **********

 FCN=   6186.864     FROM HESSE     STATUS=OK           295 CALLS     2304 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0476        3.6661        .12407E-03   -1.5259    
   2  Prefactor     17.971        33.601        .94293E-04   -1.4860    
   3  norm          4.4366        .57375        .20571E-04   -1.5287    
   4  Prefactor     .10000E-03    300.92        .19389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     18.183        12.432        .93928E-04   -1.4855    
   6  Prefactor     .10000E-03    16.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10.793        2.9424        .67645E-04   -1.5051    
   8  Prefactor     .10000E-03    39.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.5926        .12352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.004        12.391        .97133E-04   -1.4883    
  11  Prefactor     .10000E-03    2.8520        .12965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.4248        3.9288        .19065E-03   -1.5397    
  13  norm          .10000E-03    8.0638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          10.969        6.9570        .12097E-03   -1.5045    
  15  Prefactor     7.2515        8.9060        .14896E-03   -1.5169    
  16  Prefactor     21.625        29.280        .86140E-04   -1.4778    
  17  norm          .10000E-03    7.3237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2244        .25528        .27584E-03   -.85853    
  20  Prefactor     .90152        .21927        .27948E-03   -.96088    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.93696e-10
Minuit parameter uncertainties:
  1  3.66628
  2  33.6364
  3  0.573753
  4  0.000584401
  5  12.4342
  6  2.26374e-06
  7  2.9424
  8  1.00235e-05
  9  1.12047e-06
  10  12.3933
  11  5.241e-07
  12  3.92925
  13  8.81674e-06
  14  6.95749
  15  8.90765
  16  29.299
  17  7.38061e-05
  18  4.30955e-06
  19  0.255541
  20  0.219489
Done.

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

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  5.241e-07  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:  9.015e-01  2.195e-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.224e+00  2.555e-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: 5.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/92928/likelihoodResults_304387201_304646401_4FGL_J1300.4+1416_daily_bin251.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) = 6186.86581928
delta logL = -0.00162115834337

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6186.86419809
delta logL = 3.0560840969e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7286       1.0000          .0000       10.000    
     3 'Normalizat'    1.2243       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90154       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=   6186.864     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      251 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    38.926        .13014E-01** at limit **
   2  Index         2.2093        5.2372        .50000        .85083E-07
   3  Normalizat    1.2244        .18499E-01    .27584E-03   -.16074E-04
   4  Prefactor     .90152        .16451E-01    .27948E-03   -.10291E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.20927
  Normalizat = 1.22437
  Prefactor  = 0.901516
 **********
 **   18 **HESSE 
 **********

 FCN=   6186.864     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      280 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    317.31        .13736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2093        8.7269        .50000       -.59215    
   3  Normalizat    1.2244        .60025E-01    .11034E-04   -.85853    
   4  Prefactor     .90152        .53380E-01    .11179E-04   -.96088    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.92984e-09
Minuit parameter uncertainties:
  1  0.00072954
  2  1217.71
  3  0.0600286
  4  0.0533833
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/92928': 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) = 6186.86419622
delta logL = 1.90585524251e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  9.015e-01  5.338e-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.224e+00  6.003e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/92928/cmap_HighResolution_304387201_304646401_4FGL_J1300.4+1416_daily_bin251.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.10e-03', job_status='DONE', photon_flux_upper_limit='5.19e-08', time_completed='2021-09-06 14:39:09.558766', job_id='92928', GAL2='0.90', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1630964349.56', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.91e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='251' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:39:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 92928: <4FGL_J1300.4+1416_daily_bin251> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin251 195.12 14.2701 304387201 304646401 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 :                                   614.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             246.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   790 sec.
    Turnaround time :                            793 sec.

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

