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


Performing analysis on: 4FGL_J1253.2+5301_daily_bin1398
RA = 193.307, Dec = 53.0173
tmin = 601689601, tmax = 601948801
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='960234', job_status='RUN', time_executed='2021-09-06 07:41:28.303047', time_epoch_executed='1630939288.3' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='1398'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/960234

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/960234/ft1_4FGL_J1253.2+5301_daily_bin1398.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/960234/ft2_4FGL_J1253.2+5301_daily_bin1398.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/960234/ft1_4FGL_J1253.2+5301_daily_bin1398.fits outfile=/scratch/kocevski/960234/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin1398.fits ra=193.307 dec=53.0173 rad=12.0 tmin=601689601.0 tmax=601948801.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.72
user 3.35
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/960234/ft1_filtered_4FGL_J1253.2+5301_daily_bin1398.fits evtable="EVENTS" scfile=/scratch/kocevski/960234/ft2_4FGL_J1253.2+5301_daily_bin1398.fits sctable="SC_DATA" expcube=/scratch/kocevski/960234/ltcube_601689601_601948801_4FGL_J1253.2+5301_daily_bin1398.fits outfile=/scratch/kocevski/960234/expmap_601689601_601948801_4FGL_J1253.2+5301_daily_bin1398.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/960234/ltcube_601689601_601948801_4FGL_J1253.2+5301_daily_bin1398.fits
.....................!
real 192.80
user 185.29
sys 4.09

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/960234/ft1_filtered_4FGL_J1253.2+5301_daily_bin1398.fits scfile=/scratch/kocevski/960234/ft2_4FGL_J1253.2+5301_daily_bin1398.fits outfile=/scratch/kocevski/960234/cmap_601689601_601948801_4FGL_J1253.2+5301_daily_bin1398.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/960234/ft1_filtered_4FGL_J1253.2+5301_daily_bin1398.fits scfile=/scratch/kocevski/960234/ft2_4FGL_J1253.2+5301_daily_bin1398.fits outfile=/scratch/kocevski/960234/cmap_HighResolution_601689601_601948801_4FGL_J1253.2+5301_daily_bin1398.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44672       1.0000         .10000E-03   10000.    
     2 'norm      '    .10286E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    35.364       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.9195       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .19295E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    1.4736       1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.703       1.0000         .10000E-03   10000.    
     8 'norm      '    6.3441       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10347E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.9175       1.0000         .10000E-03   10000.    
    14 'Prefactor '    60.825       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.440       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.257       1.0000         .10000E-03   10000.    
    17 'norm      '    6.9933       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .16417       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.1374       1.0000         .10000E-03   10000.    
    22 'norm      '    1.8642       1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.218       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.6985       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    2.1252       1.0000         .10000E-03   10000.    
    28 'Prefactor '    49.718       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .87069       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0401       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6113.549     FROM MIGRAD    STATUS=CONVERGED    129 CALLS     3276 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .44541        2.7294       -.69539E-06   -.34696E-03
   2  norm          .10000E-03    3.0434       -.16932E-06** at limit **
   3  Prefactor     35.362        1.1604       -.36946E-06    .49528E-03
   4  Prefactor     5.9118        6.1301       -.88324E-05   -.15642E-02
   5  Prefactor     .10003E-03    68.057        .30406E-04** at limit **
   6  norm          1.4733        1.2823        .46028E-07   -.83787E-03
   7  Prefactor     24.715        1.2819        .24736E-06    .23045E-03
   8  norm          6.3398        2.9852        .13093E-06    .34535E-02
   9  Prefactor     .10000E-03    16.639       -.24892E-04** at limit **
  10  Prefactor     .10000E-03    5.6812        .11772E-05** at limit **
  11  norm          .10000E-03    6.1106       -.13536E-05** at limit **
  12  Prefactor     .10000E-03    9.5069        .19885E-04** at limit **
  13  norm          5.9169        2.7456       -.91548E-06    .69685E-03
  14  Prefactor     60.817        1.3339       -.61323E-06    .24316E-02
  15  Prefactor     10.414        2.6537       -.39676E-05    .25917E-02
  16  Prefactor     11.252        1.2399       -.67051E-06   -.42273E-03
  17  norm          6.9930        1.0238        .34008E-06    .45943E-04
  18  norm          .10000E-03    1.4122        .47602E-06** at limit **
  19  Prefactor     .10000E-03    12.234        .22499E-05** at limit **
  20  Prefactor     .10066E-03    698.66       -.15637E-03** at limit **
  21  Prefactor     7.1377        1.0085        .19523E-07    .64984E-04
  22  norm          1.8768        3.0160        .13082E-05   -.26068E-03
  23  Prefactor     12.228        2.7113        .40001E-05   -.38717E-02
  24  Prefactor     .10000E-03    9.5964        .20114E-04** at limit **
  25  norm          4.6981        1.9912       -.13408E-06    .13259E-03
  26  norm          .10000E-03    25.230       -.21328E-04** at limit **
  27  norm          2.1247        3.4690       -.39875E-06   -.26557E-03
  28  Prefactor     49.717        1.0030       -.59325E-07    .28895E-03
  29  Normalizat    .87123        .18074        .26418E-05    .12703E-04
  30  Prefactor     1.0396        .22941        .94380E-06   -.89565E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.445407
  norm       = 0.0001
  Prefactor  = 35.362
  Prefactor  = 5.91178
  Prefactor  = 0.000100032
  norm       = 1.4733
  Prefactor  = 24.7151
  norm       = 6.33976
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.91693
  Prefactor  = 60.817
  Prefactor  = 10.4143
  Prefactor  = 11.2519
  norm       = 6.99299
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100663
  Prefactor  = 7.13771
  norm       = 1.87681
  Prefactor  = 12.2282
  Prefactor  = 0.0001
  norm       = 4.69808
  norm       = 0.000100001
  norm       = 2.12471
  Prefactor  = 49.7172
  Normalizat = 0.871234
  Prefactor  = 1.03958
 **********
 **   18 **HESSE 
 **********

 FCN=   6113.549     FROM HESSE     STATUS=OK           668 CALLS     3944 TOTAL
                     EDM=   .37E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .44541        3.0939        .11051E-01   -1.5574    
   2  norm          .10000E-03    2.9954        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     35.362        21.059        .16847E-02   -1.4518    
   4  Prefactor     5.9118        7.1050        .41263E-02   -1.5222    
   5  Prefactor     .10003E-03    16.714        .10130       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.4733        1.2970        .88469E-02   -1.5465    
   7  Prefactor     24.715        58.550        .20149E-02   -1.4713    
   8  norm          6.3398        6.9285        .39840E-02   -1.5204    
   9  Prefactor     .10000E-03    17.080        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.4946        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.3079        .27235E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    19.160        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.9169        2.7571        .41270E-02   -1.5221    
  14  Prefactor     60.817        41.351        .12862E-02   -1.4147    
  15  Prefactor     10.414        69.129        .31000E-02   -1.5062    
  16  Prefactor     11.252        8.9175        .29852E-02   -1.5037    
  17  norm          6.9930        7.1937        .37926E-02   -1.5179    
  18  norm          .10000E-03    1.4055        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.289        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10066E-03    11.319        .98129E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.1377        15.035        .37537E-02   -1.5174    
  22  norm          1.8768        3.2410        .76287E-02   -1.5434    
  23  Prefactor     12.228        34.856        .28650E-02   -1.5008    
  24  Prefactor     .10000E-03    19.298        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.6981        2.0001        .46412E-02   -1.5274    
  26  norm          .10000E-03    25.326        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          2.1247        3.5237        .70716E-02   -1.5416    
  28  Prefactor     49.717        60.190        .14218E-02   -1.4297    
  29  Normalizat    .87123        .15838        .44526E-01   -.97478    
  30  Prefactor     1.0396        .19331        .60247E-01   -.91421    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.70151e-07
Minuit parameter uncertainties:
  1  2.34771
  2  1.24957e-05
  3  21.0639
  4  7.10598
  5  0.00147418
  6  1.29698
  7  58.6864
  8  6.92935
  9  0.000124828
  10  1.32889e-05
  11  6.46175e-06
  12  2.61234e-05
  13  2.75717
  14  41.3707
  15  53.753
  16  8.91855
  17  7.19459
  18  1.55246e-06
  19  0.000372348
  20  0.00547969
  21  15.0429
  22  3.24133
  23  34.9139
  24  1.76789e-05
  25  2.00015
  26  0.000347855
  27  3.52409
  28  60.2641
  29  0.15846
  30  0.193435
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  5.917e+00  2.757e+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:  1.040e+00  1.934e-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:  8.712e-01  1.585e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.76
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 5.75e-08 +/- 2.68e-08
Energy Flux (Fixed Index): 4.15e-05 +/- 1.93e-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) = 6113.3510049
delta logL = 0.197626726243

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6113.3326015
delta logL = 0.216030130384

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.3923       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2115       1.0000          .0000       5.0000    
     3 'Normalizat'    .84828       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0532       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=   6113.333     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      265 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3921        2.7910        .74138E-04    .19053E-02
   2  alpha         2.2117        .42792        .87696E-02    .13241E-03
   3  Normalizat    .84827        .18322        .22975E-03   -.10357E-03
   4  Prefactor     1.0532        .22942        .26476E-03   -.12487E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.39214
  alpha      = 2.21171
  Normalizat = 0.848271
  Prefactor  = 1.05323
 **********
 **   18 **HESSE 
 **********

 FCN=   6113.333     FROM HESSE     STATUS=OK            25 CALLS      290 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3921        2.7174        .29655E-05   -1.5244    
   2  alpha         2.2117        .41627        .35079E-03   -.11557    
   3  Normalizat    .84827        .18324        .91900E-05   -.98302    
   4  Prefactor     1.0532        .22956        .10590E-04   -.90976    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.87708e-10
Minuit parameter uncertainties:
  1  2.71748
  2  0.418248
  3  0.183373
  4  0.229771
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/960234': 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) = 6113.3326013
delta logL = 0.216030327944

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  5.392e+00  2.717e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  2.212e+00  4.182e-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:  1.053e+00  2.298e-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:  8.483e-01  1.834e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.14
Ra Dec: 193.307 53.017
Photon Index (Free Index): 2.21 +/- 0.42
Photon Flux (Free Index): 7.80e-08 +/- 4.43e-08
Energy Flux (Free Index): 3.50e-05 +/- 1.70e-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/960234/cmap_HighResolution_601689601_601948801_4FGL_J1253.2+5301_daily_bin1398.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.75e-08', energy_flux2='3.50e-05', photon_flux_error='2.68e-08', dlogl='2.16e-01', energy_flux='4.15e-05', photon_flux2='7.80e-08', job_status='DONE', time_completed='2021-09-06 07:54:21.187397', photon_index_error2='0.42', photon_index2='2.21', ts='12.76', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='1.70e-05', EG='0.87', time_epoch_completed='1630940061.19', return_code='0', job_id='960234', GAL2='1.05', EG2='0.85', return_code2='0', energy_flux_error='1.93e-05', photon_flux_error2='4.43e-08', ts2='13.14', photon_index='1.93' WHERE bin_id='1398' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:54:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 960234: <4FGL_J1253.2+5301_daily_bin1398> in cluster <slac> Done

Job <4FGL_J1253.2+5301_daily_bin1398> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 07:41:01 2021
Job was executed on host(s) <bullet0298>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:41:02 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:41:02 2021
Terminated at Mon Sep  6 07:54:22 2021
Results reported at Mon Sep  6 07:54:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin1398 193.307 53.0173 601689601 601948801 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 :                                   754.39 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            801 sec.

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

