/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 44 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 = 7469
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1253.2+5301_daily_bin618
RA = 193.307, Dec = 53.0173
tmin = 399513601, tmax = 399772801
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='958209', job_status='RUN', time_executed='2021-09-06 07:36:53.324831', time_epoch_executed='1630939013.32' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='618'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/958209

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/958209/ft1_4FGL_J1253.2+5301_daily_bin618.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/958209/ft2_4FGL_J1253.2+5301_daily_bin618.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/958209/ft1_4FGL_J1253.2+5301_daily_bin618.fits outfile=/scratch/kocevski/958209/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin618.fits ra=193.307 dec=53.0173 rad=12.0 tmin=399513601.0 tmax=399772801.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 5.76
user 4.96
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/958209/ft1_filtered_4FGL_J1253.2+5301_daily_bin618.fits evtable="EVENTS" scfile=/scratch/kocevski/958209/ft2_4FGL_J1253.2+5301_daily_bin618.fits sctable="SC_DATA" expcube=/scratch/kocevski/958209/ltcube_399513601_399772801_4FGL_J1253.2+5301_daily_bin618.fits outfile=/scratch/kocevski/958209/expmap_399513601_399772801_4FGL_J1253.2+5301_daily_bin618.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/958209/ltcube_399513601_399772801_4FGL_J1253.2+5301_daily_bin618.fits
.....................!
real 194.92
user 187.03
sys 5.06

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/958209/ft1_filtered_4FGL_J1253.2+5301_daily_bin618.fits scfile=/scratch/kocevski/958209/ft2_4FGL_J1253.2+5301_daily_bin618.fits outfile=/scratch/kocevski/958209/cmap_399513601_399772801_4FGL_J1253.2+5301_daily_bin618.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.69
user 0.37
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/958209/ft1_filtered_4FGL_J1253.2+5301_daily_bin618.fits scfile=/scratch/kocevski/958209/ft2_4FGL_J1253.2+5301_daily_bin618.fits outfile=/scratch/kocevski/958209/cmap_HighResolution_399513601_399772801_4FGL_J1253.2+5301_daily_bin618.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.68
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4691       1.0000         .10000E-03   10000.    
     2 'norm      '    1.5370       1.0000         .10000E-03   10000.    
     3 'Prefactor '    40.304       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.1743       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.842       1.0000         .10000E-03   10000.    
     8 'norm      '    .10194E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.840       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.3591       1.0000         .10000E-03   10000.    
    11 'norm      '    1.1751       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.0240       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .15354       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    23.946       1.0000         .10000E-03   10000.    
    18 'norm      '    3.2372       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.447       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    10.232       1.0000         .10000E-03   10000.    
    23 'Prefactor '    40.761       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    7.2724       1.0000         .10000E-03   10000.    
    26 'norm      '    .11797E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .64166       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.4111       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .59729       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5901.110     FROM MIGRAD    STATUS=CONVERGED    128 CALLS     3288 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4700        3.6450       -.21993E-07    .22213E-03
   2  norm          1.5365        3.0631        .70345E-06    .13942E-03
   3  Prefactor     40.302        1.0269       -.28524E-07    .18413E-03
   4  Prefactor     2.1743        4.3364       -.21425E-05   -.51068E-03
   5  Prefactor     .10001E-03    5.5293       -.11250E-05** at limit **
   6  norm          .10000E-03    2.5688        .56812E-06** at limit **
   7  Prefactor     26.844        1.0030        .11415E-07   -.95152E-04
   8  norm          .10000E-03    9.7081        .40458E-05** at limit **
   9  Prefactor     15.843        1.3432       -.29895E-06    .10703E-02
  10  Prefactor     3.3591        3.3709        .52353E-08    .96779E-04
  11  norm          1.1751        1.1585        .32332E-06    .31177E-05
  12  Prefactor     .10000E-03    4.8680       -.48648E-05** at limit **
  13  norm          1.0240        1.0245       -.33442E-06   -.62872E-05
  14  Prefactor     .10054E-03    338.04       -.25231E-04** at limit **
  15  Prefactor     .10000E-03    39.892        .79239E-05** at limit **
  16  Prefactor     .10001E-03    5.6142       -.20260E-05** at limit **
  17  norm          23.946        1.0136       -.46220E-07    .15281E-03
  18  norm          3.2373        3.0175        .13868E-05    .17611E-04
  19  Prefactor     .10000E-03    3.5115       -.18171E-05** at limit **
  20  Prefactor     18.447        1.0624        .63912E-07    .92797E-03
  21  Prefactor     .10001E-03    7.8730        .82880E-05** at limit **
  22  norm          10.233        3.0994        .90639E-06    .52696E-02
  23  Prefactor     40.749        1.3979       -.23437E-06    .26422E-02
  24  Prefactor     .10000E-03    31.853       -.94107E-05** at limit **
  25  norm          7.2725        2.6732       -.19395E-06   -.62535E-04
  26  norm          .10524E-03    21.192       -.71989E-05** at limit **
  27  norm          .64169        3.9892        .39755E-05    .34891E-04
  28  Prefactor     .10000E-03    22.226        .21463E-05** at limit **
  29  Normalizat    1.4110        .19781       -.72076E-05    .71537E-05
  30  Prefactor     .59747        .23695        .14569E-04    .75048E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.46997
  norm       = 1.53651
  Prefactor  = 40.3023
  Prefactor  = 2.17435
  Prefactor  = 0.000100008
  norm       = 0.0001
  Prefactor  = 26.8436
  norm       = 0.000100002
  Prefactor  = 15.8427
  Prefactor  = 3.35912
  norm       = 1.17509
  Prefactor  = 0.0001
  norm       = 1.02397
  Prefactor  = 0.000100539
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 23.9457
  norm       = 3.23729
  Prefactor  = 0.000100004
  Prefactor  = 18.4472
  Prefactor  = 0.000100008
  norm       = 10.2328
  Prefactor  = 40.7491
  Prefactor  = 0.000100001
  norm       = 7.27249
  norm       = 0.00010524
  norm       = 0.641686
  Prefactor  = 0.0001
  Normalizat = 1.41097
  Prefactor  = 0.597474
 **********
 **   18 **HESSE 
 **********

 FCN=   5901.110     FROM HESSE     STATUS=OK           666 CALLS     3954 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4700        3.9736        .65059E-02   -1.5394    
   2  norm          1.5365        3.1265        .86009E-02   -1.5460    
   3  Prefactor     40.302        24.118        .15785E-02   -1.4437    
   4  Prefactor     2.1743        4.4372        .69810E-02   -1.5413    
   5  Prefactor     .10001E-03    6.2927        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.4533        .32483E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     26.844        38.177        .19331E-02   -1.4671    
   8  norm          .10000E-03    9.5935        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.843        19.719        .25158E-02   -1.4912    
  10  Prefactor     3.3591        3.3693        .55201E-02   -1.5341    
  11  norm          1.1751        1.1587        .10565E-02   -1.5491    
  12  Prefactor     .10000E-03    7.8369        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.0240        .97641        .12681E-01   -1.5506    
  14  Prefactor     .10054E-03    24.942        .14017       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    40.140        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    6.0441        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          23.946        17.720        .20465E-02   -1.4729    
  18  norm          3.2373        3.0262        .56281E-02   -1.5348    
  19  Prefactor     .10000E-03    8.0199        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     18.447        18.622        .23313E-02   -1.4849    
  21  Prefactor     .10001E-03    8.8456        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          10.233        5.5252        .31315E-02   -1.5068    
  23  Prefactor     40.749        57.965        .15696E-02   -1.4430    
  24  Prefactor     .10000E-03    32.090        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          7.2725        2.6750        .37184E-02   -1.5169    
  26  norm          .10524E-03    297.83        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .64169        3.9849        .11836E-01   -1.5548    
  28  Prefactor     .10000E-03    22.273        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.4110        .17650        .46106E-01   -.80312    
  30  Prefactor     .59747        .20772        .81275E-01   -1.0769    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70107e-07
Minuit parameter uncertainties:
  1  3.97403
  2  3.12688
  3  24.1237
  4  4.43789
  5  0.000447301
  6  1.4054e-07
  7  38.2116
  8  0.00025565
  9  19.7267
  10  3.36945
  11  1.15871
  12  8.56127e-06
  13  0.976425
  14  0.00733733
  15  0.000129841
  16  0.000368106
  17  17.724
  18  3.02636
  19  0.00034968
  20  18.6277
  21  0.000530357
  22  5.52552
  23  58.0449
  24  0.00032813
  25  2.675
  26  0.0794036
  27  3.19821
  28  0.000122419
  29  0.176573
  30  0.207986
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  1.024e+00  9.764e-01  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:  5.975e-01  2.080e-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.411e+00  1.766e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.96
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 9.94e-09 +/- 9.48e-09
Energy Flux (Fixed Index): 7.19e-06 +/- 6.85e-06

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) = 5900.69658773
delta logL = 0.413512788449

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5900.69058935
delta logL = 0.419511163679

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .90846       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2162       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4153       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59571       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=   5900.691     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      212 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .90877        .87741        .12838E-01    .27104E-03
   2  alpha         1.2161        .57175        .50000       -.14249E-04
   3  Normalizat    1.4151        .17099        .46050E-01   -.94005E-04
   4  Prefactor     .59598        .20612        .81370E-01   -.61894E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.908769
  alpha      = 1.21613
  Normalizat = 1.41505
  Prefactor  = 0.595976
 **********
 **   18 **HESSE 
 **********

 FCN=   5900.691     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .90877        1.0409        .67675E-03   -1.5517    
   2  alpha         1.2161        .70893        .19824E-01   -.53931    
   3  Normalizat    1.4151        .19634        .20356E-03   -.80194    
   4  Prefactor     .59598        .23609        .36038E-03   -1.0776    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.70451e-11
Minuit parameter uncertainties:
  1  1.04094
  2  0.722514
  3  0.196444
  4  0.236483
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/958209': 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) = 5900.69058859
delta logL = 0.419511929238

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  9.088e-01  1.041e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.216e+00  7.225e-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:  5.960e-01  2.365e-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.415e+00  1.964e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.80
Ra Dec: 193.307 53.017
Photon Index (Free Index): 1.22 +/- 0.72
Photon Flux (Free Index): 5.02e-09 +/- 5.94e-09
Energy Flux (Free Index): 2.13e-05 +/- 3.53e-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/958209/cmap_HighResolution_399513601_399772801_4FGL_J1253.2+5301_daily_bin618.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.94e-09', energy_flux2='2.13e-05', photon_flux_error='9.48e-09', dlogl='4.20e-01', energy_flux='7.19e-06', photon_flux2='5.02e-09', job_status='DONE', time_completed='2021-09-06 07:50:09.766975', photon_index_error2='0.72', photon_index2='1.22', ts='5.96', fit_tolerance='1e-08', GAL='0.60', photon_index_error='0.00', energy_flux_error2='3.53e-05', EG='1.41', time_epoch_completed='1630939809.77', return_code='0', job_id='958209', GAL2='0.60', EG2='1.42', return_code2='0', energy_flux_error='6.85e-06', photon_flux_error2='5.94e-09', ts2='6.80', photon_index='1.93' WHERE bin_id='618' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:50:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 958209: <4FGL_J1253.2+5301_daily_bin618> in cluster <slac> Done

Job <4FGL_J1253.2+5301_daily_bin618> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 07:35:42 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:35:43 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:35:43 2021
Terminated at Mon Sep  6 07:50:10 2021
Results reported at Mon Sep  6 07:50:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin618 193.307 53.0173 399513601 399772801 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 :                                   766.37 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             340.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   867 sec.
    Turnaround time :                            868 sec.

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

