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


Performing analysis on: 4FGL_J1253.2+5301_daily_bin2
RA = 193.307, Dec = 53.0173
tmin = 239846401, tmax = 240105601
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='952254', job_status='RUN', time_executed='2021-09-06 07:18:56.182437', time_epoch_executed='1630937936.18' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='2'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/952254

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/952254/ft1_4FGL_J1253.2+5301_daily_bin2.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/952254/ft2_4FGL_J1253.2+5301_daily_bin2.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/952254/ft1_4FGL_J1253.2+5301_daily_bin2.fits outfile=/scratch/kocevski/952254/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin2.fits ra=193.307 dec=53.0173 rad=12.0 tmin=239846401.0 tmax=240105601.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.47
user 1.25
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/952254/ft1_filtered_4FGL_J1253.2+5301_daily_bin2.fits evtable="EVENTS" scfile=/scratch/kocevski/952254/ft2_4FGL_J1253.2+5301_daily_bin2.fits sctable="SC_DATA" expcube=/scratch/kocevski/952254/ltcube_239846401_240105601_4FGL_J1253.2+5301_daily_bin2.fits outfile=/scratch/kocevski/952254/expmap_239846401_240105601_4FGL_J1253.2+5301_daily_bin2.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/952254/ltcube_239846401_240105601_4FGL_J1253.2+5301_daily_bin2.fits
.....................!
real 192.39
user 185.79
sys 6.00

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/952254/ft1_filtered_4FGL_J1253.2+5301_daily_bin2.fits scfile=/scratch/kocevski/952254/ft2_4FGL_J1253.2+5301_daily_bin2.fits outfile=/scratch/kocevski/952254/cmap_239846401_240105601_4FGL_J1253.2+5301_daily_bin2.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/952254/ft1_filtered_4FGL_J1253.2+5301_daily_bin2.fits scfile=/scratch/kocevski/952254/ft2_4FGL_J1253.2+5301_daily_bin2.fits outfile=/scratch/kocevski/952254/cmap_HighResolution_239846401_240105601_4FGL_J1253.2+5301_daily_bin2.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/952254/ft1_filtered_4FGL_J1253.2+5301_daily_bin2.fits evtable="EVENTS" scfile=/scratch/kocevski/952254/ft2_4FGL_J1253.2+5301_daily_bin2.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/952254/Model_4FGL_J1253.2+5301_daily_bin2.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/952254/ft1_filtered_4FGL_J1253.2+5301_daily_bin2.fits.....................!
real 41.46
user 39.79
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1747       1.0000         .10000E-03   10000.    
     2 'norm      '    2.1469       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.7341       1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.319       1.0000         .10000E-03   10000.    
     6 'norm      '    .10144E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    37.255       1.0000         .10000E-03   10000.    
     8 'norm      '    1.9970       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.1338       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.3675       1.0000         .10000E-03   10000.    
    12 'Prefactor '    38.999       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .20560E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11350E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    14.438       1.0000         .10000E-03   10000.    
    18 'norm      '    .39646E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.744       1.0000         .10000E-03   10000.    
    20 'Prefactor '    26.879       1.0000         .10000E-03   10000.    
    21 'Prefactor '    25.439       1.0000         .10000E-03   10000.    
    22 'norm      '    24.391       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    91.131       1.0000         .10000E-03   10000.    
    25 'norm      '    2.6810       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .89452       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .97818       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=   4308.824     FROM MIGRAD    STATUS=CONVERGED    752 CALLS     3926 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1746        2.2560       -.14610E-06   -.10936E-03
   2  norm          2.1463        9.5900        .75566E-05   -.52566E-03
   3  Prefactor     .10000E-03    13.619        .40662E-05** at limit **
   4  Prefactor     7.7340        10.483        .35983E-05   -.17566E-03
   5  Prefactor     26.319        33.306        .23388E-05   -.80623E-04
   6  norm          .10000E-03    1.7052        .16560E-07** at limit **
   7  Prefactor     37.242        77.692       -.17375E-04   -.27397E-04
   8  norm          1.9978        11.878       -.66821E-05   -.40548E-03
   9  Prefactor     9.1237        27.724       -.28610E-05    .65210E-04
  10  Prefactor     .10000E-03    4.3754       -.46411E-07** at limit **
  11  norm          2.3671        2.0550        .27454E-07    .14401E-03
  12  Prefactor     38.996        31.292       -.15363E-05    .14773E-03
  13  norm          .10000E-03    1.7026        .78703E-08** at limit **
  14  Prefactor     .10000E-03    47.019        .23165E-04** at limit **
  15  Prefactor     .10000E-03    109.22       -.15385E-04** at limit **
  16  Prefactor     .10000E-03    14.302       -.55710E-05** at limit **
  17  norm          14.422        25.613       -.41884E-05    .61010E-04
  18  norm          .10000E-03    2.8525       -.18593E-05** at limit **
  19  Prefactor     18.773        44.459        .34296E-04    .15064E-03
  20  Prefactor     26.862        31.429       -.90897E-05    .70470E-04
  21  Prefactor     25.431        38.692       -.16420E-04    .49061E-04
  22  norm          24.394        9.3623        .65809E-06    .23673E-03
  23  Prefactor     .10000E-03    41.119       -.32743E-05** at limit **
  24  Prefactor     91.116        63.697       -.12250E-04    .14463E-04
  25  norm          2.6807        2.0966       -.56368E-07   -.84381E-04
  26  norm          .10000E-03    34.141       -.18624E-04** at limit **
  27  norm          .10000E-03    1.9547        .19358E-06** at limit **
  28  Prefactor     .10000E-03    21.119        .83057E-05** at limit **
  29  Normalizat    .89483        .20643        .13911E-05    .20587E-03
  30  Prefactor     .97791        .24263        .14714E-05    .17119E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.17459
  norm       = 2.14627
  Prefactor  = 0.0001
  Prefactor  = 7.73404
  Prefactor  = 26.3189
  norm       = 0.0001
  Prefactor  = 37.242
  norm       = 1.99779
  Prefactor  = 9.12372
  Prefactor  = 0.0001
  norm       = 2.36714
  Prefactor  = 38.9956
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.4222
  norm       = 0.0001
  Prefactor  = 18.7726
  Prefactor  = 26.8616
  Prefactor  = 25.4313
  norm       = 24.3943
  Prefactor  = 0.0001
  Prefactor  = 91.1159
  norm       = 2.68067
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.894828
  Prefactor  = 0.977915
 **********
 **   18 **HESSE 
 **********

 FCN=   4308.824     FROM HESSE     STATUS=OK           580 CALLS     4506 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1746        2.2446        .97501E-04   -1.5413    
   2  norm          2.1463        8.9533        .28125E-03   -1.5415    
   3  Prefactor     .10000E-03    13.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.7340        10.344        .14419E-03   -1.5152    
   5  Prefactor     26.319        33.148        .78087E-04   -1.4681    
   6  norm          .10000E-03    1.7378        .83547E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     37.242        77.661        .65663E-04   -1.4487    
   8  norm          1.9978        11.131        .29311E-03   -1.5425    
   9  Prefactor     9.1237        26.647        .13261E-03   -1.5104    
  10  Prefactor     .10000E-03    4.4242        .13402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.3671        2.0500        .85195E-04   -1.5400    
  12  Prefactor     38.996        31.323        .64183E-04   -1.4458    
  13  norm          .10000E-03    1.7524        .16718E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    47.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    109.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.892        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          14.422        25.606        .10541E-03   -1.4948    
  18  norm          .10000E-03    31.213        .21046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     18.773        44.148        .92510E-04   -1.4841    
  20  Prefactor     26.862        31.467        .77271E-04   -1.4671    
  21  Prefactor     25.431        38.657        .79424E-04   -1.4699    
  22  norm          24.394        9.3690        .81108E-04   -1.4720    
  23  Prefactor     .10000E-03    41.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     91.116        63.825        .42094E-04   -1.3796    
  25  norm          2.6807        2.0888        .80960E-04   -1.5380    
  26  norm          .10000E-03    34.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.9654        .89606E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    21.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .89483        .24202        .23871E-03   -.96642    
  30  Prefactor     .97791        .28354        .28078E-03   -.93469    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22751e-09
Minuit parameter uncertainties:
  1  2.2447
  2  8.76929
  3  1.18267e-05
  4  10.3461
  5  33.1711
  6  1.08132e-05
  7  77.8726
  8  9.4337
  9  26.6817
  10  3.0233e-06
  11  2.05007
  12  31.3366
  13  2.70813e-06
  14  4.81523e-05
  15  0.000285392
  16  0.000115743
  17  25.6259
  18  0.0001111
  19  44.2249
  20  31.4861
  21  38.6951
  22  9.36961
  23  0.000195092
  24  63.8733
  25  2.08889
  26  2.50404e-06
  27  1.87034e-05
  28  8.12907e-06
  29  0.242316
  30  0.283973
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
664   Normalization:  8.948e-01  2.423e-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: 5.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.01e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/952254/likelihoodResults_239846401_240105601_4FGL_J1253.2+5301_daily_bin2.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) = 4308.82716926
delta logL = -0.00271136643369

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4308.82445922
delta logL = -1.3261787899e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10708E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9588       1.0000          .0000       5.0000    
     3 'Normalizat'    .89474       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97809       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=   4308.095     FROM MIGRAD    STATUS=CONVERGED    164 CALLS      308 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .18936E-01    .18569E-01    .17234E-02   -.54449E-02
   2  alpha         5.0000        .77427        .50000    ** at limit **
   3  Normalizat    .80451        .24625        .23871E-02    .11495E-03
   4  Prefactor     1.0500        .29057        .28078E-02    .13916E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0189355
  alpha      = 5
  Normalizat = 0.804514
  Prefactor  = 1.04998
 **********
 **   18 **HESSE 
 **********

 FCN=   4308.095     FROM HESSE     STATUS=OK            31 CALLS      339 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .18936E-01    .18126E-01    .81694E-04   -1.5735    
   2  alpha         5.0000        3.4030        .48566E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .80451        .23960        .95486E-04   -.99901    
   4  Prefactor     1.0500        .28865        .11231E-03   -.91082    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44074e-10
Minuit parameter uncertainties:
  1  0.0181255
  2  4.0869e-05
  3  0.239919
  4  0.289076
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/952254': 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) = 4308.09549973
delta logL = 0.728958164304

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  1.894e-02  1.813e-02  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  5.000e+00  4.087e-05  0.000e+00  5.000e+00 ( 1.000e+00)
335         beta:  8.810e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  1.175e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
665    Prefactor:  1.050e+00  2.891e-01  0.000e+00  1.000e+01 ( 1.000e+00)
666        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
667        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
664   Normalization:  8.045e-01  2.399e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.57
Ra Dec: 193.307 53.017
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 6.91e-08 +/- 6.58e-08
Energy Flux (Free Index): 9.46e-06 +/- 9.03e-06

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/952254/cmap_HighResolution_239846401_240105601_4FGL_J1253.2+5301_daily_bin2.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.01e-05', comment='SUCCESS', energy_flux2='9.46e-06', dlogl='7.29e-01', photon_flux2='6.91e-08', job_status='DONE', time_completed='2021-09-06 07:31:21.900741', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='5.55e-08', energy_flux_error2='9.03e-06', EG='0.89', time_epoch_completed='1630938681.9', return_code='0', job_id='952254', GAL2='1.05', EG2='0.80', return_code2='0', photon_flux_error2='6.58e-08', ts2='1.57', photon_index='1.93' WHERE bin_id='2' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:31:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 952254: <4FGL_J1253.2+5301_daily_bin2> in cluster <slac> Done

Job <4FGL_J1253.2+5301_daily_bin2> 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) <bullet0034>, 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:31:22 2021
Results reported at Mon Sep  6 07:31:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin2 193.307 53.0173 239846401 240105601 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 :                                   740.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            917 sec.

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

