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


Performing analysis on: 4FGL_J1253.2+5301_daily_bin19
RA = 193.307, Dec = 53.0173
tmin = 244252801, tmax = 244512001
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='952280', job_status='RUN', time_executed='2021-09-06 07:19:38.812611', time_epoch_executed='1630937978.81' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='19'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/952280

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/952280/ft1_4FGL_J1253.2+5301_daily_bin19.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/952280/ft2_4FGL_J1253.2+5301_daily_bin19.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/952280/ft1_4FGL_J1253.2+5301_daily_bin19.fits outfile=/scratch/kocevski/952280/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin19.fits ra=193.307 dec=53.0173 rad=12.0 tmin=244252801.0 tmax=244512001.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 2.44
user 2.19
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/952280/ft1_filtered_4FGL_J1253.2+5301_daily_bin19.fits" evtable="EVENTS" scfile=/scratch/kocevski/952280/ft2_4FGL_J1253.2+5301_daily_bin19.fits sctable="SC_DATA" outfile=/scratch/kocevski/952280/ltcube_244252801_244512001_4FGL_J1253.2+5301_daily_bin19.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/952280/ft2_4FGL_J1253.2+5301_daily_bin19.fits
.....................!
real 12.23
user 11.83
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/952280/ft1_filtered_4FGL_J1253.2+5301_daily_bin19.fits evtable="EVENTS" scfile=/scratch/kocevski/952280/ft2_4FGL_J1253.2+5301_daily_bin19.fits sctable="SC_DATA" expcube=/scratch/kocevski/952280/ltcube_244252801_244512001_4FGL_J1253.2+5301_daily_bin19.fits outfile=/scratch/kocevski/952280/expmap_244252801_244512001_4FGL_J1253.2+5301_daily_bin19.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/952280/ltcube_244252801_244512001_4FGL_J1253.2+5301_daily_bin19.fits
.....................!
real 190.95
user 185.38
sys 5.03

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/952280/ft1_filtered_4FGL_J1253.2+5301_daily_bin19.fits scfile=/scratch/kocevski/952280/ft2_4FGL_J1253.2+5301_daily_bin19.fits outfile=/scratch/kocevski/952280/cmap_244252801_244512001_4FGL_J1253.2+5301_daily_bin19.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=193.307 yref=53.0173 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/952280/ft1_filtered_4FGL_J1253.2+5301_daily_bin19.fits scfile=/scratch/kocevski/952280/ft2_4FGL_J1253.2+5301_daily_bin19.fits outfile=/scratch/kocevski/952280/cmap_HighResolution_244252801_244512001_4FGL_J1253.2+5301_daily_bin19.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.66
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/952280/ft1_filtered_4FGL_J1253.2+5301_daily_bin19.fits', '/scratch/kocevski/952280/ft2_4FGL_J1253.2+5301_daily_bin19.fits', expMap='/scratch/kocevski/952280/expmap_244252801_244512001_4FGL_J1253.2+5301_daily_bin19.fits', expCube='/scratch/kocevski/952280/ltcube_244252801_244512001_4FGL_J1253.2+5301_daily_bin19.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/952280/Model_4FGL_J1253.2+5301_daily_bin19.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/952280/ft1_filtered_4FGL_J1253.2+5301_daily_bin19.fits
Spacecraft file(s): /scratch/kocevski/952280/ft2_4FGL_J1253.2+5301_daily_bin19.fits
Exposure map: /scratch/kocevski/952280/expmap_244252801_244512001_4FGL_J1253.2+5301_daily_bin19.fits
Exposure cube: /scratch/kocevski/952280/ltcube_244252801_244512001_4FGL_J1253.2+5301_daily_bin19.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/952280/Model_4FGL_J1253.2+5301_daily_bin19.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 4452.65187554

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19263       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.027       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.410       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.4428       1.0000         .10000E-03   10000.    
     6 'norm      '    5.0840       1.0000         .10000E-03   10000.    
     7 'Prefactor '    70.447       1.0000         .10000E-03   10000.    
     8 'norm      '    2.2314       1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.173       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.5493       1.0000         .10000E-03   10000.    
    11 'norm      '    1.4806       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .77552       1.0000         .10000E-03   10000.    
    13 'norm      '    4.1219       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.3297       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.8507       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.227       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.3486       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    8.4042       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    18.865       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .13461E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    13.707       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1936       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .64187       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=   4452.646     FROM MIGRAD    STATUS=CONVERGED    764 CALLS     4616 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .23996        2.9274        .20026E-05   -.10220E-02
   2  norm          .10000E-03    2.6423       -.26602E-06** at limit **
   3  Prefactor     12.908        28.529       -.99535E-05   -.32597E-03
   4  Prefactor     10.409        10.056        .51405E-05    .39229E-04
   5  Prefactor     5.4349        42.539       -.12906E-04   -.62903E-04
   6  norm          5.0840        2.9073       -.33966E-06   -.29118E-03
   7  Prefactor     70.480        64.895        .24750E-04    .13736E-04
   8  norm          2.2331        7.4736       -.68621E-05   -.53642E-03
   9  Prefactor     21.190        29.595        .53404E-05    .13383E-03
  10  Prefactor     7.5487        7.1037       -.50160E-06   -.11154E-03
  11  norm          1.4806        1.5953        .65418E-08    .58447E-04
  12  Prefactor     .66895        18.429       -.25794E-05   -.69947E-05
  13  norm          4.1222        2.6912       -.11206E-06    .45874E-04
  14  Prefactor     6.3085        182.06       -.71650E-04   -.63483E-05
  15  Prefactor     .10000E-03    25.413        .27949E-05** at limit **
  16  Prefactor     .10000E-03    11.046        .75428E-05** at limit **
  17  norm          9.8506        9.9631        .29742E-06    .38616E-04
  18  norm          .10000E-03    2.3683        .85705E-08** at limit **
  19  Prefactor     25.223        30.916       -.31298E-05    .32521E-04
  20  Prefactor     2.3520        25.332        .53016E-05   -.99929E-04
  21  Prefactor     .10000E-03    11.225       -.69883E-05** at limit **
  22  norm          8.4062        4.9891       -.43383E-06    .73547E-05
  23  Prefactor     .10000E-03    25.267        .13461E-05** at limit **
  24  Prefactor     18.854        71.524       -.24301E-04   -.70986E-05
  25  norm          .10000E-03    .51020       -.65179E-08** at limit **
  26  norm          .10000E-03    149.15        .16544E-04** at limit **
  27  norm          13.707        6.9395        .13567E-05   -.19504E-05
  28  Prefactor     .10000E-03    28.151       -.45182E-05** at limit **
  29  Normalizat    1.1936        .20458        .14866E-05   -.86300E-04
  30  Prefactor     .64186        .22682        .28193E-05   -.45140E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.239958
  norm       = 0.0001
  Prefactor  = 12.9077
  Prefactor  = 10.4087
  Prefactor  = 5.43486
  norm       = 5.08399
  Prefactor  = 70.48
  norm       = 2.23312
  Prefactor  = 21.1896
  Prefactor  = 7.54875
  norm       = 1.48056
  Prefactor  = 0.668954
  norm       = 4.12217
  Prefactor  = 6.3085
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.8506
  norm       = 0.0001
  Prefactor  = 25.2233
  Prefactor  = 2.35201
  Prefactor  = 0.0001
  norm       = 8.4062
  Prefactor  = 0.0001
  Prefactor  = 18.8541
  norm       = 0.0001
  norm       = 0.0001
  norm       = 13.7071
  Prefactor  = 0.0001
  Normalizat = 1.19361
  Prefactor  = 0.64186
 **********
 **   18 **HESSE 
 **********

 FCN=   4452.646     FROM HESSE     STATUS=OK           598 CALLS     5214 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .23996        14.988        .18358E-02   -1.5610    
   2  norm          .10000E-03    2.6642        .10589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.908        29.399        .11098E-03   -1.4989    
   4  Prefactor     10.409        10.000        .12418E-03   -1.5063    
   5  Prefactor     5.4349        42.006        .17224E-03   -1.5242    
   6  norm          5.0840        2.9118        .81325E-04   -1.5257    
   7  Prefactor     70.480        64.692        .23914E-03   -1.4027    
   8  norm          2.2331        7.4558        .27521E-03   -1.5409    
   9  Prefactor     21.190        29.427        .87046E-04   -1.4787    
  10  Prefactor     7.5487        7.1054        .14596E-03   -1.5158    
  11  norm          1.4806        1.6001        .84661E-04   -1.5465    
  12  Prefactor     .66895        174.17        .52864E-02   -1.5544    
  13  norm          4.1222        2.6897        .85317E-04   -1.5302    
  14  Prefactor     6.3085        183.06        .15954E-03   -1.5206    
  15  Prefactor     .10000E-03    25.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.8506        9.9661        .12767E-03   -1.5080    
  18  norm          .10000E-03    2.3948        .10020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     25.223        30.952        .79755E-04   -1.4703    
  20  Prefactor     2.3520        24.930        .26748E-03   -1.5401    
  21  Prefactor     .10000E-03    11.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          8.4062        4.9638        .10686E-03   -1.5128    
  23  Prefactor     .10000E-03    25.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     18.854        71.923        .92214E-04   -1.4839    
  25  norm          .10000E-03    .51140        .46543E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    149.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          13.707        6.9330        .10819E-03   -1.4967    
  28  Prefactor     .10000E-03    28.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1936        .23482        .21037E-03   -.86801    
  30  Prefactor     .64186        .25663        .32976E-03   -1.0585    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.25481e-08
Minuit parameter uncertainties:
  1  3.79314
  2  4.36633e-05
  3  29.432
  4  10.0017
  5  30.2483
  6  2.91189
  7  64.7571
  8  7.45894
  9  29.4467
  10  7.10623
  11  1.6001
  12  21.6503
  13  2.68979
  14  68.1968
  15  2.71166e-05
  16  1.58099e-06
  17  9.96775
  18  2.55992e-07
  19  30.9713
  20  15.3226
  21  3.98485e-06
  22  4.96407
  23  2.10066e-05
  24  72.2565
  25  3.6247e-07
  26  0.000201899
  27  6.93336
  28  9.74023e-06
  29  0.235031
  30  0.257105
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  4.122e+00  2.690e+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:  6.419e-01  2.571e-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.194e+00  2.350e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.63
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 4.00e-08 +/- 2.61e-08
Energy Flux (Fixed Index): 2.89e-05 +/- 1.89e-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) = 4452.55568862
delta logL = 0.0901751604442

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4452.55499854
delta logL = 0.0908652464159

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.2059       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7040       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2018       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63789       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=   4452.555     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      196 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.2059        4.6512        .49125E-02    .32385E-03
   2  alpha         1.7040        .76273        .32293        .34251E-05
   3  Normalizat    1.2018        .19274        .34848E-01    .28443E-04
   4  Prefactor     .63789        .22683        .74711E-01   -.11296E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.20592
  alpha      = 1.70398
  Normalizat = 1.20177
  Prefactor  = 0.637886
 **********
 **   18 **HESSE 
 **********

 FCN=   4452.555     FROM HESSE     STATUS=OK            31 CALLS      227 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.2059        2.8069        .88263E-04   -1.5298    
   2  alpha         1.7040        .52083        .12618E-01   -.32405    
   3  Normalizat    1.2018        .21370        .20979E-03   -.86548    
   4  Prefactor     .63789        .25320        .33075E-03   -1.0601    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.74285e-11
Minuit parameter uncertainties:
  1  2.80696
  2  0.525115
  3  0.213857
  4  0.253659
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/952280': 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) = 4452.55499854
delta logL = 0.0908652474891

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  4.206e+00  2.807e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.704e+00  5.251e-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:  6.379e-01  2.537e-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.202e+00  2.139e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.81
Ra Dec: 193.307 53.017
Photon Index (Free Index): 1.70 +/- 0.53
Photon Flux (Free Index): 3.13e-08 +/- 2.80e-08
Energy Flux (Free Index): 3.72e-05 +/- 3.46e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/952280/cmap_HighResolution_244252801_244512001_4FGL_J1253.2+5301_daily_bin19.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.00e-08', energy_flux2='3.72e-05', photon_flux_error='2.61e-08', dlogl='9.09e-02', energy_flux='2.89e-05', photon_flux2='3.13e-08', job_status='DONE', time_completed='2021-09-06 07:31:31.350457', photon_index_error2='0.53', photon_index2='1.70', ts='6.63', fit_tolerance='1e-08', GAL='0.64', photon_index_error='0.00', energy_flux_error2='3.46e-05', EG='1.19', time_epoch_completed='1630938691.35', return_code='0', job_id='952280', GAL2='0.64', EG2='1.20', return_code2='0', energy_flux_error='1.89e-05', photon_flux_error2='2.80e-08', ts2='6.81', photon_index='1.93' WHERE bin_id='19' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:31:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 952280: <4FGL_J1253.2+5301_daily_bin19> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin19 193.307 53.0173 244252801 244512001 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 :                                   710.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             283.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            925 sec.

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

