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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1588
RA = 204.424, Dec = -12.9517
tmin = 650937601, tmax = 651196801
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='806626', job_status='RUN', time_executed='2021-09-08 05:00:47.270343', time_epoch_executed='1631102447.27' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1588'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/806626

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/806626/ft1_4FGL_J1337.6-1257_daily_bin1588.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/806626/ft2_4FGL_J1337.6-1257_daily_bin1588.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/806626/ft1_4FGL_J1337.6-1257_daily_bin1588.fits outfile=/scratch/kocevski/806626/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1588.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=650937601.0 tmax=651196801.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.77
user 3.38
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/806626/ft2_4FGL_J1337.6-1257_daily_bin1588.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/806626/ft2_4FGL_J1337.6-1257_daily_bin1588.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/806626/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1588.fits evtable="EVENTS" outfile="/scratch/kocevski/806626/ft1_filtered_4FGL_J1337.6-1257_daily_bin1588.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.51
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/806626/ft1_filtered_4FGL_J1337.6-1257_daily_bin1588.fits" evtable="EVENTS" scfile=/scratch/kocevski/806626/ft2_4FGL_J1337.6-1257_daily_bin1588.fits sctable="SC_DATA" outfile=/scratch/kocevski/806626/ltcube_650937601_651196801_4FGL_J1337.6-1257_daily_bin1588.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/806626/ft2_4FGL_J1337.6-1257_daily_bin1588.fits
.....................!
real 15.82
user 15.28
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/806626/ft1_filtered_4FGL_J1337.6-1257_daily_bin1588.fits evtable="EVENTS" scfile=/scratch/kocevski/806626/ft2_4FGL_J1337.6-1257_daily_bin1588.fits sctable="SC_DATA" expcube=/scratch/kocevski/806626/ltcube_650937601_651196801_4FGL_J1337.6-1257_daily_bin1588.fits outfile=/scratch/kocevski/806626/expmap_650937601_651196801_4FGL_J1337.6-1257_daily_bin1588.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/806626/ltcube_650937601_651196801_4FGL_J1337.6-1257_daily_bin1588.fits
.....................!
real 194.83
user 188.73
sys 4.05

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 165 point sources and 0 extended sources

Setting source of interest to:
4FGL J1337.6-1257 @ 204.424 -12.9517

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/806626/ft1_filtered_4FGL_J1337.6-1257_daily_bin1588.fits scfile=/scratch/kocevski/806626/ft2_4FGL_J1337.6-1257_daily_bin1588.fits outfile=/scratch/kocevski/806626/cmap_650937601_651196801_4FGL_J1337.6-1257_daily_bin1588.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=204.424 yref=-12.9517 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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/806626/ft1_filtered_4FGL_J1337.6-1257_daily_bin1588.fits scfile=/scratch/kocevski/806626/ft2_4FGL_J1337.6-1257_daily_bin1588.fits outfile=/scratch/kocevski/806626/cmap_HighResolution_650937601_651196801_4FGL_J1337.6-1257_daily_bin1588.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=204.424 yref=-12.9517 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/806626/ft1_filtered_4FGL_J1337.6-1257_daily_bin1588.fits evtable="EVENTS" scfile=/scratch/kocevski/806626/ft2_4FGL_J1337.6-1257_daily_bin1588.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/806626/Model_4FGL_J1337.6-1257_daily_bin1588.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/806626/ft1_filtered_4FGL_J1337.6-1257_daily_bin1588.fits.....................!
real 72.92
user 71.21
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/806626/ft1_filtered_4FGL_J1337.6-1257_daily_bin1588.fits', '/scratch/kocevski/806626/ft2_4FGL_J1337.6-1257_daily_bin1588.fits', expMap='/scratch/kocevski/806626/expmap_650937601_651196801_4FGL_J1337.6-1257_daily_bin1588.fits', expCube='/scratch/kocevski/806626/ltcube_650937601_651196801_4FGL_J1337.6-1257_daily_bin1588.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/806626/Model_4FGL_J1337.6-1257_daily_bin1588.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1337.6-1257'

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  5.146e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.305e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
265         beta:  1.384e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
266           Eb:  7.541e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/806626/ft1_filtered_4FGL_J1337.6-1257_daily_bin1588.fits
Spacecraft file(s): /scratch/kocevski/806626/ft2_4FGL_J1337.6-1257_daily_bin1588.fits
Exposure map: /scratch/kocevski/806626/expmap_650937601_651196801_4FGL_J1337.6-1257_daily_bin1588.fits
Exposure cube: /scratch/kocevski/806626/ltcube_650937601_651196801_4FGL_J1337.6-1257_daily_bin1588.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/806626/Model_4FGL_J1337.6-1257_daily_bin1588.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) = 9267.79393769

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2620       1.0000         .10000E-03   10000.    
     2 'norm      '    .97110       1.0000         .10000E-03   10000.    
     3 'norm      '    39.008       1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.2126       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.133       1.0000         .10000E-03   10000.    
     8 'norm      '    5.1186       1.0000         .10000E-03   10000.    
     9 'norm      '    4.6878       1.0000         .10000E-03   10000.    
    10 'norm      '    11.117       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.1942       1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.252       1.0000         .10000E-03   10000.    
    13 'norm      '    7.8680       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.6207       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10399       1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.666       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.6119       1.0000         .10000E-03   10000.    
    20 'norm      '    1.6584       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2038       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .90534       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9267.693     FROM MIGRAD    STATUS=CONVERGED    498 CALLS     2662 TOTAL
                     EDM=   .93E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2619        .87241       -.25335E-06   -.57309E-03
   2  norm          .97097        1.7552        .52448E-07    .14181E-04
   3  norm          39.009        14.098        .46022E-06   -.73100E-05
   4  norm          .10000E-03    3.5648       -.48163E-07** at limit **
   5  Prefactor     .10000E-03    3.2801        .54444E-07** at limit **
   6  Prefactor     7.2130        6.8539        .24440E-06   -.32688E-04
   7  Prefactor     12.133        11.615        .42370E-06   -.32254E-04
   8  norm          5.1187        1.7460        .16917E-07   -.78848E-04
   9  norm          4.6879        3.2006        .48813E-06   -.71076E-04
  10  norm          11.117        6.7509        .55334E-07   -.98378E-04
  11  Prefactor     1.1993        22.366        .79866E-05   -.41028E-04
  12  Prefactor     20.254        21.090        .20938E-05   -.46156E-04
  13  norm          7.8685        28.776        .16746E-05   -.10116E-05
  14  Prefactor     .10000E-03    12.197       -.33578E-06** at limit **
  15  norm          3.6207        4.2267       -.23466E-06   -.19423E-03
  16  Prefactor     .10860        1.5704        .20880E-06   -.25079E-03
  17  Prefactor     19.665        28.682       -.63412E-06   -.15417E-04
  18  norm          .10000E-03    1.3739        .12018E-07** at limit **
  19  norm          5.6118        2.4418       -.46851E-06   -.65024E-04
  20  norm          1.6586        6.7630        .36424E-06   -.37208E-05
  21  Prefactor     .10000E-03    8.3763        .94359E-08** at limit **
  22  Normalizat    1.2037        .20631       -.91615E-06   -.14989E-03
  23  Prefactor     .90535        .10573       -.33112E-06   -.25121E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.26192
  norm       = 0.970966
  norm       = 39.009
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.213
  Prefactor  = 12.1333
  norm       = 5.11875
  norm       = 4.68792
  norm       = 11.1169
  Prefactor  = 1.19927
  Prefactor  = 20.2536
  norm       = 7.86849
  Prefactor  = 0.000100001
  norm       = 3.62074
  Prefactor  = 0.108599
  Prefactor  = 19.6652
  norm       = 0.0001
  norm       = 5.61184
  norm       = 1.65857
  Prefactor  = 0.0001
  Normalizat = 1.20371
  Prefactor  = 0.905351
 **********
 **   18 **HESSE 
 **********

 FCN=   9267.693     FROM HESSE     STATUS=OK           384 CALLS     3046 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2619        6.1654        .13656E-02   -1.5407    
   2  norm          .97097        1.4524        .16541E-02   -1.5511    
   3  norm          39.009        14.130        .64175E-04   -1.4458    
   4  norm          .10000E-03    3.5686        .17751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.3047        .17024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.2130        6.8835        .14936E-03   -1.5171    
   7  Prefactor     12.133        11.625        .11500E-03   -1.5011    
   8  norm          5.1187        1.7543        .70428E-04   -1.5255    
   9  norm          4.6879        3.1960        .12544E-03   -1.5275    
  10  norm          11.117        6.7207        .12015E-03   -1.5041    
  11  Prefactor     1.1993        22.613        .41628E-03   -1.5489    
  12  Prefactor     20.254        21.003        .89001E-04   -1.4808    
  13  norm          7.8685        28.787        .14295E-03   -1.5147    
  14  Prefactor     .10000E-03    12.707        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.6207        4.2205        .20256E-03   -1.5327    
  16  Prefactor     .10860        14.321        .22983E-02   -1.5642    
  17  Prefactor     19.665        28.683        .90318E-04   -1.4821    
  18  norm          .10000E-03    1.3775        .11018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.6118        2.4381        .94756E-04   -1.5234    
  20  norm          1.6586        6.8084        .32766E-03   -1.5450    
  21  Prefactor     .10000E-03    8.3949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2037        .24302        .33416E-03   -.86488    
  23  Prefactor     .90535        .12461        .20045E-03   -.95954    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.52788e-10
Minuit parameter uncertainties:
  1  6.16714
  2  1.45247
  3  14.1313
  4  2.51764e-07
  5  4.10435e-07
  6  6.88421
  7  11.6269
  8  1.75427
  9  3.19607
  10  6.72115
  11  10.4193
  12  21.0108
  13  28.8375
  14  0.000269832
  15  4.22089
  16  2.49367
  17  28.7032
  18  7.96576e-07
  19  2.43811
  20  6.72187
  21  8.09064e-06
  22  0.243251
  23  0.124653
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.112e+01  6.721e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.305e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
265         beta:  1.384e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
266           Eb:  7.541e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  9.054e-01  1.247e-01  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  1.204e+00  2.433e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.23
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 6.77e-08 +/- 4.09e-08
Energy Flux (Fixed Index): 2.44e-05 +/- 1.47e-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) = 9267.51721563
delta logL = 0.175794169545

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9267.50979334
delta logL = 0.18321646054

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.3593       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6507       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1791       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91328       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9267.510     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      241 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.3617        82.591        .32750E-02    .21744E-03
   2  alpha         2.6513        3.8246        .36393        .69411E-04
   3  Normalizat    1.1785        .87116E-01    .76162E-01    .57965E-04
   4  Prefactor     .91349        .39609E-01    .45174E-01    .48334E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.36165
  alpha      = 2.65133
  Normalizat = 1.17847
  Prefactor  = 0.91349
 **********
 **   18 **HESSE 
 **********

 FCN=   9267.510     FROM HESSE     STATUS=OK            33 CALLS      274 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.3617        6.8387        .13100E-03   -1.5096    
   2  alpha         2.6513        .60954        .12897E-01    .60568E-01
   3  Normalizat    1.1785        .23074        .33709E-03   -.87271    
   4  Prefactor     .91349        .12086        .19963E-03   -.95671    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.65389e-09
Minuit parameter uncertainties:
  1  6.83932
  2  0.615775
  3  0.230936
  4  0.120898
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/806626': 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) = 9267.50978885
delta logL = 0.183220946721

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  9.362e+00  6.839e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.651e+00  6.158e-01  0.000e+00  5.000e+00 ( 1.000e+00)
265         beta:  1.384e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
266           Eb:  7.541e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  9.135e-01  1.209e-01  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  1.178e+00  2.309e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.69
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 2.65 +/- 0.62
Photon Flux (Free Index): 8.79e-08 +/- 5.38e-08
Energy Flux (Free Index): 2.35e-05 +/- 1.27e-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/806626/cmap_HighResolution_650937601_651196801_4FGL_J1337.6-1257_daily_bin1588.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.77e-08', energy_flux2='2.35e-05', photon_flux_error='4.09e-08', dlogl='1.83e-01', energy_flux='2.44e-05', photon_flux2='8.79e-08', job_status='DONE', time_completed='2021-09-08 05:13:27.029840', photon_index_error2='0.62', photon_index2='2.65', ts='6.23', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='1.27e-05', EG='1.20', time_epoch_completed='1631103207.03', return_code='0', job_id='806626', GAL2='0.91', EG2='1.18', return_code2='0', energy_flux_error='1.47e-05', photon_flux_error2='5.38e-08', ts2='6.69', photon_index='2.30' WHERE bin_id='1588' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:13:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 806626: <4FGL_J1337.6-1257_daily_bin1588> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin1588> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep  8 05:00:26 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 05:00:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 05:00:30 2021
Terminated at Wed Sep  8 05:13:27 2021
Results reported at Wed Sep  8 05:13:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1588 204.424 -12.9517 650937601 651196801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1337.6-1257 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   744.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             331.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   777 sec.
    Turnaround time :                            781 sec.

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

