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


Performing analysis on: 4FGL_J1302.8+5748_daily_bin1215
RA = 195.721, Dec = 57.8146
tmin = 554256001, tmax = 554515201
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='116333', job_status='RUN', time_executed='2021-09-06 15:38:48.483361', time_epoch_executed='1630967928.48' WHERE source_name='4FGL J1302.8+5748' and cadence='daily' and bin_id='1215'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/116333

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/116333/ft1_4FGL_J1302.8+5748_daily_bin1215.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/116333/ft2_4FGL_J1302.8+5748_daily_bin1215.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/116333/ft1_4FGL_J1302.8+5748_daily_bin1215.fits outfile=/scratch/kocevski/116333/ft1_filteredMKT_4FGL_J1302.8+5748_daily_bin1215.fits ra=195.721 dec=57.8146 rad=12.0 tmin=554256001.0 tmax=554515201.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.18
user 3.80
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/116333/ft2_4FGL_J1302.8+5748_daily_bin1215.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/116333/ft2_4FGL_J1302.8+5748_daily_bin1215.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/116333/ft1_filteredMKT_4FGL_J1302.8+5748_daily_bin1215.fits evtable="EVENTS" outfile="/scratch/kocevski/116333/ft1_filtered_4FGL_J1302.8+5748_daily_bin1215.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.60
user 0.32
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/116333/ft1_filtered_4FGL_J1302.8+5748_daily_bin1215.fits" evtable="EVENTS" scfile=/scratch/kocevski/116333/ft2_4FGL_J1302.8+5748_daily_bin1215.fits sctable="SC_DATA" outfile=/scratch/kocevski/116333/ltcube_554256001_554515201_4FGL_J1302.8+5748_daily_bin1215.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/116333/ft2_4FGL_J1302.8+5748_daily_bin1215.fits
.....................!
real 12.11
user 11.55
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/116333/ft1_filtered_4FGL_J1302.8+5748_daily_bin1215.fits evtable="EVENTS" scfile=/scratch/kocevski/116333/ft2_4FGL_J1302.8+5748_daily_bin1215.fits sctable="SC_DATA" expcube=/scratch/kocevski/116333/ltcube_554256001_554515201_4FGL_J1302.8+5748_daily_bin1215.fits outfile=/scratch/kocevski/116333/expmap_554256001_554515201_4FGL_J1302.8+5748_daily_bin1215.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/116333/ltcube_554256001_554515201_4FGL_J1302.8+5748_daily_bin1215.fits
.....................!
real 190.67
user 184.81
sys 4.53

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 218 point sources and 0 extended sources

Setting source of interest to:
4FGL J1302.8+5748 @ 195.721 57.8146

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/116333/ft1_filtered_4FGL_J1302.8+5748_daily_bin1215.fits scfile=/scratch/kocevski/116333/ft2_4FGL_J1302.8+5748_daily_bin1215.fits outfile=/scratch/kocevski/116333/cmap_554256001_554515201_4FGL_J1302.8+5748_daily_bin1215.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.721 yref=57.8146 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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/116333/ft1_filtered_4FGL_J1302.8+5748_daily_bin1215.fits scfile=/scratch/kocevski/116333/ft2_4FGL_J1302.8+5748_daily_bin1215.fits outfile=/scratch/kocevski/116333/cmap_HighResolution_554256001_554515201_4FGL_J1302.8+5748_daily_bin1215.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.721 yref=57.8146 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/116333/ft1_filtered_4FGL_J1302.8+5748_daily_bin1215.fits evtable="EVENTS" scfile=/scratch/kocevski/116333/ft2_4FGL_J1302.8+5748_daily_bin1215.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/116333/Model_4FGL_J1302.8+5748_daily_bin1215.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/116333/ft1_filtered_4FGL_J1302.8+5748_daily_bin1215.fits....!
real 16.84
user 12.50
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/116333/ft1_filtered_4FGL_J1302.8+5748_daily_bin1215.fits', '/scratch/kocevski/116333/ft2_4FGL_J1302.8+5748_daily_bin1215.fits', expMap='/scratch/kocevski/116333/expmap_554256001_554515201_4FGL_J1302.8+5748_daily_bin1215.fits', expCube='/scratch/kocevski/116333/ltcube_554256001_554515201_4FGL_J1302.8+5748_daily_bin1215.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/116333/Model_4FGL_J1302.8+5748_daily_bin1215.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1302.8+5748'

4FGL J1302.8+5748
   Spectrum: PowerLaw
371    Prefactor:  1.988e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
372        Index:  2.267e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
373        Scale:  1.345e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/116333/ft1_filtered_4FGL_J1302.8+5748_daily_bin1215.fits
Spacecraft file(s): /scratch/kocevski/116333/ft2_4FGL_J1302.8+5748_daily_bin1215.fits
Exposure map: /scratch/kocevski/116333/expmap_554256001_554515201_4FGL_J1302.8+5748_daily_bin1215.fits
Exposure cube: /scratch/kocevski/116333/ltcube_554256001_554515201_4FGL_J1302.8+5748_daily_bin1215.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/116333/Model_4FGL_J1302.8+5748_daily_bin1215.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) = 56.7123007591

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10199E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10633E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10591E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .37762E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1919.0       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .39291E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    .10369E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    170.30       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10079E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .44786E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    15.237       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10440E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10460E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10368E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10334E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10447E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10235E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .11232E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    34 'Prefactor '    .55187E-06   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   56.62766     FROM MIGRAD    STATUS=CONVERGED    866 CALLS     4605 TOTAL
                     EDM=   .79E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    679.83        .19810E-03** at limit **
   2  norm          .10000E-03    166.35        .69910E-05** at limit **
   3  Prefactor     .10000E-03    283.47       -.84848E-04** at limit **
   4  Prefactor     .10000E-03    856.95        .37556E-04** at limit **
   5  norm          .10000E-03    95.925       -.37905E-04** at limit **
   6  Prefactor     1917.5        1349.5       -.37154E-03    .13261E-04
   7  Prefactor     .10001E-03    2179.1       -.39508E-03** at limit **
   8  norm          .10000E-03    50.905        .56729E-05** at limit **
   9  Prefactor     170.31        181.04        .28126E-05   -.81210E-06
  10  Prefactor     .10000E-03    188.45       -.63133E-04** at limit **
  11  norm          .10000E-03    67.484        .40909E-04** at limit **
  12  Prefactor     .10000E-03    80.414       -.50038E-04** at limit **
  13  norm          .10000E-03    23.721       -.71979E-06** at limit **
  14  Prefactor     .10004E-03    1596.8       -.89343E-03** at limit **
  15  Prefactor     .10000E-03    245.04       -.12287E-03** at limit **
  16  norm          15.233        16.244       -.54930E-06    .53387E-05
  17  Prefactor     .10000E-03    1158.6        .21111E-04** at limit **
  18  Prefactor     .10000E-03    69.237        .33238E-04** at limit **
  19  Prefactor     .10000E-03    107.39        .27499E-04** at limit **
  20  Prefactor     .10000E-03    74.465       -.74515E-05** at limit **
  21  norm          .10000E-03    17.209        .14885E-06** at limit **
  22  Prefactor     .10000E-03    1087.3       -.85994E-04** at limit **
  23  Prefactor     .10000E-03    59.276       -.31925E-04** at limit **
  24  Prefactor     .10000E-03    706.52        .18635E-03** at limit **
  25  Prefactor     .10000E-03    136.23        .91028E-04** at limit **
  26  norm          .10000E-03    6467.2       -.10252E-02** at limit **
  27  norm          .10000E-03    73.733       -.11563E-05** at limit **
  28  Prefactor     .10000E-03    603.11        .21827E-03** at limit **
  29  Prefactor     .10000E-03    8522.3       -.16044E-02** at limit **
  30  Prefactor     .10000E-03    403.53        .10896E-03** at limit **
  31  Prefactor     .10000E-03    35.906        .84500E-06** at limit **
  32  Prefactor     .10000E-03    481.44        .18751E-03** at limit **
  33  Normalizat    .10000E-01    .16249        .64782E-05** at limit **
  34  Prefactor     .23610E-10    .30902       -.46932E-06** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 1917.52
  Prefactor  = 0.000100005
  norm       = 0.0001
  Prefactor  = 170.309
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100035
  Prefactor  = 0.0001
  norm       = 15.2329
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 2.361e-11
 **********
 **   18 **HESSE 
 **********

 FCN=   56.62766     FROM HESSE     STATUS=OK           700 CALLS     5305 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    679.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    166.37        .95467E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    283.47        .12486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    857.13        .21290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    95.925        .72408E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1917.5        1348.2        .50788E-04   -.66429    
   7  Prefactor     .10001E-03    2179.3        .19517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    50.905        .52704E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     170.31        181.00        .30916E-04   -1.3090    
  10  Prefactor     .10000E-03    188.45        .10164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    67.494        .60707E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    80.416        .66279E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    23.721        .35963E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10004E-03    1595.7        .18489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    245.04        .11602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          15.233        16.200        .30666E-04   -1.4927    
  17  Prefactor     .10000E-03    1158.8        .20734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    69.238        .61489E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    107.39        .76628E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    74.465        .63774E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    17.209        .30629E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1087.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    59.268        .56877E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    706.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    136.28        .86359E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    6467.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    73.733        .63458E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    603.18        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    8522.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    403.54        .14929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    35.906        .44256E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    481.48        .16329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .10000E-01    .16249        .94380E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     .23610E-10    .30916        .13006E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60288e-10
Minuit parameter uncertainties:
  1  0.000277263
  2  0.000485354
  3  0.000770631
  4  0.0029306
  5  6.31819e-05
  6  1376
  7  0.00693277
  8  2.2092e-05
  9  181.597
  10  0.000236635
  11  0.00014437
  12  1.02312e-06
  13  2.92074e-06
  14  0.015395
  15  0.000308171
  16  16.2043
  17  0.003213
  18  3.13077e-06
  19  5.94768e-06
  20  1.14209e-06
  21  8.06017e-07
  22  0.000194465
  23  0.000405289
  24  0.000264654
  25  0.00039254
  26  3.50151e-05
  27  2.01869e-05
  28  0.000216752
  29  0.000216337
  30  8.19431e-06
  31  6.03062e-06
  32  5.41564e-05
  33  1.30469e-06
  34  5.43164e-06
Done.

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

Extracting fit parameters...

4FGL J1302.8+5748
   Spectrum: PowerLaw
371    Prefactor:  1.000e-04  3.082e-04  1.000e-04  1.000e+04 ( 1.000e-13)
372        Index:  2.267e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
373        Scale:  1.345e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  2.361e-11  5.432e-06  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  1.000e-02  1.305e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 195.721 57.815
Photon Flux Upper Limit: 4.21e-06 ph cm-2 s-1
Energy Flux Upper Limit: 3.22e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/116333/likelihoodResults_554256001_554515201_4FGL_J1302.8+5748_daily_bin1215.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) = 56.627678996
delta logL = -2.2314574494e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 56.6276582581
delta logL = -1.57669773415e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .40288E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5356       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .34729E-06   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+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=   56.62766     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      256 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10494E-03    265.87        .95372E-02** at limit **
   2  Index         2.4702        7.3747        .50000        .18730E-05
   3  Normalizat    .10000E-01    .47629E-03    .94383E-03** at limit **
   4  Prefactor     .83267E-14    .91069E-03    .13006E-02** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010494
  Index      = 2.47025
  Normalizat = 0.01
  Prefactor  = 8.32667e-15
 **********
 **   18 **HESSE 
 **********

 FCN=   56.62766     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      285 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10494E-03    2143.0        .10020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4702        5.8795        .50000       -.53048    
   3  Normalizat    .10000E-01    .42058E-02    .18877E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .83267E-14    .80407E-02    .26013E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.31348e-09
Minuit parameter uncertainties:
  1  0.213935
  2  1392.6
  3  6.46897e-10
  4  1.64607e-08
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/116333': 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) = 56.6276567637
delta logL = -8.22944841161e-08

Extracting fit parameters...

4FGL J1302.8+5748
   Spectrum: PowerLaw
371    Prefactor:  1.049e-04  2.139e-01  1.000e-04  1.000e+04 ( 1.000e-13)
372        Index:  2.470e+00  1.393e+03  0.000e+00  1.000e+01 (-1.000e+00)
373        Scale:  1.345e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  8.327e-15  1.646e-08  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  1.000e-02  6.469e-10  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 195.721 57.815

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/116333/cmap_HighResolution_554256001_554515201_4FGL_J1302.8+5748_daily_bin1215.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.22e-01', job_status='DONE', photon_flux_upper_limit='4.21e-06', time_completed='2021-09-06 15:45:02.520108', job_id='116333', GAL2='0.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630968302.52', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.00', dlogl='-8.23e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='1215' AND source_name='4FGL J1302.8+5748' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 15:45:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 116333: <4FGL_J1302.8+5748_daily_bin1215> in cluster <slac> Done

Job <4FGL_J1302.8+5748_daily_bin1215> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Sep  6 15:35:51 2021
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 15:35:54 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:35:54 2021
Terminated at Mon Sep  6 15:45:04 2021
Results reported at Mon Sep  6 15:45:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1302.8+5748_daily_bin1215 195.721 57.8146 554256001 554515201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1302.8+5748 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   343.30 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             192.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   549 sec.
    Turnaround time :                            553 sec.

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

