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


Performing analysis on: 4FGL_J1301.6+3336_daily_bin1
RA = 195.418, Dec = 33.6097
tmin = 239587201, tmax = 239846401
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='99667', job_status='RUN', time_executed='2021-09-06 14:48:54.822824', time_epoch_executed='1630964934.82' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='1'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/99667

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/99667/ft1_4FGL_J1301.6+3336_daily_bin1.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/99667/ft2_4FGL_J1301.6+3336_daily_bin1.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/99667/ft1_4FGL_J1301.6+3336_daily_bin1.fits outfile=/scratch/kocevski/99667/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin1.fits ra=195.418 dec=33.6097 rad=12.0 tmin=239587201.0 tmax=239846401.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.33
user 1.13
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/99667/ft1_filtered_4FGL_J1301.6+3336_daily_bin1.fits" evtable="EVENTS" scfile=/scratch/kocevski/99667/ft2_4FGL_J1301.6+3336_daily_bin1.fits sctable="SC_DATA" outfile=/scratch/kocevski/99667/ltcube_239587201_239846401_4FGL_J1301.6+3336_daily_bin1.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/99667/ft2_4FGL_J1301.6+3336_daily_bin1.fits
.....................!
real 12.90
user 12.53
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/99667/ft1_filtered_4FGL_J1301.6+3336_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/99667/ft2_4FGL_J1301.6+3336_daily_bin1.fits sctable="SC_DATA" expcube=/scratch/kocevski/99667/ltcube_239587201_239846401_4FGL_J1301.6+3336_daily_bin1.fits outfile=/scratch/kocevski/99667/expmap_239587201_239846401_4FGL_J1301.6+3336_daily_bin1.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/99667/ltcube_239587201_239846401_4FGL_J1301.6+3336_daily_bin1.fits
.....................!
real 191.51
user 185.50
sys 4.67

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/99667/ft1_filtered_4FGL_J1301.6+3336_daily_bin1.fits scfile=/scratch/kocevski/99667/ft2_4FGL_J1301.6+3336_daily_bin1.fits outfile=/scratch/kocevski/99667/cmap_239587201_239846401_4FGL_J1301.6+3336_daily_bin1.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.79
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/99667/ft1_filtered_4FGL_J1301.6+3336_daily_bin1.fits scfile=/scratch/kocevski/99667/ft2_4FGL_J1301.6+3336_daily_bin1.fits outfile=/scratch/kocevski/99667/cmap_HighResolution_239587201_239846401_4FGL_J1301.6+3336_daily_bin1.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.91
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.784       1.0000         .10000E-03   10000.    
     2 'norm      '    1.1853       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.6495       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.1685       1.0000         .10000E-03   10000.    
     6 'norm      '    10.618       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .19073E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    29.071       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.972       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10144E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10278E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.8467       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .81038       1.0000         .10000E-03   10000.    
    20 'norm      '    .10117E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.0140       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.2991       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    29.109       1.0000         .10000E-03   10000.    
    28 'Prefactor '    11.354       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .72235       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0395       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=   4037.065     FROM MIGRAD    STATUS=CONVERGED    772 CALLS     3869 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.752        41.550       -.30522E-04    .20777E-05
   2  norm          1.1859        1.7726        .17544E-06    .15891E-03
   3  Prefactor     .10000E-03    4.9593        .38677E-06** at limit **
   4  Prefactor     2.6493        2.0328        .13204E-06    .32843E-03
   5  Prefactor     7.1678        2.8473        .96212E-07    .35199E-03
   6  norm          10.618        5.4265       -.74238E-07    .10053E-03
   7  Prefactor     .10009E-03    9.0927       -.15027E-05** at limit **
   8  Prefactor     29.072        22.730       -.28994E-06    .83293E-05
   9  Prefactor     19.963        46.243       -.11076E-04    .66657E-05
  10  Prefactor     .10000E-03    2.6892       -.12695E-07** at limit **
  11  Prefactor     .10000E-03    2.1918       -.92119E-08** at limit **
  12  norm          .10000E-03    3.2106        .93707E-07** at limit **
  13  Prefactor     .10000E-03    43.759        .52683E-06** at limit **
  14  Prefactor     .10000E-03    26.334        .14204E-05** at limit **
  15  norm          1.8468        1.9013       -.55067E-08    .17623E-03
  16  Prefactor     .10000E-03    11.640        .15840E-06** at limit **
  17  norm          .10000E-03    5.0654       -.27403E-06** at limit **
  18  norm          .10000E-03    11.532        .42059E-06** at limit **
  19  norm          .80944        3.1395       -.12231E-05   -.89058E-03
  20  norm          .10000E-03    5.5374        .26622E-06** at limit **
  21  norm          .10000E-03    10.329       -.45879E-06** at limit **
  22  Prefactor     7.0149        4.5242       -.34431E-06   -.32153E-04
  23  Prefactor     .10000E-03    11.594        .25052E-06** at limit **
  24  Prefactor     .10000E-03    105.03        .48767E-05** at limit **
  25  Prefactor     8.3005        17.225       -.12237E-05   -.24147E-04
  26  Prefactor     .10000E-03    13.760       -.77681E-06** at limit **
  27  Prefactor     29.114        91.197        .69917E-05    .35666E-05
  28  Prefactor     11.355        5.5543       -.16357E-06    .22036E-05
  29  Normalizat    .72197        .19625        .30217E-05    .44179E-04
  30  Prefactor     1.0399        .23326        .16374E-06    .14280E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.7524
  norm       = 1.18586
  Prefactor  = 0.0001
  Prefactor  = 2.64933
  Prefactor  = 7.16781
  norm       = 10.6178
  Prefactor  = 0.000100089
  Prefactor  = 29.0724
  Prefactor  = 19.9632
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.84677
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.809435
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.01491
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.3005
  Prefactor  = 0.0001
  Prefactor  = 29.1137
  Prefactor  = 11.3547
  Normalizat = 0.721972
  Prefactor  = 1.03991
 **********
 **   18 **HESSE 
 **********

 FCN=   4037.065     FROM HESSE     STATUS=OK           582 CALLS     4451 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.752        41.434        .83916E-04   -1.4754    
   2  norm          1.1859        1.7313        .99106E-04   -1.5490    
   3  Prefactor     .10000E-03    5.0110        .13820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.6493        2.0292        .37947E-03   -1.5382    
   5  Prefactor     7.1678        2.8305        .64694E-04   -1.5172    
   6  norm          10.618        5.4232        .10260E-03   -1.5056    
   7  Prefactor     .10009E-03    47.170        .36754E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     29.072        22.730        .74307E-04   -1.4629    
   9  Prefactor     19.963        46.175        .89623E-04   -1.4814    
  10  Prefactor     .10000E-03    2.6918        .10176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.1939        .91857E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.2723        .11105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    43.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    26.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.8468        1.9139        .86684E-04   -1.5436    
  16  Prefactor     .10000E-03    11.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.1456        .13947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    11.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .80944        3.1163        .20919E-03   -1.5528    
  20  norm          .10000E-03    5.5463        .14496E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    10.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.0149        4.5130        .10050E-03   -1.5178    
  23  Prefactor     .10000E-03    11.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    105.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     8.3005        17.216        .13916E-03   -1.5132    
  26  Prefactor     .10000E-03    13.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     29.114        91.846        .74259E-04   -1.4628    
  28  Prefactor     11.355        5.5600        .10071E-03   -1.5034    
  29  Normalizat    .72197        .22913        .23986E-03   -1.0303    
  30  Prefactor     1.0399        .27174        .25435E-03   -.91411    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.97279e-09
Minuit parameter uncertainties:
  1  41.4869
  2  1.73133
  3  5.20846e-05
  4  2.02923
  5  2.83055
  6  5.42343
  7  0.00411001
  8  22.7371
  9  46.2576
  10  2.62756e-06
  11  1.32827e-06
  12  1.66413e-05
  13  5.8886e-05
  14  3.94659e-05
  15  1.914
  16  1.83418e-05
  17  5.22952e-06
  18  1.98259e-05
  19  3.11691
  20  4.0809e-05
  21  9.46451e-06
  22  4.51325
  23  1.76071e-06
  24  0.000156612
  25  17.2266
  26  1.37865e-05
  27  92.2969
  28  5.5603
  29  0.229437
  30  0.272098
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  3.947e-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.040e+00  2.721e-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:  7.220e-01  2.294e-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.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/99667/likelihoodResults_239587201_239846401_4FGL_J1301.6+3336_daily_bin1.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) = 4037.0648642
delta logL = -0.000178940048954

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4037.06468743
delta logL = -2.17921660806e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12303E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9348       1.0000          .0000       10.000    
     3 'Normalizat'    .72197       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0399       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=   4037.065     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      281 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11168E-03    10.214        .18142E-01** at limit **
   2  Index         2.7663        6.0725        .50000        .20656E-04
   3  Normalizat    .72197        .32200E-02    .23986E-03   -.97401E-05
   4  Prefactor     1.0399        .40566E-02    .25435E-03   -.13208E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000111685
  Index      = 2.76633
  Normalizat = 0.721973
  Prefactor  = 1.03991
 **********
 **   18 **HESSE 
 **********

 FCN=   4037.065     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      310 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11168E-03    494.37        .54678E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7663        6.4059        .50000       -.46311    
   3  Normalizat    .72197        .22627E-01    .95945E-05   -1.0303    
   4  Prefactor     1.0399        .28506E-01    .10174E-04   -.91411    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.01183e-07
Minuit parameter uncertainties:
  1  0.15329
  2  756.294
  3  0.0226277
  4  0.0285069
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/99667': 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) = 4037.06468612
delta logL = -8.66445589054e-07

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.117e-04  1.533e-01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.766e+00  7.563e+02  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.040e+00  2.851e-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:  7.220e-01  2.263e-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/99667/cmap_HighResolution_239587201_239846401_4FGL_J1301.6+3336_daily_bin1.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.19e-03', job_status='DONE', photon_flux_upper_limit='7.91e-08', time_completed='2021-09-06 14:59:37.172537', job_id='99667', GAL2='1.04', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1630965577.17', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='-8.66e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:59:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 99667: <4FGL_J1301.6+3336_daily_bin1> in cluster <slac> Done

Job <4FGL_J1301.6+3336_daily_bin1> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 14:45:55 2021
Job was executed on host(s) <bullet0148>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:45:57 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:45:57 2021
Terminated at Mon Sep  6 14:59:39 2021
Results reported at Mon Sep  6 14:59:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin1 195.418 33.6097 239587201 239846401 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 :                                   636.17 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             274.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            824 sec.

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

