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


Performing analysis on: 4FGL_J1253.2+5301_daily_bin766
RA = 193.307, Dec = 53.0173
tmin = 437875201, tmax = 438134401
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='958402', job_status='RUN', time_executed='2021-09-06 07:36:14.179889', time_epoch_executed='1630938974.18' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='766'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/958402

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/958402/ft1_4FGL_J1253.2+5301_daily_bin766.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/958402/ft2_4FGL_J1253.2+5301_daily_bin766.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/958402/ft1_4FGL_J1253.2+5301_daily_bin766.fits outfile=/scratch/kocevski/958402/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin766.fits ra=193.307 dec=53.0173 rad=12.0 tmin=437875201.0 tmax=438134401.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.22
user 5.55
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/958402/ft2_4FGL_J1253.2+5301_daily_bin766.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/958402/ft2_4FGL_J1253.2+5301_daily_bin766.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/958402/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin766.fits evtable="EVENTS" outfile="/scratch/kocevski/958402/ft1_filtered_4FGL_J1253.2+5301_daily_bin766.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.88
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/958402/ft1_filtered_4FGL_J1253.2+5301_daily_bin766.fits" evtable="EVENTS" scfile=/scratch/kocevski/958402/ft2_4FGL_J1253.2+5301_daily_bin766.fits sctable="SC_DATA" outfile=/scratch/kocevski/958402/ltcube_437875201_438134401_4FGL_J1253.2+5301_daily_bin766.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/958402/ft2_4FGL_J1253.2+5301_daily_bin766.fits
.....................!
real 11.98
user 11.33
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/958402/ft1_filtered_4FGL_J1253.2+5301_daily_bin766.fits evtable="EVENTS" scfile=/scratch/kocevski/958402/ft2_4FGL_J1253.2+5301_daily_bin766.fits sctable="SC_DATA" expcube=/scratch/kocevski/958402/ltcube_437875201_438134401_4FGL_J1253.2+5301_daily_bin766.fits outfile=/scratch/kocevski/958402/expmap_437875201_438134401_4FGL_J1253.2+5301_daily_bin766.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/958402/ltcube_437875201_438134401_4FGL_J1253.2+5301_daily_bin766.fits
.....................!
real 198.66
user 187.65
sys 4.67

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 210 point sources and 0 extended sources

Setting source of interest to:
4FGL J1253.2+5301 @ 193.307 53.0173

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/958402/ft1_filtered_4FGL_J1253.2+5301_daily_bin766.fits scfile=/scratch/kocevski/958402/ft2_4FGL_J1253.2+5301_daily_bin766.fits outfile=/scratch/kocevski/958402/cmap_437875201_438134401_4FGL_J1253.2+5301_daily_bin766.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.307 yref=53.0173 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.65
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/958402/ft1_filtered_4FGL_J1253.2+5301_daily_bin766.fits scfile=/scratch/kocevski/958402/ft2_4FGL_J1253.2+5301_daily_bin766.fits outfile=/scratch/kocevski/958402/cmap_HighResolution_437875201_438134401_4FGL_J1253.2+5301_daily_bin766.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.307 yref=53.0173 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.60
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/958402/ft1_filtered_4FGL_J1253.2+5301_daily_bin766.fits evtable="EVENTS" scfile=/scratch/kocevski/958402/ft2_4FGL_J1253.2+5301_daily_bin766.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/958402/Model_4FGL_J1253.2+5301_daily_bin766.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/958402/ft1_filtered_4FGL_J1253.2+5301_daily_bin766.fits.....................!
real 33.19
user 30.41
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/958402/ft1_filtered_4FGL_J1253.2+5301_daily_bin766.fits', '/scratch/kocevski/958402/ft2_4FGL_J1253.2+5301_daily_bin766.fits', expMap='/scratch/kocevski/958402/expmap_437875201_438134401_4FGL_J1253.2+5301_daily_bin766.fits', expCube='/scratch/kocevski/958402/ltcube_437875201_438134401_4FGL_J1253.2+5301_daily_bin766.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/958402/Model_4FGL_J1253.2+5301_daily_bin766.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1253.2+5301'

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  3.003e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.931e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
335         beta:  8.810e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  1.175e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/958402/ft1_filtered_4FGL_J1253.2+5301_daily_bin766.fits
Spacecraft file(s): /scratch/kocevski/958402/ft2_4FGL_J1253.2+5301_daily_bin766.fits
Exposure map: /scratch/kocevski/958402/expmap_437875201_438134401_4FGL_J1253.2+5301_daily_bin766.fits
Exposure cube: /scratch/kocevski/958402/ltcube_437875201_438134401_4FGL_J1253.2+5301_daily_bin766.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/958402/Model_4FGL_J1253.2+5301_daily_bin766.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) = 2856.07139494

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .52939       1.0000         .10000E-03   10000.    
     2 'norm      '    .15304E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.7638       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.1939       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11248E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    9.9506       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.7598       1.0000         .10000E-03   10000.    
    12 'Prefactor '    40.844       1.0000         .10000E-03   10000.    
    13 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.9384       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10764E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    54.127       1.0000         .10000E-03   10000.    
    22 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    81.876       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.3819       1.0000         .10000E-03   10000.    
    26 'norm      '    .10369E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .76457       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0346       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2856.061     FROM MIGRAD    STATUS=CONVERGED    774 CALLS     3869 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .52616        3.8454       -.56641E-07   -.55255E-03
   2  norm          .10000E-03    7.4029        .62245E-05** at limit **
   3  Prefactor     .10000E-03    7.3205       -.85697E-05** at limit **
   4  Prefactor     9.7460        10.273       -.31247E-05   -.84964E-03
   5  Prefactor     .10000E-03    10.382        .12093E-07** at limit **
   6  norm          3.1939        2.9387       -.25944E-06   -.32073E-03
   7  Prefactor     .10000E-03    123.97        .84628E-04** at limit **
   8  norm          9.9521        9.2244       -.77808E-06   -.19118E-03
   9  Prefactor     .10000E-03    14.386        .11742E-04** at limit **
  10  Prefactor     .10000E-03    6.1232       -.13601E-05** at limit **
  11  norm          4.7591        3.7153        .29128E-07    .50656E-04
  12  Prefactor     40.852        33.359       -.96753E-07   -.21134E-04
  13  norm          .10000E-03    1.6289        .14164E-07** at limit **
  14  Prefactor     5.9365        177.71       -.63749E-05   -.11639E-04
  15  Prefactor     .10000E-03    57.752       -.18917E-04** at limit **
  16  Prefactor     .10000E-03    17.072       -.45966E-05** at limit **
  17  norm          .10000E-03    13.435       -.80489E-05** at limit **
  18  norm          .10000E-03    4.2255        .96936E-07** at limit **
  19  Prefactor     .10000E-03    30.177        .55818E-06** at limit **
  20  Prefactor     .10000E-03    6.6725        .39882E-05** at limit **
  21  Prefactor     54.111        61.433       -.11811E-04    .13932E-05
  22  norm          .10000E-03    1.9747        .26332E-07** at limit **
  23  Prefactor     81.858        89.341       -.14848E-04    .16575E-04
  24  Prefactor     .10000E-03    68.140       -.26100E-04** at limit **
  25  norm          4.3831        4.0991        .65897E-06   -.65880E-04
  26  norm          .10000E-03    241.32       -.10494E-03** at limit **
  27  norm          .10000E-03    5.4491        .18735E-06** at limit **
  28  Prefactor     .10000E-03    47.455        .19514E-04** at limit **
  29  Normalizat    .76447        .23192        .25129E-05   -.19930E-03
  30  Prefactor     1.0347        .27525        .77273E-06   -.11539E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.526158
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.74603
  Prefactor  = 0.0001
  norm       = 3.19392
  Prefactor  = 0.0001
  norm       = 9.95207
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.75911
  Prefactor  = 40.8518
  norm       = 0.0001
  Prefactor  = 5.93645
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 54.1112
  norm       = 0.0001
  Prefactor  = 81.8576
  Prefactor  = 0.0001
  norm       = 4.38315
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.764474
  Prefactor  = 1.03467
 **********
 **   18 **HESSE 
 **********

 FCN=   2856.061     FROM HESSE     STATUS=OK           578 CALLS     4447 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .52616        6.4982        .19104E-02   -1.5563    
   2  norm          .10000E-03    7.6361        .28213E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.3193        .14115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.7460        10.264        .12824E-03   -1.5083    
   5  Prefactor     .10000E-03    10.386        .16814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.1939        2.9372        .81342E-04   -1.5351    
   7  Prefactor     .10000E-03    124.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          9.9521        9.2234        .12703E-03   -1.5077    
   9  Prefactor     .10000E-03    14.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.1519        .12901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.7591        3.7145        .86728E-04   -1.5272    
  12  Prefactor     40.852        33.470        .62721E-04   -1.4429    
  13  norm          .10000E-03    1.6556        .66587E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.9365        177.44        .16478E-03   -1.5221    
  15  Prefactor     .10000E-03    57.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    17.165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    13.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.2584        .10724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    30.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.6738        .13484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     54.111        61.427        .54519E-04   -1.4235    
  22  norm          .10000E-03    1.9762        .73344E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     81.858        89.298        .22195E-03   -1.3896    
  24  Prefactor     .10000E-03    68.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.3831        4.0884        .97350E-04   -1.5289    
  26  norm          .10000E-03    240.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    5.4614        .12184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    47.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .76447        .26734        .23105E-03   -1.0140    
  30  Prefactor     1.0347        .31850        .25350E-03   -.91583    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39476e-09
Minuit parameter uncertainties:
  1  3.69831
  2  4.88202e-05
  3  5.23659e-06
  4  10.2659
  5  2.24235e-05
  6  2.9373
  7  8.23779e-05
  8  9.2247
  9  4.19541e-06
  10  5.34805e-06
  11  3.71469
  12  33.4858
  13  2.88612e-06
  14  65.1233
  15  1.14103e-05
  16  1.79668e-06
  17  1.08322e-06
  18  1.29659e-05
  19  0.000170321
  20  8.58412e-06
  21  61.4994
  22  5.52505e-06
  23  89.4448
  24  0.000106293
  25  4.08862
  26  0.000237729
  27  2.2206e-05
  28  7.2974e-06
  29  0.267795
  30  0.31908
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  1.000e-04  2.886e-06  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.931e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
335         beta:  8.810e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  1.175e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
665    Prefactor:  1.035e+00  3.191e-01  0.000e+00  1.000e+01 ( 1.000e+00)
666        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
667        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
664   Normalization:  7.645e-01  2.678e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 193.307 53.017
Photon Flux Upper Limit: 6.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.63e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/958402/likelihoodResults_437875201_438134401_4FGL_J1253.2+5301_daily_bin766.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) = 2856.063904
delta logL = -0.00282130057121

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2856.06108276
delta logL = -6.12149051449e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9319       1.0000          .0000       5.0000    
     3 'Normalizat'    .76450       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0347       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6680E+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=   2856.061     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      228 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    234.81        .66587E-03** at limit **
   2  alpha         1.9388        3.0846        .50000       -.10073E-05
   3  Normalizat    .76448        .78835E-01    .23105E-03    .16606E-04
   4  Prefactor     1.0347        .99825E-01    .25350E-03    .12938E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100004
  alpha      = 1.9388
  Normalizat = 0.764476
  Prefactor  = 1.03467
 **********
 **   18 **HESSE 
 **********

 FCN=   2856.061     FROM HESSE     STATUS=OK            29 CALLS      257 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.1857        .13317E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9388        3.9518        .50000       -.22641    
   3  Normalizat    .76448        .24897        .92420E-05   -1.0140    
   4  Prefactor     1.0347        .31518        .10140E-04   -.91583    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01465e-09
Minuit parameter uncertainties:
  1  0.000179405
  2  132.516
  3  0.249336
  4  0.315745
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/958402': 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) = 2856.0610827
delta logL = 3.45607986674e-09

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  1.000e-04  1.794e-04  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.939e+00  1.325e+02  0.000e+00  5.000e+00 ( 1.000e+00)
335         beta:  8.810e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  1.175e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
665    Prefactor:  1.035e+00  3.157e-01  0.000e+00  1.000e+01 ( 1.000e+00)
666        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
667        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
664   Normalization:  7.645e-01  2.493e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 193.307 53.017

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/958402/cmap_HighResolution_437875201_438134401_4FGL_J1253.2+5301_daily_bin766.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.63e-05', job_status='DONE', photon_flux_upper_limit='6.40e-08', time_completed='2021-09-06 07:46:50.561147', job_id='958402', GAL2='1.03', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1630939610.56', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='3.46e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='766' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:46:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 958402: <4FGL_J1253.2+5301_daily_bin766> in cluster <slac> Done

Job <4FGL_J1253.2+5301_daily_bin766> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 07:35:54 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:35: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:35:55 2021
Terminated at Mon Sep  6 07:46:51 2021
Results reported at Mon Sep  6 07:46:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin766 193.307 53.0173 437875201 438134401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1253.2+5301 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   612.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             289.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   655 sec.
    Turnaround time :                            657 sec.

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

