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


Performing analysis on: 4FGL_J1253.2+5301_daily_bin101
RA = 193.307, Dec = 53.0173
tmin = 265507201, tmax = 265766401
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='953599', job_status='RUN', time_executed='2021-09-06 07:20:45.255203', time_epoch_executed='1630938045.26' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='101'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/953599

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/953599/ft1_4FGL_J1253.2+5301_daily_bin101.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/953599/ft2_4FGL_J1253.2+5301_daily_bin101.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/953599/ft1_4FGL_J1253.2+5301_daily_bin101.fits outfile=/scratch/kocevski/953599/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin101.fits ra=193.307 dec=53.0173 rad=12.0 tmin=265507201.0 tmax=265766401.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.90
user 1.38
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/953599/ft1_filtered_4FGL_J1253.2+5301_daily_bin101.fits evtable="EVENTS" scfile=/scratch/kocevski/953599/ft2_4FGL_J1253.2+5301_daily_bin101.fits sctable="SC_DATA" expcube=/scratch/kocevski/953599/ltcube_265507201_265766401_4FGL_J1253.2+5301_daily_bin101.fits outfile=/scratch/kocevski/953599/expmap_265507201_265766401_4FGL_J1253.2+5301_daily_bin101.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/953599/ltcube_265507201_265766401_4FGL_J1253.2+5301_daily_bin101.fits
.....................!
real 190.21
user 184.90
sys 4.65

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/953599/ft1_filtered_4FGL_J1253.2+5301_daily_bin101.fits scfile=/scratch/kocevski/953599/ft2_4FGL_J1253.2+5301_daily_bin101.fits outfile=/scratch/kocevski/953599/cmap_265507201_265766401_4FGL_J1253.2+5301_daily_bin101.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.57
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/953599/ft1_filtered_4FGL_J1253.2+5301_daily_bin101.fits scfile=/scratch/kocevski/953599/ft2_4FGL_J1253.2+5301_daily_bin101.fits outfile=/scratch/kocevski/953599/cmap_HighResolution_265507201_265766401_4FGL_J1253.2+5301_daily_bin101.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .51056E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    .76606       1.0000         .10000E-03   10000.    
     3 'Prefactor '    33.149       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.440       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10208E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.069       1.0000         .10000E-03   10000.    
     8 'norm      '    4.2715       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.6558       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.6822       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.4175       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.390       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.3329       1.0000         .10000E-03   10000.    
    17 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .68059       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.481       1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.964       1.0000         .10000E-03   10000.    
    22 'norm      '    1.4476       1.0000         .10000E-03   10000.    
    23 'Prefactor '    17.879       1.0000         .10000E-03   10000.    
    24 'Prefactor '    53.635       1.0000         .10000E-03   10000.    
    25 'norm      '    1.1791       1.0000         .10000E-03   10000.    
    26 'norm      '    70.488       1.0000         .10000E-03   10000.    
    27 'norm      '    1.5847       1.0000         .10000E-03   10000.    
    28 'Prefactor '    9.6250       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0063       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.2930       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=   7985.930     FROM MIGRAD    STATUS=CONVERGED    772 CALLS     4048 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10247E-03    2.9245        .19763E-05** at limit **
   2  norm          .76219        4.5682        .93796E-06   -.13156E-03
   3  Prefactor     33.199        22.136       -.25354E-05   -.93189E-03
   4  Prefactor     10.442        7.2616       -.87100E-07   -.48411E-04
   5  Prefactor     .10000E-03    6.5748       -.10689E-06** at limit **
   6  norm          .10002E-03    .84775        .35670E-06** at limit **
   7  Prefactor     10.068        23.650        .90460E-07   -.23938E-05
   8  norm          4.2715        7.6768       -.13605E-07   -.18790E-03
   9  Prefactor     9.6509        26.519        .45277E-06   -.96600E-04
  10  Prefactor     5.6818        4.8844       -.97760E-07    .15294E-04
  11  norm          .10000E-03    .69449        .63265E-07** at limit **
  12  Prefactor     .10000E-03    6.4319       -.42027E-08** at limit **
  13  norm          2.4173        1.7607        .39701E-08   -.45734E-04
  14  Prefactor     13.386        29.339        .23110E-06   -.68502E-05
  15  Prefactor     .10000E-03    19.131        .77277E-07** at limit **
  16  Prefactor     3.3319        6.6834        .18261E-05    .37480E-03
  17  norm          .10000E-03    9.1811        .32756E-07** at limit **
  18  norm          .67712        2.6439        .37636E-07   -.69468E-04
  19  Prefactor     .10000E-03    9.9764       -.11002E-06** at limit **
  20  Prefactor     15.483        16.221       -.14183E-06    .67604E-05
  21  Prefactor     15.961        29.708        .33726E-06    .52714E-05
  22  norm          1.4468        2.9231        .53433E-07    .72256E-05
  23  Prefactor     17.850        61.204        .23939E-05   -.26716E-04
  24  Prefactor     53.628        43.831        .19797E-06   -.29564E-04
  25  norm          1.1786        1.6840        .31652E-07    .11977E-04
  26  norm          70.492        89.732        .86966E-07    .62279E-05
  27  norm          1.5845        4.2927       -.82270E-07   -.10096E-03
  28  Prefactor     9.6243        34.255        .15246E-06   -.82183E-06
  29  Normalizat    1.0065        .16419       -.55151E-07   -.53583E-03
  30  Prefactor     1.2929        .19174       -.26086E-06   -.45179E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102466
  norm       = 0.762193
  Prefactor  = 33.1988
  Prefactor  = 10.4423
  Prefactor  = 0.0001
  norm       = 0.000100022
  Prefactor  = 10.0684
  norm       = 4.27151
  Prefactor  = 9.65093
  Prefactor  = 5.68176
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.41733
  Prefactor  = 13.3863
  Prefactor  = 0.0001
  Prefactor  = 3.33195
  norm       = 0.0001
  norm       = 0.677125
  Prefactor  = 0.0001
  Prefactor  = 15.483
  Prefactor  = 15.9612
  norm       = 1.44684
  Prefactor  = 17.8502
  Prefactor  = 53.6283
  norm       = 1.17863
  norm       = 70.4916
  norm       = 1.58447
  Prefactor  = 9.62427
  Normalizat = 1.00653
  Prefactor  = 1.29292
 **********
 **   18 **HESSE 
 **********

 FCN=   7985.930     FROM HESSE     STATUS=OK           606 CALLS     4654 TOTAL
                     EDM=   .94E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10247E-03    3.0778        .36291E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .76219        9.0271        .31117E-02   -1.5533    
   3  Prefactor     33.199        24.113        .69597E-04   -1.4555    
   4  Prefactor     10.442        7.3465        .12400E-03   -1.5062    
   5  Prefactor     .10000E-03    6.5801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10002E-03    10.868        .15052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.068        23.634        .12628E-03   -1.5073    
   8  norm          4.2715        7.5539        .19494E-03   -1.5295    
   9  Prefactor     9.6509        26.188        .12896E-03   -1.5087    
  10  Prefactor     5.6818        4.8732        .16851E-03   -1.5231    
  11  norm          .10000E-03    .69943        .72610E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.4399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.4173        1.7592        .98022E-04   -1.5397    
  14  Prefactor     13.386        29.333        .10946E-03   -1.4976    
  15  Prefactor     .10000E-03    19.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.3319        6.7003        .11086E-02   -1.5343    
  17  norm          .10000E-03    9.2386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .67712        4.9064        .26877E-02   -1.5543    
  19  Prefactor     .10000E-03    9.9793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     15.483        15.976        .10179E-03   -1.4921    
  21  Prefactor     15.961        29.521        .10024E-03   -1.4909    
  22  norm          1.4468        2.8392        .19440E-03   -1.5467    
  23  Prefactor     17.850        60.864        .94722E-04   -1.4863    
  24  Prefactor     53.628        43.768        .54767E-04   -1.4242    
  25  norm          1.1786        1.6555        .13052E-03   -1.5491    
  26  norm          70.492        89.344        .47813E-04   -1.4027    
  27  norm          1.5845        4.2370        .27183E-03   -1.5456    
  28  Prefactor     9.6243        34.237        .12917E-03   -1.5087    
  29  Normalizat    1.0065        .19462        .24773E-03   -.92812    
  30  Prefactor     1.2929        .22900        .27783E-03   -.83518    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.42304e-08
Minuit parameter uncertainties:
  1  0.00551046
  2  5.24674
  3  24.1196
  4  7.34709
  5  2.72646e-06
  6  0.000988387
  7  23.656
  8  7.55559
  9  26.2196
  10  4.87358
  11  1.27784e-06
  12  1.41179e-05
  13  1.75921
  14  29.3645
  15  3.21077e-05
  16  6.70176
  17  2.52748e-05
  18  3.64557
  19  5.4743e-06
  20  15.9804
  21  29.5479
  22  2.83951
  23  61.0771
  24  43.794
  25  1.65557
  26  89.515
  27  4.23784
  28  34.3073
  29  0.194762
  30  0.229183
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  2.417e+00  1.759e+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:  1.293e+00  2.292e-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.007e+00  1.948e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.37
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 2.35e-08 +/- 1.71e-08
Energy Flux (Fixed Index): 1.70e-05 +/- 1.23e-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) = 7985.92728981
delta logL = 0.00308573959865

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7985.92724481
delta logL = 0.00313074207133

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4217       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8832       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0078       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2924       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=   7985.927     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      221 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4230        50.221        .65753E-02    .12644E-03
   2  alpha         1.8838        2.8596        .42858        .12241E-04
   3  Normalizat    1.0078        .94161E-01    .46265E-01    .13319E-04
   4  Prefactor     1.2924        .80662E-01    .62828E-01    .53316E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.42305
  alpha      = 1.88377
  Normalizat = 1.00777
  Prefactor  = 1.29239
 **********
 **   18 **HESSE 
 **********

 FCN=   7985.927     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4230        1.7766        .98975E-04   -1.5397    
   2  alpha         1.8838        .59532        .16150E-01   -.24906    
   3  Normalizat    1.0078        .18053        .24760E-03   -.92770    
   4  Prefactor     1.2924        .22617        .27788E-03   -.83534    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39896e-12
Minuit parameter uncertainties:
  1  1.77665
  2  0.601484
  3  0.180639
  4  0.226338
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/953599': 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) = 7985.92724404
delta logL = 0.00313151405953

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  2.423e+00  1.777e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.884e+00  6.015e-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:  1.292e+00  2.263e-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.008e+00  1.806e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.37
Ra Dec: 193.307 53.017
Photon Index (Free Index): 1.88 +/- 0.60
Photon Flux (Free Index): 2.21e-08 +/- 2.28e-08
Energy Flux (Free Index): 1.76e-05 +/- 1.58e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/953599/cmap_HighResolution_265507201_265766401_4FGL_J1253.2+5301_daily_bin101.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.35e-08', energy_flux2='1.76e-05', photon_flux_error='1.71e-08', dlogl='3.13e-03', energy_flux='1.70e-05', photon_flux2='2.21e-08', job_status='DONE', time_completed='2021-09-06 07:37:02.778726', photon_index_error2='0.60', photon_index2='1.88', ts='5.37', fit_tolerance='1e-08', GAL='1.29', photon_index_error='0.00', energy_flux_error2='1.58e-05', EG='1.01', time_epoch_completed='1630939022.78', return_code='0', job_id='953599', GAL2='1.29', EG2='1.01', return_code2='0', energy_flux_error='1.23e-05', photon_flux_error2='2.28e-08', ts2='5.37', photon_index='1.93' WHERE bin_id='101' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:37:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 953599: <4FGL_J1253.2+5301_daily_bin101> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin101 193.307 53.0173 265507201 265766401 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 :                                   972.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             357.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   998 sec.
    Turnaround time :                            999 sec.

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

