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


Performing analysis on: 4FGL_J1253.2+5301_daily_bin709
RA = 193.307, Dec = 53.0173
tmin = 423100801, tmax = 423360001
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='958343', job_status='RUN', time_executed='2021-09-06 07:37:34.050977', time_epoch_executed='1630939054.05' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='709'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/958343

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/958343/ft1_4FGL_J1253.2+5301_daily_bin709.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/958343/ft2_4FGL_J1253.2+5301_daily_bin709.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/958343/ft1_4FGL_J1253.2+5301_daily_bin709.fits outfile=/scratch/kocevski/958343/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin709.fits ra=193.307 dec=53.0173 rad=12.0 tmin=423100801.0 tmax=423360001.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.29
user 4.77
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/958343/ft2_4FGL_J1253.2+5301_daily_bin709.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/958343/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin709.fits evtable="EVENTS" outfile="/scratch/kocevski/958343/ft1_filtered_4FGL_J1253.2+5301_daily_bin709.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.22
user 0.35
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/958343/ft1_filtered_4FGL_J1253.2+5301_daily_bin709.fits evtable="EVENTS" scfile=/scratch/kocevski/958343/ft2_4FGL_J1253.2+5301_daily_bin709.fits sctable="SC_DATA" expcube=/scratch/kocevski/958343/ltcube_423100801_423360001_4FGL_J1253.2+5301_daily_bin709.fits outfile=/scratch/kocevski/958343/expmap_423100801_423360001_4FGL_J1253.2+5301_daily_bin709.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/958343/ltcube_423100801_423360001_4FGL_J1253.2+5301_daily_bin709.fits
.....................!
real 193.28
user 185.23
sys 4.85

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/958343/ft1_filtered_4FGL_J1253.2+5301_daily_bin709.fits scfile=/scratch/kocevski/958343/ft2_4FGL_J1253.2+5301_daily_bin709.fits outfile=/scratch/kocevski/958343/cmap_423100801_423360001_4FGL_J1253.2+5301_daily_bin709.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.60
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/958343/ft1_filtered_4FGL_J1253.2+5301_daily_bin709.fits scfile=/scratch/kocevski/958343/ft2_4FGL_J1253.2+5301_daily_bin709.fits outfile=/scratch/kocevski/958343/cmap_HighResolution_423100801_423360001_4FGL_J1253.2+5301_daily_bin709.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.67
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.248       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    42.583       1.0000         .10000E-03   10000.    
     6 'norm      '    .12743E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    39.575       1.0000         .10000E-03   10000.    
     8 'norm      '    5.2595       1.0000         .10000E-03   10000.    
     9 'Prefactor '    34.375       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.1607       1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.052       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13139E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.3391       1.0000         .10000E-03   10000.    
    18 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    32.460       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    33.868       1.0000         .10000E-03   10000.    
    22 'norm      '    .10207       1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.210       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    10.249       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.2361       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .80854       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=   4925.494     FROM MIGRAD    STATUS=CONVERGED    784 CALLS     3933 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.7578       -.13005E-06** at limit **
   2  norm          .10000E-03    3.8150       -.15964E-08** at limit **
   3  Prefactor     14.243        15.519        .94848E-07   -.86293E-05
   4  Prefactor     .10000E-03    2.7620       -.17082E-08** at limit **
   5  Prefactor     42.583        27.804        .44966E-07   -.18233E-04
   6  norm          .10000E-03    2.2727        .29298E-05** at limit **
   7  Prefactor     39.575        61.642        .11656E-06   -.29086E-05
   8  norm          5.2595        5.8515        .12688E-06   -.53665E-03
   9  Prefactor     34.373        23.602        .78028E-09   -.86894E-04
  10  Prefactor     .10000E-03    2.0240       -.36897E-10** at limit **
  11  norm          5.1607        2.6554        .19586E-07    .31950E-05
  12  Prefactor     20.050        19.218       -.83827E-07   -.43860E-04
  13  norm          .10000E-03    1.1854       -.17853E-07** at limit **
  14  Prefactor     .10000E-03    39.950        .24356E-07** at limit **
  15  Prefactor     .10000E-03    149.18       -.21648E-06** at limit **
  16  Prefactor     .10000E-03    4.0687        .17804E-08** at limit **
  17  norm          1.3173        64.886        .19260E-04   -.60382E-04
  18  norm          .10000E-03    3.5784       -.26360E-06** at limit **
  19  Prefactor     32.462        37.151       -.54951E-06   -.28686E-04
  20  Prefactor     .10000E-03    9.2558       -.39508E-07** at limit **
  21  Prefactor     33.845        42.304        .36796E-07   -.19693E-03
  22  norm          .11226        2.6824        .13116E-05   -.36753E-03
  23  Prefactor     15.209        36.460        .28129E-06    .98004E-06
  24  Prefactor     .10000E-03    69.460        .16645E-06** at limit **
  25  norm          10.249        3.2783       -.14031E-07   -.89251E-04
  26  norm          .10000E-03    31.742       -.86382E-08** at limit **
  27  norm          .10000E-03    2.2735        .62949E-08** at limit **
  28  Prefactor     .10000E-03    32.920       -.19974E-07** at limit **
  29  Normalizat    1.2363        .19028        .48763E-06   -.68650E-04
  30  Prefactor     .80836        .22945       -.12232E-05   -.37363E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.2426
  Prefactor  = 0.0001
  Prefactor  = 42.5834
  norm       = 0.000100002
  Prefactor  = 39.5752
  norm       = 5.25954
  Prefactor  = 34.3731
  Prefactor  = 0.0001
  norm       = 5.16075
  Prefactor  = 20.0501
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 1.31735
  norm       = 0.000100001
  Prefactor  = 32.4617
  Prefactor  = 0.0001
  Prefactor  = 33.8452
  norm       = 0.112259
  Prefactor  = 15.2087
  Prefactor  = 0.000100003
  norm       = 10.2487
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.23625
  Prefactor  = 0.808363
 **********
 **   18 **HESSE 
 **********

 FCN=   4925.494     FROM HESSE     STATUS=OK           584 CALLS     4517 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.9541        .29823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.8901        .13381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.243        15.504        .10611E-03   -1.4953    
   4  Prefactor     .10000E-03    2.7642        .11389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     42.583        27.795        .61433E-04   -1.4402    
   6  norm          .10000E-03    3.7509        .17228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     39.575        61.647        .63716E-04   -1.4449    
   8  norm          5.2595        5.8971        .17282E-03   -1.5249    
   9  Prefactor     34.373        23.623        .68349E-04   -1.4535    
  10  Prefactor     .10000E-03    2.0283        .97494E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.1607        2.6565        .79403E-04   -1.5254    
  12  Prefactor     20.050        19.224        .89445E-04   -1.4812    
  13  norm          .10000E-03    1.2053        .74597E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    40.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    150.39        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.0787        .13824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.3173        82.983        .18944E-02   -1.5478    
  18  norm          .10000E-03    3.7544        .25988E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     32.462        37.257        .70330E-04   -1.4568    
  20  Prefactor     .10000E-03    9.2798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     33.845        42.572        .68857E-04   -1.4544    
  22  norm          .11226        23.654        .20782E-02   -1.5641    
  23  Prefactor     15.209        36.454        .10270E-03   -1.4928    
  24  Prefactor     .10000E-03    70.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          10.249        3.2784        .69233E-04   -1.5068    
  26  norm          .10000E-03    31.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    2.3008        .10331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    32.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.2363        .21797        .21382E-03   -.85490    
  30  Prefactor     .80836        .26340        .31704E-03   -.99421    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13263e-09
Minuit parameter uncertainties:
  1  2.47595e-05
  2  1.48913e-05
  3  15.5087
  4  1.20556e-06
  5  27.8034
  6  0.00016144
  7  61.7467
  8  5.8977
  9  23.6289
  10  3.32715e-07
  11  2.65656
  12  19.23
  13  1.97181e-06
  14  0.00058662
  15  0.00122213
  16  3.1874e-06
  17  20.9406
  18  9.2386e-05
  19  37.284
  20  1.44611e-05
  21  42.61
  22  3.2589
  23  36.5074
  24  0.0008836
  25  3.27843
  26  0.000108467
  27  4.46331e-07
  28  0.000191622
  29  0.218126
  30  0.263815
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  1.000e-04  1.972e-06  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:  8.084e-01  2.638e-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.236e+00  2.181e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/958343/likelihoodResults_423100801_423360001_4FGL_J1253.2+5301_daily_bin709.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) = 4925.49786652
delta logL = -0.00387881970255

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4925.49398774
delta logL = -4.68880898552e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9395       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2363       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80834       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=   4925.494     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      238 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    11.261        .74770E-02** at limit **
   2  alpha         2.3107        3.5379        .50000        .10798E-06
   3  Normalizat    1.2362        .13864E-01    .21382E-03   -.48230E-03
   4  Prefactor     .80836        .17063E-01    .31704E-03   -.34540E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.31069
  Normalizat = 1.23625
  Prefactor  = 0.808362
 **********
 **   18 **HESSE 
 **********

 FCN=   4925.494     FROM HESSE     STATUS=OK            29 CALLS      267 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.2423        .15304E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3107        3.8438        .50000       -.75796E-01
   3  Normalizat    1.2362        .21244        .42764E-04   -.85490    
   4  Prefactor     .80836        .26123        .63408E-04   -.99421    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10607e-10
Minuit parameter uncertainties:
  1  1.53341e-06
  2  152.43
  3  0.212585
  4  0.261633
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/958343': 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) = 4925.49398506
delta logL = 2.64062418864e-06

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  1.000e-04  1.533e-06  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  2.311e+00  1.524e+02  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:  8.084e-01  2.616e-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.236e+00  2.126e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 193.307 53.017

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/958343/cmap_HighResolution_423100801_423360001_4FGL_J1253.2+5301_daily_bin709.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.44e-05', job_status='DONE', photon_flux_upper_limit='4.76e-08', time_completed='2021-09-06 07:51:40.485427', job_id='958343', GAL2='0.81', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1630939900.49', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='2.64e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='709' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:51:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 958343: <4FGL_J1253.2+5301_daily_bin709> in cluster <slac> Done

Job <4FGL_J1253.2+5301_daily_bin709> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 07:35:49 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:35:50 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:35:50 2021
Terminated at Mon Sep  6 07:51:41 2021
Results reported at Mon Sep  6 07:51:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin709 193.307 53.0173 423100801 423360001 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 :                                   830.09 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             301.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   950 sec.
    Turnaround time :                            952 sec.

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

