/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 0 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 = 7652
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1253.2+5301_daily_bin426
RA = 193.307, Dec = 53.0173
tmin = 349747201, tmax = 350006401
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='955408', job_status='RUN', time_executed='2021-09-06 07:26:00.669083', time_epoch_executed='1630938360.67' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='426'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/955408

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/955408/ft1_4FGL_J1253.2+5301_daily_bin426.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/955408/ft2_4FGL_J1253.2+5301_daily_bin426.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/955408/ft1_4FGL_J1253.2+5301_daily_bin426.fits outfile=/scratch/kocevski/955408/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin426.fits ra=193.307 dec=53.0173 rad=12.0 tmin=349747201.0 tmax=350006401.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.41
user 3.23
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/955408/ft1_filtered_4FGL_J1253.2+5301_daily_bin426.fits evtable="EVENTS" scfile=/scratch/kocevski/955408/ft2_4FGL_J1253.2+5301_daily_bin426.fits sctable="SC_DATA" expcube=/scratch/kocevski/955408/ltcube_349747201_350006401_4FGL_J1253.2+5301_daily_bin426.fits outfile=/scratch/kocevski/955408/expmap_349747201_350006401_4FGL_J1253.2+5301_daily_bin426.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/955408/ltcube_349747201_350006401_4FGL_J1253.2+5301_daily_bin426.fits
.....................!
real 190.62
user 184.42
sys 5.78

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/955408/ft1_filtered_4FGL_J1253.2+5301_daily_bin426.fits scfile=/scratch/kocevski/955408/ft2_4FGL_J1253.2+5301_daily_bin426.fits outfile=/scratch/kocevski/955408/cmap_349747201_350006401_4FGL_J1253.2+5301_daily_bin426.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.65
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/955408/ft1_filtered_4FGL_J1253.2+5301_daily_bin426.fits scfile=/scratch/kocevski/955408/ft2_4FGL_J1253.2+5301_daily_bin426.fits outfile=/scratch/kocevski/955408/cmap_HighResolution_349747201_350006401_4FGL_J1253.2+5301_daily_bin426.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.60
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .50778       1.0000         .10000E-03   10000.    
     2 'norm      '    3.8336       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.5618       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.2833       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.4909       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.2238       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.158       1.0000         .10000E-03   10000.    
    15 'Prefactor '    33.267       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.9104       1.0000         .10000E-03   10000.    
    18 'norm      '    .34635       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.7547       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.3254       1.0000         .10000E-03   10000.    
    21 'Prefactor '    57.321       1.0000         .10000E-03   10000.    
    22 'norm      '    .68441       1.0000         .10000E-03   10000.    
    23 'Prefactor '    40.221       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    11.792       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    2.4483       1.0000         .10000E-03   10000.    
    28 'Prefactor '    55.543       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .99701       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .74652       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=   6248.625     FROM MIGRAD    STATUS=CONVERGED    778 CALLS     3992 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .50769        1.7288        .86048E-06   -.11384E-03
   2  norm          3.8323        3.4614        .78826E-06   -.36754E-03
   3  Prefactor     .10000E-03    5.1683       -.26040E-08** at limit **
   4  Prefactor     .10000E-03    5.0911        .49586E-07** at limit **
   5  Prefactor     .10000E-03    5.1086       -.20722E-06** at limit **
   6  norm          4.5613        2.0688        .18814E-07   -.74395E-04
   7  Prefactor     .10000E-03    23.276       -.53495E-06** at limit **
   8  norm          .10000E-03    3.2684        .13659E-07** at limit **
   9  Prefactor     6.2809        15.585        .32394E-06   -.11365E-04
  10  Prefactor     .10000E-03    2.0346        .13137E-07** at limit **
  11  norm          3.4915        2.1274        .15465E-07   -.74673E-06
  12  Prefactor     .10000E-03    6.3005        .12276E-09** at limit **
  13  norm          5.2238        2.5651        .28589E-06   -.30383E-03
  14  Prefactor     12.151        37.388       -.81087E-06   -.35251E-04
  15  Prefactor     33.228        37.273       -.20300E-05   -.15281E-03
  16  Prefactor     .10000E-03    6.1020       -.18821E-07** at limit **
  17  norm          5.9111        6.0552        .93365E-07    .78136E-04
  18  norm          .35471        2.3123       -.43996E-06    .45083E-03
  19  Prefactor     8.6848        52.147       -.29013E-05   -.16321E-04
  20  Prefactor     1.3242        40.469       -.68119E-06   -.81936E-04
  21  Prefactor     57.289        42.249        .16574E-05    .17801E-03
  22  norm          .68453        4.1394        .17083E-05   -.10063E-03
  23  Prefactor     40.220        53.538       -.84909E-06   -.21313E-04
  24  Prefactor     .10000E-03    38.824        .27422E-06** at limit **
  25  norm          11.791        2.8317       -.23319E-07    .12047E-04
  26  norm          .10000E-03    23.744        .67862E-06** at limit **
  27  norm          2.4462        5.2399        .12258E-05    .18517E-04
  28  Prefactor     55.540        56.739       -.42274E-06   -.18245E-04
  29  Normalizat    .99727        .15411       -.54852E-06   -.28032E-04
  30  Prefactor     .74631        .17858       -.46293E-06   -.32794E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.507686
  norm       = 3.83226
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.56129
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.28087
  Prefactor  = 0.0001
  norm       = 3.49147
  Prefactor  = 0.0001
  norm       = 5.22382
  Prefactor  = 12.1511
  Prefactor  = 33.228
  Prefactor  = 0.000100003
  norm       = 5.91114
  norm       = 0.354714
  Prefactor  = 8.6848
  Prefactor  = 1.32424
  Prefactor  = 57.2888
  norm       = 0.684533
  Prefactor  = 40.2199
  Prefactor  = 0.0001
  norm       = 11.7912
  norm       = 0.0001
  norm       = 2.44621
  Prefactor  = 55.5401
  Normalizat = 0.997268
  Prefactor  = 0.746305
 **********
 **   18 **HESSE 
 **********

 FCN=   6248.625     FROM HESSE     STATUS=OK           594 CALLS     4586 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .50769        1.7060        .18684E-03   -1.5565    
   2  norm          3.8323        3.4878        .68071E-03   -1.5316    
   3  Prefactor     .10000E-03    5.1730        .17548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.1819        .17400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.1154        .17456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.5613        2.0714        .73004E-04   -1.5281    
   7  Prefactor     .10000E-03    23.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.2941        .13931E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.2809        15.567        .16014E-03   -1.5207    
  10  Prefactor     .10000E-03    2.0551        .11006E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.4915        2.0985        .85701E-04   -1.5334    
  12  Prefactor     .10000E-03    6.3079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.2238        2.5739        .42686E-03   -1.5251    
  14  Prefactor     12.151        37.581        .11488E-03   -1.5011    
  15  Prefactor     33.228        38.177        .69475E-04   -1.4554    
  16  Prefactor     .10000E-03    29.723        .36587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.9111        6.0661        .16518E-03   -1.5222    
  18  norm          .35471        7.7288        .21147E-02   -1.5589    
  19  Prefactor     8.6848        53.574        .13547E-03   -1.5118    
  20  Prefactor     1.3242        35.416        .38183E-03   -1.5478    
  21  Prefactor     57.289        43.400        .52987E-04   -1.4193    
  22  norm          .68453        3.7218        .27454E-03   -1.5543    
  23  Prefactor     40.220        53.245        .63204E-04   -1.4439    
  24  Prefactor     .10000E-03    38.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          11.791        2.8331        .62508E-04   -1.5021    
  26  norm          .10000E-03    23.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          2.4462        5.2165        .23999E-03   -1.5395    
  28  Prefactor     55.540        56.707        .53824E-04   -1.4216    
  29  Normalizat    .99727        .18167        .21042E-03   -.93122    
  30  Prefactor     .74631        .20984        .29586E-03   -1.0174    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59724e-09
Minuit parameter uncertainties:
  1  1.70619
  2  3.48802
  3  2.4094e-06
  4  4.18406e-06
  5  1.46922e-05
  6  2.07144
  7  7.66674e-05
  8  6.28265e-07
  9  15.5769
  10  9.94723e-07
  11  2.09859
  12  3.21569e-06
  13  2.57393
  14  37.6541
  15  38.2048
  16  0.000616875
  17  6.06668
  18  3.31152
  19  43.1977
  20  13.705
  21  43.4244
  22  3.19237
  23  53.3081
  24  9.70072e-06
  25  2.83311
  26  9.85042e-05
  27  5.21745
  28  56.7626
  29  0.181784
  30  0.210064
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  5.224e+00  2.574e+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.463e-01  2.101e-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:  9.973e-01  1.818e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.40
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 5.07e-08 +/- 2.50e-08
Energy Flux (Fixed Index): 3.67e-05 +/- 1.81e-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) = 6245.57697853
delta logL = 3.04804340951

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6245.56765175
delta logL = 3.05737019033

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1484       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0940       1.0000          .0000       5.0000    
     3 'Normalizat'    .87062       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84023       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=   6245.568     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      248 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1480        8.3856        .70283E-02    .28354E-03
   2  alpha         3.0940        1.8908        .12993        .88841E-04
   3  Normalizat    .87076        .68532E-01    .44525E-01    .12812E-04
   4  Prefactor     .84002        .75969E-01    .63299E-01    .16236E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.148
  alpha      = 3.09397
  Normalizat = 0.870763
  Prefactor  = 0.84002
 **********
 **   18 **HESSE 
 **********

 FCN=   6245.568     FROM HESSE     STATUS=OK            33 CALLS      281 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1480        2.1745        .35725E-04   -1.5415    
   2  alpha         3.0940        .58936        .55460E-02    .23988    
   3  Normalizat    .87076        .17808        .22234E-03   -.97495    
   4  Prefactor     .84002        .21489        .27997E-03   -.98270    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.59251e-09
Minuit parameter uncertainties:
  1  2.17463
  2  0.595302
  3  0.1782
  4  0.215103
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/955408': 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) = 6245.56765096
delta logL = 3.05737098579

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  2.148e+00  2.175e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  3.094e+00  5.953e-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:  8.400e-01  2.151e-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.708e-01  1.782e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.77
Ra Dec: 193.307 53.017
Photon Index (Free Index): 3.09 +/- 0.60
Photon Flux (Free Index): 1.47e-07 +/- 5.53e-08
Energy Flux (Free Index): 3.06e-05 +/- 1.05e-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/955408/cmap_HighResolution_349747201_350006401_4FGL_J1253.2+5301_daily_bin426.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.07e-08', energy_flux2='3.06e-05', photon_flux_error='2.50e-08', dlogl='3.06e+00', energy_flux='3.67e-05', photon_flux2='1.47e-07', job_status='DONE', time_completed='2021-09-06 07:40:05.347547', photon_index_error2='0.60', photon_index2='3.09', ts='12.40', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', energy_flux_error2='1.05e-05', EG='1.00', time_epoch_completed='1630939205.35', return_code='0', job_id='955408', GAL2='0.84', EG2='0.87', return_code2='0', energy_flux_error='1.81e-05', photon_flux_error2='5.53e-08', ts2='18.77', photon_index='1.93' WHERE bin_id='426' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:40:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 955408: <4FGL_J1253.2+5301_daily_bin426> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin426 193.307 53.0173 349747201 350006401 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 :                                   837.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             343.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            853 sec.

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

