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


Performing analysis on: 4FGL_J1302.8+5748_daily_bin73
RA = 195.721, Dec = 57.8146
tmin = 258249601, tmax = 258508801
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='109941', job_status='RUN', time_executed='2021-09-06 15:18:13.144043', time_epoch_executed='1630966693.14' WHERE source_name='4FGL J1302.8+5748' and cadence='daily' and bin_id='73'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/109941

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

Retrieving the FT1 file...

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

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

Retrieving 33 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/109941/ft1_4FGL_J1302.8+5748_daily_bin73.fits


Retrieving the FT1 file...

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

Retrieving 33 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/109941/ft2_4FGL_J1302.8+5748_daily_bin73.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/109941/ft1_4FGL_J1302.8+5748_daily_bin73.fits outfile=/scratch/kocevski/109941/ft1_filteredMKT_4FGL_J1302.8+5748_daily_bin73.fits ra=195.721 dec=57.8146 rad=12.0 tmin=258249601.0 tmax=258508801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 1.16
user 0.97
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/109941/ft1_filtered_4FGL_J1302.8+5748_daily_bin73.fits evtable="EVENTS" scfile=/scratch/kocevski/109941/ft2_4FGL_J1302.8+5748_daily_bin73.fits sctable="SC_DATA" expcube=/scratch/kocevski/109941/ltcube_258249601_258508801_4FGL_J1302.8+5748_daily_bin73.fits outfile=/scratch/kocevski/109941/expmap_258249601_258508801_4FGL_J1302.8+5748_daily_bin73.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/109941/ltcube_258249601_258508801_4FGL_J1302.8+5748_daily_bin73.fits
.....................!
real 192.08
user 186.33
sys 4.56

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/109941/ft1_filtered_4FGL_J1302.8+5748_daily_bin73.fits scfile=/scratch/kocevski/109941/ft2_4FGL_J1302.8+5748_daily_bin73.fits outfile=/scratch/kocevski/109941/cmap_258249601_258508801_4FGL_J1302.8+5748_daily_bin73.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.55
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/109941/ft1_filtered_4FGL_J1302.8+5748_daily_bin73.fits scfile=/scratch/kocevski/109941/ft2_4FGL_J1302.8+5748_daily_bin73.fits outfile=/scratch/kocevski/109941/cmap_HighResolution_258249601_258508801_4FGL_J1302.8+5748_daily_bin73.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    26.022       1.0000         .10000E-03   10000.    
     2 'norm      '    .10784E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.339       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11461E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    48.514       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    38.499       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14052E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.4672       1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.151       1.0000         .10000E-03   10000.    
    13 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10952E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.043       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .16860E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.2041       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10496E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10147E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    7.0763       1.0000         .10000E-03   10000.    
    28 'Prefactor '    117.15       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    12.504       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .89466       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .88956       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=   3037.180     FROM MIGRAD    STATUS=CONVERGED    919 CALLS     4774 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          26.058        22.610       -.15265E-06   -.74509E-04
   2  norm          .10000E-03    41.717        .18661E-04** at limit **
   3  Prefactor     18.382        14.548       -.49683E-06   -.13662E-03
   4  Prefactor     .10000E-03    139.19        .25286E-05** at limit **
   5  norm          .10000E-03    .78245        .51427E-07** at limit **
   6  Prefactor     48.497        45.622        .33632E-06    .41171E-04
   7  Prefactor     .10000E-03    130.18       -.76608E-06** at limit **
   8  norm          38.500        14.438       -.94928E-07   -.32325E-03
   9  Prefactor     .10000E-03    100.72        .64936E-06** at limit **
  10  Prefactor     .10000E-03    12.551        .16212E-06** at limit **
  11  norm          6.4653        4.1886       -.10852E-06   -.65752E-03
  12  Prefactor     29.145        31.673       -.49732E-07   -.82883E-04
  13  norm          .10000E-03    1.7234        .85499E-07** at limit **
  14  Prefactor     .10000E-03    113.15       -.31570E-06** at limit **
  15  Prefactor     .10000E-03    18.343        .32150E-06** at limit **
  16  norm          .10000E-03    2.8423        .65264E-07** at limit **
  17  Prefactor     .10000E-03    42.633       -.61401E-06** at limit **
  18  Prefactor     .10000E-03    24.475        .10471E-06** at limit **
  19  Prefactor     19.037        27.362       -.32226E-06   -.16951E-03
  20  Prefactor     .10000E-03    57.323        .93883E-06** at limit **
  21  norm          .10000E-03    9.7211       -.12275E-06** at limit **
  22  Prefactor     .10000E-03    28.371        .44663E-06** at limit **
  23  Prefactor     6.2017        8.4926        .42104E-06    .38050E-03
  24  Prefactor     .10000E-03    19.607       -.38024E-06** at limit **
  25  Prefactor     .10000E-03    9.5094       -.48942E-06** at limit **
  26  norm          .10000E-03    130.10       -.65752E-06** at limit **
  27  norm          7.0738        7.3607        .23277E-06    .23966E-03
  28  Prefactor     117.14        86.043        .10462E-06   -.41703E-05
  29  Prefactor     .10000E-03    274.95        .34212E-05** at limit **
  30  Prefactor     .10000E-03    31.864        .24589E-07** at limit **
  31  Prefactor     12.504        5.7650       -.85140E-07   -.49575E-03
  32  Prefactor     .10000E-03    54.471        .67537E-06** at limit **
  33  Normalizat    .89499        .23761        .74726E-06   -.27994E-03
  34  Prefactor     .88925        .26206       -.19999E-05   -.38434E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 26.058
  norm       = 0.000100003
  Prefactor  = 18.3822
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 48.4966
  Prefactor  = 0.000100001
  norm       = 38.5003
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 6.46532
  Prefactor  = 29.1452
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.0368
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.20172
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 7.07377
  Prefactor  = 117.135
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 12.504
  Prefactor  = 0.0001
  Normalizat = 0.894988
  Prefactor  = 0.88925
 **********
 **   18 **HESSE 
 **********

 FCN=   3037.180     FROM HESSE     STATUS=OK           708 CALLS     5482 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          26.058        22.582        .78531E-04   -1.4687    
   2  norm          .10000E-03    41.742        .25412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     18.382        14.636        .93527E-04   -1.4850    
   4  Prefactor     .10000E-03    143.91        .41340E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .78491        .47608E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     48.497        45.981        .57571E-04   -1.4314    
   7  Prefactor     .10000E-03    130.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          38.500        14.432        .64597E-04   -1.4466    
   9  Prefactor     .10000E-03    101.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.4653        4.1916        .87390E-04   -1.5199    
  12  Prefactor     29.145        31.721        .74205E-04   -1.4628    
  13  norm          .10000E-03    1.7404        .70652E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    113.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    18.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.8641        .90726E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    42.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    24.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     19.037        27.142        .91782E-04   -1.4835    
  20  Prefactor     .10000E-03    57.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    9.8696        .33102E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    28.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.2017        8.5646        .16117E-03   -1.5210    
  24  Prefactor     .10000E-03    19.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    9.5526        .16614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    130.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          7.0738        7.3709        .14481E-03   -1.5176    
  28  Prefactor     117.14        85.996        .18588E-03   -1.3539    
  29  Prefactor     .10000E-03    274.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    31.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     12.504        5.7690        .86450E-04   -1.5001    
  32  Prefactor     .10000E-03    54.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .89499        .27483        .24201E-03   -.96636    
  34  Prefactor     .88925        .30247        .28929E-03   -.96518    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33115e-09
Minuit parameter uncertainties:
  1  22.5894
  2  0.000731428
  3  14.6384
  4  0.000403788
  5  3.96645e-06
  6  46.0149
  7  0.000532139
  8  14.4328
  9  0.00063576
  10  5.12068e-05
  11  4.19175
  12  31.7397
  13  1.24374e-05
  14  0.000138322
  15  1.80327e-05
  16  1.29963e-05
  17  0.00016383
  18  3.28847e-05
  19  27.1595
  20  0.000230743
  21  1.73113e-05
  22  0.00010912
  23  8.56629
  24  2.39386e-05
  25  0.000192116
  26  0.000117123
  27  7.37188
  28  86.0881
  29  0.00164924
  30  2.54505e-05
  31  5.76925
  32  0.000164372
  33  0.275258
  34  0.303044
Done.

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

Extracting fit parameters...

4FGL J1302.8+5748
   Spectrum: PowerLaw
371    Prefactor:  1.000e-04  1.803e-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:  8.893e-01  3.030e-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:  8.950e-01  2.753e-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: 1.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/109941/likelihoodResults_258249601_258508801_4FGL_J1302.8+5748_daily_bin73.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) = 3037.18038373
delta logL = -0.000257452732512

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3037.18012696
delta logL = -6.8726558311e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1714       1.0000          .0000       10.000    
     3 'Normalizat'    .89499       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88927       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=   3037.180     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      273 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    760.93        .18142E-02** at limit **
   2  Index         2.2178        5.9865        .50000       -.29903E-04
   3  Normalizat    .89499        .41800E-01    .24201E-03   -.59660E-05
   4  Prefactor     .88926        .50041E-01    .28929E-03   -.10493E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100015
  Index      = 2.21776
  Normalizat = 0.894986
  Prefactor  = 0.889256
 **********
 **   18 **HESSE 
 **********

 FCN=   3037.180     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      302 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    6252.8        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2178        5.7872        .50000       -.59010    
   3  Normalizat    .89499        .10166        .96803E-05   -.96637    
   4  Prefactor     .88926        .12169        .11572E-04   -.96518    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.1619e-10
Minuit parameter uncertainties:
  1  0.0129193
  2  54.1494
  3  0.101681
  4  0.121728
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/109941': 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) = 3037.18012665
delta logL = -3.71445821656e-07

Extracting fit parameters...

4FGL J1302.8+5748
   Spectrum: PowerLaw
371    Prefactor:  1.000e-04  1.292e-02  1.000e-04  1.000e+04 ( 1.000e-13)
372        Index:  2.218e+00  5.415e+01  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.893e-01  1.217e-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:  8.950e-01  1.017e-01  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/109941/cmap_HighResolution_258249601_258508801_4FGL_J1302.8+5748_daily_bin73.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.66e-03', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2021-09-06 15:29:49.623798', job_id='109941', GAL2='0.89', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1630967389.62', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='-3.71e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='73' AND source_name='4FGL J1302.8+5748' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 15:29:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 109941: <4FGL_J1302.8+5748_daily_bin73> in cluster <slac> Done

Job <4FGL_J1302.8+5748_daily_bin73> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 15:15:47 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 15:15:50 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:15:50 2021
Terminated at Mon Sep  6 15:29:50 2021
Results reported at Mon Sep  6 15:29:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1302.8+5748_daily_bin73 195.721 57.8146 258249601 258508801 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 :                                   690.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             258.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            843 sec.

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

