/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 96 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 = 7368
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1253.8+6242_daily_bin1202
RA = 193.467, Dec = 62.7052
tmin = 550886401, tmax = 551145601
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='974368', job_status='RUN', time_executed='2021-09-06 08:23:48.622160', time_epoch_executed='1630941828.62' WHERE source_name='4FGL J1253.8+6242' and cadence='daily' and bin_id='1202'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/974368

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/974368/ft1_4FGL_J1253.8+6242_daily_bin1202.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/974368/ft2_4FGL_J1253.8+6242_daily_bin1202.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/974368/ft1_4FGL_J1253.8+6242_daily_bin1202.fits outfile=/scratch/kocevski/974368/ft1_filteredMKT_4FGL_J1253.8+6242_daily_bin1202.fits ra=193.467 dec=62.7052 rad=12.0 tmin=550886401.0 tmax=551145601.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.41
user 3.57
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/974368/ft2_4FGL_J1253.8+6242_daily_bin1202.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/974368/ft2_4FGL_J1253.8+6242_daily_bin1202.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/974368/ft1_filteredMKT_4FGL_J1253.8+6242_daily_bin1202.fits evtable="EVENTS" outfile="/scratch/kocevski/974368/ft1_filtered_4FGL_J1253.8+6242_daily_bin1202.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.99
user 0.33
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/974368/ft1_filtered_4FGL_J1253.8+6242_daily_bin1202.fits" evtable="EVENTS" scfile=/scratch/kocevski/974368/ft2_4FGL_J1253.8+6242_daily_bin1202.fits sctable="SC_DATA" outfile=/scratch/kocevski/974368/ltcube_550886401_551145601_4FGL_J1253.8+6242_daily_bin1202.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/974368/ft2_4FGL_J1253.8+6242_daily_bin1202.fits
.....................!
real 13.25
user 11.34
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/974368/ft1_filtered_4FGL_J1253.8+6242_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/974368/ft2_4FGL_J1253.8+6242_daily_bin1202.fits sctable="SC_DATA" expcube=/scratch/kocevski/974368/ltcube_550886401_551145601_4FGL_J1253.8+6242_daily_bin1202.fits outfile=/scratch/kocevski/974368/expmap_550886401_551145601_4FGL_J1253.8+6242_daily_bin1202.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/974368/ltcube_550886401_551145601_4FGL_J1253.8+6242_daily_bin1202.fits
.....................!
real 196.03
user 185.50
sys 5.66

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

Setting source of interest to:
4FGL J1253.8+6242 @ 193.467 62.7052

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/974368/ft1_filtered_4FGL_J1253.8+6242_daily_bin1202.fits scfile=/scratch/kocevski/974368/ft2_4FGL_J1253.8+6242_daily_bin1202.fits outfile=/scratch/kocevski/974368/cmap_550886401_551145601_4FGL_J1253.8+6242_daily_bin1202.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=193.467 yref=62.7052 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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/974368/ft1_filtered_4FGL_J1253.8+6242_daily_bin1202.fits scfile=/scratch/kocevski/974368/ft2_4FGL_J1253.8+6242_daily_bin1202.fits outfile=/scratch/kocevski/974368/cmap_HighResolution_550886401_551145601_4FGL_J1253.8+6242_daily_bin1202.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=193.467 yref=62.7052 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.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/974368/ft1_filtered_4FGL_J1253.8+6242_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/974368/ft2_4FGL_J1253.8+6242_daily_bin1202.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/974368/Model_4FGL_J1253.8+6242_daily_bin1202.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/974368/ft1_filtered_4FGL_J1253.8+6242_daily_bin1202.fits.....................!
real 25.61
user 24.13
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/974368/ft1_filtered_4FGL_J1253.8+6242_daily_bin1202.fits', '/scratch/kocevski/974368/ft2_4FGL_J1253.8+6242_daily_bin1202.fits', expMap='/scratch/kocevski/974368/expmap_550886401_551145601_4FGL_J1253.8+6242_daily_bin1202.fits', expCube='/scratch/kocevski/974368/ltcube_550886401_551145601_4FGL_J1253.8+6242_daily_bin1202.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/974368/Model_4FGL_J1253.8+6242_daily_bin1202.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1253.8+6242'

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  7.997e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
370        Index:  1.987e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  2.277e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/974368/ft1_filtered_4FGL_J1253.8+6242_daily_bin1202.fits
Spacecraft file(s): /scratch/kocevski/974368/ft2_4FGL_J1253.8+6242_daily_bin1202.fits
Exposure map: /scratch/kocevski/974368/expmap_550886401_551145601_4FGL_J1253.8+6242_daily_bin1202.fits
Exposure cube: /scratch/kocevski/974368/ltcube_550886401_551145601_4FGL_J1253.8+6242_daily_bin1202.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/974368/Model_4FGL_J1253.8+6242_daily_bin1202.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) = 1780.74385495

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.8679       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    68.361       1.0000         .10000E-03   10000.    
     5 'norm      '    .10168E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .48046       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    14.467       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.2137       1.0000         .10000E-03   10000.    
    13 'norm      '    5.4774       1.0000         .10000E-03   10000.    
    14 'norm      '    4.6084       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10716E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10257E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.700       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .30819E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .23032E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    86.097       1.0000         .10000E-03   10000.    
    24 'Prefactor '    14.850       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .84028       1.0000         .10000E-03   10000.    
    26 'norm      '    .10131E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    17.167       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .67781E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .55157       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.3622       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1780.716     FROM MIGRAD    STATUS=CONVERGED    819 CALLS     4133 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.8643        83.557        .61238E-05   -.10634E-04
   2  Prefactor     .10000E-03    18.879        .30228E-06** at limit **
   3  Prefactor     .10000E-03    3.7614        .20696E-06** at limit **
   4  norm          68.361        43.286        .75212E-06    .34441E-05
   5  norm          .10000E-03    9.1535        .12267E-06** at limit **
   6  Prefactor     .10000E-03    5.1359        .22683E-06** at limit **
   7  Prefactor     .10000E-03    14.992       -.94312E-07** at limit **
   8  norm          .47942        4.6470        .83614E-06   -.29244E-03
   9  Prefactor     .10000E-03    26.545        .11511E-05** at limit **
  10  Prefactor     .10000E-03    74.898       -.14873E-04** at limit **
  11  norm          14.465        10.325        .36132E-06   -.72365E-04
  12  Prefactor     7.2134        13.469        .76659E-06   -.67957E-04
  13  norm          5.4772        5.0478        .19244E-06   -.80884E-05
  14  norm          4.6079        4.4328        .11117E-06    .14766E-04
  15  Prefactor     .10000E-03    126.45        .23940E-05** at limit **
  16  Prefactor     .10000E-03    23.001       -.73631E-06** at limit **
  17  Prefactor     .10000E-03    53.492        .63816E-05** at limit **
  18  Prefactor     .10000E-03    50.306       -.92102E-05** at limit **
  19  Prefactor     14.735        43.284        .57809E-05    .20104E-04
  20  Prefactor     .10004E-03    411.85       -.54749E-04** at limit **
  21  Prefactor     .10000E-03    3.2744       -.11012E-06** at limit **
  22  Prefactor     .10041E-03    59.291        .10742E-04** at limit **
  23  Prefactor     86.164        99.428        .50463E-04    .25394E-04
  24  Prefactor     14.850        14.718       -.60691E-07   -.28668E-03
  25  Prefactor     .83492        27.872       -.23134E-05   -.11482E-03
  26  norm          .10000E-03    124.61       -.18098E-05** at limit **
  27  norm          17.170        11.706       -.27054E-05    .98242E-04
  28  Prefactor     .10000E-03    62.245        .14007E-04** at limit **
  29  Prefactor     .10000E-03    1589.9       -.26960E-03** at limit **
  30  Normalizat    .55154        .31889       -.14709E-04   -.17741E-03
  31  Prefactor     1.3626        .36307        .43669E-05   -.34812E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.86433
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 68.3609
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.479424
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.4653
  Prefactor  = 7.21343
  norm       = 5.47717
  norm       = 4.60794
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.7346
  Prefactor  = 0.00010004
  Prefactor  = 0.0001
  Prefactor  = 0.000100415
  Prefactor  = 86.1642
  Prefactor  = 14.8497
  Prefactor  = 0.834917
  norm       = 0.0001
  norm       = 17.1704
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.551542
  Prefactor  = 1.36259
 **********
 **   18 **HESSE 
 **********

 FCN=   1780.716     FROM HESSE     STATUS=OK           618 CALLS     4751 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.8643        83.678        .18232E-03   -1.5267    
   2  Prefactor     .10000E-03    18.889        .17913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.7681        .79934E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          68.361        43.256        .48547E-04   -1.4052    
   5  norm          .10000E-03    9.5664        .24891E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.1388        .93408E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.994        .15962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .47942        7.5938        .16951E-02   -1.5569    
   9  Prefactor     .10000E-03    26.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    74.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          14.465        10.325        .10530E-03   -1.4947    
  12  Prefactor     7.2134        13.436        .14935E-03   -1.5171    
  13  norm          5.4772        5.0463        .84974E-04   -1.5240    
  14  norm          4.6079        4.4344        .84465E-04   -1.5279    
  15  Prefactor     .10000E-03    126.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    23.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    53.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    50.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.735        43.312        .10447E-03   -1.4940    
  20  Prefactor     .10004E-03    415.67        .19799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.2846        .74546E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10041E-03    288.97        .57112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     86.164        99.759        .21648E-03   -1.3849    
  24  Prefactor     14.850        14.651        .10393E-03   -1.4937    
  25  Prefactor     .83492        66.664        .39793E-02   -1.5525    
  26  norm          .10000E-03    124.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          17.170        11.691        .96665E-04   -1.4879    
  28  Prefactor     .10000E-03    62.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    1586.5        .20998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .55154        .37176        .27993E-03   -1.1008    
  31  Prefactor     1.3626        .43569        .23501E-03   -.81465    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.42019e-09
Minuit parameter uncertainties:
  1  40.4164
  2  2.35147e-05
  3  8.93015e-06
  4  43.2757
  5  3.41754e-05
  6  6.55592e-06
  7  1.43489e-05
  8  3.81628
  9  9.34047e-05
  10  0.000113192
  11  10.3258
  12  13.4421
  13  5.04665
  14  4.43472
  15  0.000269394
  16  9.55809e-05
  17  2.71966e-05
  18  1.59348e-05
  19  43.4047
  20  0.00818013
  21  1.62654e-06
  22  0.0220015
  23  99.9541
  24  14.6542
  25  14.9374
  26  0.000125809
  27  11.6921
  28  2.76002e-05
  29  0.000240034
  30  0.373456
  31  0.436872
Done.

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

Extracting fit parameters...

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  1.000e-04  2.694e-04  1.000e-04  1.000e+04 ( 1.000e-14)
370        Index:  1.987e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  2.277e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  1.363e+00  4.369e-01  0.000e+00  1.000e+01 ( 1.000e+00)
708        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
709        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
706   Normalization:  5.515e-01  3.735e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 193.467 62.705
Photon Flux Upper Limit: 1.36e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.02e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/974368/likelihoodResults_550886401_551145601_4FGL_J1253.8+6242_daily_bin1202.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) = 1780.71636574
delta logL = -3.7457692315e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1780.71632833
delta logL = -4.84458269057e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10268E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9509       1.0000          .0000       10.000    
     3 'Normalizat'    .55153       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3626       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1780.716     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      245 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    7131.9        .90712E-02** at limit **
   2  Index         2.0073        5.0256        .50000       -.45039E-05
   3  Normalizat    .55154        .45069E-01    .63264E-01    .44035E-03
   4  Prefactor     1.3626        .57414E-01    .53156E-01    .50803E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100032
  Index      = 2.00731
  Normalizat = 0.551541
  Prefactor  = 1.3626
 **********
 **   18 **HESSE 
 **********

 FCN=   1780.716     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    9090.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0073        8.8357        .50000       -.64167    
   3  Normalizat    .55154        .78248E-01    .27994E-03   -1.1008    
   4  Prefactor     1.3626        .99845E-01    .23501E-03   -.81464    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.1527e-08
Minuit parameter uncertainties:
  1  0.0407227
  2  40.0284
  3  0.0782636
  4  0.0998587
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/974368': 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) = 1780.71632826
delta logL = 2.20718447963e-08

Extracting fit parameters...

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  1.000e-04  4.072e-02  1.000e-04  1.000e+04 ( 1.000e-14)
370        Index:  2.007e+00  4.003e+01  0.000e+00  1.000e+01 (-1.000e+00)
371        Scale:  2.277e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  1.363e+00  9.986e-02  0.000e+00  1.000e+01 ( 1.000e+00)
708        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
709        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
706   Normalization:  5.515e-01  7.826e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 193.467 62.705

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/974368/cmap_HighResolution_550886401_551145601_4FGL_J1253.8+6242_daily_bin1202.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', job_status='DONE', photon_flux_upper_limit='1.36e-07', time_completed='2021-09-06 08:32:54.165960', job_id='974368', GAL2='1.36', fit_tolerance='1e-08', EG2='0.55', EG='0.55', time_epoch_completed='1630942374.17', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.36', dlogl='2.21e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1202' AND source_name='4FGL J1253.8+6242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 08:32:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 974368: <4FGL_J1253.8+6242_daily_bin1202> in cluster <slac> Done

Job <4FGL_J1253.8+6242_daily_bin1202> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Mon Sep  6 08:20:54 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 08:20:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 08:20:56 2021
Terminated at Mon Sep  6 08:32:54 2021
Results reported at Mon Sep  6 08:32:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.8+6242_daily_bin1202 193.467 62.7052 550886401 551145601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1253.8+6242 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   527.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             261.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   718 sec.
    Turnaround time :                            720 sec.

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

