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


Performing analysis on: 4FGL_J1301.6+3336_daily_bin1072
RA = 195.418, Dec = 33.6097
tmin = 517190401, tmax = 517449601
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='106770', job_status='RUN', time_executed='2021-09-06 15:06:47.942631', time_epoch_executed='1630966007.94' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='1072'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/106770

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/106770/ft1_4FGL_J1301.6+3336_daily_bin1072.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/106770/ft2_4FGL_J1301.6+3336_daily_bin1072.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/106770/ft1_4FGL_J1301.6+3336_daily_bin1072.fits outfile=/scratch/kocevski/106770/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin1072.fits ra=195.418 dec=33.6097 rad=12.0 tmin=517190401.0 tmax=517449601.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 4.75
user 4.47
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/106770/ft1_filtered_4FGL_J1301.6+3336_daily_bin1072.fits" evtable="EVENTS" scfile=/scratch/kocevski/106770/ft2_4FGL_J1301.6+3336_daily_bin1072.fits sctable="SC_DATA" outfile=/scratch/kocevski/106770/ltcube_517190401_517449601_4FGL_J1301.6+3336_daily_bin1072.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/106770/ft2_4FGL_J1301.6+3336_daily_bin1072.fits
.....................!
real 11.88
user 11.54
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/106770/ft1_filtered_4FGL_J1301.6+3336_daily_bin1072.fits evtable="EVENTS" scfile=/scratch/kocevski/106770/ft2_4FGL_J1301.6+3336_daily_bin1072.fits sctable="SC_DATA" expcube=/scratch/kocevski/106770/ltcube_517190401_517449601_4FGL_J1301.6+3336_daily_bin1072.fits outfile=/scratch/kocevski/106770/expmap_517190401_517449601_4FGL_J1301.6+3336_daily_bin1072.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/106770/ltcube_517190401_517449601_4FGL_J1301.6+3336_daily_bin1072.fits
.....................!
real 190.79
user 185.11
sys 5.22

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/106770/ft1_filtered_4FGL_J1301.6+3336_daily_bin1072.fits scfile=/scratch/kocevski/106770/ft2_4FGL_J1301.6+3336_daily_bin1072.fits outfile=/scratch/kocevski/106770/cmap_517190401_517449601_4FGL_J1301.6+3336_daily_bin1072.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/106770/ft1_filtered_4FGL_J1301.6+3336_daily_bin1072.fits scfile=/scratch/kocevski/106770/ft2_4FGL_J1301.6+3336_daily_bin1072.fits outfile=/scratch/kocevski/106770/cmap_HighResolution_517190401_517449601_4FGL_J1301.6+3336_daily_bin1072.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.58
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10502E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    7.8735       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.6389       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9761       1.0000         .10000E-03   10000.    
     6 'norm      '    23.040       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.6912       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10227E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10944E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.4891       1.0000         .10000E-03   10000.    
    13 'Prefactor '    54.367       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10340E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.2516       1.0000         .10000E-03   10000.    
    18 'norm      '    .10403E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.1500       1.0000         .10000E-03   10000.    
    20 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .14264E-01   1.0000         .10000E-03   10000.    
    27 'Prefactor '    72.959       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2815       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .66665       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=   5336.296     FROM MIGRAD    STATUS=CONVERGED    773 CALLS     3880 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.278        .10303E-04** at limit **
   2  norm          7.8734        3.7686       -.31269E-07   -.31128E-04
   3  Prefactor     .10000E-03    2.6034       -.35549E-06** at limit **
   4  Prefactor     7.6385        3.2969       -.98680E-07    .16672E-04
   5  Prefactor     1.9763        1.7014       -.18856E-07    .63182E-04
   6  norm          23.041        8.0391       -.15012E-06    .22820E-04
   7  Prefactor     3.6909        6.1379       -.25562E-06   -.13664E-03
   8  Prefactor     .10000E-03    33.210       -.14802E-04** at limit **
   9  Prefactor     .10000E-03    28.759       -.11089E-05** at limit **
  10  Prefactor     .10000E-03    3.9932       -.12664E-05** at limit **
  11  Prefactor     .10000E-03    3.6795       -.21269E-06** at limit **
  12  norm          2.4897        3.0244       -.88787E-06   -.22965E-02
  13  Prefactor     54.376        54.610        .67103E-05    .22031E-04
  14  Prefactor     .10000E-03    13.161       -.11022E-04** at limit **
  15  norm          .10000E-03    1.9409       -.34194E-07** at limit **
  16  Prefactor     .10000E-03    6.6263        .10939E-05** at limit **
  17  norm          1.2531        3.5142       -.49775E-06   -.66194E-03
  18  norm          .10000E-03    11.809       -.29857E-05** at limit **
  19  norm          1.1499        2.8667       -.73050E-06   -.91656E-03
  20  norm          .10000E-03    3.9531        .16349E-05** at limit **
  21  norm          .10000E-03    8.2810       -.37779E-05** at limit **
  22  Prefactor     .10000E-03    2.5420        .38891E-06** at limit **
  23  Prefactor     .10000E-03    4.9978       -.18883E-06** at limit **
  24  Prefactor     .10000E-03    48.230        .20145E-04** at limit **
  25  Prefactor     .10000E-03    10.509        .10134E-04** at limit **
  26  Prefactor     .10000E-03    109.81       -.11109E-04** at limit **
  27  Prefactor     72.929        91.881       -.30896E-04    .83781E-05
  28  Prefactor     .10000E-03    2.2862       -.14465E-07** at limit **
  29  Normalizat    1.2814        .18316        .29912E-05   -.63877E-04
  30  Prefactor     .66677        .21281       -.11819E-05    .16016E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 7.87337
  Prefactor  = 0.0001
  Prefactor  = 7.63854
  Prefactor  = 1.9763
  norm       = 23.0408
  Prefactor  = 3.69088
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.48973
  Prefactor  = 54.3756
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.25312
  norm       = 0.0001
  norm       = 1.14992
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 72.9287
  Prefactor  = 0.0001
  Normalizat = 1.28138
  Prefactor  = 0.66677
 **********
 **   18 **HESSE 
 **********

 FCN=   5336.296     FROM HESSE     STATUS=OK           574 CALLS     4454 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.8734        3.7720        .91382E-04   -1.5147    
   3  Prefactor     .10000E-03    2.6095        .11511E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.6385        3.3005        .81199E-04   -1.5155    
   5  Prefactor     1.9763        1.7042        .85403E-04   -1.5427    
   6  norm          23.041        8.0352        .83449E-04   -1.4748    
   7  Prefactor     3.6909        6.1247        .21021E-03   -1.5324    
   8  Prefactor     .10000E-03    33.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    28.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.0142        .14256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.7132        .13681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.4897        3.0523        .68532E-03   -1.5392    
  13  Prefactor     54.376        54.605        .54399E-04   -1.4232    
  14  Prefactor     .10000E-03    13.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.9651        .99367E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.6338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.2531        3.4597        .22192E-03   -1.5484    
  18  norm          .10000E-03    11.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.1499        2.8055        .18511E-03   -1.5493    
  20  norm          .10000E-03    3.9732        .14091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    8.2961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.6259        .22700E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.0032        .15946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    48.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    10.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    113.72        .36377E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     72.929        92.255        .47003E-04   -1.3998    
  28  Prefactor     .10000E-03    2.3209        .10785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.2814        .21800        .21177E-03   -.84124    
  30  Prefactor     .66677        .25154        .33709E-03   -1.0484    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.14516e-09
Minuit parameter uncertainties:
  1  1.93468e-05
  2  3.77214
  3  4.32087e-06
  4  3.30053
  5  1.70426
  6  8.03553
  7  6.12577
  8  7.4456e-05
  9  2.46686e-06
  10  3.55545e-06
  11  5.7329e-07
  12  3.05246
  13  54.6549
  14  2.56871e-05
  15  5.02918e-06
  16  2.32236e-06
  17  3.46025
  18  4.14469e-05
  19  2.80578
  20  2.00287e-05
  21  3.06394e-06
  22  8.68884e-06
  23  4.46272e-06
  24  4.66766e-05
  25  2.77052e-05
  26  0.000307034
  27  92.4367
  28  3.22489e-06
  29  0.218153
  30  0.251964
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  2.569e-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:  6.668e-01  2.520e-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.281e+00  2.182e-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.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/106770/likelihoodResults_517190401_517449601_4FGL_J1301.6+3336_daily_bin1072.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) = 5336.29642414
delta logL = -0.000363372655556

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5336.29606076
delta logL = 1.80989445653e-10

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 'Index     '    2.5888       1.0000          .0000       10.000    
     3 'Normalizat'    1.2814       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66676       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=   5336.296     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      247 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10037E-03    741.06        .18142E-02** at limit **
   2  Index         2.5201        6.0105        .50000        .19248E-05
   3  Normalizat    1.2814        .35761E-01    .21176E-03    .46492E-05
   4  Prefactor     .66676        .42562E-01    .33710E-03   -.45866E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100374
  Index      = 2.52009
  Normalizat = 1.28139
  Prefactor  = 0.666764
 **********
 **   18 **HESSE 
 **********

 FCN=   5336.296     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10037E-03    6201.0        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5201        5.8553        .50000       -.51897    
   3  Normalizat    1.2814        .97982E-01    .42353E-04   -.84124    
   4  Prefactor     .66676        .11630        .13484E-04   -1.0484    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.2151e-08
Minuit parameter uncertainties:
  1  0.0626137
  2  5181.52
  3  0.0979962
  4  0.116347
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/106770': 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) = 5336.29606074
delta logL = 2.67373252427e-08

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.004e-04  6.261e-02  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.520e+00  5.182e+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:  6.668e-01  1.163e-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.281e+00  9.800e-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/106770/cmap_HighResolution_517190401_517449601_4FGL_J1301.6+3336_daily_bin1072.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.75e-03', job_status='DONE', photon_flux_upper_limit='7.35e-08', time_completed='2021-09-06 15:20:04.334706', job_id='106770', GAL2='0.67', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1630966804.33', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='2.67e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1072' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 15:20:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 106770: <4FGL_J1301.6+3336_daily_bin1072> in cluster <slac> Done

Job <4FGL_J1301.6+3336_daily_bin1072> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 15:06:02 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 15:06:03 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 15:06:03 2021
Terminated at Mon Sep  6 15:20:05 2021
Results reported at Mon Sep  6 15:20:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin1072 195.418 33.6097 517190401 517449601 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 :                                   754.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             313.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   841 sec.
    Turnaround time :                            843 sec.

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

