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


Performing analysis on: 4FGL_J1301.6+3336_daily_bin76
RA = 195.418, Dec = 33.6097
tmin = 259027201, tmax = 259286401
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='99760', job_status='RUN', time_executed='2021-09-06 14:48:56.965240', time_epoch_executed='1630964936.97' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='76'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/99760

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/99760/ft1_4FGL_J1301.6+3336_daily_bin76.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/99760/ft2_4FGL_J1301.6+3336_daily_bin76.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/99760/ft1_4FGL_J1301.6+3336_daily_bin76.fits outfile=/scratch/kocevski/99760/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin76.fits ra=195.418 dec=33.6097 rad=12.0 tmin=259027201.0 tmax=259286401.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.44
user 1.25
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/99760/ft2_4FGL_J1301.6+3336_daily_bin76.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/99760/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin76.fits evtable="EVENTS" outfile="/scratch/kocevski/99760/ft1_filtered_4FGL_J1301.6+3336_daily_bin76.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.50
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/99760/ft1_filtered_4FGL_J1301.6+3336_daily_bin76.fits" evtable="EVENTS" scfile=/scratch/kocevski/99760/ft2_4FGL_J1301.6+3336_daily_bin76.fits sctable="SC_DATA" outfile=/scratch/kocevski/99760/ltcube_259027201_259286401_4FGL_J1301.6+3336_daily_bin76.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/99760/ft2_4FGL_J1301.6+3336_daily_bin76.fits
.....................!
real 12.27
user 11.89
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/99760/ft1_filtered_4FGL_J1301.6+3336_daily_bin76.fits evtable="EVENTS" scfile=/scratch/kocevski/99760/ft2_4FGL_J1301.6+3336_daily_bin76.fits sctable="SC_DATA" expcube=/scratch/kocevski/99760/ltcube_259027201_259286401_4FGL_J1301.6+3336_daily_bin76.fits outfile=/scratch/kocevski/99760/expmap_259027201_259286401_4FGL_J1301.6+3336_daily_bin76.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/99760/ltcube_259027201_259286401_4FGL_J1301.6+3336_daily_bin76.fits
.....................!
real 192.01
user 186.27
sys 5.39

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/99760/ft1_filtered_4FGL_J1301.6+3336_daily_bin76.fits scfile=/scratch/kocevski/99760/ft2_4FGL_J1301.6+3336_daily_bin76.fits outfile=/scratch/kocevski/99760/cmap_259027201_259286401_4FGL_J1301.6+3336_daily_bin76.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.65
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/99760/ft1_filtered_4FGL_J1301.6+3336_daily_bin76.fits scfile=/scratch/kocevski/99760/ft2_4FGL_J1301.6+3336_daily_bin76.fits outfile=/scratch/kocevski/99760/cmap_HighResolution_259027201_259286401_4FGL_J1301.6+3336_daily_bin76.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 0.67
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/99760/ft1_filtered_4FGL_J1301.6+3336_daily_bin76.fits', '/scratch/kocevski/99760/ft2_4FGL_J1301.6+3336_daily_bin76.fits', expMap='/scratch/kocevski/99760/expmap_259027201_259286401_4FGL_J1301.6+3336_daily_bin76.fits', expCube='/scratch/kocevski/99760/ltcube_259027201_259286401_4FGL_J1301.6+3336_daily_bin76.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/99760/Model_4FGL_J1301.6+3336_daily_bin76.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/99760/ft1_filtered_4FGL_J1301.6+3336_daily_bin76.fits
Spacecraft file(s): /scratch/kocevski/99760/ft2_4FGL_J1301.6+3336_daily_bin76.fits
Exposure map: /scratch/kocevski/99760/expmap_259027201_259286401_4FGL_J1301.6+3336_daily_bin76.fits
Exposure cube: /scratch/kocevski/99760/ltcube_259027201_259286401_4FGL_J1301.6+3336_daily_bin76.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/99760/Model_4FGL_J1301.6+3336_daily_bin76.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) = 5795.21924302

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0742       1.0000         .10000E-03   10000.    
     2 'norm      '    .11048E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.3814       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.1621       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.1863       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.764       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    38.558       1.0000         .10000E-03   10000.    
    14 'Prefactor '    81.074       1.0000         .10000E-03   10000.    
    15 'norm      '    3.3643       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.3333       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .17778E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    13.287       1.0000         .10000E-03   10000.    
    21 'norm      '    49.094       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11261E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.6668       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.0910       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10366E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0576       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .99312       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=   5795.206     FROM MIGRAD    STATUS=CONVERGED    792 CALLS     3962 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0746        54.375       -.22466E-04   -.27902E-04
   2  norm          .10000E-03    2.1694       -.29369E-07** at limit **
   3  Prefactor     2.3809        5.9442       -.13049E-05   -.44033E-03
   4  Prefactor     2.1613        2.0627        .23772E-07    .16622E-03
   5  Prefactor     8.1850        3.0732       -.68746E-07    .14330E-03
   6  norm          .10000E-03    .98992        .16062E-09** at limit **
   7  Prefactor     .10000E-03    9.0996       -.24792E-05** at limit **
   8  Prefactor     13.763        13.223       -.57658E-07    .13255E-04
   9  Prefactor     .10000E-03    24.148        .88475E-05** at limit **
  10  Prefactor     .10000E-03    3.1579        .20829E-07** at limit **
  11  Prefactor     .10000E-03    1.6319       -.17238E-07** at limit **
  12  norm          .10000E-03    1.9515        .33531E-06** at limit **
  13  Prefactor     38.552        55.991       -.58258E-05    .34712E-05
  14  Prefactor     81.079        31.400       -.11318E-04   -.78303E-04
  15  norm          3.3641        3.8314        .14387E-06   -.41508E-03
  16  Prefactor     .10000E-03    29.396        .24412E-05** at limit **
  17  norm          3.3333        4.0997        .27350E-05   -.17226E-03
  18  norm          .10000E-03    4.9410        .56675E-06** at limit **
  19  norm          .10002E-03    3.0653        .17674E-06** at limit **
  20  norm          13.300        8.7719        .25769E-05   -.18901E-03
  21  norm          49.094        26.061       -.36941E-05    .34845E-05
  22  Prefactor     .10000E-03    2.1849        .62136E-06** at limit **
  23  Prefactor     7.6844        15.454       -.61209E-05   -.12506E-03
  24  Prefactor     4.9006        187.35       -.23690E-04   -.87677E-05
  25  Prefactor     .10000E-03    6.0161        .26578E-07** at limit **
  26  Prefactor     .10000E-03    4.8644       -.57292E-06** at limit **
  27  Prefactor     .10000E-03    25.843       -.11495E-04** at limit **
  28  Prefactor     .10004E-03    2.3381        .69440E-06** at limit **
  29  Normalizat    1.0578        .17759        .40364E-05   -.23052E-03
  30  Prefactor     .99283        .21734        .25454E-06    .47202E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.07455
  norm       = 0.0001
  Prefactor  = 2.38092
  Prefactor  = 2.16125
  Prefactor  = 8.18501
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.7633
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 38.5519
  Prefactor  = 81.0788
  norm       = 3.36412
  Prefactor  = 0.0001
  norm       = 3.33334
  norm       = 0.0001
  norm       = 0.000100016
  norm       = 13.2997
  norm       = 49.0943
  Prefactor  = 0.000100001
  Prefactor  = 7.68442
  Prefactor  = 4.90056
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100042
  Normalizat = 1.05785
  Prefactor  = 0.99283
 **********
 **   18 **HESSE 
 **********

 FCN=   5795.206     FROM HESSE     STATUS=OK           586 CALLS     4548 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0746        54.787        .23134E-03   -1.5357    
   2  norm          .10000E-03    4.3361        .20961E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.3809        5.9343        .26545E-03   -1.5399    
   4  Prefactor     2.1613        2.0290        .10029E-03   -1.5414    
   5  Prefactor     8.1850        3.0299        .76666E-04   -1.5136    
   6  norm          .10000E-03    .99112        .73968E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.1658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.763        13.225        .10796E-03   -1.4966    
   9  Prefactor     .10000E-03    24.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.1736        .13211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.6333        .94966E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.9654        .10385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     38.552        55.982        .64547E-04   -1.4465    
  14  Prefactor     81.079        31.240        .44606E-04   -1.3905    
  15  norm          3.3641        3.8210        .15195E-03   -1.5341    
  16  Prefactor     .10000E-03    30.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.3333        4.0710        .16445E-03   -1.5343    
  18  norm          .10000E-03    4.9462        .16526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10002E-03    10.441        .21212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          13.300        7.5761        .10989E-03   -1.4978    
  21  norm          49.094        26.041        .57232E-04   -1.4305    
  22  Prefactor     .10000E-03    2.2095        .10932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.6844        15.101        .14483E-03   -1.5153    
  24  Prefactor     4.9006        185.03        .17820E-03   -1.5265    
  25  Prefactor     .10000E-03    6.0264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    4.8665        .16398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    25.832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10004E-03    9.8045        .22300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0578        .20692        .23117E-03   -.91117    
  30  Prefactor     .99283        .25567        .29800E-03   -.92969    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.16102e-09
Minuit parameter uncertainties:
  1  25.9846
  2  3.40799e-05
  3  5.93581
  4  2.02903
  5  3.02992
  6  1.06439e-06
  7  1.87253e-05
  8  13.2273
  9  3.92784e-05
  10  6.30167e-06
  11  3.50116e-06
  12  4.95344e-05
  13  56.0589
  14  31.2468
  15  3.82131
  16  2.21115e-05
  17  4.07134
  18  5.23442e-07
  19  0.000824129
  20  7.57668
  21  26.0474
  22  8.61747e-05
  23  15.1083
  24  60.4264
  25  2.08496e-06
  26  3.41412e-06
  27  2.06187e-05
  28  0.0012876
  29  0.207074
  30  0.255983
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  8.108e+01  3.125e+01  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.928e-01  2.560e-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.058e+00  2.071e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.29
Ra Dec: 195.418 33.610
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 1.26e-07 +/- 4.84e-08
Energy Flux (Fixed Index): 3.32e-05 +/- 1.28e-05

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): 0
logL (Free Index) = 5793.37244734
delta logL = 1.83308574529

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5792.75504739
delta logL = 2.4504856988

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    133.25       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8698       1.0000          .0000       10.000    
     3 'Normalizat'    1.1238       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93160       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=   5792.755     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      217 TOTAL
                     EDM=   .30E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     133.26        51.587        .22113E-05   -.25623E-04
   2  Index         1.8698        .28949        .69229E-05   -.17546E-04
   3  Normalizat    1.1238        .17406       -.13052E-05   -.20473E-03
   4  Prefactor     .93154        .21547        .52283E-06   -.16609E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 133.258
  Index      = 1.8698
  Normalizat = 1.12384
  Prefactor  = 0.931538
 **********
 **   18 **HESSE 
 **********

 FCN=   5792.755     FROM HESSE     STATUS=OK            31 CALLS      248 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     133.26        51.522        .17443E-03   -1.3394    
   2  Index         1.8698        .28926        .50573E-02   -.67647    
   3  Normalizat    1.1238        .20174        .22522E-03   -.88990    
   4  Prefactor     .93154        .25031        .30593E-03   -.95048    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.71474e-11
Minuit parameter uncertainties:
  1  51.5397
  2  0.289531
  3  0.20188
  4  0.250617
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/99760': 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) = 5792.75504732
delta logL = 2.45048577039

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.333e+02  5.154e+01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  1.870e+00  2.895e-01  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.315e-01  2.506e-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.124e+00  2.019e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.21
Ra Dec: 195.418 33.610
Photon Index (Free Index): 1.87 +/- 0.29
Photon Flux (Free Index): 8.11e-08 +/- 3.98e-08
Energy Flux (Free Index): 7.92e-05 +/- 5.12e-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/99760/cmap_HighResolution_259027201_259286401_4FGL_J1301.6+3336_daily_bin76.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.26e-07', energy_flux2='7.92e-05', photon_flux_error='4.84e-08', dlogl='2.45e+00', energy_flux='3.32e-05', photon_flux2='8.11e-08', job_status='DONE', time_completed='2021-09-06 15:00:40.650829', photon_index_error2='0.29', photon_index2='1.87', ts='14.29', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='5.12e-05', EG='1.06', time_epoch_completed='1630965640.65', return_code='0', job_id='99760', GAL2='0.93', EG2='1.12', return_code2='0', energy_flux_error='1.28e-05', photon_flux_error2='3.98e-08', ts2='19.21', photon_index='2.59' WHERE bin_id='76' 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@bullet0049>
Subject: Job 99760: <4FGL_J1301.6+3336_daily_bin76> in cluster <slac> Done

Job <4FGL_J1301.6+3336_daily_bin76> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 14:46:03 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:46:04 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:04 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_bin76 195.418 33.6097 259027201 259286401 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 :                                   700.37 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             293.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            878 sec.

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

