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


Performing analysis on: 4FGL_J1253.8+6242_daily_bin5
RA = 193.467, Dec = 62.7052
tmin = 240624001, tmax = 240883201
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='961936', job_status='RUN', time_executed='2021-09-06 07:47:24.886981', time_epoch_executed='1630939644.89' WHERE source_name='4FGL J1253.8+6242' and cadence='daily' and bin_id='5'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/961936

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/961936/ft1_4FGL_J1253.8+6242_daily_bin5.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/961936/ft2_4FGL_J1253.8+6242_daily_bin5.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/961936/ft1_4FGL_J1253.8+6242_daily_bin5.fits outfile=/scratch/kocevski/961936/ft1_filteredMKT_4FGL_J1253.8+6242_daily_bin5.fits ra=193.467 dec=62.7052 rad=12.0 tmin=240624001.0 tmax=240883201.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.37
user 1.20
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/961936/ft2_4FGL_J1253.8+6242_daily_bin5.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/961936/ft1_filteredMKT_4FGL_J1253.8+6242_daily_bin5.fits evtable="EVENTS" outfile="/scratch/kocevski/961936/ft1_filtered_4FGL_J1253.8+6242_daily_bin5.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.33
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/961936/ft1_filtered_4FGL_J1253.8+6242_daily_bin5.fits evtable="EVENTS" scfile=/scratch/kocevski/961936/ft2_4FGL_J1253.8+6242_daily_bin5.fits sctable="SC_DATA" expcube=/scratch/kocevski/961936/ltcube_240624001_240883201_4FGL_J1253.8+6242_daily_bin5.fits outfile=/scratch/kocevski/961936/expmap_240624001_240883201_4FGL_J1253.8+6242_daily_bin5.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/961936/ltcube_240624001_240883201_4FGL_J1253.8+6242_daily_bin5.fits
.....................!
real 193.03
user 187.69
sys 4.93

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/961936/ft1_filtered_4FGL_J1253.8+6242_daily_bin5.fits scfile=/scratch/kocevski/961936/ft2_4FGL_J1253.8+6242_daily_bin5.fits outfile=/scratch/kocevski/961936/cmap_240624001_240883201_4FGL_J1253.8+6242_daily_bin5.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/961936/ft1_filtered_4FGL_J1253.8+6242_daily_bin5.fits scfile=/scratch/kocevski/961936/ft2_4FGL_J1253.8+6242_daily_bin5.fits outfile=/scratch/kocevski/961936/cmap_HighResolution_240624001_240883201_4FGL_J1253.8+6242_daily_bin5.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.127       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .27209E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    10.125       1.0000         .10000E-03   10000.    
     5 'norm      '    .10379E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11273E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.215       1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    123.21       1.0000         .10000E-03   10000.    
    11 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.1869       1.0000         .10000E-03   10000.    
    13 'norm      '    .30537       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.885       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    69.984       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10276E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.875       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.537       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.2502       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.4014       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.6403       1.0000         .10000E-03   10000.    
    26 'norm      '    4.1573       1.0000         .10000E-03   10000.    
    27 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    354.29       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .93194       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .91456       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=   5071.284     FROM MIGRAD    STATUS=CONVERGED    804 CALLS     4133 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.126        28.203       -.27110E-05    .77426E-05
   2  Prefactor     .10013E-03    16.751       -.23297E-06** at limit **
   3  Prefactor     .10000E-03    2.1551       -.84023E-07** at limit **
   4  norm          10.126        10.180        .70845E-06    .83018E-03
   5  norm          .10000E-03    8.1725       -.19241E-05** at limit **
   6  Prefactor     .10000E-03    8.6472        .24175E-05** at limit **
   7  Prefactor     13.213        19.260       -.50491E-06   -.15192E-03
   8  norm          .10000E-03    1.0718       -.66256E-07** at limit **
   9  Prefactor     .10000E-03    9.8902       -.67111E-06** at limit **
  10  Prefactor     123.20        89.498       -.50353E-05    .26024E-04
  11  norm          .10000E-03    2.4017       -.51964E-07** at limit **
  12  Prefactor     3.1874        4.5430       -.20144E-05   -.15622E-03
  13  norm          .30463        1.7971       -.46623E-06   -.16854E-02
  14  norm          .10000E-03    .57346       -.57172E-07** at limit **
  15  Prefactor     25.885        26.448       -.36942E-06    .16287E-04
  16  Prefactor     .10000E-03    4.6380        .33121E-08** at limit **
  17  Prefactor     69.963        71.052       -.19815E-04    .14434E-04
  18  Prefactor     .10000E-03    62.168       -.13169E-05** at limit **
  19  Prefactor     16.873        27.075        .11689E-04    .80967E-04
  20  Prefactor     11.486        55.995       -.79885E-04   -.28051E-05
  21  Prefactor     6.2478        4.3192        .39658E-07    .27504E-05
  22  Prefactor     7.3974        14.825       -.36336E-06   -.86340E-05
  23  Prefactor     .10000E-03    21.857        .26391E-06** at limit **
  24  Prefactor     .10000E-03    5.6618        .15544E-06** at limit **
  25  Prefactor     8.6391        10.228       -.36779E-06   -.33591E-04
  26  norm          4.1406        135.31       -.39674E-04   -.79257E-05
  27  norm          .10000E-03    1.5328        .42616E-06** at limit **
  28  Prefactor     .10000E-03    15.875       -.56797E-07** at limit **
  29  Prefactor     354.30        424.60        .49999E-05    .17924E-05
  30  Normalizat    .93214        .17098        .50136E-05   -.34798E-04
  31  Prefactor     .91433        .19740        .64578E-06    .23984E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.1261
  Prefactor  = 0.000100129
  Prefactor  = 0.0001
  norm       = 10.1255
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.2132
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 123.2
  norm       = 0.0001
  Prefactor  = 3.18736
  norm       = 0.304634
  norm       = 0.0001
  Prefactor  = 25.8845
  Prefactor  = 0.0001
  Prefactor  = 69.9626
  Prefactor  = 0.0001
  Prefactor  = 16.873
  Prefactor  = 11.4864
  Prefactor  = 6.2478
  Prefactor  = 7.39737
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.63914
  norm       = 4.14058
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 354.303
  Normalizat = 0.932136
  Prefactor  = 0.914329
 **********
 **   18 **HESSE 
 **********

 FCN=   5071.284     FROM HESSE     STATUS=OK           620 CALLS     4753 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.126        28.198        .12011E-03   -1.5041    
   2  Prefactor     .10013E-03    134.85        .56681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.1668        .10208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          10.126        10.206        .62963E-03   -1.5071    
   5  norm          .10000E-03    8.4856        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.7357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.213        19.231        .55094E-03   -1.4981    
   8  norm          .10000E-03    1.1039        .14390E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.9052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     123.20        89.508        .36261E-04   -1.3483    
  11  norm          .10000E-03    2.4333        .10776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.1874        4.4960        .16854E-03   -1.5351    
  13  norm          .30463        1.7232        .17837E-03   -1.5598    
  14  norm          .10000E-03    .57526        .52661E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     25.885        26.450        .78737E-04   -1.4690    
  16  Prefactor     .10000E-03    4.6557        .14974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     69.963        70.910        .47984E-04   -1.4033    
  18  Prefactor     .10000E-03    62.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.873        27.090        .97499E-04   -1.4886    
  20  Prefactor     11.486        55.723        .11795E-03   -1.5030    
  21  Prefactor     6.2478        4.3175        .11554E-03   -1.5208    
  22  Prefactor     7.3974        14.793        .14742E-03   -1.5164    
  23  Prefactor     .10000E-03    21.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.6931        .16524E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     8.6391        10.222        .13637E-03   -1.5120    
  26  norm          4.1406        135.91        .19768E-03   -1.5301    
  27  norm          .10000E-03    1.5452        .86022E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    15.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     354.30        424.92        .10819E-03   -1.1921    
  30  Normalizat    .93214        .20308        .21607E-03   -.95340    
  31  Prefactor     .91433        .23393        .26046E-03   -.95642    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.46187e-09
Minuit parameter uncertainties:
  1  28.2317
  2  0.00837146
  3  1.00162e-05
  4  10.2073
  5  4.55902e-05
  6  1.11056e-05
  7  19.2399
  8  9.61669e-06
  9  1.68046e-05
  10  89.6063
  11  1.25883e-05
  12  4.49648
  13  1.44891
  14  1.42151e-06
  15  26.4615
  16  5.46991e-06
  17  70.9955
  18  0.000189998
  19  27.1093
  20  50.6748
  21  4.31776
  22  14.8006
  23  0.000142707
  24  1.34881e-05
  25  10.2239
  26  47.5625
  27  5.24698e-05
  28  1.79263e-05
  29  428.754
  30  0.203244
  31  0.234192
Done.

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

Extracting fit parameters...

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  2.588e+01  2.646e+01  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:  9.143e-01  2.342e-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:  9.321e-01  2.032e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.38
Ra Dec: 193.467 62.705
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 1.30e-08 +/- 1.33e-08
Energy Flux (Fixed Index): 9.31e-06 +/- 9.52e-06

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) = 5071.06657416
delta logL = 0.217214437956

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5071.05542563
delta logL = 0.228362964152

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.630       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5094       1.0000          .0000       10.000    
     3 'Normalizat'    .93750       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91201       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=   5071.055     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      238 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.633        30.470        .47715E-05   -.82583E-03
   2  Index         1.5092        .54630       -.12492E-04   -.34427E-03
   3  Normalizat    .93755        .16277        .32823E-06    .22869E-03
   4  Prefactor     .91198        .19539       -.13060E-06    .15919E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.6331
  Index      = 1.50922
  Normalizat = 0.937547
  Prefactor  = 0.911981
 **********
 **   18 **HESSE 
 **********

 FCN=   5071.055     FROM HESSE     STATUS=OK            29 CALLS      267 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.633        34.601        .69099E-04   -1.4547    
   2  Index         1.5092        .67203        .11235E-01   -.77282    
   3  Normalizat    .93755        .19220        .21550E-03   -.95153    
   4  Prefactor     .91198        .23078        .26075E-03   -.95724    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.47006e-09
Minuit parameter uncertainties:
  1  34.6215
  2  0.676045
  3  0.192337
  4  0.231027
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/961936': 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) = 5071.05542556
delta logL = 0.228363029765

Extracting fit parameters...

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  3.363e+01  3.462e+01  1.000e-04  1.000e+04 ( 1.000e-14)
370        Index:  1.509e+00  6.760e-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:  9.120e-01  2.310e-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:  9.375e-01  1.923e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.84
Ra Dec: 193.467 62.705
Photon Index (Free Index): 1.51 +/- 0.68
Photon Flux (Free Index): 7.17e-09 +/- 9.71e-09
Energy Flux (Free Index): 2.20e-05 +/- 3.79e-05

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/961936/cmap_HighResolution_240624001_240883201_4FGL_J1253.8+6242_daily_bin5.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.30e-08', energy_flux2='2.20e-05', photon_flux_error='1.33e-08', dlogl='2.28e-01', energy_flux='9.31e-06', photon_flux2='7.17e-09', job_status='DONE', time_completed='2021-09-06 08:00:24.701333', photon_index_error2='0.68', photon_index2='1.51', ts='4.38', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='3.79e-05', EG='0.93', time_epoch_completed='1630940424.7', return_code='0', job_id='961936', GAL2='0.91', EG2='0.94', return_code2='0', energy_flux_error='9.52e-06', photon_flux_error2='9.71e-09', ts2='4.84', photon_index='1.99' WHERE bin_id='5' AND source_name='4FGL J1253.8+6242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 08:00:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 961936: <4FGL_J1253.8+6242_daily_bin5> in cluster <slac> Done

Job <4FGL_J1253.8+6242_daily_bin5> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 07:45:54 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:45:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 07:45:55 2021
Terminated at Mon Sep  6 08:00:25 2021
Results reported at Mon Sep  6 08:00:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.8+6242_daily_bin5 193.467 62.7052 240624001 240883201 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 :                                   778.11 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             319.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            871 sec.

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

