/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 8 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 = 7478
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1253.2+5301_daily_bin113
RA = 193.307, Dec = 53.0173
tmin = 268617601, tmax = 268876801
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='953618', job_status='RUN', time_executed='2021-09-06 07:20:46.224027', time_epoch_executed='1630938046.22' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='113'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/953618

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/953618/ft1_4FGL_J1253.2+5301_daily_bin113.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/953618/ft2_4FGL_J1253.2+5301_daily_bin113.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/953618/ft1_4FGL_J1253.2+5301_daily_bin113.fits outfile=/scratch/kocevski/953618/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin113.fits ra=193.307 dec=53.0173 rad=12.0 tmin=268617601.0 tmax=268876801.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 1.56
user 1.34
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/953618/ft1_filtered_4FGL_J1253.2+5301_daily_bin113.fits" evtable="EVENTS" scfile=/scratch/kocevski/953618/ft2_4FGL_J1253.2+5301_daily_bin113.fits sctable="SC_DATA" outfile=/scratch/kocevski/953618/ltcube_268617601_268876801_4FGL_J1253.2+5301_daily_bin113.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/953618/ft2_4FGL_J1253.2+5301_daily_bin113.fits
.....................!
real 12.57
user 12.20
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/953618/ft1_filtered_4FGL_J1253.2+5301_daily_bin113.fits evtable="EVENTS" scfile=/scratch/kocevski/953618/ft2_4FGL_J1253.2+5301_daily_bin113.fits sctable="SC_DATA" expcube=/scratch/kocevski/953618/ltcube_268617601_268876801_4FGL_J1253.2+5301_daily_bin113.fits outfile=/scratch/kocevski/953618/expmap_268617601_268876801_4FGL_J1253.2+5301_daily_bin113.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/953618/ltcube_268617601_268876801_4FGL_J1253.2+5301_daily_bin113.fits
.....................!
real 191.07
user 184.74
sys 5.96

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/953618/ft1_filtered_4FGL_J1253.2+5301_daily_bin113.fits scfile=/scratch/kocevski/953618/ft2_4FGL_J1253.2+5301_daily_bin113.fits outfile=/scratch/kocevski/953618/cmap_268617601_268876801_4FGL_J1253.2+5301_daily_bin113.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/953618/ft1_filtered_4FGL_J1253.2+5301_daily_bin113.fits scfile=/scratch/kocevski/953618/ft2_4FGL_J1253.2+5301_daily_bin113.fits outfile=/scratch/kocevski/953618/cmap_HighResolution_268617601_268876801_4FGL_J1253.2+5301_daily_bin113.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.41
sys 0.12

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .62755       1.0000         .10000E-03   10000.    
     2 'norm      '    3.3568       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.5242       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16789E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.2980       1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.326       1.0000         .10000E-03   10000.    
    13 'norm      '    2.1760       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.7910       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12241E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.8073       1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.356       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11239E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    74.063       1.0000         .10000E-03   10000.    
    22 'norm      '    1.0876       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    24.055       1.0000         .10000E-03   10000.    
    25 'norm      '    4.4655       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    14.971       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .84844       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0083       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=   5651.038     FROM MIGRAD    STATUS=CONVERGED    132 CALLS     4060 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 13.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .62689        3.6408        .62272E-07    .17531E-03
   2  norm          3.3568        3.7298        .13375E-05    .24575E-03
   3  Prefactor     .10000E-03    8.2690       -.35643E-05** at limit **
   4  Prefactor     .10000E-03    3.3188        .27432E-06** at limit **
   5  Prefactor     .10000E-03    9.6898        .57685E-05** at limit **
   6  norm          1.5243        1.6436        .10658E-06    .49153E-03
   7  Prefactor     .10019E-03    46.289        .64619E-04** at limit **
   8  norm          .10000E-03    1.9739        .30183E-06** at limit **
   9  Prefactor     .10000E-03    6.3800        .49318E-06** at limit **
  10  Prefactor     .10000E-03    20.610        .22354E-04** at limit **
  11  norm          3.2983        2.0315        .30624E-06    .79735E-03
  12  Prefactor     21.325        1.0099        .12755E-06    .50318E-04
  13  norm          2.1761        1.7614       -.27419E-07   -.17952E-03
  14  Prefactor     8.7937        1.1573        .11983E-05   -.26542E-03
  15  Prefactor     .10000E-03    123.44       -.77202E-04** at limit **
  16  Prefactor     .10000E-03    3.8302       -.11237E-05** at limit **
  17  norm          .10000E-03    3.7700        .14909E-05** at limit **
  18  norm          4.8069        1.1320        .37653E-06    .15707E-02
  19  Prefactor     15.362        2.3689        .36025E-05   -.16913E-02
  20  Prefactor     .10070E-03    19.627        .12598E-04** at limit **
  21  Prefactor     74.046        4.0023       -.27224E-05    .52376E-02
  22  norm          1.0869        3.4355       -.19835E-06   -.20221E-03
  23  Prefactor     .10000E-03    14.846       -.83098E-05** at limit **
  24  Prefactor     24.063        1.8105        .17141E-05   -.75739E-03
  25  norm          4.4657        2.0428        .87707E-07    .48617E-03
  26  norm          .10017E-03    30.377       -.49835E-04** at limit **
  27  norm          .10000E-03    2.2320        .34115E-06** at limit **
  28  Prefactor     14.972        1.0124        .23291E-06   -.72409E-04
  29  Normalizat    .84823        .18466       -.84073E-06    .69240E-03
  30  Prefactor     1.0085        .22933        .44473E-06    .49407E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.626894
  norm       = 3.35684
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.52429
  Prefactor  = 0.000100191
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 3.2983
  Prefactor  = 21.3249
  norm       = 2.17612
  Prefactor  = 8.79366
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.80688
  Prefactor  = 15.3621
  Prefactor  = 0.000100699
  Prefactor  = 74.0459
  norm       = 1.08695
  Prefactor  = 0.0001
  Prefactor  = 24.0632
  norm       = 4.46567
  norm       = 0.000100168
  norm       = 0.0001
  Prefactor  = 14.9722
  Normalizat = 0.848232
  Prefactor  = 1.00852
 **********
 **   18 **HESSE 
 **********

 FCN=   5651.038     FROM HESSE     STATUS=OK           658 CALLS     4718 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .62689        2.3812        .39720E-01   -1.5550    
   2  norm          3.3568        3.7723        .55221E-02   -1.5342    
   3  Prefactor     .10000E-03    8.2633        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.2941        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.6625        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.5243        1.6611        .86487E-02   -1.5461    
   7  Prefactor     .10019E-03    60.804        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.9672        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.3690        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.6629        .50207E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.2983        2.0993        .55735E-02   -1.5345    
  12  Prefactor     21.325        19.707        .21683E-02   -1.4784    
  13  norm          2.1761        1.7604        .69780E-02   -1.5413    
  14  Prefactor     8.7937        68.718        .33797E-02   -1.5115    
  15  Prefactor     .10000E-03    125.35        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.8121        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.7706        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.8069        4.2883        .45872E-02   -1.5269    
  19  Prefactor     15.362        45.031        .25552E-02   -1.4924    
  20  Prefactor     .10070E-03    44.096        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     74.046        43.524        .11663E-02   -1.3985    
  22  norm          1.0869        3.5330        .11491E-01   -1.5499    
  23  Prefactor     .10000E-03    14.841        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     24.063        33.971        .20418E-02   -1.4726    
  25  norm          4.4657        2.0650        .47636E-02   -1.5285    
  26  norm          .10017E-03    36.417        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    2.1682        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     14.972        39.553        .25878E-02   -1.4934    
  29  Normalizat    .84823        .16193        .44239E-01   -.98304    
  30  Prefactor     1.0085        .19674        .43584E-01   -.92446    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94278e-07
Minuit parameter uncertainties:
  1  2.38156
  2  3.7726
  3  1.36964e-05
  4  1.67255e-05
  5  1.30339e-05
  6  1.66117
  7  0.00682839
  8  1.02828e-05
  9  6.94479e-05
  10  0.000252111
  11  2.0993
  12  19.7126
  13  1.76047
  14  49.2421
  15  0.000871053
  16  8.61302e-06
  17  6.42629e-06
  18  4.28857
  19  45.1305
  20  0.0111124
  21  43.5424
  22  3.5337
  23  9.95885e-06
  24  33.9981
  25  2.06502
  26  0.00495401
  27  5.14014e-06
  28  39.6218
  29  0.162025
  30  0.196883
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  2.176e+00  1.760e+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.009e+00  1.969e-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.482e-01  1.620e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.99
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 2.11e-08 +/- 1.71e-08
Energy Flux (Fixed Index): 1.53e-05 +/- 1.24e-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) = 5651.01737359
delta logL = 0.0202913024305

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5651.01443084
delta logL = 0.0232340504535

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0281       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7199       1.0000          .0000       5.0000    
     3 'Normalizat'    .85387       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0065       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=   5651.014     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      197 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0266        72.536        .72629E-02   -.86182E-04
   2  alpha         1.7184        3.9240        .44024       -.20279E-04
   3  Normalizat    .85402        .20949        .44309E-01   -.10644E-04
   4  Prefactor     1.0062        .12974        .43891E-01   -.82748E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.02656
  alpha      = 1.71842
  Normalizat = 0.854024
  Prefactor  = 1.00621
 **********
 **   18 **HESSE 
 **********

 FCN=   5651.014     FROM HESSE     STATUS=OK            33 CALLS      230 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0266        1.9566        .88520E-04   -1.5423    
   2  alpha         1.7184        .93732        .19331E-01   -.31796    
   3  Normalizat    .85402        .18280        .22284E-03   -.98095    
   4  Prefactor     1.0062        .22908        .25961E-03   -.92523    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16497e-09
Minuit parameter uncertainties:
  1  1.95668
  2  0.963539
  3  0.182933
  4  0.229304
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/953618': 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) = 5651.014428
delta logL = 0.0232368927227

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  2.027e+00  1.957e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.718e+00  9.635e-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.006e+00  2.293e-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.540e-01  1.829e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.03
Ra Dec: 193.307 53.017
Photon Index (Free Index): 1.72 +/- 0.96
Photon Flux (Free Index): 1.53e-08 +/- 2.59e-08
Energy Flux (Free Index): 1.76e-05 +/- 2.07e-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/953618/cmap_HighResolution_268617601_268876801_4FGL_J1253.2+5301_daily_bin113.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.11e-08', energy_flux2='1.76e-05', photon_flux_error='1.71e-08', dlogl='2.32e-02', energy_flux='1.53e-05', photon_flux2='1.53e-08', job_status='DONE', time_completed='2021-09-06 07:33:57.380758', photon_index_error2='0.96', photon_index2='1.72', ts='6.99', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='2.07e-05', EG='0.85', time_epoch_completed='1630938837.38', return_code='0', job_id='953618', GAL2='1.01', EG2='0.85', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='2.59e-08', ts2='7.03', photon_index='1.93' WHERE bin_id='113' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:33:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 953618: <4FGL_J1253.2+5301_daily_bin113> in cluster <slac> Done

Job <4FGL_J1253.2+5301_daily_bin113> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 07:20:25 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:20:27 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:20:27 2021
Terminated at Mon Sep  6 07:33:58 2021
Results reported at Mon Sep  6 07:33:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin113 193.307 53.0173 268617601 268876801 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 :                                   787.47 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             334.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            813 sec.

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

