/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 1 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 = 7427
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1253.2+5301_daily_bin171
RA = 193.307, Dec = 53.0173
tmin = 283651201, tmax = 283910401
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='953708', job_status='RUN', time_executed='2021-09-06 07:20:45.468257', time_epoch_executed='1630938045.47' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/953708

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/953708/ft1_4FGL_J1253.2+5301_daily_bin171.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/953708/ft2_4FGL_J1253.2+5301_daily_bin171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/953708/ft1_4FGL_J1253.2+5301_daily_bin171.fits outfile=/scratch/kocevski/953708/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin171.fits ra=193.307 dec=53.0173 rad=12.0 tmin=283651201.0 tmax=283910401.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.25
user 3.35
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/953708/ft2_4FGL_J1253.2+5301_daily_bin171.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/953708/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin171.fits evtable="EVENTS" outfile="/scratch/kocevski/953708/ft1_filtered_4FGL_J1253.2+5301_daily_bin171.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.54
user 0.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/953708/ft1_filtered_4FGL_J1253.2+5301_daily_bin171.fits evtable="EVENTS" scfile=/scratch/kocevski/953708/ft2_4FGL_J1253.2+5301_daily_bin171.fits sctable="SC_DATA" expcube=/scratch/kocevski/953708/ltcube_283651201_283910401_4FGL_J1253.2+5301_daily_bin171.fits outfile=/scratch/kocevski/953708/expmap_283651201_283910401_4FGL_J1253.2+5301_daily_bin171.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/953708/ltcube_283651201_283910401_4FGL_J1253.2+5301_daily_bin171.fits
.....................!
real 188.70
user 184.12
sys 4.20

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 210 point sources and 0 extended sources

Setting source of interest to:
4FGL J1253.2+5301 @ 193.307 53.0173

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/953708/ft1_filtered_4FGL_J1253.2+5301_daily_bin171.fits scfile=/scratch/kocevski/953708/ft2_4FGL_J1253.2+5301_daily_bin171.fits outfile=/scratch/kocevski/953708/cmap_283651201_283910401_4FGL_J1253.2+5301_daily_bin171.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/953708/ft1_filtered_4FGL_J1253.2+5301_daily_bin171.fits scfile=/scratch/kocevski/953708/ft2_4FGL_J1253.2+5301_daily_bin171.fits outfile=/scratch/kocevski/953708/cmap_HighResolution_283651201_283910401_4FGL_J1253.2+5301_daily_bin171.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/953708/ft1_filtered_4FGL_J1253.2+5301_daily_bin171.fits evtable="EVENTS" scfile=/scratch/kocevski/953708/ft2_4FGL_J1253.2+5301_daily_bin171.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/953708/Model_4FGL_J1253.2+5301_daily_bin171.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/953708/ft1_filtered_4FGL_J1253.2+5301_daily_bin171.fits.....................!
real 54.65
user 53.29
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4402       1.0000         .10000E-03   10000.    
     2 'norm      '    .10590E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5558       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    10.760       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.3901       1.0000         .10000E-03   10000.    
    11 'norm      '    4.4230       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.5200       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .29881E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    58.969       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    26.791       1.0000         .10000E-03   10000.    
    18 'norm      '    31.525       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.730       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    25.400       1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.9794       1.0000         .10000E-03   10000.    
    25 'norm      '    .42836E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3737       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .68167       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=   6537.934     FROM MIGRAD    STATUS=CONVERGED    205 CALLS     3452 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4425        3.0880        .18600E-06    .19329E-04
   2  norm          .10000E-03    4.3024        .11006E-06** at limit **
   3  Prefactor     .10000E-03    8.6413        .18442E-05** at limit **
   4  Prefactor     1.5560        5.5395       -.15347E-05   -.18907E-03
   5  Prefactor     .10000E-03    7.3002       -.14701E-05** at limit **
   6  norm          .10000E-03    .82013       -.69726E-07** at limit **
   7  Prefactor     .10000E-03    28.325       -.89012E-06** at limit **
   8  norm          10.765        3.0770       -.49757E-06   -.56276E-02
   9  Prefactor     .10000E-03    13.238       -.22508E-05** at limit **
  10  Prefactor     2.3912        3.9645        .64872E-06   -.93479E-04
  11  norm          4.4223        2.3025       -.54573E-07    .10258E-03
  12  Prefactor     .10000E-03    6.1203        .14006E-05** at limit **
  13  norm          2.5210        1.9951        .71723E-07   -.11980E-03
  14  Prefactor     .96988        202.30        .12205E-04   -.70331E-05
  15  Prefactor     58.983        9.0913        .63616E-05   -.30193E-02
  16  Prefactor     .10000E-03    3.1805        .13830E-06** at limit **
  17  norm          26.802        6.5973       -.79967E-05    .29906E-02
  18  norm          31.529        6.8974        .53797E-05    .36303E-02
  19  Prefactor     .10000E-03    15.205        .29547E-05** at limit **
  20  Prefactor     13.748        16.329       -.34166E-04   -.47262E-03
  21  Prefactor     .10000E-03    79.517       -.66940E-05** at limit **
  22  norm          .10000E-03    2.4340        .53726E-07** at limit **
  23  Prefactor     25.413        21.574        .20418E-04   -.21512E-02
  24  Prefactor     9.0071        35.117        .52273E-04    .89934E-03
  25  norm          .10000E-03    8.1803       -.33614E-05** at limit **
  26  norm          .10000E-03    22.867        .17710E-05** at limit **
  27  norm          .10000E-03    11.402       -.23551E-05** at limit **
  28  Prefactor     .10000E-03    39.702       -.51340E-05** at limit **
  29  Normalizat    1.3735        .21001       -.38842E-05   -.32579E-03
  30  Prefactor     .68131        .24187        .32061E-05   -.14788E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.44252
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.55599
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10.7654
  Prefactor  = 0.0001
  Prefactor  = 2.39121
  norm       = 4.42233
  Prefactor  = 0.0001
  norm       = 2.52096
  Prefactor  = 0.969879
  Prefactor  = 58.9835
  Prefactor  = 0.0001
  norm       = 26.8019
  norm       = 31.5292
  Prefactor  = 0.0001
  Prefactor  = 13.7477
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 25.413
  Prefactor  = 9.00706
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.3735
  Prefactor  = 0.68131
 **********
 **   18 **HESSE 
 **********

 FCN=   6537.934     FROM HESSE     STATUS=OK           664 CALLS     4116 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4425        3.0910        .47776E-02   -1.5286    
   2  norm          .10000E-03    4.2444        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.6059        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.5560        5.6006        .85328E-02   -1.5458    
   5  Prefactor     .10000E-03    7.2913        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .80916        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    28.308        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10.765        7.7261        .30536E-02   -1.5052    
   9  Prefactor     .10000E-03    13.204        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.3912        3.9881        .66228E-02   -1.5399    
  11  norm          4.4223        2.3052        .47871E-02   -1.5287    
  12  Prefactor     .10000E-03    6.1215        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.5210        1.9982        .64338E-02   -1.5390    
  14  Prefactor     .96988        194.23        .99163E-02   -1.5511    
  15  Prefactor     58.983        52.128        .13061E-02   -1.4170    
  16  Prefactor     .10000E-03    3.1748        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          26.802        19.551        .19349E-02   -1.4672    
  18  norm          31.529        7.2498        .17841E-02   -1.4584    
  19  Prefactor     .10000E-03    15.190        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.748        17.578        .27024E-02   -1.4966    
  21  Prefactor     .10000E-03    78.357        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.4081        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     25.413        62.040        .19871E-02   -1.4699    
  24  Prefactor     9.0071        56.133        .33439E-02   -1.5108    
  25  norm          .10000E-03    .88776        .43986E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    22.871        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.8275        .57222E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    39.685        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.3735        .17697        .48475E-01   -.81398    
  30  Prefactor     .68131        .20672        .79535E-01   -1.0426    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47581e-06
Minuit parameter uncertainties:
  1  3.09107
  2  9.16135e-06
  3  6.74077e-05
  4  5.6025
  5  2.32742e-05
  6  6.49043e-06
  7  4.21953e-05
  8  7.72684
  9  3.4338e-05
  10  3.98855
  11  2.30522
  12  3.00209e-05
  13  1.99822
  14  27.5401
  15  52.1684
  16  2.28193e-06
  17  19.5557
  18  7.25005
  19  7.49666e-05
  20  17.5845
  21  0.000959827
  22  8.19069e-06
  23  62.1983
  24  45.0331
  25  1.95992e-05
  26  0.000269008
  27  2.74562e-06
  28  0.000403013
  29  0.177052
  30  0.20695
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  2.521e+00  1.998e+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:  6.813e-01  2.069e-01  0.000e+00  1.000e+01 ( 1.000e+00)
666        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
667        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
664   Normalization:  1.374e+00  1.771e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.15
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 2.45e-08 +/- 1.94e-08
Energy Flux (Fixed Index): 1.77e-05 +/- 1.40e-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) = 6537.56963851
delta logL = 0.363922053773

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6537.56075052
delta logL = 0.372810043156

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0745       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5334       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3455       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69804       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=   6537.561     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      266 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0736        27.990        .71693E-02    .82385E-03
   2  alpha         2.5326        3.7166        .25578        .99087E-04
   3  Normalizat    1.3453        .77071E-01    .48857E-01    .14492E-03
   4  Prefactor     .69834        .72718E-01    .78584E-01    .75656E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.07358
  alpha      = 2.53263
  Normalizat = 1.34527
  Prefactor  = 0.698342
 **********
 **   18 **HESSE 
 **********

 FCN=   6537.561     FROM HESSE     STATUS=OK            31 CALLS      297 TOTAL
                     EDM=   .87E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0736        1.9117        .73285E-04   -1.5420    
   2  alpha         2.5326        .70626        .12857E-01    .13051E-01
   3  Normalizat    1.3453        .20458        .21599E-03   -.82225    
   4  Prefactor     .69834        .24222        .34793E-03   -1.0359    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.74353e-11
Minuit parameter uncertainties:
  1  1.9118
  2  0.716008
  3  0.2047
  4  0.242583
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/953708': 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) = 6537.56074746
delta logL = 0.372813100555

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  2.074e+00  1.912e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  2.533e+00  7.160e-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:  6.983e-01  2.426e-01  0.000e+00  1.000e+01 ( 1.000e+00)
666        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
667        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
664   Normalization:  1.345e+00  2.047e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.88
Ra Dec: 193.307 53.017
Photon Index (Free Index): 2.53 +/- 0.72
Photon Flux (Free Index): 5.07e-08 +/- 4.43e-08
Energy Flux (Free Index): 1.55e-05 +/- 1.03e-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/953708/cmap_HighResolution_283651201_283910401_4FGL_J1253.2+5301_daily_bin171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.45e-08', energy_flux2='1.55e-05', photon_flux_error='1.94e-08', dlogl='3.73e-01', energy_flux='1.77e-05', photon_flux2='5.07e-08', job_status='DONE', time_completed='2021-09-06 07:34:35.227188', photon_index_error2='0.72', photon_index2='2.53', ts='4.15', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', energy_flux_error2='1.03e-05', EG='1.37', time_epoch_completed='1630938875.23', return_code='0', job_id='953708', GAL2='0.70', EG2='1.35', return_code2='0', energy_flux_error='1.40e-05', photon_flux_error2='4.43e-08', ts2='4.88', photon_index='1.93' WHERE bin_id='171' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:34:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 953708: <4FGL_J1253.2+5301_daily_bin171> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin171 193.307 53.0173 283651201 283910401 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 :                                 1094 MB
    Average Memory :                             331.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   841 sec.
    Turnaround time :                            843 sec.

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

