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


Performing analysis on: 4FGL_J1301.6+3336_daily_bin75
RA = 195.418, Dec = 33.6097
tmin = 258768001, tmax = 259027201
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='99758', job_status='RUN', time_executed='2021-09-06 14:48:02.731054', time_epoch_executed='1630964882.73' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='75'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/99758

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/99758/ft1_4FGL_J1301.6+3336_daily_bin75.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/99758/ft2_4FGL_J1301.6+3336_daily_bin75.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/99758/ft1_4FGL_J1301.6+3336_daily_bin75.fits outfile=/scratch/kocevski/99758/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin75.fits ra=195.418 dec=33.6097 rad=12.0 tmin=258768001.0 tmax=259027201.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.29
user 0.95
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/99758/ft1_filtered_4FGL_J1301.6+3336_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/99758/ft2_4FGL_J1301.6+3336_daily_bin75.fits sctable="SC_DATA" expcube=/scratch/kocevski/99758/ltcube_258768001_259027201_4FGL_J1301.6+3336_daily_bin75.fits outfile=/scratch/kocevski/99758/expmap_258768001_259027201_4FGL_J1301.6+3336_daily_bin75.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/99758/ltcube_258768001_259027201_4FGL_J1301.6+3336_daily_bin75.fits
.....................!
real 193.36
user 186.51
sys 5.82

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/99758/ft1_filtered_4FGL_J1301.6+3336_daily_bin75.fits scfile=/scratch/kocevski/99758/ft2_4FGL_J1301.6+3336_daily_bin75.fits outfile=/scratch/kocevski/99758/cmap_258768001_259027201_4FGL_J1301.6+3336_daily_bin75.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/99758/ft1_filtered_4FGL_J1301.6+3336_daily_bin75.fits scfile=/scratch/kocevski/99758/ft2_4FGL_J1301.6+3336_daily_bin75.fits outfile=/scratch/kocevski/99758/cmap_HighResolution_258768001_259027201_4FGL_J1301.6+3336_daily_bin75.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.54
user 0.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.0559       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.5976       1.0000         .10000E-03   10000.    
     6 'norm      '    .10101E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.7567       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10419E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.6245       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    63.478       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.1842       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.5250       1.0000         .10000E-03   10000.    
    17 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    20.814       1.0000         .10000E-03   10000.    
    19 'norm      '    2.5868       1.0000         .10000E-03   10000.    
    20 'norm      '    10.719       1.0000         .10000E-03   10000.    
    21 'norm      '    35.729       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .19182E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.1318       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    21.432       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    108.60       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0276       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .79926       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=   3360.226     FROM MIGRAD    STATUS=CONVERGED    758 CALLS     3887 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    21.944        .37909E-05** at limit **
   2  norm          6.0567        4.0238        .39890E-06    .51446E-03
   3  Prefactor     .10000E-03    2.1931        .50829E-08** at limit **
   4  Prefactor     .10000E-03    1.2948        .86331E-07** at limit **
   5  Prefactor     2.5977        2.3906       -.27121E-07   -.84738E-04
   6  norm          .10000E-03    4.2900        .13112E-06** at limit **
   7  Prefactor     .10000E-03    4.6157       -.10782E-06** at limit **
   8  Prefactor     5.7555        14.490        .25266E-05   -.17922E-03
   9  Prefactor     .10002E-03    87.536       -.72700E-05** at limit **
  10  Prefactor     .10000E-03    3.7239        .46549E-07** at limit **
  11  Prefactor     4.6252        7.4329       -.17659E-05   -.40644E-04
  12  norm          .10000E-03    2.2982       -.29861E-06** at limit **
  13  Prefactor     63.462        70.275       -.29820E-05   -.17145E-03
  14  Prefactor     .10002E-03    57.466        .64290E-05** at limit **
  15  norm          4.1850        6.1692        .24166E-06   -.92912E-04
  16  Prefactor     3.5251        24.803        .12824E-04   -.21925E-03
  17  norm          .10000E-03    3.4313       -.31511E-06** at limit **
  18  norm          20.815        19.453        .26690E-06    .74111E-05
  19  norm          2.5895        8.2787        .72192E-06   -.49624E-06
  20  norm          10.714        12.777       -.59100E-06   -.51852E-04
  21  norm          35.731        25.685        .89681E-07    .13084E-04
  22  Prefactor     .10000E-03    5.1424       -.19518E-05** at limit **
  23  Prefactor     5.1208        30.178        .21193E-05    .15993E-03
  24  Prefactor     .10001E-03    27.482       -.43082E-05** at limit **
  25  Prefactor     21.443        24.472        .75261E-06    .12949E-03
  26  Prefactor     .10000E-03    18.208       -.96613E-06** at limit **
  27  Prefactor     108.63        99.666        .45470E-05    .20909E-03
  28  Prefactor     .10000E-03    2.3024        .27817E-06** at limit **
  29  Normalizat    1.0269        .22666       -.17854E-05    .22502E-03
  30  Prefactor     .80001        .26252        .75980E-06    .31642E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  norm       = 6.05675
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.5977
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.75551
  Prefactor  = 0.000100022
  Prefactor  = 0.0001
  Prefactor  = 4.62522
  norm       = 0.0001
  Prefactor  = 63.4618
  Prefactor  = 0.000100018
  norm       = 4.185
  Prefactor  = 3.52506
  norm       = 0.0001
  norm       = 20.8146
  norm       = 2.58953
  norm       = 10.7139
  norm       = 35.7306
  Prefactor  = 0.0001
  Prefactor  = 5.12085
  Prefactor  = 0.000100009
  Prefactor  = 21.4431
  Prefactor  = 0.0001
  Prefactor  = 108.626
  Prefactor  = 0.0001
  Normalizat = 1.02692
  Prefactor  = 0.800006
 **********
 **   18 **HESSE 
 **********

 FCN=   3360.226     FROM HESSE     STATUS=OK           584 CALLS     4471 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    22.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.0567        4.0176        .90556E-04   -1.5216    
   3  Prefactor     .10000E-03    2.1936        .83840E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.2969        .64254E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.5977        2.3875        .82340E-04   -1.5386    
   6  norm          .10000E-03    4.4623        .23442E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.6229        .12163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.7555        14.527        .83701E-03   -1.5228    
   9  Prefactor     .10002E-03    89.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.7267        .10925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.6252        7.4411        .17652E-03   -1.5278    
  12  norm          .10000E-03    2.3188        .85860E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     63.462        70.930        .50367E-04   -1.4113    
  14  Prefactor     .10002E-03    59.617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.1850        6.1655        .16441E-03   -1.5299    
  16  Prefactor     3.5251        26.479        .10766E-02   -1.5332    
  17  norm          .10000E-03    3.4510        .10489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          20.815        19.456        .87793E-04   -1.4795    
  19  norm          2.5895        7.9957        .18468E-03   -1.5386    
  20  norm          10.714        12.594        .12238E-03   -1.5053    
  21  norm          35.731        25.680        .67046E-04   -1.4512    
  22  Prefactor     .10000E-03    8.3990        .22543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.1208        24.949        .17747E-03   -1.5255    
  24  Prefactor     .10001E-03    28.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     21.443        24.466        .86519E-04   -1.4782    
  26  Prefactor     .10000E-03    18.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     108.63        101.38        .38594E-04   -1.3620    
  28  Prefactor     .10000E-03    2.3181        .85905E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0269        .27167        .21585E-03   -.92134    
  30  Prefactor     .80001        .31283        .29812E-03   -.99728    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.92784e-09
Minuit parameter uncertainties:
  1  0.00075362
  2  4.0178
  3  1.88767e-07
  4  5.69155e-06
  5  2.38755
  6  1.10347e-05
  7  1.01506e-05
  8  14.5355
  9  0.0028073
  10  5.28202e-06
  11  7.44257
  12  2.04173e-05
  13  71.0242
  14  0.00209574
  15  6.16641
  16  19.3343
  17  2.3313e-05
  18  19.462
  19  7.99898
  20  12.5969
  21  25.6877
  22  6.96087e-06
  23  22.6214
  24  0.000982481
  25  24.4774
  26  0.000187146
  27  101.542
  28  1.62636e-05
  29  0.272039
  30  0.313532
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  2.096e-03  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:  8.000e-01  3.135e-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.027e+00  2.720e-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: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/99758/likelihoodResults_258768001_259027201_4FGL_J1301.6+3336_daily_bin75.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) = 3360.22576621
delta logL = -7.98351684352e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3360.22568656
delta logL = -1.7864158508e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6452       1.0000          .0000       10.000    
     3 'Normalizat'    1.0269       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80001       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=   3360.226     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      251 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    92.473        .90712E-02** at limit **
   2  Index         2.5659        6.2581        .50000        .14635E-04
   3  Normalizat    1.0269        .20747        .42484E-01    .45163E-04
   4  Prefactor     .80001        .25695        .67383E-01    .39009E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100032
  Index      = 2.56593
  Normalizat = 1.02692
  Prefactor  = 0.80001
 **********
 **   18 **HESSE 
 **********

 FCN=   3360.226     FROM HESSE     STATUS=OK            33 CALLS      284 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    98.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5659        6.2474        .50000       -.50844    
   3  Normalizat    1.0269        .24420        .21585E-03   -.92134    
   4  Prefactor     .80001        .30203        .29811E-03   -.99728    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.75386e-10
Minuit parameter uncertainties:
  1  0.00356491
  2  5.37762
  3  0.244468
  4  0.302653
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/99758': 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) = 3360.22568629
delta logL = 9.08153197088e-08

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  3.565e-03  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.566e+00  5.378e+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:  8.000e-01  3.027e-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.027e+00  2.445e-01  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/99758/cmap_HighResolution_258768001_259027201_4FGL_J1301.6+3336_daily_bin75.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.97e-03', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-09-06 14:57:47.687516', job_id='99758', GAL2='0.80', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1630965467.69', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='9.08e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='75' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:57:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 99758: <4FGL_J1301.6+3336_daily_bin75> in cluster <slac> Done

Job <4FGL_J1301.6+3336_daily_bin75> 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) <bullet0044>, 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 14:57:48 2021
Results reported at Mon Sep  6 14:57:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin75 195.418 33.6097 258768001 259027201 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 :                                   580.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   703 sec.
    Turnaround time :                            705 sec.

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

