/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 93 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 = 7456
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1253.2+5301_daily_bin993
RA = 193.307, Dec = 53.0173
tmin = 496713601, tmax = 496972801
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='958715', job_status='RUN', time_executed='2021-09-06 07:38:51.821497', time_epoch_executed='1630939131.82' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='993'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/958715

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/958715/ft1_4FGL_J1253.2+5301_daily_bin993.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/958715/ft2_4FGL_J1253.2+5301_daily_bin993.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/958715/ft1_4FGL_J1253.2+5301_daily_bin993.fits outfile=/scratch/kocevski/958715/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin993.fits ra=193.307 dec=53.0173 rad=12.0 tmin=496713601.0 tmax=496972801.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 5.30
user 4.75
sys 0.28

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/958715/ft1_filtered_4FGL_J1253.2+5301_daily_bin993.fits evtable="EVENTS" scfile=/scratch/kocevski/958715/ft2_4FGL_J1253.2+5301_daily_bin993.fits sctable="SC_DATA" expcube=/scratch/kocevski/958715/ltcube_496713601_496972801_4FGL_J1253.2+5301_daily_bin993.fits outfile=/scratch/kocevski/958715/expmap_496713601_496972801_4FGL_J1253.2+5301_daily_bin993.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/958715/ltcube_496713601_496972801_4FGL_J1253.2+5301_daily_bin993.fits
.....................!
real 194.70
user 186.67
sys 4.60

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/958715/ft1_filtered_4FGL_J1253.2+5301_daily_bin993.fits scfile=/scratch/kocevski/958715/ft2_4FGL_J1253.2+5301_daily_bin993.fits outfile=/scratch/kocevski/958715/cmap_496713601_496972801_4FGL_J1253.2+5301_daily_bin993.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.58
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/958715/ft1_filtered_4FGL_J1253.2+5301_daily_bin993.fits scfile=/scratch/kocevski/958715/ft2_4FGL_J1253.2+5301_daily_bin993.fits outfile=/scratch/kocevski/958715/cmap_HighResolution_496713601_496972801_4FGL_J1253.2+5301_daily_bin993.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.80
user 0.39
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.4611       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11307E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .61582       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11167E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    3.1939       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.506       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.2438       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.2718       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.252       1.0000         .10000E-03   10000.    
    17 'norm      '    .10272E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .13013E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10687E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.471       1.0000         .10000E-03   10000.    
    21 'Prefactor '    55.343       1.0000         .10000E-03   10000.    
    22 'norm      '    .13171E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10307E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    55.443       1.0000         .10000E-03   10000.    
    25 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .11085E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .91268       1.0000         .10000E-03   10000.    
    28 'Prefactor '    97.711       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0759       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .68768       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=   4047.064     FROM MIGRAD    STATUS=CONVERGED   1400 CALLS     4635 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7636        .81517E-03** at limit **
   2  norm          .10000E-03    3.6108        .18322E-02** at limit **
   3  Prefactor     9.4622        15.176        .13029E-03    .17975E-04
   4  Prefactor     .10000E-03    3.0863        .10888E-02** at limit **
   5  Prefactor     .10000E-03    9.2192        .18142E-02** at limit **
   6  norm          .61605        1.8215        .14009E-03   -.32419E-04
   7  Prefactor     .10003E-03    57.739        .14283    ** at limit **
   8  norm          3.1971        7.8604        .22673E-03   -.28080E-05
   9  Prefactor     10.492        23.917        .12362E-03   -.10300E-04
  10  Prefactor     .10000E-03    2.5769        .99527E-03** at limit **
  11  norm          3.2440        2.4074        .80869E-04    .67198E-04
  12  Prefactor     .10000E-03    9.0925        .18142E-02** at limit **
  13  norm          2.2719        2.1620        .88715E-04    .30820E-04
  14  Prefactor     .10000E-03    25.951        .18142E-02** at limit **
  15  Prefactor     .10000E-03    31.476        .18142E-02** at limit **
  16  Prefactor     15.246        12.833        .10256E-03    .51214E-04
  17  norm          .10000E-03    8.1435        .17725E-02** at limit **
  18  norm          .10001E-03    10.272        .19983E-02** at limit **
  19  Prefactor     .10001E-03    386.70        .36285E-03** at limit **
  20  Prefactor     10.471        17.241        .12382E-03    .13814E-03
  21  Prefactor     55.291        50.019        .53920E-04   -.38584E-04
  22  norm          .10000E-03    12.900        .21934E-02** at limit **
  23  Prefactor     .10000E-03    21.365        .18142E-02** at limit **
  24  Prefactor     55.422        43.507        .53872E-04    .77618E-04
  25  norm          .10000E-03    1.7949        .12730E-02** at limit **
  26  norm          .10000E-03    42.896        .18142E-02** at limit **
  27  norm          .91335        3.4402        .22395E-03   -.16773E-03
  28  Prefactor     97.784        92.551        .20333E-03   -.56886E-04
  29  Normalizat    1.0760        .23092        .19636E-03    .96444E-04
  30  Prefactor     .68746        .27292        .29842E-03    .17326E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.46219
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.616054
  Prefactor  = 0.000100029
  norm       = 3.19711
  Prefactor  = 10.492
  Prefactor  = 0.0001
  norm       = 3.24401
  Prefactor  = 0.0001
  norm       = 2.27193
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.2457
  norm       = 0.0001
  norm       = 0.000100007
  Prefactor  = 0.000100008
  Prefactor  = 10.4714
  Prefactor  = 55.2912
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 55.4224
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 0.913349
  Prefactor  = 97.7845
  Normalizat = 1.07601
  Prefactor  = 0.687461
 **********
 **   18 **HESSE 
 **********

 FCN=   4047.064     FROM HESSE     STATUS=OK           566 CALLS     5201 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.7639        .16303E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.6185        .36644E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.4622        15.175        .52115E-05   -1.5093    
   4  Prefactor     .10000E-03    3.0865        .21776E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.2195        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .61605        1.8212        .56038E-05   -1.5551    
   7  Prefactor     .10003E-03    57.015        .14423       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.1971        7.8566        .90691E-05   -1.5350    
   9  Prefactor     10.492        23.907        .49446E-05   -1.5060    
  10  Prefactor     .10000E-03    2.5770        .19905E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.2440        2.4074        .32347E-05   -1.5348    
  12  Prefactor     .10000E-03    9.0931        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.2719        2.1619        .35486E-05   -1.5407    
  14  Prefactor     .10000E-03    25.952        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    31.477        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     15.246        12.832        .41022E-05   -1.4927    
  17  norm          .10000E-03    8.1437        .35450E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10001E-03    10.340        .39966E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    386.70        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.471        17.230        .49528E-05   -1.5061    
  21  Prefactor     55.291        50.015        .10784E-04   -1.4219    
  22  norm          .10000E-03    12.962        .43869E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    21.366        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     55.422        43.505        .10774E-04   -1.4218    
  25  norm          .10000E-03    1.7972        .25459E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    42.896        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .91335        3.4398        .89578E-05   -1.5517    
  28  Prefactor     97.784        92.548        .40666E-04   -1.3727    
  29  Normalizat    1.0760        .23111        .39273E-04   -.90526    
  30  Prefactor     .68746        .27318        .11937E-04   -1.0402    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59217e-09
Minuit parameter uncertainties:
  1  1.8291e-06
  2  2.20493e-05
  3  15.1812
  4  4.98537e-07
  5  1.39631e-05
  6  1.82137
  7  0.00259442
  8  7.85918
  9  23.9289
  10  6.65773e-07
  11  2.40745
  12  2.36082e-05
  13  2.16202
  14  0.000176775
  15  0.000159809
  16  12.8347
  17  2.86274e-06
  18  0.000553366
  19  0.00358432
  20  17.2385
  21  50.0527
  22  9.37477e-05
  23  5.5345e-05
  24  43.5304
  25  7.8701e-05
  26  4.17255e-05
  27  3.44054
  28  92.6849
  29  0.231331
  30  0.273712
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  2.272e+00  2.162e+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.875e-01  2.737e-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.076e+00  2.313e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.92
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 2.21e-08 +/- 2.10e-08
Energy Flux (Fixed Index): 1.59e-05 +/- 1.52e-05

TS (Fixed Index): 1.92
Ra Dec: 193.307 53.017
Photon Flux Upper Limit: 7.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.44e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/958715/likelihoodResults_496713601_496972801_4FGL_J1253.2+5301_daily_bin993.txt

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) = 4047.04107008
delta logL = 0.0231610165897

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4047.03435123
delta logL = 0.0298798644653

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5408       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6300       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0774       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68827       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=   4047.034     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      229 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5427        93.930        .64051E-02    .12962E-03
   2  alpha         1.6335        3.6224        .44854        .11020E-04
   3  Normalizat    1.0775        .88776E-01    .39005E-01   -.30468E-05
   4  Prefactor     .68810        .94006E-01    .67427E-01    .15979E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.54274
  alpha      = 1.63352
  Normalizat = 1.07753
  Prefactor  = 0.688103
 **********
 **   18 **HESSE 
 **********

 FCN=   4047.034     FROM HESSE     STATUS=OK            33 CALLS      262 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5427        2.5067        .94855E-04   -1.5389    
   2  alpha         1.6335        1.3069        .16424E-01   -.35394    
   3  Normalizat    1.0775        .21685        .19627E-03   -.90476    
   4  Prefactor     .68810        .27026        .29836E-03   -1.0400    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.76946e-10
Minuit parameter uncertainties:
  1  2.50677
  2  1.38625
  3  0.217031
  4  0.270779
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/958715': 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) = 4047.03434687
delta logL = 0.0298842256066

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  2.543e+00  2.507e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.634e+00  1.386e+00  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.881e-01  2.708e-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.078e+00  2.170e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.97
Ra Dec: 193.307 53.017
Photon Index (Free Index): 1.63 +/- 1.39
Photon Flux (Free Index): 1.77e-08 +/- 2.53e-08
Energy Flux (Free Index): 2.49e-05 +/- 6.38e-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/958715/cmap_HighResolution_496713601_496972801_4FGL_J1253.2+5301_daily_bin993.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.44e-05', comment='SUCCESS', photon_flux='2.21e-08', energy_flux2='2.49e-05', photon_flux_error='2.10e-08', dlogl='2.99e-02', energy_flux='1.59e-05', photon_flux2='1.77e-08', job_status='DONE', time_completed='2021-09-06 07:52:32.449327', photon_index_error2='1.39', photon_index2='1.63', ts='1.92', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', photon_flux_upper_limit='7.52e-08', energy_flux_error2='6.38e-05', EG='1.08', time_epoch_completed='1630939952.45', return_code='0', job_id='958715', GAL2='0.69', EG2='1.08', return_code2='0', energy_flux_error='1.52e-05', photon_flux_error2='2.53e-08', ts2='1.97', photon_index='1.93' WHERE bin_id='993' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:52:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 958715: <4FGL_J1253.2+5301_daily_bin993> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin993 193.307 53.0173 496713601 496972801 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 :                                   786.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             300.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   972 sec.
    Turnaround time :                            974 sec.

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

