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


Performing analysis on: 4FGL_J1253.8+6242_daily_bin759
RA = 193.467, Dec = 62.7052
tmin = 436060801, tmax = 436320001
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='969618', job_status='RUN', time_executed='2021-09-06 08:06:21.093052', time_epoch_executed='1630940781.09' WHERE source_name='4FGL J1253.8+6242' and cadence='daily' and bin_id='759'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/969618

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/969618/ft1_4FGL_J1253.8+6242_daily_bin759.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/969618/ft2_4FGL_J1253.8+6242_daily_bin759.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/969618/ft1_4FGL_J1253.8+6242_daily_bin759.fits outfile=/scratch/kocevski/969618/ft1_filteredMKT_4FGL_J1253.8+6242_daily_bin759.fits ra=193.467 dec=62.7052 rad=12.0 tmin=436060801.0 tmax=436320001.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 6.60
user 5.49
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/969618/ft2_4FGL_J1253.8+6242_daily_bin759.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/969618/ft1_filteredMKT_4FGL_J1253.8+6242_daily_bin759.fits evtable="EVENTS" outfile="/scratch/kocevski/969618/ft1_filtered_4FGL_J1253.8+6242_daily_bin759.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.52
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/969618/ft1_filtered_4FGL_J1253.8+6242_daily_bin759.fits" evtable="EVENTS" scfile=/scratch/kocevski/969618/ft2_4FGL_J1253.8+6242_daily_bin759.fits sctable="SC_DATA" outfile=/scratch/kocevski/969618/ltcube_436060801_436320001_4FGL_J1253.8+6242_daily_bin759.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/969618/ft2_4FGL_J1253.8+6242_daily_bin759.fits
.....................!
real 11.94
user 11.44
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/969618/ft1_filtered_4FGL_J1253.8+6242_daily_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/969618/ft2_4FGL_J1253.8+6242_daily_bin759.fits sctable="SC_DATA" expcube=/scratch/kocevski/969618/ltcube_436060801_436320001_4FGL_J1253.8+6242_daily_bin759.fits outfile=/scratch/kocevski/969618/expmap_436060801_436320001_4FGL_J1253.8+6242_daily_bin759.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/969618/ltcube_436060801_436320001_4FGL_J1253.8+6242_daily_bin759.fits
.....................!
real 190.84
user 185.54
sys 4.44

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/969618/ft1_filtered_4FGL_J1253.8+6242_daily_bin759.fits scfile=/scratch/kocevski/969618/ft2_4FGL_J1253.8+6242_daily_bin759.fits outfile=/scratch/kocevski/969618/cmap_436060801_436320001_4FGL_J1253.8+6242_daily_bin759.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.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/969618/ft1_filtered_4FGL_J1253.8+6242_daily_bin759.fits scfile=/scratch/kocevski/969618/ft2_4FGL_J1253.8+6242_daily_bin759.fits outfile=/scratch/kocevski/969618/cmap_HighResolution_436060801_436320001_4FGL_J1253.8+6242_daily_bin759.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.58
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    11.823       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .15985E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10543E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.3785       1.0000         .10000E-03   10000.    
     8 'norm      '    .10412E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.235       1.0000         .10000E-03   10000.    
    10 'Prefactor '    30.203       1.0000         .10000E-03   10000.    
    11 'norm      '    17.679       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.3841       1.0000         .10000E-03   10000.    
    14 'norm      '    6.8448       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    34.470       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.6519       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    24.957       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    3.5785       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .97943       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1716       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=   5540.247     FROM MIGRAD    STATUS=CONVERGED    815 CALLS     4080 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.3920        .49708E-07** at limit **
   2  Prefactor     11.821        24.401       -.18617E-06    .31841E-05
   3  Prefactor     .10000E-03    1.0099        .61244E-07** at limit **
   4  norm          .10000E-03    6.5300        .16357E-06** at limit **
   5  norm          .10000E-03    2.5431       -.21082E-05** at limit **
   6  Prefactor     .10000E-03    3.9473       -.24846E-05** at limit **
   7  Prefactor     5.3987        16.804       -.15248E-05    .14979E-04
   8  norm          .10000E-03    1.1815        .91297E-07** at limit **
   9  Prefactor     22.240        19.325       -.36351E-06    .51554E-04
  10  Prefactor     29.926        81.981        .25570E-05    .59512E-04
  11  norm          17.679        6.6595       -.77670E-07   -.23710E-04
  12  Prefactor     .10000E-03    2.6434       -.12635E-06** at limit **
  13  norm          7.3842        3.1633       -.10577E-06   -.93464E-04
  14  norm          6.8446        3.1186       -.48727E-07   -.31966E-04
  15  Prefactor     .10000E-03    34.204       -.72813E-06** at limit **
  16  Prefactor     .10000E-03    4.5084        .68783E-07** at limit **
  17  Prefactor     .10000E-03    16.016        .79970E-07** at limit **
  18  Prefactor     34.469        29.243       -.16498E-06   -.12316E-04
  19  Prefactor     .10000E-03    6.8115        .10825E-06** at limit **
  20  Prefactor     .10000E-03    16.621        .10421E-06** at limit **
  21  Prefactor     2.6524        4.0483        .28539E-06    .24242E-03
  22  Prefactor     .10000E-03    4.4992        .10757E-06** at limit **
  23  Prefactor     24.909        43.249       -.10188E-05   -.14685E-04
  24  Prefactor     .10000E-03    9.7520       -.59755E-06** at limit **
  25  Prefactor     .10000E-03    3.9080        .27553E-06** at limit **
  26  norm          .10000E-03    30.973        .15663E-07** at limit **
  27  norm          3.5779        3.9037       -.14329E-08    .28081E-04
  28  Prefactor     .10000E-03    39.997        .51225E-06** at limit **
  29  Prefactor     .10000E-03    331.95        .66807E-06** at limit **
  30  Normalizat    .97943        .19054        .41025E-05    .24746E-03
  31  Prefactor     1.1717        .22943       -.40185E-05    .26656E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 11.8207
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 5.39867
  norm       = 0.0001
  Prefactor  = 22.2404
  Prefactor  = 29.9264
  norm       = 17.6785
  Prefactor  = 0.0001
  norm       = 7.38418
  norm       = 6.84456
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.4688
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.65244
  Prefactor  = 0.0001
  Prefactor  = 24.9093
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.57795
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.979429
  Prefactor  = 1.17166
 **********
 **   18 **HESSE 
 **********

 FCN=   5540.247     FROM HESSE     STATUS=OK           614 CALLS     4694 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.3956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.821        24.400        .11650E-03   -1.5020    
   3  Prefactor     .10000E-03    1.0107        .73050E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    6.5485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.4226        .19772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.2075        .14838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.3987        16.687        .17328E-03   -1.5243    
   8  norm          .10000E-03    2.0696        .15656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     22.240        19.330        .84944E-04   -1.4764    
  10  Prefactor     29.926        82.670        .36452E-03   -1.4613    
  11  norm          17.679        6.6614        .95255E-04   -1.4867    
  12  Prefactor     .10000E-03    2.6519        .11816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.3842        3.1645        .83792E-04   -1.5164    
  14  norm          6.8446        3.1194        .86062E-04   -1.5185    
  15  Prefactor     .10000E-03    34.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.5188        .15433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    16.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     34.469        29.248        .68255E-04   -1.4533    
  19  Prefactor     .10000E-03    6.8141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    16.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.6524        4.0297        .17552E-03   -1.5382    
  22  Prefactor     .10000E-03    4.5035        .15418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     24.909        43.315        .80185E-04   -1.4709    
  24  Prefactor     .10000E-03    9.8508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    3.9224        .14373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    30.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          3.5779        3.8996        .14896E-03   -1.5330    
  28  Prefactor     .10000E-03    40.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    331.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .97943        .21152        .23767E-03   -.93723    
  31  Prefactor     1.1717        .25314        .27052E-03   -.87208    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.67234e-10
Minuit parameter uncertainties:
  1  1.40057e-06
  2  24.4208
  3  1.37606e-06
  4  1.68859e-05
  5  0.000137721
  6  0.000128107
  7  16.7011
  8  1.69644e-05
  9  19.3354
  10  82.989
  11  6.66171
  12  6.7343e-06
  13  3.16456
  14  3.11944
  15  0.000137073
  16  1.56187e-06
  17  6.35105e-06
  18  29.2603
  19  9.14305e-06
  20  7.77392e-06
  21  4.03008
  22  5.01579e-06
  23  43.3699
  24  7.63901e-05
  25  1.32228e-05
  26  1.16413e-05
  27  3.89985
  28  7.48504e-05
  29  0.000817536
  30  0.211699
  31  0.253398
Done.

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

Extracting fit parameters...

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  1.000e-04  1.371e-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.172e+00  2.534e-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.794e-01  2.117e-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: 5.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/969618/likelihoodResults_436060801_436320001_4FGL_J1253.8+6242_daily_bin759.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) = 5540.24687909
delta logL = -0.000138924970088

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5540.24674015
delta logL = 1.16551746032e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0544       1.0000          .0000       10.000    
     3 'Normalizat'    .97943       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1717       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=   5540.247     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      232 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1792.0        .90712E-02** at limit **
   2  Index         2.0578        5.9497        .50000       -.79369E-06
   3  Normalizat    .97943        .34451E-01    .45909E-01    .84956E-05
   4  Prefactor     1.1717        .42640E-01    .61166E-01    .57542E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.05775
  Normalizat = 0.979429
  Prefactor  = 1.17166
 **********
 **   18 **HESSE 
 **********

 FCN=   5540.247     FROM HESSE     STATUS=OK            33 CALLS      265 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    60.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0578        5.8402        .50000       -.62914    
   3  Normalizat    .97943        .20296        .23766E-03   -.93723    
   4  Prefactor     1.1717        .25107        .27052E-03   -.87208    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06271e-12
Minuit parameter uncertainties:
  1  2.97444e-06
  2  5.38747
  3  0.203116
  4  0.251326
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/969618': 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) = 5540.24674014
delta logL = 1.62926880876e-08

Extracting fit parameters...

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  1.000e-04  2.974e-06  1.000e-04  1.000e+04 ( 1.000e-14)
370        Index:  2.058e+00  5.387e+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:  1.172e+00  2.513e-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.794e-01  2.031e-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/969618/cmap_HighResolution_436060801_436320001_4FGL_J1253.8+6242_daily_bin759.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.28e-03', job_status='DONE', photon_flux_upper_limit='5.71e-08', time_completed='2021-09-06 08:22:11.667189', job_id='969618', GAL2='1.17', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1630941731.67', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='1.63e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='759' AND source_name='4FGL J1253.8+6242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 08:22:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 969618: <4FGL_J1253.8+6242_daily_bin759> in cluster <slac> Done

Job <4FGL_J1253.8+6242_daily_bin759> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep  6 08:05:40 2021
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 08:05:41 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:05:41 2021
Terminated at Mon Sep  6 08:22:12 2021
Results reported at Mon Sep  6 08:22:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.8+6242_daily_bin759 193.467 62.7052 436060801 436320001 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 :                                   936.17 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             321.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   991 sec.
    Turnaround time :                            992 sec.

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

