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


Performing analysis on: 4FGL_J1253.8+6242_daily_bin1524
RA = 193.467, Dec = 62.7052
tmin = 634348801, tmax = 634608001
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='974812', job_status='RUN', time_executed='2021-09-06 08:23:37.495608', time_epoch_executed='1630941817.5' WHERE source_name='4FGL J1253.8+6242' and cadence='daily' and bin_id='1524'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/974812

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/974812/ft1_4FGL_J1253.8+6242_daily_bin1524.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/974812/ft2_4FGL_J1253.8+6242_daily_bin1524.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/974812/ft1_4FGL_J1253.8+6242_daily_bin1524.fits outfile=/scratch/kocevski/974812/ft1_filteredMKT_4FGL_J1253.8+6242_daily_bin1524.fits ra=193.467 dec=62.7052 rad=12.0 tmin=634348801.0 tmax=634608001.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 3.90
user 3.53
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/974812/ft1_filtered_4FGL_J1253.8+6242_daily_bin1524.fits" evtable="EVENTS" scfile=/scratch/kocevski/974812/ft2_4FGL_J1253.8+6242_daily_bin1524.fits sctable="SC_DATA" outfile=/scratch/kocevski/974812/ltcube_634348801_634608001_4FGL_J1253.8+6242_daily_bin1524.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/974812/ft2_4FGL_J1253.8+6242_daily_bin1524.fits
.....................!
real 13.12
user 12.45
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/974812/ft1_filtered_4FGL_J1253.8+6242_daily_bin1524.fits evtable="EVENTS" scfile=/scratch/kocevski/974812/ft2_4FGL_J1253.8+6242_daily_bin1524.fits sctable="SC_DATA" expcube=/scratch/kocevski/974812/ltcube_634348801_634608001_4FGL_J1253.8+6242_daily_bin1524.fits outfile=/scratch/kocevski/974812/expmap_634348801_634608001_4FGL_J1253.8+6242_daily_bin1524.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/974812/ltcube_634348801_634608001_4FGL_J1253.8+6242_daily_bin1524.fits
.....................!
real 191.85
user 185.58
sys 5.51

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/974812/ft1_filtered_4FGL_J1253.8+6242_daily_bin1524.fits scfile=/scratch/kocevski/974812/ft2_4FGL_J1253.8+6242_daily_bin1524.fits outfile=/scratch/kocevski/974812/cmap_634348801_634608001_4FGL_J1253.8+6242_daily_bin1524.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.70
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/974812/ft1_filtered_4FGL_J1253.8+6242_daily_bin1524.fits scfile=/scratch/kocevski/974812/ft2_4FGL_J1253.8+6242_daily_bin1524.fits outfile=/scratch/kocevski/974812/cmap_HighResolution_634348801_634608001_4FGL_J1253.8+6242_daily_bin1524.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.54
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .13913E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.426       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .71748       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.8568       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10615E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.216       1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.973       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    26.230       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .18314E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    26.152       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 '    23.971       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .12391E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2742       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .84018       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=   3865.238     FROM MIGRAD    STATUS=CONVERGED    834 CALLS     4166 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.513        .12588E-04** at limit **
   2  Prefactor     .10000E-03    12.693        .77057E-05** at limit **
   3  Prefactor     .10000E-03    1.4705       -.76269E-07** at limit **
   4  norm          .10000E-03    8.7519       -.31131E-05** at limit **
   5  norm          .10000E-03    5.2418        .13092E-07** at limit **
   6  Prefactor     .10000E-03    9.2718        .63017E-05** at limit **
   7  Prefactor     .10000E-03    27.050       -.19561E-04** at limit **
   8  norm          .10004E-03    3.8518       -.17306E-05** at limit **
   9  Prefactor     20.440        38.706       -.29249E-05   -.40850E-05
  10  Prefactor     .10000E-03    49.111        .22772E-04** at limit **
  11  norm          .70725        4.3926        .10923E-05   -.83294E-03
  12  Prefactor     6.8571        9.4335       -.10758E-06    .31254E-05
  13  norm          .10000E-03    1.7352        .27472E-07** at limit **
  14  norm          .10000E-03    3.3775       -.12604E-07** at limit **
  15  Prefactor     .10000E-03    94.549        .23052E-04** at limit **
  16  Prefactor     19.218        20.998       -.19410E-06   -.28634E-04
  17  Prefactor     19.972        32.979        .42373E-06    .58392E-05
  18  Prefactor     .10000E-03    16.549       -.30759E-05** at limit **
  19  Prefactor     26.239        32.290       -.36012E-05   -.12589E-03
  20  Prefactor     .10000E-03    316.88        .13441E-03** at limit **
  21  Prefactor     .10000E-03    1.7257       -.58021E-07** at limit **
  22  Prefactor     .10000E-03    10.309       -.55617E-05** at limit **
  23  Prefactor     .10000E-03    67.053       -.44719E-04** at limit **
  24  Prefactor     .10000E-03    5.2510        .94605E-07** at limit **
  25  Prefactor     26.152        13.275       -.70729E-07    .36557E-04
  26  norm          .10000E-03    33.866        .92612E-05** at limit **
  27  norm          .10000E-03    1.9276        .41222E-07** at limit **
  28  Prefactor     23.965        36.134        .14610E-05    .16621E-04
  29  Prefactor     .10001E-03    1032.3       -.94418E-03** at limit **
  30  Normalizat    1.2742        .21478        .13652E-05    .15061E-03
  31  Prefactor     .84036        .24190       -.67236E-06    .24142E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100044
  Prefactor  = 20.4399
  Prefactor  = 0.0001
  norm       = 0.707252
  Prefactor  = 6.85705
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.2179
  Prefactor  = 19.9719
  Prefactor  = 0.0001
  Prefactor  = 26.2393
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.152
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 23.9649
  Prefactor  = 0.00010001
  Normalizat = 1.27416
  Prefactor  = 0.840364
 **********
 **   18 **HESSE 
 **********

 FCN=   3865.238     FROM HESSE     STATUS=OK           610 CALLS     4776 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.4711        .73629E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    8.7519        .17965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.2609        .13900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.3058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    27.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10004E-03    14.019        .23454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     20.440        38.769        .88623E-04   -1.4803    
  10  Prefactor     .10000E-03    49.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .70725        13.596        .24584E-02   -1.5540    
  12  Prefactor     6.8571        9.4223        .15322E-03   -1.5184    
  13  norm          .10000E-03    1.7371        .79968E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    6.6383        .22192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    94.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     19.218        21.032        .91369E-04   -1.4831    
  17  Prefactor     19.972        32.975        .89621E-04   -1.4814    
  18  Prefactor     .10000E-03    16.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     26.239        32.297        .78219E-04   -1.4683    
  20  Prefactor     .10000E-03    319.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.7443        .79687E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    10.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    67.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.2952        .13904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     26.152        13.336        .78334E-04   -1.4685    
  26  norm          .10000E-03    33.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.9377        .84281E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     23.965        36.145        .81815E-04   -1.4728    
  29  Prefactor     .10001E-03    1032.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.2742        .25783        .21245E-03   -.84341    
  31  Prefactor     .84036        .29035        .29469E-03   -.98257    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.98811e-09
Minuit parameter uncertainties:
  1  1.67956e-06
  2  2.05209e-06
  3  6.90143e-07
  4  2.06849e-07
  5  1.06102e-06
  6  4.15195e-06
  7  6.93835e-06
  8  0.00156397
  9  38.8163
  10  5.33422e-06
  11  6.20298
  12  9.42433
  13  1.17727e-07
  14  1.38362e-06
  15  2.8915e-05
  16  21.0402
  17  33.0055
  18  3.12793e-06
  19  32.3184
  20  0.00158446
  21  4.04804e-06
  22  8.55552e-06
  23  4.14682e-05
  24  1.12957e-05
  25  13.3371
  26  5.28073e-07
  27  3.19954e-06
  28  36.178
  29  0.00659835
  30  0.258093
  31  0.290878
Done.

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

Extracting fit parameters...

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  1.000e-04  2.892e-05  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:  8.404e-01  2.909e-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.274e+00  2.581e-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.42e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.06e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/974812/likelihoodResults_634348801_634608001_4FGL_J1253.8+6242_daily_bin1524.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) = 3865.23779933
delta logL = -5.02329048686e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3865.23774926
delta logL = -1.6125250113e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12555E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9482       1.0000          .0000       10.000    
     3 'Normalizat'    1.2742       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84037       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=   3865.238     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      240 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    7500.1        .90712E-02** at limit **
   2  Index         1.9718        5.3215        .50000       -.21563E-05
   3  Normalizat    1.2742        .46642E-01    .48058E-01    .68474E-04
   4  Prefactor     .84036        .54009E-01    .66616E-01   -.37979E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  Index      = 1.97177
  Normalizat = 1.27417
  Prefactor  = 0.840357
 **********
 **   18 **HESSE 
 **********

 FCN=   3865.238     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      271 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    9538.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9718        5.9399        .50000       -.65058    
   3  Normalizat    1.2742        .97746E-01    .21245E-03   -.84341    
   4  Prefactor     .84036        .11304        .29470E-03   -.98257    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.02642e-08
Minuit parameter uncertainties:
  1  0.0212531
  2  52.8946
  3  0.0977597
  4  0.113075
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/974812': 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) = 3865.23774911
delta logL = -8.0526660895e-09

Extracting fit parameters...

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  1.000e-04  2.125e-02  1.000e-04  1.000e+04 ( 1.000e-14)
370        Index:  1.972e+00  5.289e+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:  8.404e-01  1.131e-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.274e+00  9.776e-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/974812/cmap_HighResolution_634348801_634608001_4FGL_J1253.8+6242_daily_bin1524.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', job_status='DONE', photon_flux_upper_limit='1.42e-07', time_completed='2021-09-06 08:36:54.963267', job_id='974812', GAL2='0.84', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1630942614.96', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='-8.05e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1524' AND source_name='4FGL J1253.8+6242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 08:36:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0015>
Subject: Job 974812: <4FGL_J1253.8+6242_daily_bin1524> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.8+6242_daily_bin1524 193.467 62.7052 634348801 634608001 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 :                                   757.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             294.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            932 sec.

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

