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


Performing analysis on: 4FGL_J1253.2+5301_daily_bin3
RA = 193.307, Dec = 53.0173
tmin = 240105601, tmax = 240364801
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='952256', job_status='RUN', time_executed='2021-09-06 07:17:24.530495', time_epoch_executed='1630937844.53' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='3'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/952256

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/952256/ft1_4FGL_J1253.2+5301_daily_bin3.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/952256/ft2_4FGL_J1253.2+5301_daily_bin3.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/952256/ft1_4FGL_J1253.2+5301_daily_bin3.fits outfile=/scratch/kocevski/952256/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin3.fits ra=193.307 dec=53.0173 rad=12.0 tmin=240105601.0 tmax=240364801.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.66
user 1.26
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/952256/ft1_filtered_4FGL_J1253.2+5301_daily_bin3.fits evtable="EVENTS" scfile=/scratch/kocevski/952256/ft2_4FGL_J1253.2+5301_daily_bin3.fits sctable="SC_DATA" expcube=/scratch/kocevski/952256/ltcube_240105601_240364801_4FGL_J1253.2+5301_daily_bin3.fits outfile=/scratch/kocevski/952256/expmap_240105601_240364801_4FGL_J1253.2+5301_daily_bin3.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/952256/ltcube_240105601_240364801_4FGL_J1253.2+5301_daily_bin3.fits
.....................!
real 195.95
user 185.12
sys 4.17

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/952256/ft1_filtered_4FGL_J1253.2+5301_daily_bin3.fits scfile=/scratch/kocevski/952256/ft2_4FGL_J1253.2+5301_daily_bin3.fits outfile=/scratch/kocevski/952256/cmap_240105601_240364801_4FGL_J1253.2+5301_daily_bin3.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/952256/ft1_filtered_4FGL_J1253.2+5301_daily_bin3.fits scfile=/scratch/kocevski/952256/ft2_4FGL_J1253.2+5301_daily_bin3.fits outfile=/scratch/kocevski/952256/cmap_HighResolution_240105601_240364801_4FGL_J1253.2+5301_daily_bin3.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3337       1.0000         .10000E-03   10000.    
     2 'norm      '    .78532       1.0000         .10000E-03   10000.    
     3 'Prefactor '    51.950       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.221       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.1074       1.0000         .10000E-03   10000.    
     7 'Prefactor '    55.652       1.0000         .10000E-03   10000.    
     8 'norm      '    .10132E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    29.583       1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.700       1.0000         .10000E-03   10000.    
    11 'norm      '    .30530       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.6721       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .51727       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    55.345       1.0000         .10000E-03   10000.    
    21 'Prefactor '    41.419       1.0000         .10000E-03   10000.    
    22 'norm      '    .10988E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    73.654       1.0000         .10000E-03   10000.    
    24 'Prefactor '    45.973       1.0000         .10000E-03   10000.    
    25 'norm      '    2.0251       1.0000         .10000E-03   10000.    
    26 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0773       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .74866       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4110.461     FROM MIGRAD    STATUS=CONVERGED    775 CALLS     4024 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3338        4.2098        .81543E-06    .77347E-05
   2  norm          .80781        6.9916        .94367E-06   -.24888E-03
   3  Prefactor     51.952        37.289       -.50137E-06   -.13452E-04
   4  Prefactor     12.215        11.959       -.22686E-07   -.61085E-04
   5  Prefactor     .10000E-03    32.114       -.85701E-06** at limit **
   6  norm          3.1076        3.4182       -.44198E-07   -.15212E-03
   7  Prefactor     55.629        69.914       -.28332E-05   -.11924E-03
   8  norm          .10000E-03    10.778       -.10373E-05** at limit **
   9  Prefactor     29.587        26.790       -.60862E-06    .39184E-04
  10  Prefactor     14.704        9.9351       -.55253E-06   -.31970E-03
  11  norm          .30273        3.4929        .12748E-05   -.52845E-03
  12  Prefactor     .10000E-03    26.237       -.43234E-06** at limit **
  13  norm          2.6720        3.0959        .25524E-05   -.26575E-03
  14  Prefactor     .10000E-03    28.449       -.74607E-06** at limit **
  15  Prefactor     .10000E-03    24.859       -.26238E-07** at limit **
  16  Prefactor     .10000E-03    3.4914       -.15549E-07** at limit **
  17  norm          .10000E-03    10.648        .12080E-05** at limit **
  18  norm          .50115        3.5704       -.16386E-06    .76651E-04
  19  Prefactor     .10000E-03    24.108       -.42273E-06** at limit **
  20  Prefactor     55.325        31.656        .77110E-06    .50332E-04
  21  Prefactor     41.394        43.840       -.18981E-05   -.14144E-03
  22  norm          .10005E-03    4.1972       -.20590E-06** at limit **
  23  Prefactor     73.600        72.961       -.54708E-05   -.22164E-03
  24  Prefactor     45.993        45.276        .22642E-05    .11679E-03
  25  norm          2.0253        2.0132        .11163E-06    .41916E-04
  26  norm          .10000E-03    38.239        .17854E-05** at limit **
  27  norm          .10000E-03    2.8756       -.13453E-06** at limit **
  28  Prefactor     .10000E-03    18.067        .54098E-06** at limit **
  29  Normalizat    1.0770        .21949        .12668E-05   -.19144E-03
  30  Prefactor     .74903        .23851       -.29088E-05   -.25482E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.33381
  norm       = 0.807812
  Prefactor  = 51.9517
  Prefactor  = 12.2146
  Prefactor  = 0.0001
  norm       = 3.10756
  Prefactor  = 55.6293
  norm       = 0.0001
  Prefactor  = 29.5874
  Prefactor  = 14.7039
  norm       = 0.302729
  Prefactor  = 0.0001
  norm       = 2.67202
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.501149
  Prefactor  = 0.0001
  Prefactor  = 55.3254
  Prefactor  = 41.3941
  norm       = 0.000100049
  Prefactor  = 73.5995
  Prefactor  = 45.9934
  norm       = 2.02534
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.07698
  Prefactor  = 0.749025
 **********
 **   18 **HESSE 
 **********

 FCN=   4110.461     FROM HESSE     STATUS=OK           590 CALLS     4614 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3338        4.0840        .20264E-03   -1.5477    
   2  norm          .80781        31.406        .29893E-02   -1.5528    
   3  Prefactor     51.952        36.559        .55644E-04   -1.4265    
   4  Prefactor     12.215        12.435        .11459E-03   -1.5009    
   5  Prefactor     .10000E-03    32.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.1076        3.4099        .11708E-03   -1.5355    
   7  Prefactor     55.629        70.218        .53771E-04   -1.4215    
   8  norm          .10000E-03    11.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     29.587        26.763        .73663E-04   -1.4620    
  10  Prefactor     14.704        9.8212        .10446E-03   -1.4941    
  11  norm          .30273        7.1514        .20159E-02   -1.5598    
  12  Prefactor     .10000E-03    26.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.6720        3.1690        .59562E-03   -1.5381    
  14  Prefactor     .10000E-03    28.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    24.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.4926        .11698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    10.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .50115        11.532        .22561E-02   -1.5566    
  19  Prefactor     .10000E-03    24.124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     55.325        28.365        .53919E-04   -1.4219    
  21  Prefactor     41.394        44.068        .62286E-04   -1.4420    
  22  norm          .10005E-03    80.449        .22122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     73.600        75.400        .23391E-03   -1.3990    
  24  Prefactor     45.993        45.848        .59133E-04   -1.4351    
  25  norm          2.0253        1.9980        .86288E-04   -1.5423    
  26  norm          .10000E-03    38.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    2.9466        .21214E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    18.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0770        .25808        .22294E-03   -.90494    
  30  Prefactor     .74903        .27618        .30999E-03   -1.0164    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.4044e-09
Minuit parameter uncertainties:
  1  4.08483
  2  10.0787
  3  36.5744
  4  12.4373
  5  4.81093e-05
  6  3.41015
  7  70.3223
  8  0.00010564
  9  26.7737
  10  9.82232
  11  2.94265
  12  0.000105179
  13  3.1692
  14  0.000144035
  15  1.23804e-05
  16  3.12734e-06
  17  0.00012222
  18  4.80852
  19  6.71572e-05
  20  28.3716
  21  44.1025
  22  0.00399579
  23  75.498
  24  45.8835
  25  1.99802
  26  0.000397631
  27  8.64695e-06
  28  8.09505e-05
  29  0.258384
  30  0.276689
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  2.672e+00  3.169e+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:  7.490e-01  2.767e-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.077e+00  2.584e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/952256/likelihoodResults_240105601_240364801_4FGL_J1253.2+5301_daily_bin3.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) = 4109.70680639
delta logL = 0.754589323188

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4109.70044015
delta logL = 0.760955561757

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5835       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9978       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0061       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79515       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=   4109.700     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      238 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5838        20.211        .84357E-02    .32156E-03
   2  alpha         2.9979        3.9471        .24064        .47135E-04
   3  Normalizat    1.0063        .63562E-01    .46243E-01   -.83556E-05
   4  Prefactor     .79500        .69687E-01    .68087E-01    .94259E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.58378
  alpha      = 2.99788
  Normalizat = 1.00629
  Prefactor  = 0.795005
 **********
 **   18 **HESSE 
 **********

 FCN=   4109.700     FROM HESSE     STATUS=OK            33 CALLS      271 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5838        2.8121        .55179E-04   -1.5456    
   2  alpha         2.9979        1.0580        .90747E-02    .20049    
   3  Normalizat    1.0063        .24294        .22929E-03   -.92820    
   4  Prefactor     .79500        .27926        .30124E-03   -.99913    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.79988e-09
Minuit parameter uncertainties:
  1  2.81238
  2  1.09402
  3  0.243211
  4  0.279761
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/952256': 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) = 4109.70043938
delta logL = 0.760956332959

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  1.584e+00  2.812e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  2.998e+00  1.094e+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:  7.950e-01  2.798e-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.006e+00  2.432e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.54
Ra Dec: 193.307 53.017
Photon Index (Free Index): 3.00 +/- 1.09
Photon Flux (Free Index): 9.00e-08 +/- 7.72e-08
Energy Flux (Free Index): 1.97e-05 +/- 1.46e-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/952256/cmap_HighResolution_240105601_240364801_4FGL_J1253.2+5301_daily_bin3.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.15e-05', comment='SUCCESS', energy_flux2='1.97e-05', dlogl='7.61e-01', photon_flux2='9.00e-08', job_status='DONE', time_completed='2021-09-06 07:29:46.437241', photon_index_error2='1.09', photon_index2='3.00', ts='1.00', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', photon_flux_upper_limit='9.89e-08', energy_flux_error2='1.46e-05', EG='1.08', time_epoch_completed='1630938586.44', return_code='0', job_id='952256', GAL2='0.80', EG2='1.01', return_code2='0', photon_flux_error2='7.72e-08', ts2='2.54', photon_index='1.93' WHERE bin_id='3' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:29:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 952256: <4FGL_J1253.2+5301_daily_bin3> in cluster <slac> Done

Job <4FGL_J1253.2+5301_daily_bin3> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 07:16:05 2021
Job was executed on host(s) <bullet0289>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:16:07 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:16:07 2021
Terminated at Mon Sep  6 07:29:48 2021
Results reported at Mon Sep  6 07:29:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin3 193.307 53.0173 240105601 240364801 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 :                                   729.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             317.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            823 sec.

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

