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


Performing analysis on: 4FGL_J1253.8+6242_daily_bin56
RA = 193.467, Dec = 62.7052
tmin = 253843201, tmax = 254102401
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='961989', job_status='RUN', time_executed='2021-09-06 07:46:22.376482', time_epoch_executed='1630939582.38' WHERE source_name='4FGL J1253.8+6242' and cadence='daily' and bin_id='56'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/961989

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/961989/ft1_4FGL_J1253.8+6242_daily_bin56.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/961989/ft2_4FGL_J1253.8+6242_daily_bin56.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/961989/ft1_4FGL_J1253.8+6242_daily_bin56.fits outfile=/scratch/kocevski/961989/ft1_filteredMKT_4FGL_J1253.8+6242_daily_bin56.fits ra=193.467 dec=62.7052 rad=12.0 tmin=253843201.0 tmax=254102401.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.13
user 0.97
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/961989/ft2_4FGL_J1253.8+6242_daily_bin56.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/961989/ft1_filteredMKT_4FGL_J1253.8+6242_daily_bin56.fits evtable="EVENTS" outfile="/scratch/kocevski/961989/ft1_filtered_4FGL_J1253.8+6242_daily_bin56.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.40
user 0.27
sys 0.12

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/961989/ft1_filtered_4FGL_J1253.8+6242_daily_bin56.fits" evtable="EVENTS" scfile=/scratch/kocevski/961989/ft2_4FGL_J1253.8+6242_daily_bin56.fits sctable="SC_DATA" outfile=/scratch/kocevski/961989/ltcube_253843201_254102401_4FGL_J1253.8+6242_daily_bin56.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/961989/ft2_4FGL_J1253.8+6242_daily_bin56.fits
.....................!
real 9.37
user 9.09
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/961989/ft1_filtered_4FGL_J1253.8+6242_daily_bin56.fits evtable="EVENTS" scfile=/scratch/kocevski/961989/ft2_4FGL_J1253.8+6242_daily_bin56.fits sctable="SC_DATA" expcube=/scratch/kocevski/961989/ltcube_253843201_254102401_4FGL_J1253.8+6242_daily_bin56.fits outfile=/scratch/kocevski/961989/expmap_253843201_254102401_4FGL_J1253.8+6242_daily_bin56.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/961989/ltcube_253843201_254102401_4FGL_J1253.8+6242_daily_bin56.fits
.....................!
real 140.43
user 137.20
sys 2.97

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/961989/ft1_filtered_4FGL_J1253.8+6242_daily_bin56.fits scfile=/scratch/kocevski/961989/ft2_4FGL_J1253.8+6242_daily_bin56.fits outfile=/scratch/kocevski/961989/cmap_253843201_254102401_4FGL_J1253.8+6242_daily_bin56.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.46
user 0.29
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/961989/ft1_filtered_4FGL_J1253.8+6242_daily_bin56.fits scfile=/scratch/kocevski/961989/ft2_4FGL_J1253.8+6242_daily_bin56.fits outfile=/scratch/kocevski/961989/cmap_HighResolution_253843201_254102401_4FGL_J1253.8+6242_daily_bin56.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.44
user 0.30
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.833       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14192E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10080E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.3770       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .36898E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10326E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.354       1.0000         .10000E-03   10000.    
    10 'Prefactor '    96.154       1.0000         .10000E-03   10000.    
    11 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.9445       1.0000         .10000E-03   10000.    
    14 'norm      '    2.5319       1.0000         .10000E-03   10000.    
    15 'Prefactor '    51.677       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    23.328       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    81.513       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.2178       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.8335       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.2749       1.0000         .10000E-03   10000.    
    26 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    10.327       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .87628E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .87276       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0054       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=   4377.899     FROM MIGRAD    STATUS=CONVERGED    818 CALLS     4121 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.824        34.888        .18119E-06    .32934E-06
   2  Prefactor     .10000E-03    15.743       -.95768E-07** at limit **
   3  Prefactor     .10002E-03    2.6995        .54191E-06** at limit **
   4  norm          .10000E-03    4.7738        .54794E-06** at limit **
   5  norm          .10000E-03    3.7653       -.32271E-07** at limit **
   6  Prefactor     7.3794        9.8150        .63460E-06   -.35092E-04
   7  Prefactor     .10000E-03    189.42        .31144E-05** at limit **
   8  norm          .10000E-03    2.1188       -.13544E-07** at limit **
   9  Prefactor     17.457        34.400        .78067E-06   -.64204E-05
  10  Prefactor     96.144        100.61       -.39304E-06   -.50779E-04
  11  norm          .10000E-03    5.8163       -.11857E-06** at limit **
  12  Prefactor     .10000E-03    5.4195        .19533E-06** at limit **
  13  norm          5.9442        3.5820        .42379E-07   -.11157E-04
  14  norm          2.5318        2.5571        .37342E-07   -.54886E-06
  15  Prefactor     51.665        50.689       -.76634E-06   -.54839E-04
  16  Prefactor     .10000E-03    4.8183       -.60883E-06** at limit **
  17  Prefactor     .10000E-03    36.298       -.13257E-05** at limit **
  18  Prefactor     23.335        46.331        .14315E-06    .14639E-04
  19  Prefactor     .10000E-03    7.3316        .10077E-06** at limit **
  20  Prefactor     81.504        62.428       -.27240E-06   -.25545E-04
  21  Prefactor     2.2175        4.1079        .25709E-06   -.98762E-05
  22  Prefactor     7.8341        19.024       -.45296E-06   -.10803E-04
  23  Prefactor     .10000E-03    22.986        .43388E-08** at limit **
  24  Prefactor     .10000E-03    8.2265       -.15128E-06** at limit **
  25  Prefactor     7.2748        11.412        .25332E-05   -.56935E-04
  26  norm          .10000E-03    32.991        .10966E-05** at limit **
  27  norm          10.327        5.7629        .30842E-07   -.13034E-04
  28  Prefactor     .10000E-03    64.872        .43413E-06** at limit **
  29  Prefactor     .10001E-03    391.26       -.67162E-05** at limit **
  30  Normalizat    .87275        .19594       -.15328E-06   -.53818E-04
  31  Prefactor     1.0054        .22059       -.43061E-06   -.51562E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.8237
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.37937
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 17.4574
  Prefactor  = 96.1444
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.94419
  norm       = 2.53185
  Prefactor  = 51.6651
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.3346
  Prefactor  = 0.0001
  Prefactor  = 81.5037
  Prefactor  = 2.21755
  Prefactor  = 7.83407
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.27481
  norm       = 0.0001
  norm       = 10.3273
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  Normalizat = 0.872754
  Prefactor  = 1.00536
 **********
 **   18 **HESSE 
 **********

 FCN=   4377.899     FROM HESSE     STATUS=OK           620 CALLS     4741 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.824        34.894        .67900E-04   -1.4527    
   2  Prefactor     .10000E-03    15.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10002E-03    16.508        .20552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.8290        .14200E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.7894        .12521E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.3794        9.7324        .14767E-03   -1.5165    
   7  Prefactor     .10000E-03    195.66        .42600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.5428        .18510E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.457        34.466        .96144E-04   -1.4872    
  10  Prefactor     96.144        101.41        .40990E-04   -1.3744    
  11  norm          .10000E-03    5.9481        .15576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.4675        .15034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.9442        3.5774        .93410E-04   -1.5220    
  14  norm          2.5318        2.5568        .10277E-03   -1.5390    
  15  Prefactor     51.665        50.939        .55790E-04   -1.4269    
  16  Prefactor     .10000E-03    4.8925        .14273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    36.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     23.335        46.262        .82934E-04   -1.4741    
  19  Prefactor     .10000E-03    7.3386        .17502E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     81.504        62.565        .44487E-04   -1.3900    
  21  Prefactor     2.2175        4.0740        .17273E-03   -1.5410    
  22  Prefactor     7.8341        18.960        .14327E-03   -1.5148    
  23  Prefactor     .10000E-03    23.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    8.2788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     7.2748        11.649        .74355E-03   -1.5168    
  26  norm          .10000E-03    33.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          10.327        5.7631        .11372E-03   -1.5065    
  28  Prefactor     .10000E-03    65.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10001E-03    399.63        .20847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .87275        .22807        .23447E-03   -.97424    
  31  Prefactor     1.0054        .25703        .26053E-03   -.92551    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25909e-09
Minuit parameter uncertainties:
  1  34.9141
  2  1.73221e-05
  3  0.00111535
  4  3.80571e-05
  5  6.26379e-06
  6  9.73446
  7  0.000920273
  8  1.66045e-05
  9  34.5052
  10  101.591
  11  1.21502e-05
  12  1.51405e-05
  13  3.57758
  14  2.55693
  15  50.9815
  16  4.10977e-05
  17  0.000262243
  18  46.3327
  19  1.04602e-05
  20  62.6159
  21  4.07454
  22  18.9748
  23  6.93723e-06
  24  1.55648e-05
  25  11.6523
  26  0.000203843
  27  5.76343
  28  0.000100145
  29  0.00433117
  30  0.22832
  31  0.25734
Done.

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

Extracting fit parameters...

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  5.167e+01  5.098e+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:  1.005e+00  2.573e-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:  8.728e-01  2.283e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.37
Ra Dec: 193.467 62.705
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 2.60e-08 +/- 2.57e-08
Energy Flux (Fixed Index): 1.86e-05 +/- 1.83e-05

TS (Fixed Index): 2.37
Ra Dec: 193.467 62.705
Photon Flux Upper Limit: 9.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.25e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/961989/likelihoodResults_253843201_254102401_4FGL_J1253.8+6242_daily_bin56.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) = 4377.89710845
delta logL = 0.00207276727724

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4377.89605806
delta logL = 0.00312316089457

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    48.962       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0524       1.0000          .0000       10.000    
     3 'Normalizat'    .87067       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0065       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=   4377.896     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      271 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     49.016        62.592        .28654E-03    .81732E-04
   2  Index         2.0517        .86540        .78762E-02    .22943E-03
   3  Normalizat    .87051        .21728        .23474E-03   -.88773E-04
   4  Prefactor     1.0067        .25631        .26037E-03    .79686E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 49.0163
  Index      = 2.05166
  Normalizat = 0.870506
  Prefactor  = 1.00668
 **********
 **   18 **HESSE 
 **********

 FCN=   4377.896     FROM HESSE     STATUS=OK            25 CALLS      296 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     49.016        60.019        .11462E-04   -1.4307    
   2  Index         2.0517        .82974        .15752E-02   -.63065    
   3  Normalizat    .87051        .21719        .93897E-05   -.97504    
   4  Prefactor     1.0067        .25644        .10415E-04   -.92507    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23708e-10
Minuit parameter uncertainties:
  1  60.0928
  2  0.835689
  3  0.21741
  4  0.256755
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/961989': 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) = 4377.89605716
delta logL = 0.00312405902605

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  1.007e+00  2.568e-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:  8.705e-01  2.174e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.38
Ra Dec: 193.467 62.705
Photon Index (Free Index): 2.05 +/- 0.84
Photon Flux (Free Index): 2.84e-08 +/- 4.12e-08
Energy Flux (Free Index): 1.73e-05 +/- 2.24e-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/961989/cmap_HighResolution_253843201_254102401_4FGL_J1253.8+6242_daily_bin56.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.25e-03', comment='SUCCESS', photon_flux='2.60e-08', energy_flux2='1.73e-05', photon_flux_error='2.57e-08', dlogl='3.12e-03', energy_flux='1.86e-05', photon_flux2='2.84e-08', job_status='DONE', time_completed='2021-09-06 07:56:17.108606', photon_index_error2='0.84', photon_index2='2.05', ts='2.37', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='9.68e-08', energy_flux_error2='2.24e-05', EG='0.87', time_epoch_completed='1630940177.11', return_code='0', job_id='961989', GAL2='1.01', EG2='0.87', return_code2='0', energy_flux_error='1.83e-05', photon_flux_error2='4.12e-08', ts2='2.38', photon_index='1.99' WHERE bin_id='56' AND source_name='4FGL J1253.8+6242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:56:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 961989: <4FGL_J1253.8+6242_daily_bin56> in cluster <slac> Done

Job <4FGL_J1253.8+6242_daily_bin56> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 07:45:59 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:46:00 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:46:00 2021
Terminated at Mon Sep  6 07:56:17 2021
Results reported at Mon Sep  6 07:56:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.8+6242_daily_bin56 193.467 62.7052 253843201 254102401 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 :                                   589.33 sec.
    Max Memory :                                 1034 MB
    Average Memory :                             334.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   617 sec.
    Turnaround time :                            618 sec.

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

