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


Performing analysis on: 4FGL_J1253.2+5301_daily_bin1114
RA = 193.307, Dec = 53.0173
tmin = 528076801, tmax = 528336001
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='958892', job_status='RUN', time_executed='2021-09-06 07:40:51.327300', time_epoch_executed='1630939251.33' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='1114'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/958892

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/958892/ft1_4FGL_J1253.2+5301_daily_bin1114.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/958892/ft2_4FGL_J1253.2+5301_daily_bin1114.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/958892/ft1_4FGL_J1253.2+5301_daily_bin1114.fits outfile=/scratch/kocevski/958892/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin1114.fits ra=193.307 dec=53.0173 rad=12.0 tmin=528076801.0 tmax=528336001.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 2.79
user 2.54
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/958892/ft2_4FGL_J1253.2+5301_daily_bin1114.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/958892/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin1114.fits evtable="EVENTS" outfile="/scratch/kocevski/958892/ft1_filtered_4FGL_J1253.2+5301_daily_bin1114.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.48
user 0.25
sys 0.13

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/958892/ft1_filtered_4FGL_J1253.2+5301_daily_bin1114.fits evtable="EVENTS" scfile=/scratch/kocevski/958892/ft2_4FGL_J1253.2+5301_daily_bin1114.fits sctable="SC_DATA" expcube=/scratch/kocevski/958892/ltcube_528076801_528336001_4FGL_J1253.2+5301_daily_bin1114.fits outfile=/scratch/kocevski/958892/expmap_528076801_528336001_4FGL_J1253.2+5301_daily_bin1114.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/958892/ltcube_528076801_528336001_4FGL_J1253.2+5301_daily_bin1114.fits
.....................!
real 149.86
user 145.85
sys 3.76

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/958892/ft1_filtered_4FGL_J1253.2+5301_daily_bin1114.fits scfile=/scratch/kocevski/958892/ft2_4FGL_J1253.2+5301_daily_bin1114.fits outfile=/scratch/kocevski/958892/cmap_528076801_528336001_4FGL_J1253.2+5301_daily_bin1114.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.47
user 0.31
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/958892/ft1_filtered_4FGL_J1253.2+5301_daily_bin1114.fits scfile=/scratch/kocevski/958892/ft2_4FGL_J1253.2+5301_daily_bin1114.fits outfile=/scratch/kocevski/958892/cmap_HighResolution_528076801_528336001_4FGL_J1253.2+5301_daily_bin1114.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.49
user 0.33
sys 0.12

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11233E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.0306       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .13303E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10236E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.2742       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.7713       1.0000         .10000E-03   10000.    
    11 'norm      '    3.0310       1.0000         .10000E-03   10000.    
    12 'Prefactor '    43.620       1.0000         .10000E-03   10000.    
    13 'norm      '    4.0017       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.8065       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.5733       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .85768       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13646E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    29.412       1.0000         .10000E-03   10000.    
    22 'norm      '    1.2084       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.8507       1.0000         .10000E-03   10000.    
    26 'norm      '    119.81       1.0000         .10000E-03   10000.    
    27 'norm      '    7.2568       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .97537       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .93039       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=   6035.265     FROM MIGRAD    STATUS=CONVERGED    751 CALLS     3877 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7148        .10338E-05** at limit **
   2  norm          2.0324        4.5919        .61889E-05   -.31061E-03
   3  Prefactor     .10000E-03    16.510        .70930E-06** at limit **
   4  Prefactor     .10000E-03    4.6376        .29518E-06** at limit **
   5  Prefactor     .10000E-03    12.514        .60970E-07** at limit **
   6  norm          .10000E-03    1.3935        .35386E-06** at limit **
   7  Prefactor     .10000E-03    30.397       -.49781E-06** at limit **
   8  norm          .10000E-03    5.4723        .36960E-06** at limit **
   9  Prefactor     4.2850        14.987        .69647E-07   -.35624E-04
  10  Prefactor     2.7711        4.0397       -.10416E-07   -.12661E-04
  11  norm          3.0310        1.9366        .56738E-07    .26063E-04
  12  Prefactor     43.621        22.801        .27091E-06    .20649E-04
  13  norm          4.0018        2.2181        .59555E-07   -.58657E-05
  14  Prefactor     9.8089        36.835        .23600E-06    .88709E-07
  15  Prefactor     .10000E-03    18.513        .13304E-06** at limit **
  16  Prefactor     1.5737        4.1194       -.17669E-06   -.56843E-04
  17  norm          .10000E-03    4.2285        .13675E-07** at limit **
  18  norm          .85573        3.3075       -.75746E-06   -.52089E-03
  19  Prefactor     .10002E-03    33.805       -.37958E-05** at limit **
  20  Prefactor     .10000E-03    8.6750       -.88231E-07** at limit **
  21  Prefactor     29.380        34.398        .48476E-05    .23641E-05
  22  norm          1.2077        2.3540       -.34744E-06   -.54076E-03
  23  Prefactor     .10000E-03    17.393        .43854E-06** at limit **
  24  Prefactor     .10000E-03    11.813       -.36143E-06** at limit **
  25  norm          1.8504        1.7023       -.23376E-06   -.61800E-03
  26  norm          119.80        106.61        .74274E-06   -.93343E-06
  27  norm          7.2573        4.6280        .17659E-06    .43010E-04
  28  Prefactor     .10000E-03    25.886       -.15246E-05** at limit **
  29  Normalizat    .97528        .15624        .10631E-06   -.66548E-04
  30  Prefactor     .93043        .19055       -.21972E-05   -.21725E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.03239
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.28505
  Prefactor  = 2.77115
  norm       = 3.03103
  Prefactor  = 43.6214
  norm       = 4.00181
  Prefactor  = 9.80893
  Prefactor  = 0.0001
  Prefactor  = 1.57366
  norm       = 0.0001
  norm       = 0.855725
  Prefactor  = 0.000100021
  Prefactor  = 0.0001
  Prefactor  = 29.38
  norm       = 1.2077
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.85043
  norm       = 119.801
  norm       = 7.25728
  Prefactor  = 0.0001
  Normalizat = 0.975277
  Prefactor  = 0.930434
 **********
 **   18 **HESSE 
 **********

 FCN=   6035.265     FROM HESSE     STATUS=OK           590 CALLS     4467 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.7953        .19453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.0324        4.6413        .12057E-02   -1.5423    
   3  Prefactor     .10000E-03    16.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.6843        .16349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.8149        .17458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    30.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.6063        .35368E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.2850        14.915        .19488E-03   -1.5294    
  10  Prefactor     2.7711        4.0209        .17864E-03   -1.5375    
  11  norm          3.0310        1.9342        .81894E-04   -1.5360    
  12  Prefactor     43.621        22.791        .60701E-04   -1.4386    
  13  norm          4.0018        2.2185        .83213E-04   -1.5308    
  14  Prefactor     9.8089        36.816        .12796E-03   -1.5081    
  15  Prefactor     .10000E-03    18.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.5737        4.0683        .24719E-03   -1.5457    
  17  norm          .10000E-03    4.2297        .15602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .85573        3.3033        .26557E-03   -1.5523    
  19  Prefactor     .10002E-03    34.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.7464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     29.380        34.448        .73875E-04   -1.4623    
  22  norm          1.2077        2.3040        .16092E-03   -1.5488    
  23  Prefactor     .10000E-03    17.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    11.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.8504        1.6973        .92915E-04   -1.5436    
  26  norm          119.80        106.93        .36765E-04   -1.3514    
  27  norm          7.2573        4.6396        .12209E-03   -1.5169    
  28  Prefactor     .10000E-03    25.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .97528        .18244        .21354E-03   -.93863    
  30  Prefactor     .93043        .22359        .27343E-03   -.95086    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41e-09
Minuit parameter uncertainties:
  1  3.10484e-05
  2  4.64217
  3  8.27795e-06
  4  2.36893e-06
  5  1.73028e-05
  6  1.48164e-05
  7  5.07246e-05
  8  4.05079e-05
  9  14.9276
  10  4.02132
  11  1.93428
  12  22.7958
  13  2.21858
  14  36.9012
  15  8.5808e-06
  16  4.06905
  17  1.77472e-06
  18  3.304
  19  0.00168387
  20  2.24212e-05
  21  34.4709
  22  2.30418
  23  7.92414e-06
  24  1.32332e-05
  25  1.69731
  26  107.104
  27  4.63981
  28  3.19553e-05
  29  0.182559
  30  0.223814
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  4.002e+00  2.219e+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.304e-01  2.238e-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:  9.753e-01  1.826e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.32
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 3.89e-08 +/- 2.15e-08
Energy Flux (Fixed Index): 2.81e-05 +/- 1.56e-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) = 6035.05577946
delta logL = 0.20874218378

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6035.05012881
delta logL = 0.214392835415

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.7012       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3062       1.0000          .0000       5.0000    
     3 'Normalizat'    .94995       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94534       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=   6035.050     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      273 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7014        2.1850        .68591E-04   -.36132E-04
   2  alpha         2.3064        .54524        .10703E-01    .29324E-03
   3  Normalizat    .94985        .18126        .21577E-03   -.25554E-04
   4  Prefactor     .94543        .22338        .27126E-03   -.13286E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.70142
  alpha      = 2.3064
  Normalizat = 0.94985
  Prefactor  = 0.945432
 **********
 **   18 **HESSE 
 **********

 FCN=   6035.050     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .71E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.7014        2.1159        .27437E-05   -1.5323    
   2  alpha         2.3064        .52774        .21406E-02   -.77516E-01
   3  Normalizat    .94985        .18117        .86307E-05   -.94730    
   4  Prefactor     .94543        .22347        .10850E-04   -.94571    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.10227e-13
Minuit parameter uncertainties:
  1  2.11594
  2  0.53176
  3  0.181292
  4  0.223691
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/958892': 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) = 6035.05012853
delta logL = 0.214393106792

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  3.701e+00  2.116e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  2.306e+00  5.318e-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.454e-01  2.237e-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:  9.499e-01  1.813e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.74
Ra Dec: 193.307 53.017
Photon Index (Free Index): 2.31 +/- 0.53
Photon Flux (Free Index): 6.21e-08 +/- 4.45e-08
Energy Flux (Free Index): 2.45e-05 +/- 1.22e-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/958892/cmap_HighResolution_528076801_528336001_4FGL_J1253.2+5301_daily_bin1114.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.89e-08', energy_flux2='2.45e-05', photon_flux_error='2.15e-08', dlogl='2.14e-01', energy_flux='2.81e-05', photon_flux2='6.21e-08', job_status='DONE', time_completed='2021-09-06 07:52:48.155438', photon_index_error2='0.53', photon_index2='2.31', ts='15.32', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='1.22e-05', EG='0.98', time_epoch_completed='1630939968.16', return_code='0', job_id='958892', GAL2='0.95', EG2='0.95', return_code2='0', energy_flux_error='1.56e-05', photon_flux_error2='4.45e-08', ts2='15.74', photon_index='1.93' WHERE bin_id='1114' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:52:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 958892: <4FGL_J1253.2+5301_daily_bin1114> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin1114 193.307 53.0173 528076801 528336001 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 :                                   634.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             246.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   977 sec.
    Turnaround time :                            978 sec.

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

