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


Performing analysis on: 4FGL_J1253.2+5301_daily_bin940
RA = 193.307, Dec = 53.0173
tmin = 482976001, tmax = 483235201
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='958612', job_status='RUN', time_executed='2021-09-06 07:36:22.203568', time_epoch_executed='1630938982.2' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='940'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/958612

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/958612/ft1_4FGL_J1253.2+5301_daily_bin940.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/958612/ft2_4FGL_J1253.2+5301_daily_bin940.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/958612/ft1_4FGL_J1253.2+5301_daily_bin940.fits outfile=/scratch/kocevski/958612/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin940.fits ra=193.307 dec=53.0173 rad=12.0 tmin=482976001.0 tmax=483235201.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 5.04
user 3.98
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/958612/ft2_4FGL_J1253.2+5301_daily_bin940.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/958612/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin940.fits evtable="EVENTS" outfile="/scratch/kocevski/958612/ft1_filtered_4FGL_J1253.2+5301_daily_bin940.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 1.41
user 0.31
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/958612/ft1_filtered_4FGL_J1253.2+5301_daily_bin940.fits" evtable="EVENTS" scfile=/scratch/kocevski/958612/ft2_4FGL_J1253.2+5301_daily_bin940.fits sctable="SC_DATA" outfile=/scratch/kocevski/958612/ltcube_482976001_483235201_4FGL_J1253.2+5301_daily_bin940.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/958612/ft2_4FGL_J1253.2+5301_daily_bin940.fits
.....................!
real 15.56
user 11.12
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/958612/ft1_filtered_4FGL_J1253.2+5301_daily_bin940.fits evtable="EVENTS" scfile=/scratch/kocevski/958612/ft2_4FGL_J1253.2+5301_daily_bin940.fits sctable="SC_DATA" expcube=/scratch/kocevski/958612/ltcube_482976001_483235201_4FGL_J1253.2+5301_daily_bin940.fits outfile=/scratch/kocevski/958612/expmap_482976001_483235201_4FGL_J1253.2+5301_daily_bin940.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/958612/ltcube_482976001_483235201_4FGL_J1253.2+5301_daily_bin940.fits
.....................!
real 197.15
user 185.78
sys 4.79

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/958612/ft1_filtered_4FGL_J1253.2+5301_daily_bin940.fits scfile=/scratch/kocevski/958612/ft2_4FGL_J1253.2+5301_daily_bin940.fits outfile=/scratch/kocevski/958612/cmap_482976001_483235201_4FGL_J1253.2+5301_daily_bin940.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.69
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/958612/ft1_filtered_4FGL_J1253.2+5301_daily_bin940.fits scfile=/scratch/kocevski/958612/ft2_4FGL_J1253.2+5301_daily_bin940.fits outfile=/scratch/kocevski/958612/cmap_HighResolution_482976001_483235201_4FGL_J1253.2+5301_daily_bin940.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.67
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/958612/ft1_filtered_4FGL_J1253.2+5301_daily_bin940.fits', '/scratch/kocevski/958612/ft2_4FGL_J1253.2+5301_daily_bin940.fits', expMap='/scratch/kocevski/958612/expmap_482976001_483235201_4FGL_J1253.2+5301_daily_bin940.fits', expCube='/scratch/kocevski/958612/ltcube_482976001_483235201_4FGL_J1253.2+5301_daily_bin940.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/958612/Model_4FGL_J1253.2+5301_daily_bin940.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/958612/ft1_filtered_4FGL_J1253.2+5301_daily_bin940.fits
Spacecraft file(s): /scratch/kocevski/958612/ft2_4FGL_J1253.2+5301_daily_bin940.fits
Exposure map: /scratch/kocevski/958612/expmap_482976001_483235201_4FGL_J1253.2+5301_daily_bin940.fits
Exposure cube: /scratch/kocevski/958612/ltcube_482976001_483235201_4FGL_J1253.2+5301_daily_bin940.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/958612/Model_4FGL_J1253.2+5301_daily_bin940.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) = 6207.6397265

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.7393       1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.032       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1256       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.1944       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    17.173       1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.570       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.9199       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.3708       1.0000         .10000E-03   10000.    
    13 'norm      '    5.9480       1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.191       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.648       1.0000         .10000E-03   10000.    
    17 'norm      '    35.616       1.0000         .10000E-03   10000.    
    18 'norm      '    .10270E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.161       1.0000         .10000E-03   10000.    
    22 'norm      '    4.1485       1.0000         .10000E-03   10000.    
    23 'Prefactor '    27.759       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.0459       1.0000         .10000E-03   10000.    
    26 'norm      '    24.494       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2903       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .48760       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=   6207.618     FROM MIGRAD    STATUS=CONVERGED    753 CALLS     3923 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.1514        .13534E-07** at limit **
   2  norm          2.7395        3.4825        .23829E-05   -.21416E-03
   3  Prefactor     22.033        18.132        .72971E-06   -.30062E-04
   4  Prefactor     1.1257        4.3338       -.28445E-05   -.11272E-02
   5  Prefactor     .10000E-03    9.0037        .73412E-06** at limit **
   6  norm          1.1946        2.2631       -.12053E-07   -.10488E-02
   7  Prefactor     .10000E-03    22.775       -.71960E-05** at limit **
   8  norm          17.173        8.4265        .89954E-07   -.64947E-04
   9  Prefactor     30.571        18.666        .41650E-06   -.22648E-04
  10  Prefactor     .10000E-03    2.2617        .62101E-07** at limit **
  11  norm          1.9200        1.5135        .10333E-06    .12797E-03
  12  Prefactor     9.3718        14.258        .26222E-06   -.42675E-04
  13  norm          5.9482        2.4843        .51655E-07   -.13933E-03
  14  Prefactor     21.188        37.802       -.45984E-05   -.86174E-05
  15  Prefactor     .10000E-03    41.564       -.77671E-05** at limit **
  16  Prefactor     14.650        10.494       -.64935E-06   -.72581E-03
  17  norm          35.616        16.045        .18855E-06    .66655E-05
  18  norm          .10000E-03    1.6584        .84823E-07** at limit **
  19  Prefactor     .10000E-03    9.5868       -.12110E-05** at limit **
  20  Prefactor     .10000E-03    29.730        .13000E-04** at limit **
  21  Prefactor     10.161        23.001        .11606E-05   -.38436E-04
  22  norm          4.1492        3.3286       -.61177E-06   -.72226E-03
  23  Prefactor     27.782        49.599        .34554E-04   -.51578E-04
  24  Prefactor     .10000E-03    16.345       -.48143E-05** at limit **
  25  norm          2.0459        1.4879        .34274E-07   -.14087E-03
  26  norm          24.493        47.667       -.14252E-05   -.93550E-06
  27  norm          .10000E-03    1.5744       -.17195E-06** at limit **
  28  Prefactor     .10000E-03    14.763        .51743E-05** at limit **
  29  Normalizat    1.2902        .16959       -.30319E-05    .62932E-04
  30  Prefactor     .48773        .19398        .17227E-05   -.17870E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.73952
  Prefactor  = 22.0326
  Prefactor  = 1.12571
  Prefactor  = 0.0001
  norm       = 1.19462
  Prefactor  = 0.0001
  norm       = 17.1734
  Prefactor  = 30.5708
  Prefactor  = 0.0001
  norm       = 1.92
  Prefactor  = 9.37181
  norm       = 5.94816
  Prefactor  = 21.1879
  Prefactor  = 0.0001
  Prefactor  = 14.6499
  norm       = 35.616
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 10.1613
  norm       = 4.14916
  Prefactor  = 27.7819
  Prefactor  = 0.0001
  norm       = 2.04591
  norm       = 24.4934
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.29018
  Prefactor  = 0.487732
 **********
 **   18 **HESSE 
 **********

 FCN=   6207.618     FROM HESSE     STATUS=OK           592 CALLS     4515 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.2006        .22485E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.7395        3.4455        .15379E-03   -1.5377    
   3  Prefactor     22.033        18.076        .85335E-04   -1.4769    
   4  Prefactor     1.1257        4.3168        .30394E-03   -1.5496    
   5  Prefactor     .10000E-03    9.0249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.1946        2.2522        .15075E-03   -1.5489    
   7  Prefactor     .10000E-03    22.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          17.173        8.4238        .96649E-04   -1.4879    
   9  Prefactor     30.571        18.671        .72467E-04   -1.4602    
  10  Prefactor     .10000E-03    2.2711        .11566E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.9200        1.5173        .83153E-04   -1.5431    
  12  Prefactor     9.3718        14.244        .13092E-03   -1.5096    
  13  norm          5.9482        2.4851        .77602E-04   -1.5220    
  14  Prefactor     21.188        37.805        .87009E-04   -1.4787    
  15  Prefactor     .10000E-03    41.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.650        10.555        .52325E-03   -1.4942    
  17  norm          35.616        16.045        .67152E-04   -1.4514    
  18  norm          .10000E-03    2.9708        .19693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.5932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    29.931        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.161        22.950        .12570E-03   -1.5070    
  22  norm          4.1492        3.3294        .12398E-03   -1.5301    
  23  Prefactor     27.782        48.800        .76039E-04   -1.4653    
  24  Prefactor     .10000E-03    16.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.0459        1.4857        .79098E-04   -1.5422    
  26  norm          24.493        47.658        .80938E-04   -1.4718    
  27  norm          .10000E-03    1.5895        .96518E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    14.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.2902        .18665        .19498E-03   -.83860    
  30  Prefactor     .48773        .21094        .36394E-03   -1.1254    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.93905e-09
Minuit parameter uncertainties:
  1  5.80557e-06
  2  3.44576
  3  18.0803
  4  4.31803
  5  1.79114e-05
  6  2.25237
  7  2.75783e-05
  8  8.42434
  9  18.6748
  10  5.76707e-06
  11  1.51731
  12  14.2495
  13  2.48518
  14  37.8475
  15  7.13723e-05
  16  10.5566
  17  16.0466
  18  1.47503e-05
  19  1.15131e-06
  20  0.000693832
  21  22.9696
  22  3.32955
  23  48.8699
  24  9.82915e-05
  25  1.48573
  26  47.7322
  27  2.26543e-05
  28  9.14445e-06
  29  0.186752
  30  0.21128
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  5.948e+00  2.485e+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

GAL_V02
   Spectrum: PowerLaw
665    Prefactor:  4.877e-01  2.113e-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:  1.290e+00  1.868e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 26.86
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 5.78e-08 +/- 2.41e-08
Energy Flux (Fixed Index): 4.17e-05 +/- 1.74e-05

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) = 6207.48420173
delta logL = 0.134260861785

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6207.48044181
delta logL = 0.138020783019

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.7415       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6888       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3054       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .48092       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.

 FCN=   6207.480     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      205 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.7412        4.2784        .41906E-02   -.27244E-04
   2  alpha         1.6887        .59813        .32303       -.80283E-05
   3  Normalizat    1.3054        .16453        .32709E-01   -.40656E-05
   4  Prefactor     .48097        .19367        .82773E-01    .38669E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.74116
  alpha      = 1.68872
  Normalizat = 1.30539
  Prefactor  = 0.480969
 **********
 **   18 **HESSE 
 **********

 FCN=   6207.480     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .90E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.7412        2.8074        .83092E-04   -1.5229    
   2  alpha         1.6887        .47948        .11595E-01   -.33049    
   3  Normalizat    1.3054        .17630        .19418E-03   -.83406    
   4  Prefactor     .48097        .20900        .36668E-03   -1.1286    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.00931e-14
Minuit parameter uncertainties:
  1  2.80747
  2  0.482833
  3  0.176386
  4  0.209329
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/958612': 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) = 6207.48044176
delta logL = 0.138020833704

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  5.741e+00  2.807e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.689e+00  4.828e-01  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:  4.810e-01  2.093e-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:  1.305e+00  1.764e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 27.10
Ra Dec: 193.307 53.017
Photon Index (Free Index): 1.69 +/- 0.48
Photon Flux (Free Index): 4.21e-08 +/- 3.40e-08
Energy Flux (Free Index): 5.18e-05 +/- 3.46e-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/958612/cmap_HighResolution_482976001_483235201_4FGL_J1253.2+5301_daily_bin940.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.78e-08', energy_flux2='5.18e-05', photon_flux_error='2.41e-08', dlogl='1.38e-01', energy_flux='4.17e-05', photon_flux2='4.21e-08', job_status='DONE', time_completed='2021-09-06 07:51:00.857144', photon_index_error2='0.48', photon_index2='1.69', ts='26.86', fit_tolerance='1e-08', GAL='0.49', photon_index_error='0.00', energy_flux_error2='3.46e-05', EG='1.29', time_epoch_completed='1630939860.86', return_code='0', job_id='958612', GAL2='0.48', EG2='1.31', return_code2='0', energy_flux_error='1.74e-05', photon_flux_error2='3.40e-08', ts2='27.10', photon_index='1.93' WHERE bin_id='940' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:51:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 958612: <4FGL_J1253.2+5301_daily_bin940> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin940 193.307 53.0173 482976001 483235201 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 :                                   838.37 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             332.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            892 sec.

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

