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


Performing analysis on: 4FGL_J1253.2+5301_daily_bin1596
RA = 193.307, Dec = 53.0173
tmin = 653011201, tmax = 653270401
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='303832', job_status='RUN', time_executed='2021-09-14 00:34:08.311894', time_epoch_executed='1631604848.31' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='1596'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/303832

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/303832/ft1_4FGL_J1253.2+5301_daily_bin1596.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/303832/ft2_4FGL_J1253.2+5301_daily_bin1596.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/303832/ft1_4FGL_J1253.2+5301_daily_bin1596.fits outfile=/scratch/kocevski/303832/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin1596.fits ra=193.307 dec=53.0173 rad=12.0 tmin=653011201.0 tmax=653270401.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 3.14
user 2.94
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/303832/ft2_4FGL_J1253.2+5301_daily_bin1596.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/303832/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin1596.fits evtable="EVENTS" outfile="/scratch/kocevski/303832/ft1_filtered_4FGL_J1253.2+5301_daily_bin1596.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.53
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/303832/ft1_filtered_4FGL_J1253.2+5301_daily_bin1596.fits" evtable="EVENTS" scfile=/scratch/kocevski/303832/ft2_4FGL_J1253.2+5301_daily_bin1596.fits sctable="SC_DATA" outfile=/scratch/kocevski/303832/ltcube_653011201_653270401_4FGL_J1253.2+5301_daily_bin1596.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/303832/ft2_4FGL_J1253.2+5301_daily_bin1596.fits
.....................!
real 15.15
user 14.77
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/303832/ft1_filtered_4FGL_J1253.2+5301_daily_bin1596.fits evtable="EVENTS" scfile=/scratch/kocevski/303832/ft2_4FGL_J1253.2+5301_daily_bin1596.fits sctable="SC_DATA" expcube=/scratch/kocevski/303832/ltcube_653011201_653270401_4FGL_J1253.2+5301_daily_bin1596.fits outfile=/scratch/kocevski/303832/expmap_653011201_653270401_4FGL_J1253.2+5301_daily_bin1596.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/303832/ltcube_653011201_653270401_4FGL_J1253.2+5301_daily_bin1596.fits
.....................!
real 191.88
user 186.14
sys 5.32

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/303832/ft1_filtered_4FGL_J1253.2+5301_daily_bin1596.fits scfile=/scratch/kocevski/303832/ft2_4FGL_J1253.2+5301_daily_bin1596.fits outfile=/scratch/kocevski/303832/cmap_653011201_653270401_4FGL_J1253.2+5301_daily_bin1596.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/303832/ft1_filtered_4FGL_J1253.2+5301_daily_bin1596.fits scfile=/scratch/kocevski/303832/ft2_4FGL_J1253.2+5301_daily_bin1596.fits outfile=/scratch/kocevski/303832/cmap_HighResolution_653011201_653270401_4FGL_J1253.2+5301_daily_bin1596.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.55
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10313E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.2703       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .49248       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .41522E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    9.0689       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.8112       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.0442       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.1726       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    6.7554       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.0224       1.0000         .10000E-03   10000.    
    25 'norm      '    1.4570       1.0000         .10000E-03   10000.    
    26 'norm      '    4.1738       1.0000         .10000E-03   10000.    
    27 'norm      '    4.2961       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.4048       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .42695       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=   3814.618     FROM MIGRAD    STATUS=CONVERGED   1335 CALLS     3926 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.9446        .13410E-02** at limit **
   2  norm          .10000E-03    15.496        .36285E-03** at limit **
   3  Prefactor     .10000E-03    50.226        .18142E-02** at limit **
   4  Prefactor     5.2735        10.068        .87541E-03    .28006E-04
   5  Prefactor     .10000E-03    9.5660        .18142E-02** at limit **
   6  norm          .49217        3.0756        .21057E-03    .45838E-04
   7  Prefactor     .10000E-03    22.061        .18142E-02** at limit **
   8  norm          .10000E-03    11.025        .18142E-02** at limit **
   9  Prefactor     .10003E-03    392.88        .79848E-02** at limit **
  10  Prefactor     .10000E-03    2.4329        .93942E-03** at limit **
  11  norm          9.0699        3.6254        .69749E-04    .22982E-04
  12  Prefactor     .10000E-03    25.366        .18142E-02** at limit **
  13  norm          5.8111        3.3413        .82519E-04    .82456E-04
  14  Prefactor     .10000E-03    17.516        .18142E-02** at limit **
  15  Prefactor     .10000E-03    32.268        .18142E-02** at limit **
  16  Prefactor     4.0375        11.835        .10025E-02    .14061E-03
  17  norm          .10000E-03    9.3529        .18142E-02** at limit **
  18  norm          1.1712        4.3778        .23870E-03    .30720E-04
  19  Prefactor     .10000E-03    17.314        .18142E-02** at limit **
  20  Prefactor     .10000E-03    15.351        .18142E-02** at limit **
  21  Prefactor     .10000E-03    10.286        .18142E-02** at limit **
  22  norm          6.7572        4.6674        .10581E-03   -.26119E-03
  23  Prefactor     .10000E-03    21.572        .18142E-02** at limit **
  24  Prefactor     4.0269        134.96        .20107E-03    .17245E-05
  25  norm          1.4570        1.4010        .69247E-04    .27746E-04
  26  norm          4.1444        232.82        .19728E-03    .59617E-04
  27  norm          4.2963        5.0778        .13705E-03    .27337E-03
  28  Prefactor     .10000E-03    51.769        .18142E-02** at limit **
  29  Normalizat    1.4047        .24723        .18970E-03   -.24446E-03
  30  Prefactor     .42703        .27830        .38813E-03   -.76714E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.27348
  Prefactor  = 0.0001
  norm       = 0.492175
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100035
  Prefactor  = 0.0001
  norm       = 9.06986
  Prefactor  = 0.0001
  norm       = 5.81107
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 4.03755
  norm       = 0.0001
  norm       = 1.17121
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.75724
  Prefactor  = 0.0001
  Prefactor  = 4.02689
  norm       = 1.45701
  norm       = 4.14445
  norm       = 4.29626
  Prefactor  = 0.0001
  Normalizat = 1.40468
  Prefactor  = 0.427028
 **********
 **   18 **HESSE 
 **********

 FCN=   3814.618     FROM HESSE     STATUS=OK           558 CALLS     4484 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.9447        .26821E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    15.497        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    50.227        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.2735        10.066        .35016E-04   -1.5249    
   5  Prefactor     .10000E-03    9.5660        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .49217        3.0750        .84227E-05   -1.5568    
   7  Prefactor     .10000E-03    22.061        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    11.029        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10003E-03    407.04        .31939E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.4329        .18788E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          9.0699        3.6237        .27900E-05   -1.5106    
  12  Prefactor     .10000E-03    25.369        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.8111        3.3413        .33007E-05   -1.5226    
  14  Prefactor     .10000E-03    17.517        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    32.268        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.0375        11.819        .40102E-04   -1.5306    
  17  norm          .10000E-03    9.3533        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.1712        4.3769        .95480E-05   -1.5492    
  19  Prefactor     .10000E-03    17.315        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    15.354        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.286        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          6.7572        4.6668        .42325E-05   -1.5188    
  23  Prefactor     .10000E-03    21.573        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.0269        134.79        .80427E-05   -1.5307    
  25  norm          1.4570        1.4010        .27699E-05   -1.5467    
  26  norm          4.1444        232.81        .78910E-05   -1.5301    
  27  norm          4.2963        5.0761        .54820E-05   -1.5293    
  28  Prefactor     .10000E-03    51.772        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.4047        .24703        .37940E-04   -.80493    
  30  Prefactor     .42703        .27837        .15525E-04   -1.1545    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.04186e-10
Minuit parameter uncertainties:
  1  1.12176e-06
  2  3.84825e-05
  3  4.0818e-05
  4  10.0693
  5  1.62131e-05
  6  2.46036
  7  0.000179377
  8  5.33065e-06
  9  0.00757138
  10  2.86875e-06
  11  3.62381
  12  8.00914e-06
  13  3.34138
  14  5.64783e-05
  15  0.000568514
  16  11.8263
  17  3.72333e-05
  18  4.37807
  19  2.32166e-06
  20  4.40183e-05
  21  5.33599e-05
  22  4.66701
  23  0.000156425
  24  46.7094
  25  1.40103
  26  62.3804
  27  5.07663
  28  0.000206909
  29  0.247241
  30  0.279255
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  5.811e+00  3.341e+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:  4.270e-01  2.793e-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.405e+00  2.472e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.19
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 5.64e-08 +/- 3.24e-08
Energy Flux (Fixed Index): 4.08e-05 +/- 2.34e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3814.17584715
delta logL = 0.442525046475

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3814.16717341
delta logL = 0.451198777838

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3128       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3966       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3734       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .44958       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=   3814.167     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      258 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3105        47.598        .48495E-02    .26328E-03
   2  alpha         2.3961        3.6875        .18598        .57752E-04
   3  Normalizat    1.3733        .11001        .31606E-01    .21667E-04
   4  Prefactor     .44987        .11443        .85447E-01    .31167E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.31054
  alpha      = 2.39613
  Normalizat = 1.37326
  Prefactor  = 0.449873
 **********
 **   18 **HESSE 
 **********

 FCN=   3814.167     FROM HESSE     STATUS=OK            33 CALLS      291 TOTAL
                     EDM=   .98E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3105        3.3923        .63729E-04   -1.5293    
   2  alpha         2.3961        .52885        .76288E-02   -.41561E-01
   3  Normalizat    1.3733        .23430        .19127E-03   -.81405    
   4  Prefactor     .44987        .27659        .37857E-03   -1.1433    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.82555e-12
Minuit parameter uncertainties:
  1  3.39243
  2  0.532882
  3  0.234483
  4  0.277418
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/303832': 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) = 3814.16717001
delta logL = 0.451202181853

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
665    Prefactor:  4.499e-01  2.774e-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.373e+00  2.345e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.04
Ra Dec: 193.307 53.017
Photon Index (Free Index): 2.40 +/- 0.53
Photon Flux (Free Index): 8.37e-08 +/- 4.94e-08
Energy Flux (Free Index): 2.96e-05 +/- 1.80e-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/303832/cmap_HighResolution_653011201_653270401_4FGL_J1253.2+5301_daily_bin1596.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.64e-08', energy_flux2='2.96e-05', photon_flux_error='3.24e-08', dlogl='4.51e-01', energy_flux='4.08e-05', photon_flux2='8.37e-08', job_status='DONE', time_completed='2021-09-14 00:44:47.235638', photon_index_error2='0.53', photon_index2='2.40', ts='6.19', fit_tolerance='1e-08', GAL='0.43', photon_index_error='0.00', energy_flux_error2='1.80e-05', EG='1.40', time_epoch_completed='1631605487.24', return_code='0', job_id='303832', GAL2='0.45', EG2='1.37', return_code2='0', energy_flux_error='2.34e-05', photon_flux_error2='4.94e-08', ts2='7.04', photon_index='1.93' WHERE bin_id='1596' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 00:44:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0171>
Subject: Job 303832: <4FGL_J1253.2+5301_daily_bin1596> in cluster <slac> Done

Job <4FGL_J1253.2+5301_daily_bin1596> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 14 00:30:14 2021
Job was executed on host(s) <bullet0171>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 00:30:17 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 14 00:30:17 2021
Terminated at Tue Sep 14 00:44:48 2021
Results reported at Tue Sep 14 00:44:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin1596 193.307 53.0173 653011201 653270401 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 :                                   641.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            874 sec.

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

