/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 98 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 = 7377
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1301.6+3336_daily_bin505
RA = 195.418, Dec = 33.6097
tmin = 370224001, tmax = 370483201
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='102958', job_status='RUN', time_executed='2021-09-06 14:57:43.251444', time_epoch_executed='1630965463.25' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='505'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/102958

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/102958/ft1_4FGL_J1301.6+3336_daily_bin505.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/102958/ft2_4FGL_J1301.6+3336_daily_bin505.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/102958/ft1_4FGL_J1301.6+3336_daily_bin505.fits outfile=/scratch/kocevski/102958/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin505.fits ra=195.418 dec=33.6097 rad=12.0 tmin=370224001.0 tmax=370483201.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 16.21
user 15.71
sys 0.41

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/102958/ft2_4FGL_J1301.6+3336_daily_bin505.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/102958/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin505.fits evtable="EVENTS" outfile="/scratch/kocevski/102958/ft1_filtered_4FGL_J1301.6+3336_daily_bin505.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/102958/ft1_filtered_4FGL_J1301.6+3336_daily_bin505.fits" evtable="EVENTS" scfile=/scratch/kocevski/102958/ft2_4FGL_J1301.6+3336_daily_bin505.fits sctable="SC_DATA" outfile=/scratch/kocevski/102958/ltcube_370224001_370483201_4FGL_J1301.6+3336_daily_bin505.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/102958/ft2_4FGL_J1301.6+3336_daily_bin505.fits
.....................!
real 10.64
user 10.10
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/102958/ft1_filtered_4FGL_J1301.6+3336_daily_bin505.fits evtable="EVENTS" scfile=/scratch/kocevski/102958/ft2_4FGL_J1301.6+3336_daily_bin505.fits sctable="SC_DATA" expcube=/scratch/kocevski/102958/ltcube_370224001_370483201_4FGL_J1301.6+3336_daily_bin505.fits outfile=/scratch/kocevski/102958/expmap_370224001_370483201_4FGL_J1301.6+3336_daily_bin505.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/102958/ltcube_370224001_370483201_4FGL_J1301.6+3336_daily_bin505.fits
.....................!
real 191.94
user 185.57
sys 4.72

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/102958/ft1_filtered_4FGL_J1301.6+3336_daily_bin505.fits scfile=/scratch/kocevski/102958/ft2_4FGL_J1301.6+3336_daily_bin505.fits outfile=/scratch/kocevski/102958/cmap_370224001_370483201_4FGL_J1301.6+3336_daily_bin505.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.57
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/102958/ft1_filtered_4FGL_J1301.6+3336_daily_bin505.fits scfile=/scratch/kocevski/102958/ft2_4FGL_J1301.6+3336_daily_bin505.fits outfile=/scratch/kocevski/102958/cmap_HighResolution_370224001_370483201_4FGL_J1301.6+3336_daily_bin505.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9856       1.0000         .10000E-03   10000.    
     2 'norm      '    4.7474       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.3283       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.8199       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.7922       1.0000         .10000E-03   10000.    
     6 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.2190       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.7589       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.6894       1.0000         .10000E-03   10000.    
    13 'Prefactor '    43.262       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10587E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    17.028       1.0000         .10000E-03   10000.    
    19 'norm      '    8.9162       1.0000         .10000E-03   10000.    
    20 'norm      '    .18190E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    38.401       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    35.784       1.0000         .10000E-03   10000.    
    27 'Prefactor '    59.042       1.0000         .10000E-03   10000.    
    28 'Prefactor '    7.6827       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .54180       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.4309       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=   3957.529     FROM MIGRAD    STATUS=CONVERGED    779 CALLS     3925 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9402        181.03       -.32986E-05    .58999E-05
   2  norm          4.7471        3.2289        .19912E-07    .16818E-03
   3  Prefactor     4.3269        7.7030        .15768E-06    .12520E-03
   4  Prefactor     2.8197        2.2088        .35132E-08    .12363E-03
   5  Prefactor     1.7917        2.1653       -.19828E-06   -.28746E-04
   6  norm          .10000E-03    3.4470       -.46898E-06** at limit **
   7  Prefactor     7.2189        7.0027        .13733E-05    .57671E-03
   8  Prefactor     .10000E-03    7.8501       -.24563E-06** at limit **
   9  Prefactor     .10000E-03    21.769       -.21631E-06** at limit **
  10  Prefactor     4.7573        10.352       -.29758E-06    .42165E-04
  11  Prefactor     .10000E-03    2.1548       -.23208E-06** at limit **
  12  norm          1.6891        2.8543       -.25252E-06   -.18966E-04
  13  Prefactor     43.265        59.034       -.70778E-07    .20242E-04
  14  Prefactor     .10000E-03    9.3635       -.30769E-06** at limit **
  15  norm          .10000E-03    7.5658       -.13874E-05** at limit **
  16  Prefactor     .10000E-03    5.9259       -.26942E-06** at limit **
  17  norm          .10000E-03    1.7087       -.19154E-06** at limit **
  18  norm          17.022        21.212       -.32609E-06    .45273E-04
  19  norm          8.9248        4.7785        .11202E-05    .26794E-03
  20  norm          .10001E-03    54.064        .12061E-04** at limit **
  21  norm          .10000E-03    14.294       -.22519E-06** at limit **
  22  Prefactor     .10000E-03    2.4256       -.13231E-05** at limit **
  23  Prefactor     .10000E-03    7.8730       -.77958E-06** at limit **
  24  Prefactor     38.446        87.053        .15109E-05    .80741E-04
  25  Prefactor     .10000E-03    42.473       -.34005E-06** at limit **
  26  Prefactor     35.776        37.198        .11011E-05    .14017E-03
  27  Prefactor     58.832        95.564        .20158E-05    .11589E-03
  28  Prefactor     7.6833        7.0379        .17698E-07    .11721E-03
  29  Normalizat    .54132        .23204       -.35423E-05    .54727E-03
  30  Prefactor     1.4316        .29310        .40128E-05    .19155E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.94021
  norm       = 4.74712
  Prefactor  = 4.32686
  Prefactor  = 2.81971
  Prefactor  = 1.79175
  norm       = 0.0001
  Prefactor  = 7.2189
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.75725
  Prefactor  = 0.0001
  norm       = 1.6891
  Prefactor  = 43.2649
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 17.0218
  norm       = 8.92478
  norm       = 0.000100011
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.4463
  Prefactor  = 0.0001
  Prefactor  = 35.7758
  Prefactor  = 58.8321
  Prefactor  = 7.68333
  Normalizat = 0.541323
  Prefactor  = 1.43163
 **********
 **   18 **HESSE 
 **********

 FCN=   3957.529     FROM HESSE     STATUS=OK           584 CALLS     4509 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9402        183.55        .29408E-03   -1.5429    
   2  norm          4.7471        3.2282        .87698E-04   -1.5272    
   3  Prefactor     4.3269        7.6732        .19362E-03   -1.5292    
   4  Prefactor     2.8197        2.2122        .78387E-04   -1.5372    
   5  Prefactor     1.7917        2.1435        .97542E-04   -1.5440    
   6  norm          .10000E-03    3.4884        .11421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.2189        7.0886        .74645E-03   -1.5171    
   8  Prefactor     .10000E-03    7.8553        .17218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    21.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.7573        10.332        .18444E-03   -1.5272    
  11  Prefactor     .10000E-03    2.1601        .90209E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.6891        2.8211        .13388E-03   -1.5448    
  13  Prefactor     43.265        59.024        .60950E-04   -1.4391    
  14  Prefactor     .10000E-03    9.3710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    7.8110        .33857E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.9330        .14958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.7113        .80327E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          17.022        21.219        .97058E-04   -1.4883    
  19  norm          8.9248        4.8263        .95861E-04   -1.5110    
  20  norm          .10001E-03    54.521        .33467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    14.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.4951        .96265E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.8974        .17254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     38.446        87.060        .64679E-04   -1.4467    
  25  Prefactor     .10000E-03    43.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     35.776        37.210        .66994E-04   -1.4511    
  27  Prefactor     58.832        95.915        .26107E-03   -1.4172    
  28  Prefactor     7.6833        7.0343        .14468E-03   -1.5154    
  29  Normalizat    .54132        .24881        .29414E-03   -1.1054    
  30  Prefactor     1.4316        .31295        .24309E-03   -.79473    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58712e-09
Minuit parameter uncertainties:
  1  37.862
  2  3.22829
  3  7.67492
  4  2.2123
  5  2.14356
  6  3.06812e-05
  7  7.08942
  8  1.9106e-05
  9  3.58532e-05
  10  10.3354
  11  8.06779e-06
  12  2.8213
  13  59.1036
  14  1.68349e-05
  15  9.51601e-05
  16  1.35515e-05
  17  6.14729e-06
  18  21.228
  19  4.82652
  20  0.00156326
  21  2.31463e-05
  22  5.17667e-05
  23  5.62909e-05
  24  87.3501
  25  0.00012137
  26  37.2343
  27  96.1685
  28  7.03508
  29  0.24932
  30  0.313365
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  1.683e-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.432e+00  3.134e-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:  5.413e-01  2.493e-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: 7.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/102958/likelihoodResults_370224001_370483201_4FGL_J1301.6+3336_daily_bin505.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) = 3957.52924399
delta logL = -0.000505910586526

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3957.52873915
delta logL = -1.06678680822e-06

Fit tolerance = 1e-08

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

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

 FCN=   3957.529     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      260 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    46.158        .18142E-01** at limit **
   2  Index         1.9555        5.9777        .50000        .25235E-06
   3  Normalizat    .54131        .93397E-02    .29412E-03   -.13077E-03
   4  Prefactor     1.4316        .12080E-01    .24309E-03   -.15741E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.95551
  Normalizat = 0.541313
  Prefactor  = 1.43164
 **********
 **   18 **HESSE 
 **********

 FCN=   3957.529     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      289 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    411.25        .21483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9555        7.7763        .50000       -.65467    
   3  Normalizat    .54131        .28995E-01    .11765E-04   -1.1054    
   4  Prefactor     1.4316        .37503E-01    .48618E-04   -.79473    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.34361e-09
Minuit parameter uncertainties:
  1  0.000209775
  2  1282.9
  3  0.0289963
  4  0.037504
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/102958': 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) = 3957.52873684
delta logL = 1.24866073747e-06

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  2.098e-04  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  1.956e+00  1.283e+03  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.432e+00  3.750e-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:  5.413e-01  2.900e-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/102958/cmap_HighResolution_370224001_370483201_4FGL_J1301.6+3336_daily_bin505.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.51e-03', job_status='DONE', photon_flux_upper_limit='7.04e-08', time_completed='2021-09-06 15:09:26.737950', job_id='102958', GAL2='1.43', fit_tolerance='1e-08', EG2='0.54', EG='0.54', time_epoch_completed='1630966166.74', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.43', dlogl='1.25e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='505' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 15:09:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 102958: <4FGL_J1301.6+3336_daily_bin505> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin505 195.418 33.6097 370224001 370483201 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 :                                   689.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            823 sec.

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

