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


Performing analysis on: 4FGL_J1253.2+5301_daily_bin900
RA = 193.307, Dec = 53.0173
tmin = 472608001, tmax = 472867201
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='958556', job_status='RUN', time_executed='2021-09-06 07:36:20.331049', time_epoch_executed='1630938980.33' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='900'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/958556

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/958556/ft1_4FGL_J1253.2+5301_daily_bin900.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/958556/ft2_4FGL_J1253.2+5301_daily_bin900.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/958556/ft1_4FGL_J1253.2+5301_daily_bin900.fits outfile=/scratch/kocevski/958556/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin900.fits ra=193.307 dec=53.0173 rad=12.0 tmin=472608001.0 tmax=472867201.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 3.69
user 3.27
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/958556/ft2_4FGL_J1253.2+5301_daily_bin900.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/958556/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin900.fits evtable="EVENTS" outfile="/scratch/kocevski/958556/ft1_filtered_4FGL_J1253.2+5301_daily_bin900.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.34
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/958556/ft1_filtered_4FGL_J1253.2+5301_daily_bin900.fits" evtable="EVENTS" scfile=/scratch/kocevski/958556/ft2_4FGL_J1253.2+5301_daily_bin900.fits sctable="SC_DATA" outfile=/scratch/kocevski/958556/ltcube_472608001_472867201_4FGL_J1253.2+5301_daily_bin900.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/958556/ft2_4FGL_J1253.2+5301_daily_bin900.fits
.....................!
real 12.81
user 11.61
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/958556/ft1_filtered_4FGL_J1253.2+5301_daily_bin900.fits evtable="EVENTS" scfile=/scratch/kocevski/958556/ft2_4FGL_J1253.2+5301_daily_bin900.fits sctable="SC_DATA" expcube=/scratch/kocevski/958556/ltcube_472608001_472867201_4FGL_J1253.2+5301_daily_bin900.fits outfile=/scratch/kocevski/958556/expmap_472608001_472867201_4FGL_J1253.2+5301_daily_bin900.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/958556/ltcube_472608001_472867201_4FGL_J1253.2+5301_daily_bin900.fits
.....................!
real 193.37
user 185.66
sys 5.20

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/958556/ft1_filtered_4FGL_J1253.2+5301_daily_bin900.fits scfile=/scratch/kocevski/958556/ft2_4FGL_J1253.2+5301_daily_bin900.fits outfile=/scratch/kocevski/958556/cmap_472608001_472867201_4FGL_J1253.2+5301_daily_bin900.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.58
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/958556/ft1_filtered_4FGL_J1253.2+5301_daily_bin900.fits scfile=/scratch/kocevski/958556/ft2_4FGL_J1253.2+5301_daily_bin900.fits outfile=/scratch/kocevski/958556/cmap_HighResolution_472608001_472867201_4FGL_J1253.2+5301_daily_bin900.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.63
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .68009       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.3164       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.3144       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .81552       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.3882       1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.166       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.3673       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.8686       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10981E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.7239       1.0000         .10000E-03   10000.    
    19 'Prefactor '    35.984       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.139       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .11369E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    23.739       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.3494       1.0000         .10000E-03   10000.    
    25 'norm      '    4.0548       1.0000         .10000E-03   10000.    
    26 'norm      '    28.106       1.0000         .10000E-03   10000.    
    27 'norm      '    .20725E-01   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2053       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .97240       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=   7339.861     FROM MIGRAD    STATUS=CONVERGED    787 CALLS     3936 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .68078        1.6505        .63757E-06    .62393E-03
   2  norm          .10000E-03    3.8807       -.45081E-07** at limit **
   3  Prefactor     7.3147        13.102       -.21856E-06   -.70405E-04
   4  Prefactor     7.3176        6.4645        .15507E-08   -.62324E-04
   5  Prefactor     .10000E-03    8.2264       -.34246E-07** at limit **
   6  norm          .81560        1.9566        .58690E-06   -.17514E-03
   7  Prefactor     .10000E-03    19.075       -.87737E-06** at limit **
   8  norm          1.3907        6.2745        .22822E-05   -.11656E-03
   9  Prefactor     32.160        23.632       -.94366E-06   -.14150E-03
  10  Prefactor     1.3685        4.9590        .18001E-05   -.13681E-03
  11  norm          .10000E-03    .64413       -.81555E-07** at limit **
  12  Prefactor     .10000E-03    24.266        .85424E-06** at limit **
  13  norm          3.8686        2.1112        .14387E-07   -.10107E-03
  14  Prefactor     .10000E-03    20.864        .67183E-06** at limit **
  15  Prefactor     .10000E-03    87.908       -.31346E-05** at limit **
  16  Prefactor     .10000E-03    4.1559       -.64177E-07** at limit **
  17  norm          .10000E-03    3.1076        .59223E-08** at limit **
  18  norm          1.7240        2.7897        .29832E-06   -.51240E-04
  19  Prefactor     35.984        30.980        .10441E-06   -.21967E-04
  20  Prefactor     11.140        10.872        .36594E-06   -.68910E-04
  21  Prefactor     .10000E-03    11.819        .42970E-07** at limit **
  22  norm          .10000E-03    1.6877        .10767E-07** at limit **
  23  Prefactor     23.747        38.075        .99888E-06    .23328E-05
  24  Prefactor     3.3554        84.929        .26286E-05   -.85663E-05
  25  norm          4.0549        2.1904        .76600E-07   -.63148E-04
  26  norm          28.132        44.816        .36569E-05    .11007E-03
  27  norm          .10242E-03    1.9879        .79368E-06** at limit **
  28  Prefactor     .10000E-03    37.603       -.24237E-05** at limit **
  29  Normalizat    1.2051        .15936       -.82852E-06   -.33223E-03
  30  Prefactor     .97259        .18535       -.65479E-06   -.22776E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.680782
  norm       = 0.0001
  Prefactor  = 7.31467
  Prefactor  = 7.31763
  Prefactor  = 0.0001
  norm       = 0.815597
  Prefactor  = 0.0001
  norm       = 1.39071
  Prefactor  = 32.1601
  Prefactor  = 1.36851
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.86862
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.72404
  Prefactor  = 35.9844
  Prefactor  = 11.1404
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 23.7471
  Prefactor  = 3.3554
  norm       = 4.05491
  norm       = 28.1318
  norm       = 0.000102419
  Prefactor  = 0.000100001
  Normalizat = 1.20515
  Prefactor  = 0.972588
 **********
 **   18 **HESSE 
 **********

 FCN=   7339.861     FROM HESSE     STATUS=OK           598 CALLS     4534 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .68078        1.3949        .17121E-02   -1.5543    
   2  norm          .10000E-03    3.9643        .32857E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.3147        12.911        .14828E-03   -1.5167    
   4  Prefactor     7.3176        6.4530        .14830E-03   -1.5167    
   5  Prefactor     .10000E-03    8.2340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .81560        1.9319        .17309E-03   -1.5527    
   7  Prefactor     .10000E-03    19.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.3907        6.0904        .36897E-03   -1.5472    
   9  Prefactor     32.160        23.367        .70651E-04   -1.4573    
  10  Prefactor     1.3685        4.9875        .34708E-03   -1.5474    
  11  norm          .10000E-03    .64870        .67095E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    24.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.8686        2.1106        .88958E-04   -1.5315    
  14  Prefactor     .10000E-03    20.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    88.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.1713        .17052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.1081        .14750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.7240        2.7598        .17443E-03   -1.5445    
  19  Prefactor     35.984        30.945        .66808E-04   -1.4508    
  20  Prefactor     11.140        10.725        .60020E-03   -1.5040    
  21  Prefactor     .10000E-03    11.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    3.7221        .21303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     23.747        38.178        .82214E-04   -1.4733    
  24  Prefactor     3.3554        84.669        .22114E-03   -1.5342    
  25  norm          4.0549        2.1895        .89428E-04   -1.5305    
  26  norm          28.132        45.969        .75569E-04   -1.4647    
  27  norm          .10242E-03    3.1272        .40482E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    37.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.2051        .19163        .22180E-03   -.86444    
  30  Prefactor     .97259        .22199        .29864E-03   -.93649    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17222e-09
Minuit parameter uncertainties:
  1  1.39501
  2  9.2256e-06
  3  12.9155
  4  6.45365
  5  3.50671e-06
  6  1.93208
  7  9.39081e-05
  8  5.82144
  9  23.3739
  10  4.98904
  11  1.40284e-06
  12  0.000134035
  13  2.11061
  14  8.82187e-05
  15  0.000614265
  16  2.53581e-06
  17  8.78337e-07
  18  2.75999
  19  30.9589
  20  10.7264
  21  6.39265e-06
  22  1.09277e-06
  23  38.2173
  24  33.7633
  25  2.18952
  26  46.0273
  27  0.00550151
  28  0.000393346
  29  0.191737
  30  0.222202
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  3.869e+00  2.111e+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:  9.726e-01  2.222e-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.205e+00  1.917e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.09
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 3.76e-08 +/- 2.05e-08
Energy Flux (Fixed Index): 2.71e-05 +/- 1.48e-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) = 7339.86012994
delta logL = 0.000913341297746

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7339.86004679
delta logL = 0.000996498007225

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8472       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9535       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2041       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97327       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=   7339.860     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      202 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8472        45.355        .51438E-02    .37534E-03
   2  alpha         1.9535        3.2488        .36753        .30669E-04
   3  Normalizat    1.2041        .11598        .50187E-01    .94688E-05
   4  Prefactor     .97327        .84280E-01    .67492E-01    .11456E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.84718
  alpha      = 1.95347
  Normalizat = 1.2041
  Prefactor  = 0.97327
 **********
 **   18 **HESSE 
 **********

 FCN=   7339.860     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8472        2.1706        .88406E-04   -1.5316    
   2  alpha         1.9535        .49849        .12755E-01   -.22039    
   3  Normalizat    1.2041        .18072        .22188E-03   -.86476    
   4  Prefactor     .97327        .22065        .29854E-03   -.93626    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69126e-11
Minuit parameter uncertainties:
  1  2.17069
  2  0.502025
  3  0.180816
  4  0.220851
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/958556': 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) = 7339.86004678
delta logL = 0.000996498421046

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  3.847e+00  2.171e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.953e+00  5.020e-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:  9.733e-01  2.209e-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.204e+00  1.808e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.08
Ra Dec: 193.307 53.017
Photon Index (Free Index): 1.95 +/- 0.50
Photon Flux (Free Index): 3.85e-08 +/- 2.87e-08
Energy Flux (Free Index): 2.66e-05 +/- 1.89e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/958556/cmap_HighResolution_472608001_472867201_4FGL_J1253.2+5301_daily_bin900.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.76e-08', energy_flux2='2.66e-05', photon_flux_error='2.05e-08', dlogl='9.96e-04', energy_flux='2.71e-05', photon_flux2='3.85e-08', job_status='DONE', time_completed='2021-09-06 07:51:54.972550', photon_index_error2='0.50', photon_index2='1.95', ts='12.09', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='1.89e-05', EG='1.21', time_epoch_completed='1630939914.97', return_code='0', job_id='958556', GAL2='0.97', EG2='1.20', return_code2='0', energy_flux_error='1.48e-05', photon_flux_error2='2.87e-08', ts2='12.08', photon_index='1.93' WHERE bin_id='900' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:51:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0014>
Subject: Job 958556: <4FGL_J1253.2+5301_daily_bin900> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin900 193.307 53.0173 472608001 472867201 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 :                                   903.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             297.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   949 sec.
    Turnaround time :                            950 sec.

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

