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


Performing analysis on: 4FGL_J1253.8+6242_daily_bin1118
RA = 193.467, Dec = 62.7052
tmin = 529113601, tmax = 529372801
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='974264', job_status='RUN', time_executed='2021-09-06 08:21:15.024193', time_epoch_executed='1630941675.02' WHERE source_name='4FGL J1253.8+6242' and cadence='daily' and bin_id='1118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/974264

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/974264/ft1_4FGL_J1253.8+6242_daily_bin1118.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/974264/ft2_4FGL_J1253.8+6242_daily_bin1118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/974264/ft1_4FGL_J1253.8+6242_daily_bin1118.fits outfile=/scratch/kocevski/974264/ft1_filteredMKT_4FGL_J1253.8+6242_daily_bin1118.fits ra=193.467 dec=62.7052 rad=12.0 tmin=529113601.0 tmax=529372801.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.88
user 3.68
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/974264/ft1_filtered_4FGL_J1253.8+6242_daily_bin1118.fits" evtable="EVENTS" scfile=/scratch/kocevski/974264/ft2_4FGL_J1253.8+6242_daily_bin1118.fits sctable="SC_DATA" outfile=/scratch/kocevski/974264/ltcube_529113601_529372801_4FGL_J1253.8+6242_daily_bin1118.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/974264/ft2_4FGL_J1253.8+6242_daily_bin1118.fits
.....................!
real 12.63
user 11.80
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/974264/ft1_filtered_4FGL_J1253.8+6242_daily_bin1118.fits evtable="EVENTS" scfile=/scratch/kocevski/974264/ft2_4FGL_J1253.8+6242_daily_bin1118.fits sctable="SC_DATA" expcube=/scratch/kocevski/974264/ltcube_529113601_529372801_4FGL_J1253.8+6242_daily_bin1118.fits outfile=/scratch/kocevski/974264/expmap_529113601_529372801_4FGL_J1253.8+6242_daily_bin1118.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/974264/ltcube_529113601_529372801_4FGL_J1253.8+6242_daily_bin1118.fits
.....................!
real 195.06
user 186.66
sys 5.15

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/974264/ft1_filtered_4FGL_J1253.8+6242_daily_bin1118.fits scfile=/scratch/kocevski/974264/ft2_4FGL_J1253.8+6242_daily_bin1118.fits outfile=/scratch/kocevski/974264/cmap_529113601_529372801_4FGL_J1253.8+6242_daily_bin1118.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.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/974264/ft1_filtered_4FGL_J1253.8+6242_daily_bin1118.fits scfile=/scratch/kocevski/974264/ft2_4FGL_J1253.8+6242_daily_bin1118.fits outfile=/scratch/kocevski/974264/cmap_HighResolution_529113601_529372801_4FGL_J1253.8+6242_daily_bin1118.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.57
user 0.37
sys 0.18

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/974264/ft1_filtered_4FGL_J1253.8+6242_daily_bin1118.fits', '/scratch/kocevski/974264/ft2_4FGL_J1253.8+6242_daily_bin1118.fits', expMap='/scratch/kocevski/974264/expmap_529113601_529372801_4FGL_J1253.8+6242_daily_bin1118.fits', expCube='/scratch/kocevski/974264/ltcube_529113601_529372801_4FGL_J1253.8+6242_daily_bin1118.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/974264/Model_4FGL_J1253.8+6242_daily_bin1118.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/974264/ft1_filtered_4FGL_J1253.8+6242_daily_bin1118.fits
Spacecraft file(s): /scratch/kocevski/974264/ft2_4FGL_J1253.8+6242_daily_bin1118.fits
Exposure map: /scratch/kocevski/974264/expmap_529113601_529372801_4FGL_J1253.8+6242_daily_bin1118.fits
Exposure cube: /scratch/kocevski/974264/ltcube_529113601_529372801_4FGL_J1253.8+6242_daily_bin1118.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/974264/Model_4FGL_J1253.8+6242_daily_bin1118.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) = 4945.51150535

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.500       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.4908       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10139E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.018       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.643       1.0000         .10000E-03   10000.    
     8 'norm      '    3.7843       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.5703       1.0000         .10000E-03   10000.    
    14 'norm      '    1.5562       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    31.805       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.3475       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11053E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    10.914       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    26.537       1.0000         .10000E-03   10000.    
    29 'Prefactor '    232.49       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1438       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .56822       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=   4945.505     FROM MIGRAD    STATUS=CONVERGED    774 CALLS     4052 TOTAL
                     EDM=   .30E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.499        22.307        .79797E-07   -.86616E-05
   2  Prefactor     .10000E-03    5.7569        .68893E-07** at limit **
   3  Prefactor     2.4909        2.6431        .23789E-07   -.57403E-05
   4  norm          .10000E-03    3.7274        .52228E-07** at limit **
   5  norm          .10000E-03    4.0855        .27012E-06** at limit **
   6  Prefactor     10.016        8.9082        .92864E-07   -.41395E-04
   7  Prefactor     11.642        22.553        .56257E-07   -.90182E-05
   8  norm          3.7844        2.8175        .14500E-06   -.30938E-04
   9  Prefactor     .10000E-03    9.6531        .29930E-06** at limit **
  10  Prefactor     .10000E-03    24.454        .96682E-07** at limit **
  11  norm          .10000E-03    4.1927        .57023E-06** at limit **
  12  Prefactor     .10000E-03    1.8086        .81188E-07** at limit **
  13  norm          1.5704        1.5235        .32627E-08   -.13560E-05
  14  norm          1.5561        1.5707        .99217E-08    .10456E-05
  15  Prefactor     .10000E-03    15.383        .13172E-06** at limit **
  16  Prefactor     .10000E-03    4.6166        .18227E-06** at limit **
  17  Prefactor     .10000E-03    38.270       -.12014E-06** at limit **
  18  Prefactor     31.772        36.391       -.16850E-06    .30344E-04
  19  Prefactor     .10000E-03    20.994        .24107E-06** at limit **
  20  Prefactor     .10000E-03    43.212        .18951E-06** at limit **
  21  Prefactor     9.3459        4.9006        .67977E-07    .67525E-05
  22  Prefactor     .10000E-03    23.269       -.33983E-05** at limit **
  23  Prefactor     .10000E-03    27.897       -.82050E-07** at limit **
  24  Prefactor     .10000E-03    3.1803       -.26722E-07** at limit **
  25  Prefactor     10.912        10.100        .14323E-05    .17025E-04
  26  norm          .10000E-03    30.519        .11096E-07** at limit **
  27  norm          .10000E-03    4.3854        .82391E-07** at limit **
  28  Prefactor     26.536        23.171        .12001E-07    .40577E-06
  29  Prefactor     231.26        481.08       -.22754E-05   -.52302E-05
  30  Normalizat    1.1437        .17068       -.14706E-05    .64416E-04
  31  Prefactor     .56825        .19561        .16344E-05   -.51608E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.4993
  Prefactor  = 0.0001
  Prefactor  = 2.49086
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10.0162
  Prefactor  = 11.6416
  norm       = 3.78438
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.57042
  norm       = 1.55614
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.7721
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.34594
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.9125
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 26.5364
  Prefactor  = 231.263
  Normalizat = 1.14374
  Prefactor  = 0.56825
 **********
 **   18 **HESSE 
 **********

 FCN=   4945.505     FROM HESSE     STATUS=OK           614 CALLS     4666 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.499        22.309        .71392E-04   -1.4585    
   2  Prefactor     .10000E-03    5.7584        .16481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.4909        2.6339        .11468E-03   -1.5392    
   4  norm          .10000E-03    3.7288        .13260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.2253        .27572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.016        8.8684        .12660E-03   -1.5075    
   7  Prefactor     11.642        22.571        .11740E-03   -1.5025    
   8  norm          3.7844        2.8156        .96283E-04   -1.5319    
   9  Prefactor     .10000E-03    9.6901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    24.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.3418        .28099E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.8119        .92366E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.5704        1.5196        .83174E-04   -1.5457    
  14  norm          1.5561        1.5815        .86175E-04   -1.5458    
  15  Prefactor     .10000E-03    15.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.6371        .14761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    38.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     31.772        36.261        .71049E-04   -1.4580    
  19  Prefactor     .10000E-03    21.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    43.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.3459        4.9031        .10752E-03   -1.5096    
  22  Prefactor     .10000E-03    23.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    27.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.1835        .12241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     10.912        10.204        .60637E-03   -1.5047    
  26  norm          .10000E-03    30.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    4.5271        .28758E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     26.536        23.171        .77766E-04   -1.4677    
  29  Prefactor     231.26        482.54        .13272E-03   -1.2655    
  30  Normalizat    1.1437        .18760        .19207E-03   -.88359    
  31  Prefactor     .56825        .21537        .30897E-03   -1.0894    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.75455e-11
Minuit parameter uncertainties:
  1  22.315
  2  8.05889e-07
  3  2.63404
  4  1.97412e-07
  5  2.9969e-06
  6  8.86957
  7  22.5875
  8  2.81567
  9  3.55699e-06
  10  1.56786e-06
  11  2.4742e-06
  12  8.68848e-07
  13  1.51963
  14  1.58154
  15  4.63137e-06
  16  3.16245e-06
  17  1.05473e-05
  18  36.2858
  19  1.07175e-05
  20  1.84995e-05
  21  4.90335
  22  1.71581e-05
  23  1.73761e-05
  24  3.21918e-07
  25  10.2052
  26  4.51211e-06
  27  6.03185e-06
  28  23.1787
  29  491.242
  30  0.187711
  31  0.215684
Done.

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

Extracting fit parameters...

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  1.000e-04  4.631e-06  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:  5.682e-01  2.157e-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:  1.144e+00  1.877e-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: 3.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/974264/likelihoodResults_529113601_529372801_4FGL_J1253.8+6242_daily_bin1118.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): 0
logL (Free Index) = 4945.50488734
delta logL = -0.000308900522214

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4945.50457872
delta logL = -2.81755092146e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0872       1.0000          .0000       10.000    
     3 'Normalizat'    1.1437       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56826       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4945.505     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      272 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.502        .18142E-02** at limit **
   2  Index         2.0659        5.9721        .50000        .11676E-04
   3  Normalizat    1.1437        .18143        .19207E-03   -.70482E-04
   4  Prefactor     .56825        .21247        .30896E-03   -.13755E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.06594
  Normalizat = 1.14374
  Prefactor  = 0.568249
 **********
 **   18 **HESSE 
 **********

 FCN=   4945.505     FROM HESSE     STATUS=OK            29 CALLS      301 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.665        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0659        6.0275        .50000       -.62712    
   3  Normalizat    1.1437        .18156        .38415E-04   -.88359    
   4  Prefactor     .56825        .21262        .12358E-04   -1.0894    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.03964e-10
Minuit parameter uncertainties:
  1  0.000341032
  2  4.08874
  3  0.181657
  4  0.21292
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/974264': 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): 0
logL (Free Index) = 4945.50457865
delta logL = -2.09049176192e-07

Extracting fit parameters...

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  1.000e-04  3.410e-04  1.000e-04  1.000e+04 ( 1.000e-14)
370        Index:  2.066e+00  4.089e+00  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:  5.682e-01  2.129e-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:  1.144e+00  1.817e-01  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/974264/cmap_HighResolution_529113601_529372801_4FGL_J1253.8+6242_daily_bin1118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.82e-03', job_status='DONE', photon_flux_upper_limit='3.77e-08', time_completed='2021-09-06 08:36:33.158124', job_id='974264', GAL2='0.57', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1630942593.16', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.57', dlogl='-2.09e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1118' AND source_name='4FGL J1253.8+6242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 08:36:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 974264: <4FGL_J1253.8+6242_daily_bin1118> in cluster <slac> Done

Job <4FGL_J1253.8+6242_daily_bin1118> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Mon Sep  6 08:20:46 2021
Job was executed on host(s) <bullet0289>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 08:20:47 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:47 2021
Terminated at Mon Sep  6 08:36:33 2021
Results reported at Mon Sep  6 08:36:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.8+6242_daily_bin1118 193.467 62.7052 529113601 529372801 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 :                                   888.07 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             322.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   946 sec.
    Turnaround time :                            947 sec.

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

