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


Performing analysis on: 4FGL_J1301.6+3336_daily_bin425
RA = 195.418, Dec = 33.6097
tmin = 349488001, tmax = 349747201
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='102839', job_status='RUN', time_executed='2021-09-06 14:55:57.589147', time_epoch_executed='1630965357.59' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='425'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/102839

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/102839/ft1_4FGL_J1301.6+3336_daily_bin425.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/102839/ft2_4FGL_J1301.6+3336_daily_bin425.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/102839/ft1_4FGL_J1301.6+3336_daily_bin425.fits outfile=/scratch/kocevski/102839/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin425.fits ra=195.418 dec=33.6097 rad=12.0 tmin=349488001.0 tmax=349747201.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 3.43
user 3.18
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/102839/ft1_filtered_4FGL_J1301.6+3336_daily_bin425.fits" evtable="EVENTS" scfile=/scratch/kocevski/102839/ft2_4FGL_J1301.6+3336_daily_bin425.fits sctable="SC_DATA" outfile=/scratch/kocevski/102839/ltcube_349488001_349747201_4FGL_J1301.6+3336_daily_bin425.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/102839/ft2_4FGL_J1301.6+3336_daily_bin425.fits
.....................!
real 12.43
user 11.61
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/102839/ft1_filtered_4FGL_J1301.6+3336_daily_bin425.fits evtable="EVENTS" scfile=/scratch/kocevski/102839/ft2_4FGL_J1301.6+3336_daily_bin425.fits sctable="SC_DATA" expcube=/scratch/kocevski/102839/ltcube_349488001_349747201_4FGL_J1301.6+3336_daily_bin425.fits outfile=/scratch/kocevski/102839/expmap_349488001_349747201_4FGL_J1301.6+3336_daily_bin425.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/102839/ltcube_349488001_349747201_4FGL_J1301.6+3336_daily_bin425.fits
.....................!
real 190.30
user 184.65
sys 5.23

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/102839/ft1_filtered_4FGL_J1301.6+3336_daily_bin425.fits scfile=/scratch/kocevski/102839/ft2_4FGL_J1301.6+3336_daily_bin425.fits outfile=/scratch/kocevski/102839/cmap_349488001_349747201_4FGL_J1301.6+3336_daily_bin425.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/102839/ft1_filtered_4FGL_J1301.6+3336_daily_bin425.fits scfile=/scratch/kocevski/102839/ft2_4FGL_J1301.6+3336_daily_bin425.fits outfile=/scratch/kocevski/102839/cmap_HighResolution_349488001_349747201_4FGL_J1301.6+3336_daily_bin425.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.57
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.523       1.0000         .10000E-03   10000.    
     2 'norm      '    3.2187       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.9015       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.4755       1.0000         .10000E-03   10000.    
     6 'norm      '    9.7137       1.0000         .10000E-03   10000.    
     7 'Prefactor '    27.718       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.5240       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10630E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.4936       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.534       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11067E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10120E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.4923       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    42.444       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-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 '    3.3673       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2193       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .60880       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=   5841.321     FROM MIGRAD    STATUS=CONVERGED    738 CALLS     3871 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.522        31.338       -.16994E-05    .22755E-04
   2  norm          3.2188        3.2591       -.32924E-07   -.27580E-03
   3  Prefactor     .10000E-03    5.1476       -.37914E-05** at limit **
   4  Prefactor     2.9016        2.2286       -.11382E-06    .66702E-04
   5  Prefactor     5.4753        2.8968       -.19673E-06   -.95209E-04
   6  norm          9.7136        5.3923       -.30482E-06   -.85363E-04
   7  Prefactor     27.716        13.598       -.44206E-06    .27807E-04
   8  Prefactor     .10000E-03    9.6579        .32694E-05** at limit **
   9  Prefactor     .10000E-03    27.225       -.34419E-05** at limit **
  10  Prefactor     1.5241        3.8066        .49269E-06   -.55377E-03
  11  Prefactor     .10000E-03    3.9327        .20226E-06** at limit **
  12  norm          .10000E-03    3.0073        .70948E-06** at limit **
  13  Prefactor     7.4580        79.176       -.10261E-03   -.15057E-04
  14  Prefactor     16.514        24.111       -.15165E-04   -.73341E-04
  15  norm          .10000E-03    1.6557       -.11180E-06** at limit **
  16  Prefactor     .10000E-03    32.560        .10889E-04** at limit **
  17  norm          .10000E-03    1.9654       -.71516E-07** at limit **
  18  norm          .10000E-03    5.5048        .59183E-05** at limit **
  19  norm          .10000E-03    1.1249        .10984E-06** at limit **
  20  norm          .10000E-03    2.0901        .12539E-06** at limit **
  21  norm          .10000E-03    40.846       -.53002E-05** at limit **
  22  Prefactor     4.4936        3.2920        .82562E-06    .52615E-04
  23  Prefactor     .10000E-03    13.291       -.47605E-05** at limit **
  24  Prefactor     42.447        48.112        .30217E-05    .18714E-04
  25  Prefactor     .10000E-03    12.362        .21646E-05** at limit **
  26  Prefactor     .10000E-03    7.2249       -.35444E-05** at limit **
  27  Prefactor     .10000E-03    28.051       -.51923E-06** at limit **
  28  Prefactor     3.3674        3.5975       -.12694E-05   -.34015E-03
  29  Normalizat    1.2195        .17050        .47445E-05   -.16980E-03
  30  Prefactor     .60865        .20086        .60919E-06    .14999E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.5221
  norm       = 3.21883
  Prefactor  = 0.0001
  Prefactor  = 2.90158
  Prefactor  = 5.47532
  norm       = 9.71357
  Prefactor  = 27.7164
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.52408
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 7.45796
  Prefactor  = 16.5145
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.49363
  Prefactor  = 0.0001
  Prefactor  = 42.4472
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.36736
  Normalizat = 1.21946
  Prefactor  = 0.608655
 **********
 **   18 **HESSE 
 **********

 FCN=   5841.321     FROM HESSE     STATUS=OK           582 CALLS     4453 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.522        31.337        .86337E-04   -1.4780    
   2  norm          3.2188        3.2458        .12608E-03   -1.5349    
   3  Prefactor     .10000E-03    5.2071        .16934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.9016        2.2285        .92264E-04   -1.5367    
   5  Prefactor     5.4753        2.8880        .87067E-04   -1.5240    
   6  norm          9.7136        5.3895        .12741E-03   -1.5085    
   7  Prefactor     27.716        13.591        .76095E-04   -1.4655    
   8  Prefactor     .10000E-03    9.6750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    27.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.5241        3.7604        .22895E-03   -1.5461    
  11  Prefactor     .10000E-03    3.9980        .14793E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.0452        .12896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.4580        79.460        .14651E-03   -1.5162    
  14  Prefactor     16.514        24.167        .98499E-04   -1.4895    
  15  norm          .10000E-03    1.6936        .96011E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    33.654        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.9760        .10459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.5547        .17580E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.1313        .79080E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.0984        .10788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    41.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.4936        3.2760        .10955E-03   -1.5284    
  23  Prefactor     .10000E-03    13.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     42.447        48.075        .61533E-04   -1.4404    
  25  Prefactor     .10000E-03    12.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    7.2379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    28.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     3.3674        3.5953        .14436E-03   -1.5341    
  29  Normalizat    1.2195        .19483        .20299E-03   -.86004    
  30  Prefactor     .60865        .22807        .33636E-03   -1.0722    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6879e-09
Minuit parameter uncertainties:
  1  31.3609
  2  3.24599
  3  2.20047e-05
  4  2.22858
  5  2.88806
  6  5.38978
  7  13.5921
  8  5.05263e-06
  9  3.55744e-05
  10  3.76103
  11  7.69325e-06
  12  0.000122897
  13  48.7698
  14  24.181
  15  1.32458e-05
  16  9.11213e-05
  17  3.23964e-06
  18  0.000163039
  19  1.23229e-05
  20  4.44896e-06
  21  0.000236227
  22  3.27615
  23  9.25147e-05
  24  48.119
  25  8.08098e-05
  26  1.92809e-05
  27  6.45483e-05
  28  3.59552
  29  0.194948
  30  0.228421
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.651e+01  2.418e+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:  6.087e-01  2.284e-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.219e+00  1.949e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.57
Ra Dec: 195.418 33.610
Photon Flux Upper Limit: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.14e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/102839/likelihoodResults_349488001_349747201_4FGL_J1301.6+3336_daily_bin425.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): 0
logL (Free Index) = 5839.83846504
delta logL = 1.48281814277

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5839.83374187
delta logL = 1.48754132022

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3299       1.0000         .10000E-03   10000.    
     2 'Index     '    4.6984       1.0000          .0000       10.000    
     3 'Normalizat'    1.1465       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67001       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=   5839.834     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      310 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3265        13.717        .95214E-02    .52870E-03
   2  Index         4.7000        2.7711        .10963        .14501E-03
   3  Normalizat    1.1465        .47426E-01    .36359E-01    .26026E-05
   4  Prefactor     .66997        .57516E-01    .72708E-01    .24082E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.32651
  Index      = 4.7
  Normalizat = 1.14646
  Prefactor  = 0.669974
 **********
 **   18 **HESSE 
 **********

 FCN=   5839.834     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      343 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3265        27.056        .53994E-04   -1.5478    
   2  Index         4.7000        4.0538        .42879E-02   -.60036E-01
   3  Normalizat    1.1465        .17414        .20810E-03   -.88274    
   4  Prefactor     .66997        .20669        .32183E-03   -1.0472    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.89357e-10
Minuit parameter uncertainties:
  1  11.9874
  2  4.73128
  3  0.174226
  4  0.206929
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/102839': 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) = 5839.83374043
delta logL = 1.4875427524

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.327e+00  1.199e+01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  4.700e+00  4.731e+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:  6.700e-01  2.069e-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.146e+00  1.742e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.73
Ra Dec: 195.418 33.610
Photon Index (Free Index): 4.70 +/- 4.73
Photon Flux (Free Index): 7.81e-08 +/- 5.30e-08
Energy Flux (Free Index): 1.07e-05 +/- 1.02e-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/102839/cmap_HighResolution_349488001_349747201_4FGL_J1301.6+3336_daily_bin425.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.14e-03', comment='SUCCESS', energy_flux2='1.07e-05', dlogl='1.49e+00', photon_flux2='7.81e-08', job_status='DONE', time_completed='2021-09-06 15:09:39.325930', photon_index_error2='4.73', photon_index2='4.70', ts='0.57', fit_tolerance='1e-08', GAL='0.61', photon_index_error='0.00', photon_flux_upper_limit='1.04e-07', energy_flux_error2='1.02e-05', EG='1.22', time_epoch_completed='1630966179.33', return_code='0', job_id='102839', GAL2='0.67', EG2='1.15', return_code2='102', photon_flux_error2='5.30e-08', ts2='3.73', photon_index='2.59' WHERE bin_id='425' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 15:09:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 102839: <4FGL_J1301.6+3336_daily_bin425> in cluster <slac> Done

Job <4FGL_J1301.6+3336_daily_bin425> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 14:55:36 2021
Job was executed on host(s) <bullet0295>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:55:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 14:55:37 2021
Terminated at Mon Sep  6 15:09:39 2021
Results reported at Mon Sep  6 15:09:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin425 195.418 33.6097 349488001 349747201 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 :                                   816.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            843 sec.

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

