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


Performing analysis on: 4FGL_J1302.8+5748_daily_bin635
RA = 195.721, Dec = 57.8146
tmin = 403920001, tmax = 404179201
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='112403', job_status='RUN', time_executed='2021-09-06 15:21:36.924821', time_epoch_executed='1630966896.92' WHERE source_name='4FGL J1302.8+5748' and cadence='daily' and bin_id='635'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/112403

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

Retrieving the FT1 file...

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

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

Retrieving 39 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/112403/ft1_4FGL_J1302.8+5748_daily_bin635.fits


Retrieving the FT1 file...

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

Retrieving 39 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/112403/ft2_4FGL_J1302.8+5748_daily_bin635.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/112403/ft1_4FGL_J1302.8+5748_daily_bin635.fits outfile=/scratch/kocevski/112403/ft1_filteredMKT_4FGL_J1302.8+5748_daily_bin635.fits ra=195.721 dec=57.8146 rad=12.0 tmin=403920001.0 tmax=404179201.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 10.19
user 9.66
sys 0.36

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/112403/ft2_4FGL_J1302.8+5748_daily_bin635.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/112403/ft1_filteredMKT_4FGL_J1302.8+5748_daily_bin635.fits evtable="EVENTS" outfile="/scratch/kocevski/112403/ft1_filtered_4FGL_J1302.8+5748_daily_bin635.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.55
user 0.30
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/112403/ft1_filtered_4FGL_J1302.8+5748_daily_bin635.fits" evtable="EVENTS" scfile=/scratch/kocevski/112403/ft2_4FGL_J1302.8+5748_daily_bin635.fits sctable="SC_DATA" outfile=/scratch/kocevski/112403/ltcube_403920001_404179201_4FGL_J1302.8+5748_daily_bin635.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/112403/ft2_4FGL_J1302.8+5748_daily_bin635.fits
.....................!
real 11.49
user 11.04
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/112403/ft1_filtered_4FGL_J1302.8+5748_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/112403/ft2_4FGL_J1302.8+5748_daily_bin635.fits sctable="SC_DATA" expcube=/scratch/kocevski/112403/ltcube_403920001_404179201_4FGL_J1302.8+5748_daily_bin635.fits outfile=/scratch/kocevski/112403/expmap_403920001_404179201_4FGL_J1302.8+5748_daily_bin635.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/112403/ltcube_403920001_404179201_4FGL_J1302.8+5748_daily_bin635.fits
.....................!
real 195.39
user 187.86
sys 4.59

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/112403/ft1_filtered_4FGL_J1302.8+5748_daily_bin635.fits scfile=/scratch/kocevski/112403/ft2_4FGL_J1302.8+5748_daily_bin635.fits outfile=/scratch/kocevski/112403/cmap_403920001_404179201_4FGL_J1302.8+5748_daily_bin635.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.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/112403/ft1_filtered_4FGL_J1302.8+5748_daily_bin635.fits scfile=/scratch/kocevski/112403/ft2_4FGL_J1302.8+5748_daily_bin635.fits outfile=/scratch/kocevski/112403/cmap_HighResolution_403920001_404179201_4FGL_J1302.8+5748_daily_bin635.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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/112403/ft1_filtered_4FGL_J1302.8+5748_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/112403/ft2_4FGL_J1302.8+5748_daily_bin635.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/112403/Model_4FGL_J1302.8+5748_daily_bin635.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/112403/ft1_filtered_4FGL_J1302.8+5748_daily_bin635.fits.....................!
real 45.12
user 43.31
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/112403/ft1_filtered_4FGL_J1302.8+5748_daily_bin635.fits', '/scratch/kocevski/112403/ft2_4FGL_J1302.8+5748_daily_bin635.fits', expMap='/scratch/kocevski/112403/expmap_403920001_404179201_4FGL_J1302.8+5748_daily_bin635.fits', expCube='/scratch/kocevski/112403/ltcube_403920001_404179201_4FGL_J1302.8+5748_daily_bin635.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/112403/Model_4FGL_J1302.8+5748_daily_bin635.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/112403/ft1_filtered_4FGL_J1302.8+5748_daily_bin635.fits
Spacecraft file(s): /scratch/kocevski/112403/ft2_4FGL_J1302.8+5748_daily_bin635.fits
Exposure map: /scratch/kocevski/112403/expmap_403920001_404179201_4FGL_J1302.8+5748_daily_bin635.fits
Exposure cube: /scratch/kocevski/112403/ltcube_403920001_404179201_4FGL_J1302.8+5748_daily_bin635.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/112403/Model_4FGL_J1302.8+5748_daily_bin635.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) = 4277.33572711

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.994       1.0000         .10000E-03   10000.    
     2 'norm      '    8.1827       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.3008       1.0000         .10000E-03   10000.    
     6 'Prefactor '    32.745       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.3167       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.9499       1.0000         .10000E-03   10000.    
    13 'norm      '    2.6849       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.9041       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    24.911       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    3.2841       1.0000         .10000E-03   10000.    
    28 'Prefactor '    11.932       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10266E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .72371       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.0316       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=   4277.325     FROM MIGRAD    STATUS=CONVERGED    909 CALLS     4747 TOTAL
                     EDM=   .84E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.995        13.124       -.10260E-06   -.43346E-04
   2  norm          8.1800        5.3950       -.85834E-06   -.35487E-03
   3  Prefactor     .10000E-03    8.0758        .38131E-05** at limit **
   4  Prefactor     .10000E-03    16.175       -.19525E-05** at limit **
   5  norm          4.3008        2.8249       -.14476E-06   -.17080E-03
   6  Prefactor     32.745        23.272       -.65271E-06   -.17965E-04
   7  Prefactor     .10000E-03    16.166       -.23128E-05** at limit **
   8  norm          .10000E-03    2.9577        .25564E-08** at limit **
   9  Prefactor     .10000E-03    8.8510       -.27714E-05** at limit **
  10  Prefactor     .10000E-03    4.6085       -.64788E-07** at limit **
  11  norm          6.3173        3.1763       -.45528E-07    .96107E-04
  12  Prefactor     9.9486        21.155        .50067E-06   -.11171E-04
  13  norm          2.6849        2.2823       -.36399E-07    .31156E-04
  14  Prefactor     .10000E-03    38.859        .11655E-04** at limit **
  15  Prefactor     .10000E-03    9.5856       -.30478E-05** at limit **
  16  norm          4.9035        5.0781       -.67778E-06   -.17744E-03
  17  Prefactor     .10000E-03    32.282       -.14767E-04** at limit **
  18  Prefactor     .10000E-03    11.352        .33024E-05** at limit **
  19  Prefactor     .10000E-03    7.1520       -.70224E-06** at limit **
  20  Prefactor     .10000E-03    11.892        .30710E-05** at limit **
  21  norm          .10000E-03    3.1543        .20353E-08** at limit **
  22  Prefactor     .10000E-03    21.510        .13787E-04** at limit **
  23  Prefactor     .10000E-03    3.8320       -.32771E-07** at limit **
  24  Prefactor     24.889        46.202       -.14956E-04   -.38859E-05
  25  Prefactor     .10000E-03    5.0185        .27454E-07** at limit **
  26  norm          .10000E-03    37.475        .21542E-05** at limit **
  27  norm          3.2830        4.8149        .30147E-06   -.27951E-03
  28  Prefactor     11.935        37.699        .68209E-06   -.32877E-05
  29  Prefactor     .10000E-03    227.36       -.46271E-05** at limit **
  30  Prefactor     .10000E-03    27.906       -.62601E-05** at limit **
  31  Prefactor     .10000E-03    1.2306       -.12865E-07** at limit **
  32  Prefactor     .10000E-03    15.217       -.42785E-05** at limit **
  33  Normalizat    .72388        .18421        .21839E-05   -.61334E-04
  34  Prefactor     1.0314        .22140       -.15585E-06    .33680E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.9949
  norm       = 8.18003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.30077
  Prefactor  = 32.7446
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.31734
  Prefactor  = 9.94857
  norm       = 2.68492
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.90348
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.8893
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.28303
  Prefactor  = 11.9354
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.723876
  Prefactor  = 1.03142
 **********
 **   18 **HESSE 
 **********

 FCN=   4277.325     FROM HESSE     STATUS=OK           724 CALLS     5471 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.995        13.160        .11112E-03   -1.4987    
   2  norm          8.1800        5.3970        .11648E-03   -1.5136    
   3  Prefactor     .10000E-03    8.2074        .18120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.3008        2.8235        .84436E-04   -1.5293    
   6  Prefactor     32.745        23.301        .70025E-04   -1.4563    
   7  Prefactor     .10000E-03    16.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.9671        .10984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.8604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.6453        .13697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.3173        3.1731        .79497E-04   -1.5205    
  12  Prefactor     9.9486        21.169        .12703E-03   -1.5077    
  13  norm          2.6849        2.2858        .88223E-04   -1.5380    
  14  Prefactor     .10000E-03    38.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.7028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.9035        5.0799        .14491E-03   -1.5265    
  17  Prefactor     .10000E-03    32.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.1591        .17083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.1952        .11339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    21.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.9150        .12483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     24.889        46.169        .80259E-04   -1.4710    
  25  Prefactor     .10000E-03    5.0326        .14302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    37.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          3.2830        4.7981        .16425E-03   -1.5346    
  28  Prefactor     11.935        37.722        .11597E-03   -1.5017    
  29  Prefactor     .10000E-03    227.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    27.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    1.2388        .70832E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    15.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .72388        .21558        .23507E-03   -1.0296    
  34  Prefactor     1.0314        .25952        .24693E-03   -.91689    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79605e-10
Minuit parameter uncertainties:
  1  13.1634
  2  5.39733
  3  2.84941e-05
  4  1.32078e-05
  5  2.82359
  6  23.3071
  7  5.29988e-07
  8  3.32092e-06
  9  6.01445e-06
  10  3.82765e-06
  11  3.17317
  12  21.1849
  13  2.28583
  14  4.09324e-05
  15  1.48338e-05
  16  5.08037
  17  1.34349e-05
  18  2.44883e-07
  19  1.70555e-06
  20  1.50525e-06
  21  4.92824e-06
  22  2.53586e-05
  23  1.26912e-05
  24  46.2355
  25  7.74923e-06
  26  1.48329e-06
  27  4.79868
  28  37.7974
  29  8.03458e-06
  30  3.52406e-06
  31  3.06745e-07
  32  4.02709e-06
  33  0.215833
  34  0.259833
Done.

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

Extracting fit parameters...

4FGL J1302.8+5748
   Spectrum: PowerLaw
371    Prefactor:  1.000e-04  1.483e-05  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:  1.031e+00  2.598e-01  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:  7.239e-01  2.158e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 195.721 57.815
Photon Flux Upper Limit: 6.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/112403/likelihoodResults_403920001_404179201_4FGL_J1302.8+5748_daily_bin635.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) = 4277.32511433
delta logL = -0.000491151344249

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4277.32462416
delta logL = -9.8225336842e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12446E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2322       1.0000          .0000       10.000    
     3 'Normalizat'    .72393       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0314       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=   4277.325     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      243 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10200E-03    .41163        .68404E-01** at limit **
   2  Index         2.1638        8.3820        .50000        .22582E-04
   3  Normalizat    .72388        .10374E-02    .23507E-03   -.99772E-04
   4  Prefactor     1.0314        .12884E-02    .24693E-03   -.59853E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102003
  Index      = 2.16381
  Normalizat = 0.723876
  Prefactor  = 1.03142
 **********
 **   18 **HESSE 
 **********

 FCN=   4277.325     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      274 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10200E-03    39.448        .33408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1638        7.4209        .50000       -.60315    
   3  Normalizat    .72388        .79957E-02    .94029E-05   -1.0296    
   4  Prefactor     1.0314        .99299E-02    .98770E-05   -.91689    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.25258e-09
Minuit parameter uncertainties:
  1  0.0177917
  2  151.053
  3  0.00799571
  4  0.00992995
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/112403': 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) = 4277.32462261
delta logL = 5.74242221774e-07

Extracting fit parameters...

4FGL J1302.8+5748
   Spectrum: PowerLaw
371    Prefactor:  1.020e-04  1.779e-02  1.000e-04  1.000e+04 ( 1.000e-13)
372        Index:  2.164e+00  1.511e+02  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:  1.031e+00  9.930e-03  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:  7.239e-01  7.996e-03  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/112403/cmap_HighResolution_403920001_404179201_4FGL_J1302.8+5748_daily_bin635.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.12e-03', job_status='DONE', photon_flux_upper_limit='6.69e-08', time_completed='2021-09-06 15:36:38.408410', job_id='112403', GAL2='1.03', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1630967798.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='5.74e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='635' AND source_name='4FGL J1302.8+5748' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 15:36:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 112403: <4FGL_J1302.8+5748_daily_bin635> in cluster <slac> Done

Job <4FGL_J1302.8+5748_daily_bin635> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 15:21:20 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 15:21:22 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:21:22 2021
Terminated at Mon Sep  6 15:36:39 2021
Results reported at Mon Sep  6 15:36:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1302.8+5748_daily_bin635 195.721 57.8146 403920001 404179201 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 :                                   887.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             296.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            919 sec.

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

