/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 114 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7473
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1301.6+3336_daily_bin39
RA = 195.418, Dec = 33.6097
tmin = 249436801, tmax = 249696001
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='99718', job_status='RUN', time_executed='2021-09-06 14:48:10.134432', time_epoch_executed='1630964890.13' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='39'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/99718

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/99718/ft1_4FGL_J1301.6+3336_daily_bin39.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/99718/ft2_4FGL_J1301.6+3336_daily_bin39.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/99718/ft1_4FGL_J1301.6+3336_daily_bin39.fits outfile=/scratch/kocevski/99718/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin39.fits ra=195.418 dec=33.6097 rad=12.0 tmin=249436801.0 tmax=249696001.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.47
user 1.24
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/99718/ft2_4FGL_J1301.6+3336_daily_bin39.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/99718/ft2_4FGL_J1301.6+3336_daily_bin39.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/99718/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin39.fits evtable="EVENTS" outfile="/scratch/kocevski/99718/ft1_filtered_4FGL_J1301.6+3336_daily_bin39.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/99718/ft1_filtered_4FGL_J1301.6+3336_daily_bin39.fits" evtable="EVENTS" scfile=/scratch/kocevski/99718/ft2_4FGL_J1301.6+3336_daily_bin39.fits sctable="SC_DATA" outfile=/scratch/kocevski/99718/ltcube_249436801_249696001_4FGL_J1301.6+3336_daily_bin39.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/99718/ft2_4FGL_J1301.6+3336_daily_bin39.fits
.....................!
real 12.45
user 12.03
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/99718/ft1_filtered_4FGL_J1301.6+3336_daily_bin39.fits evtable="EVENTS" scfile=/scratch/kocevski/99718/ft2_4FGL_J1301.6+3336_daily_bin39.fits sctable="SC_DATA" expcube=/scratch/kocevski/99718/ltcube_249436801_249696001_4FGL_J1301.6+3336_daily_bin39.fits outfile=/scratch/kocevski/99718/expmap_249436801_249696001_4FGL_J1301.6+3336_daily_bin39.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/99718/ltcube_249436801_249696001_4FGL_J1301.6+3336_daily_bin39.fits
.....................!
real 191.32
user 185.78
sys 5.07

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 179 point sources and 0 extended sources

Setting source of interest to:
4FGL J1301.6+3336 @ 195.418 33.6097

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/99718/ft1_filtered_4FGL_J1301.6+3336_daily_bin39.fits scfile=/scratch/kocevski/99718/ft2_4FGL_J1301.6+3336_daily_bin39.fits outfile=/scratch/kocevski/99718/cmap_249436801_249696001_4FGL_J1301.6+3336_daily_bin39.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.418 yref=33.6097 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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/99718/ft1_filtered_4FGL_J1301.6+3336_daily_bin39.fits scfile=/scratch/kocevski/99718/ft2_4FGL_J1301.6+3336_daily_bin39.fits outfile=/scratch/kocevski/99718/cmap_HighResolution_249436801_249696001_4FGL_J1301.6+3336_daily_bin39.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.418 yref=33.6097 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 1.10
user 0.38
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/99718/ft1_filtered_4FGL_J1301.6+3336_daily_bin39.fits evtable="EVENTS" scfile=/scratch/kocevski/99718/ft2_4FGL_J1301.6+3336_daily_bin39.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/99718/Model_4FGL_J1301.6+3336_daily_bin39.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/99718/ft1_filtered_4FGL_J1301.6+3336_daily_bin39.fits.....................!
real 44.87
user 43.17
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/99718/ft1_filtered_4FGL_J1301.6+3336_daily_bin39.fits', '/scratch/kocevski/99718/ft2_4FGL_J1301.6+3336_daily_bin39.fits', expMap='/scratch/kocevski/99718/expmap_249436801_249696001_4FGL_J1301.6+3336_daily_bin39.fits', expCube='/scratch/kocevski/99718/ltcube_249436801_249696001_4FGL_J1301.6+3336_daily_bin39.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/99718/Model_4FGL_J1301.6+3336_daily_bin39.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1301.6+3336'

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  4.837e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.593e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  8.366e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/99718/ft1_filtered_4FGL_J1301.6+3336_daily_bin39.fits
Spacecraft file(s): /scratch/kocevski/99718/ft2_4FGL_J1301.6+3336_daily_bin39.fits
Exposure map: /scratch/kocevski/99718/expmap_249436801_249696001_4FGL_J1301.6+3336_daily_bin39.fits
Exposure cube: /scratch/kocevski/99718/ltcube_249436801_249696001_4FGL_J1301.6+3336_daily_bin39.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/99718/Model_4FGL_J1301.6+3336_daily_bin39.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) = 5268.28769052

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.1637       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.7970       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.2075       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.7422       1.0000         .10000E-03   10000.    
     6 'norm      '    1.1215       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.9385       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.7055       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.9351       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    9.4054       1.0000         .10000E-03   10000.    
    20 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    33.927       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .14691E-02   1.0000         .10000E-03   10000.    
    26 'Prefactor '    8.3048       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .49373E-01   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1352       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .92818       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5268.286     FROM MIGRAD    STATUS=CONVERGED    766 CALLS     3887 TOTAL
                     EDM=   .36E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    53.249       -.28302E-05** at limit **
   2  norm          1.1642        3.2796        .29690E-06    .96633E-05
   3  Prefactor     3.7973        8.3462        .24693E-05    .79482E-05
   4  Prefactor     5.2073        2.8320       -.47355E-07   -.40244E-05
   5  Prefactor     6.7421        2.8661       -.45987E-07   -.10172E-04
   6  norm          1.1216        3.5355        .43674E-06    .61091E-05
   7  Prefactor     8.9392        9.8707        .32561E-07   -.22548E-05
   8  Prefactor     .10000E-03    6.6004        .29655E-06** at limit **
   9  Prefactor     .10000E-03    25.202        .13943E-06** at limit **
  10  Prefactor     .10000E-03    7.0010       -.37524E-07** at limit **
  11  Prefactor     .10000E-03    1.8995       -.76518E-08** at limit **
  12  norm          2.7059        4.0054        .19372E-06    .57671E-04
  13  Prefactor     .10000E-03    86.933        .38394E-05** at limit **
  14  Prefactor     .10000E-03    23.633       -.15780E-05** at limit **
  15  norm          6.9349        4.3100        .94922E-08    .44610E-04
  16  Prefactor     .10000E-03    8.4754       -.22117E-06** at limit **
  17  norm          .10000E-03    1.8350       -.60190E-08** at limit **
  18  norm          .10000E-03    10.211        .19352E-06** at limit **
  19  norm          9.4055        4.6388        .50868E-07    .12654E-03
  20  norm          .10000E-03    3.4050        .12993E-07** at limit **
  21  norm          .10000E-03    47.779       -.16721E-05** at limit **
  22  Prefactor     .10000E-03    1.0455       -.13572E-08** at limit **
  23  Prefactor     .10000E-03    6.3549       -.22486E-06** at limit **
  24  Prefactor     33.924        49.605        .55229E-06    .35782E-05
  25  Prefactor     .10000E-03    11.297       -.41578E-06** at limit **
  26  Prefactor     8.2905        27.070        .19666E-05    .44356E-04
  27  Prefactor     .10000E-03    31.123        .34737E-05** at limit **
  28  Prefactor     .53640E-01    2.0726        .21921E-06   -.18589E-03
  29  Normalizat    1.1353        .18705       -.15603E-06    .81352E-04
  30  Prefactor     .92802        .22826       -.32461E-06    .44275E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.16421
  Prefactor  = 3.79729
  Prefactor  = 5.20733
  Prefactor  = 6.74215
  norm       = 1.12156
  Prefactor  = 8.93925
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.7059
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.93491
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 9.4055
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.924
  Prefactor  = 0.0001
  Prefactor  = 8.29053
  Prefactor  = 0.0001
  Prefactor  = 0.0536397
  Normalizat = 1.13525
  Prefactor  = 0.928021
 **********
 **   18 **HESSE 
 **********

 FCN=   5268.286     FROM HESSE     STATUS=OK           588 CALLS     4475 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    53.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.1642        3.2299        .19384E-03   -1.5492    
   3  Prefactor     3.7973        8.3391        .10358E-02   -1.5318    
   4  Prefactor     5.2073        2.8073        .80886E-04   -1.5252    
   5  Prefactor     6.7421        2.8535        .75169E-04   -1.5189    
   6  norm          1.1216        3.4880        .23420E-03   -1.5496    
   7  Prefactor     8.9392        9.8652        .13406E-03   -1.5110    
   8  Prefactor     .10000E-03    6.6019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    25.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.1343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.9021        .97692E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.7059        3.9851        .16822E-03   -1.5379    
  13  Prefactor     .10000E-03    87.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    23.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.9349        4.3089        .11463E-03   -1.5181    
  16  Prefactor     .10000E-03    8.5059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.8419        .96010E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    10.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          9.4055        4.6298        .10296E-03   -1.5095    
  20  norm          .10000E-03    3.4143        .13062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    48.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.0514        .72436E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.3760        .17867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     33.924        49.609        .68797E-04   -1.4542    
  25  Prefactor     .10000E-03    57.181        .44476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     8.2905        26.028        .13911E-03   -1.5132    
  27  Prefactor     .10000E-03    31.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .53640E-01    36.255        .19979E-02   -1.5662    
  29  Normalizat    1.1353        .22010        .22397E-03   -.88628    
  30  Prefactor     .92802        .26898        .30416E-03   -.95169    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.2772e-10
Minuit parameter uncertainties:
  1  7.9817e-05
  2  3.23036
  3  8.3416
  4  2.80739
  5  2.85354
  6  3.48865
  7  9.867
  8  1.64208e-06
  9  2.66476e-06
  10  1.58366e-06
  11  3.56577e-08
  12  3.98546
  13  0.000152628
  14  1.51073e-05
  15  4.30911
  16  1.49972e-06
  17  1.78098e-08
  18  4.68173e-06
  19  4.62994
  20  2.25702e-07
  21  9.16191e-05
  22  3.73825e-07
  23  3.17439e-08
  24  49.669
  25  0.000323201
  26  26.064
  27  4.45677e-05
  28  2.78815
  29  0.220282
  30  0.26937
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  1.511e-05  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.593e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  8.366e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  9.280e-01  2.694e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.135e+00  2.203e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 195.418 33.610
Photon Flux Upper Limit: 8.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/99718/likelihoodResults_249436801_249696001_4FGL_J1301.6+3336_daily_bin39.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) = 5268.28596896
delta logL = -0.0002008226611

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5268.28576798
delta logL = 1.63403456099e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0146       1.0000          .0000       10.000    
     3 'Normalizat'    1.1352       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92802       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5268.286     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      244 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.815        .90712E-02** at limit **
   2  Index         3.0124        6.4891        .50000        .83396E-06
   3  Normalizat    1.1353        .41472E-02    .36718E-01    .18687E-04
   4  Prefactor     .92802        .51741E-02    .68756E-01    .18479E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.01236
  Normalizat = 1.13525
  Prefactor  = 0.928022
 **********
 **   18 **HESSE 
 **********

 FCN=   5268.286     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      277 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    156.31        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0124        5.6860        .50000       -.40882    
   3  Normalizat    1.1353        .11055E-01    .22397E-03   -.88628    
   4  Prefactor     .92802        .13774E-01    .30416E-03   -.95169    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.81449e-09
Minuit parameter uncertainties:
  1  0.000251945
  2  318.601
  3  0.0110554
  4  0.0137745
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/99718': 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) = 5268.28576796
delta logL = 1.73986336449e-07

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  2.519e-04  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  3.012e+00  3.186e+02  0.000e+00  1.000e+01 (-1.000e+00)
299        Scale:  8.366e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  9.280e-01  1.377e-02  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.135e+00  1.106e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 195.418 33.610

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/99718/cmap_HighResolution_249436801_249696001_4FGL_J1301.6+3336_daily_bin39.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.58e-03', job_status='DONE', photon_flux_upper_limit='8.42e-08', time_completed='2021-09-06 15:00:40.589626', job_id='99718', GAL2='0.93', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1630965640.59', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.74e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='39' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 15:00:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 99718: <4FGL_J1301.6+3336_daily_bin39> in cluster <slac> Done

Job <4FGL_J1301.6+3336_daily_bin39> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 14:45:59 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:46:01 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:46:01 2021
Terminated at Mon Sep  6 15:00:41 2021
Results reported at Mon Sep  6 15:00:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin39 195.418 33.6097 249436801 249696001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1301.6+3336 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   745.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             330.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            882 sec.

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

