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


Performing analysis on: 4FGL_J1253.2+5301_daily_bin857
RA = 193.307, Dec = 53.0173
tmin = 461462401, tmax = 461721601
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='958493', job_status='RUN', time_executed='2021-09-06 07:36:17.762636', time_epoch_executed='1630938977.76' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='857'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/958493

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/958493/ft1_4FGL_J1253.2+5301_daily_bin857.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/958493/ft2_4FGL_J1253.2+5301_daily_bin857.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/958493/ft1_4FGL_J1253.2+5301_daily_bin857.fits outfile=/scratch/kocevski/958493/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin857.fits ra=193.307 dec=53.0173 rad=12.0 tmin=461462401.0 tmax=461721601.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 4.11
user 3.70
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/958493/ft1_filtered_4FGL_J1253.2+5301_daily_bin857.fits evtable="EVENTS" scfile=/scratch/kocevski/958493/ft2_4FGL_J1253.2+5301_daily_bin857.fits sctable="SC_DATA" expcube=/scratch/kocevski/958493/ltcube_461462401_461721601_4FGL_J1253.2+5301_daily_bin857.fits outfile=/scratch/kocevski/958493/expmap_461462401_461721601_4FGL_J1253.2+5301_daily_bin857.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/958493/ltcube_461462401_461721601_4FGL_J1253.2+5301_daily_bin857.fits
.....................!
real 192.74
user 184.98
sys 4.39

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/958493/ft1_filtered_4FGL_J1253.2+5301_daily_bin857.fits scfile=/scratch/kocevski/958493/ft2_4FGL_J1253.2+5301_daily_bin857.fits outfile=/scratch/kocevski/958493/cmap_461462401_461721601_4FGL_J1253.2+5301_daily_bin857.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/958493/ft1_filtered_4FGL_J1253.2+5301_daily_bin857.fits scfile=/scratch/kocevski/958493/ft2_4FGL_J1253.2+5301_daily_bin857.fits outfile=/scratch/kocevski/958493/cmap_HighResolution_461462401_461721601_4FGL_J1253.2+5301_daily_bin857.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.54
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .82985E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.181       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.0751       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.6338       1.0000         .10000E-03   10000.    
     7 'Prefactor '    37.173       1.0000         .10000E-03   10000.    
     8 'norm      '    6.2856       1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.056       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.9507       1.0000         .10000E-03   10000.    
    11 'norm      '    1.8019       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11026E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.3713       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.1427       1.0000         .10000E-03   10000.    
    15 'Prefactor '    28.273       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.7287       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    52.264       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.418       1.0000         .10000E-03   10000.    
    22 'norm      '    3.9790       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.5616       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .95325       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .94609       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=   6278.670     FROM MIGRAD    STATUS=CONVERGED    749 CALLS     3891 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.5711       -.38867E-06** at limit **
   2  norm          .85973E-01    2.6474       -.24611E-06   -.62851E-03
   3  Prefactor     13.155        17.150       -.11481E-05   -.17791E-03
   4  Prefactor     1.0708        7.9495        .37696E-05   -.15371E-03
   5  Prefactor     .10000E-03    7.9625       -.14557E-06** at limit **
   6  norm          2.6338        1.8952        .40355E-07   -.30883E-04
   7  Prefactor     37.187        45.903        .18105E-05    .11789E-03
   8  norm          6.2874        5.9918        .13184E-06    .75393E-05
   9  Prefactor     27.051        22.368       -.24044E-06   -.74326E-04
  10  Prefactor     7.9509        5.1289        .54627E-08   -.21333E-04
  11  norm          1.8019        1.3176       -.23285E-07    .18011E-04
  12  Prefactor     .10000E-03    31.084        .11071E-05** at limit **
  13  norm          1.3713        1.2183        .79967E-08    .33721E-04
  14  Prefactor     7.1378        41.711       -.17778E-05   -.37526E-04
  15  Prefactor     28.277        38.577        .96694E-06    .50611E-04
  16  Prefactor     6.7290        6.1422        .35166E-06   -.84501E-04
  17  norm          .10000E-03    5.3926        .63711E-07** at limit **
  18  norm          .10000E-03    1.5546       -.47252E-08** at limit **
  19  Prefactor     52.265        38.626        .14943E-06    .71834E-05
  20  Prefactor     .10000E-03    4.7964        .24460E-07** at limit **
  21  Prefactor     10.417        27.533       -.16080E-06   -.12372E-04
  22  norm          3.9791        3.0799        .42442E-07   -.24781E-04
  23  Prefactor     .10000E-03    14.204       -.36789E-06** at limit **
  24  Prefactor     .10000E-03    13.457        .51977E-06** at limit **
  25  norm          4.5616        2.0342        .58647E-08   -.90747E-05
  26  norm          .10000E-03    21.816        .76272E-07** at limit **
  27  norm          .10000E-03    2.2985        .40583E-07** at limit **
  28  Prefactor     .10000E-03    21.072       -.32763E-06** at limit **
  29  Normalizat    .95305        .15468       -.25870E-06   -.11538E-04
  30  Prefactor     .94634        .18834        .97723E-07   -.33008E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0859733
  Prefactor  = 13.1553
  Prefactor  = 1.07081
  Prefactor  = 0.0001
  norm       = 2.63385
  Prefactor  = 37.1866
  norm       = 6.28736
  Prefactor  = 27.0509
  Prefactor  = 7.95088
  norm       = 1.80191
  Prefactor  = 0.0001
  norm       = 1.37131
  Prefactor  = 7.13777
  Prefactor  = 28.2772
  Prefactor  = 6.729
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 52.2646
  Prefactor  = 0.0001
  Prefactor  = 10.4173
  norm       = 3.97914
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.5616
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.953047
  Prefactor  = 0.946338
 **********
 **   18 **HESSE 
 **********

 FCN=   6278.670     FROM HESSE     STATUS=OK           594 CALLS     4485 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.6492        .24582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .85973E-01    82.109        .22847E-02   -1.5649    
   3  Prefactor     13.155        17.375        .11033E-03   -1.4982    
   4  Prefactor     1.0708        15.050        .41749E-03   -1.5501    
   5  Prefactor     .10000E-03    7.9846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.6338        1.8962        .88417E-04   -1.5383    
   7  Prefactor     37.187        46.944        .65734E-04   -1.4488    
   8  norm          6.2874        5.9796        .16011E-03   -1.5206    
   9  Prefactor     27.051        22.420        .77019E-04   -1.4667    
  10  Prefactor     7.9509        5.1251        .13836E-03   -1.5144    
  11  norm          1.8019        1.3253        .75305E-04   -1.5439    
  12  Prefactor     .10000E-03    31.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.3713        1.2221        .80243E-04   -1.5474    
  14  Prefactor     7.1378        42.245        .15009E-03   -1.5174    
  15  Prefactor     28.277        38.654        .75346E-04   -1.4644    
  16  Prefactor     6.7290        6.1396        .77343E-03   -1.5189    
  17  norm          .10000E-03    5.4040        .17970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.5633        .96416E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     52.265        38.602        .55478E-04   -1.4261    
  20  Prefactor     .10000E-03    4.8006        .16944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.417        27.456        .12414E-03   -1.5062    
  22  norm          3.9791        3.0746        .11806E-03   -1.5309    
  23  Prefactor     .10000E-03    14.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    13.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.5616        2.0337        .72422E-04   -1.5281    
  26  norm          .10000E-03    21.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    2.3512        .11724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    21.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .95305        .18044        .21964E-03   -.94620    
  30  Prefactor     .94634        .21848        .27556E-03   -.94540    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00147e-08
Minuit parameter uncertainties:
  1  2.53147e-05
  2  5.31806
  3  17.3816
  4  8.03109
  5  3.51756e-05
  6  1.89624
  7  46.9906
  8  5.98021
  9  22.4268
  10  5.12536
  11  1.32534
  12  0.000191734
  13  1.22214
  14  34.7663
  15  38.6885
  16  6.14019
  17  5.92922e-07
  18  1.37094e-06
  19  38.62
  20  1.26296e-06
  21  27.4894
  22  3.07474
  23  4.42231e-05
  24  5.83937e-05
  25  2.03376
  26  1.09549e-05
  27  9.49526e-07
  28  4.79725e-05
  29  0.180555
  30  0.218683
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  1.371e+00  1.222e+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.463e-01  2.187e-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.530e-01  1.806e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.37
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 1.33e-08 +/- 1.19e-08
Energy Flux (Fixed Index): 9.62e-06 +/- 8.58e-06

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) = 6278.63662566
delta logL = 0.033421870934

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6278.63606336
delta logL = 0.0339841713976

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4041       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7359       1.0000          .0000       5.0000    
     3 'Normalizat'    .95537       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94527       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=   6278.636     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      191 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4041        53.485        .91492E-02   -.11605E-02
   2  alpha         1.7359        3.6043        .43891       -.28401E-04
   3  Normalizat    .95537        .10179        .45605E-01    .96729E-05
   4  Prefactor     .94527        .96431E-01    .45579E-01    .14054E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.40414
  alpha      = 1.73588
  Normalizat = 0.955373
  Prefactor  = 0.945268
 **********
 **   18 **HESSE 
 **********

 FCN=   6278.636     FROM HESSE     STATUS=OK            33 CALLS      224 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4041        1.2711        .82522E-04   -1.5471    
   2  alpha         1.7359        .72801        .19349E-01   -.31062    
   3  Normalizat    .95537        .17163        .21941E-03   -.94541    
   4  Prefactor     .94527        .21556        .27571E-03   -.94577    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99853e-10
Minuit parameter uncertainties:
  1  1.27109
  2  0.739868
  3  0.171731
  4  0.215756
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/958493': 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) = 6278.63606336
delta logL = 0.0339841718715

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  1.404e+00  1.271e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.736e+00  7.399e-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.453e-01  2.158e-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.554e-01  1.717e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.44
Ra Dec: 193.307 53.017
Photon Index (Free Index): 1.74 +/- 0.74
Photon Flux (Free Index): 1.08e-08 +/- 1.30e-08
Energy Flux (Free Index): 1.19e-05 +/- 1.54e-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/958493/cmap_HighResolution_461462401_461721601_4FGL_J1253.2+5301_daily_bin857.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.33e-08', energy_flux2='1.19e-05', photon_flux_error='1.19e-08', dlogl='3.40e-02', energy_flux='9.62e-06', photon_flux2='1.08e-08', job_status='DONE', time_completed='2021-09-06 07:50:25.368575', photon_index_error2='0.74', photon_index2='1.74', ts='4.37', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='1.54e-05', EG='0.95', time_epoch_completed='1630939825.37', return_code='0', job_id='958493', GAL2='0.95', EG2='0.96', return_code2='0', energy_flux_error='8.58e-06', photon_flux_error2='1.30e-08', ts2='4.44', photon_index='1.93' WHERE bin_id='857' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:50:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 958493: <4FGL_J1253.2+5301_daily_bin857> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin857 193.307 53.0173 461462401 461721601 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 :                                   824.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             354.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            864 sec.

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

