/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 7 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 = 7523
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1301.6+3336_daily_bin733
RA = 195.418, Dec = 33.6097
tmin = 429321601, tmax = 429580801
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='103269', job_status='RUN', time_executed='2021-09-06 14:56:30.035119', time_epoch_executed='1630965390.04' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='733'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/103269

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/103269/ft1_4FGL_J1301.6+3336_daily_bin733.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/103269/ft2_4FGL_J1301.6+3336_daily_bin733.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/103269/ft1_4FGL_J1301.6+3336_daily_bin733.fits outfile=/scratch/kocevski/103269/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin733.fits ra=195.418 dec=33.6097 rad=12.0 tmin=429321601.0 tmax=429580801.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 6.55
user 6.22
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/103269/ft2_4FGL_J1301.6+3336_daily_bin733.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/103269/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin733.fits evtable="EVENTS" outfile="/scratch/kocevski/103269/ft1_filtered_4FGL_J1301.6+3336_daily_bin733.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.51
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/103269/ft1_filtered_4FGL_J1301.6+3336_daily_bin733.fits" evtable="EVENTS" scfile=/scratch/kocevski/103269/ft2_4FGL_J1301.6+3336_daily_bin733.fits sctable="SC_DATA" outfile=/scratch/kocevski/103269/ltcube_429321601_429580801_4FGL_J1301.6+3336_daily_bin733.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/103269/ft2_4FGL_J1301.6+3336_daily_bin733.fits
.....................!
real 11.82
user 11.48
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/103269/ft1_filtered_4FGL_J1301.6+3336_daily_bin733.fits evtable="EVENTS" scfile=/scratch/kocevski/103269/ft2_4FGL_J1301.6+3336_daily_bin733.fits sctable="SC_DATA" expcube=/scratch/kocevski/103269/ltcube_429321601_429580801_4FGL_J1301.6+3336_daily_bin733.fits outfile=/scratch/kocevski/103269/expmap_429321601_429580801_4FGL_J1301.6+3336_daily_bin733.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/103269/ltcube_429321601_429580801_4FGL_J1301.6+3336_daily_bin733.fits
.....................!
real 190.23
user 185.74
sys 4.14

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/103269/ft1_filtered_4FGL_J1301.6+3336_daily_bin733.fits scfile=/scratch/kocevski/103269/ft2_4FGL_J1301.6+3336_daily_bin733.fits outfile=/scratch/kocevski/103269/cmap_429321601_429580801_4FGL_J1301.6+3336_daily_bin733.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/103269/ft1_filtered_4FGL_J1301.6+3336_daily_bin733.fits scfile=/scratch/kocevski/103269/ft2_4FGL_J1301.6+3336_daily_bin733.fits outfile=/scratch/kocevski/103269/cmap_HighResolution_429321601_429580801_4FGL_J1301.6+3336_daily_bin733.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.53
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    50.064       1.0000         .10000E-03   10000.    
     2 'norm      '    12.435       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.5307       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.7293       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9367       1.0000         .10000E-03   10000.    
     6 'norm      '    9.5302       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.9206       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.601       1.0000         .10000E-03   10000.    
     9 'Prefactor '    78.164       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.3229       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12127E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    6.5496       1.0000         .10000E-03   10000.    
    20 'norm      '    .12946E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    8.0794       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.5492       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10272E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    35.118       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10278E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.8138       1.0000         .10000E-03   10000.    
    27 'Prefactor '    48.982       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .86342       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.3326       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=   7270.897     FROM MIGRAD    STATUS=CONVERGED    751 CALLS     3902 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     50.076        62.165        .14509E-04   -.75878E-05
   2  norm          12.435        4.7545       -.35941E-07   -.38115E-04
   3  Prefactor     4.5301        7.8413       -.59457E-06   -.16801E-03
   4  Prefactor     1.7287        2.6788       -.11239E-07   -.46454E-03
   5  Prefactor     1.9369        1.8101        .12323E-06   -.25149E-04
   6  norm          9.5303        5.5971        .11093E-06   -.13795E-03
   7  Prefactor     5.9205        8.6698        .91886E-07   -.10360E-03
   8  Prefactor     14.606        14.254       -.10338E-05   -.24055E-04
   9  Prefactor     78.187        81.110        .24395E-04   -.62012E-05
  10  Prefactor     3.3228        3.8683        .20350E-06    .20198E-04
  11  Prefactor     .10000E-03    1.5792        .60512E-07** at limit **
  12  norm          .10000E-03    1.9182       -.62660E-06** at limit **
  13  Prefactor     .10000E-03    15.952        .25225E-05** at limit **
  14  Prefactor     .10000E-03    11.792        .17474E-05** at limit **
  15  norm          .10000E-03    1.8276        .53992E-06** at limit **
  16  Prefactor     .10000E-03    10.107        .48595E-06** at limit **
  17  norm          .10000E-03    1.8027       -.15079E-06** at limit **
  18  norm          .10000E-03    5.3879        .41740E-07** at limit **
  19  norm          6.5500        3.5550        .10209E-05    .22121E-04
  20  norm          .10000E-03    10.561       -.91731E-06** at limit **
  21  norm          8.0799        8.3427        .12540E-05    .11430E-02
  22  Prefactor     5.5473        4.0307       -.41329E-05   -.57573E-03
  23  Prefactor     .10000E-03    12.352       -.10350E-05** at limit **
  24  Prefactor     35.195        71.088        .11337E-03    .70014E-05
  25  Prefactor     .10000E-03    13.959       -.34484E-05** at limit **
  26  Prefactor     1.8319        36.894       -.11553E-04   -.68407E-04
  27  Prefactor     48.979        64.880       -.40615E-05   -.24697E-04
  28  Prefactor     .10000E-03    3.5945        .39070E-06** at limit **
  29  Normalizat    .86349        .17075       -.56910E-05    .51377E-04
  30  Prefactor     1.3325        .20546       -.30951E-05    .15697E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 50.076
  norm       = 12.4347
  Prefactor  = 4.53011
  Prefactor  = 1.7287
  Prefactor  = 1.93688
  norm       = 9.53032
  Prefactor  = 5.9205
  Prefactor  = 14.6059
  Prefactor  = 78.1869
  Prefactor  = 3.32282
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.55003
  norm       = 0.000100001
  norm       = 8.07993
  Prefactor  = 5.54734
  Prefactor  = 0.000100004
  Prefactor  = 35.1946
  Prefactor  = 0.000100001
  Prefactor  = 1.83189
  Prefactor  = 48.9791
  Prefactor  = 0.0001
  Normalizat = 0.863491
  Prefactor  = 1.33246
 **********
 **   18 **HESSE 
 **********

 FCN=   7270.897     FROM HESSE     STATUS=OK           590 CALLS     4492 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     50.076        62.071        .56677E-04   -1.4291    
   2  norm          12.435        4.7444        .10238E-03   -1.5003    
   3  Prefactor     4.5301        7.8213        .18914E-03   -1.5282    
   4  Prefactor     1.7287        2.6500        .15554E-03   -1.5445    
   5  Prefactor     1.9369        1.8098        .10672E-03   -1.5430    
   6  norm          9.5303        5.5924        .12981E-03   -1.5090    
   7  Prefactor     5.9205        8.6528        .16504E-03   -1.5221    
   8  Prefactor     14.606        14.246        .10482E-03   -1.4943    
   9  Prefactor     78.187        81.069        .45422E-04   -1.3937    
  10  Prefactor     3.3228        3.8666        .17641E-03   -1.5343    
  11  Prefactor     .10000E-03    1.5805        .10463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.9270        .11522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.8927        .22503E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    71.316        .51857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.8098        .11172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.3968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          6.5500        3.4940        .11019E-03   -1.5196    
  20  norm          .10000E-03    10.662        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          8.0799        8.3609        .70527E-03   -1.5139    
  22  Prefactor     5.5473        4.0127        .12519E-03   -1.5237    
  23  Prefactor     .10000E-03    12.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     35.195        70.978        .67624E-04   -1.4521    
  25  Prefactor     .10000E-03    14.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.8319        36.944        .31017E-03   -1.5437    
  27  Prefactor     48.979        65.074        .57297E-04   -1.4307    
  28  Prefactor     .10000E-03    3.7542        .31507E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .86349        .20224        .26789E-03   -.97755    
  30  Prefactor     1.3325        .24571        .27609E-03   -.82347    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14085e-09
Minuit parameter uncertainties:
  1  62.1516
  2  4.74459
  3  7.8231
  4  2.65016
  5  1.80986
  6  5.5927
  7  8.65466
  8  14.2497
  9  81.184
  10  3.86685
  11  1.98963e-06
  12  3.6176e-05
  13  2.23725e-05
  14  3.72349e-05
  15  2.27804e-05
  16  0.000645464
  17  6.58999e-06
  18  1.5509e-05
  19  3.49414
  20  0.000224206
  21  8.36215
  22  4.01293
  23  0.000421702
  24  71.1495
  25  0.000179307
  26  16.4645
  27  65.1686
  28  6.54223e-05
  29  0.202419
  30  0.245924
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  3.723e-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:  1.332e+00  2.459e-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:  8.635e-01  2.024e-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: 6.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/103269/likelihoodResults_429321601_429580801_4FGL_J1301.6+3336_daily_bin733.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) = 7270.89761715
delta logL = -0.000402966138608

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7270.89721434
delta logL = -1.51168023876e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5964       1.0000          .0000       10.000    
     3 'Normalizat'    .86343       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3325       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7270.897     FROM MIGRAD    STATUS=FAILED        89 CALLS      243 TOTAL
                     EDM=   .45E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10051E-03    6306.3        .18142E-02** at limit **
   2  Index         2.6993        6.2223        .50000       -.18126E-05
   3  Normalizat    .86349        .15809        .26789E-03    .72145E-05
   4  Prefactor     1.3325        .19097        .27609E-03    .49413E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7270.897     FROM SIMPLEX   STATUS=UNCHANGED    179 CALLS      422 TOTAL
                     EDM=   .95E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10051E-03    6306.3        .54959E-03** at limit **
   2  Index         2.6993        6.2223        .28771E-05   -.18126E-05
   3  Normalizat    .86349        .15809        .34891E-06    .72145E-05
   4  Prefactor     1.3325        .19097        .14563E-06    .49413E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7270.897     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      489 TOTAL
                     EDM=   .56E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13786E-02    .35414E-01    .16475E-01** at limit **
   2  Index         5.5097        2.7674        .50000        .43483E-05
   3  Normalizat    .86300        .29757E-02    .10716E-04   -.14620E-03
   4  Prefactor     1.3329        .37317E-02    .11044E-04   -.13177E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00137859
  Index      = 5.50971
  Normalizat = 0.863002
  Prefactor  = 1.33286
 **********
 **   18 **HESSE 
 **********

 FCN=   7270.897     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      528 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13786E-02    .13657        .77003E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.5097        3.2025        .50000        .10212    
   3  Normalizat    .86300        .35286E-02    .21431E-05   -.97773    
   4  Prefactor     1.3329        .44256E-02    .22087E-05   -.82335    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.78726e-10
Minuit parameter uncertainties:
  1  0.0264285
  2  3.47939
  3  0.00352856
  4  0.00442557
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/103269': 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) = 7270.89716742
delta logL = 4.67681657028e-05

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.379e-03  2.643e-02  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  5.510e+00  3.479e+00  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:  1.333e+00  4.426e-03  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:  8.630e-01  3.529e-03  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/103269/cmap_HighResolution_429321601_429580801_4FGL_J1301.6+3336_daily_bin733.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.86e-03', job_status='DONE', photon_flux_upper_limit='6.22e-08', time_completed='2021-09-06 15:11:57.992456', job_id='103269', GAL2='1.33', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1630966317.99', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.33', dlogl='4.68e-05', ts2='0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='733' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 15:11:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 103269: <4FGL_J1301.6+3336_daily_bin733> in cluster <slac> Done

Job <4FGL_J1301.6+3336_daily_bin733> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 14:56:07 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:56:09 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:56:09 2021
Terminated at Mon Sep  6 15:11:58 2021
Results reported at Mon Sep  6 15:11:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin733 195.418 33.6097 429321601 429580801 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 :                                   915.33 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   949 sec.
    Turnaround time :                            951 sec.

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

