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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1334
RA = 204.424, Dec = -12.9517
tmin = 585100801, tmax = 585360001
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='805126', job_status='RUN', time_executed='2021-09-08 04:57:58.907407', time_epoch_executed='1631102278.91' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1334'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805126

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805126/ft1_4FGL_J1337.6-1257_daily_bin1334.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805126/ft2_4FGL_J1337.6-1257_daily_bin1334.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805126/ft1_4FGL_J1337.6-1257_daily_bin1334.fits outfile=/scratch/kocevski/805126/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1334.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=585100801.0 tmax=585360001.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.05
user 2.83
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/805126/ft2_4FGL_J1337.6-1257_daily_bin1334.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/805126/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1334.fits evtable="EVENTS" outfile="/scratch/kocevski/805126/ft1_filtered_4FGL_J1337.6-1257_daily_bin1334.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.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/805126/ft1_filtered_4FGL_J1337.6-1257_daily_bin1334.fits" evtable="EVENTS" scfile=/scratch/kocevski/805126/ft2_4FGL_J1337.6-1257_daily_bin1334.fits sctable="SC_DATA" outfile=/scratch/kocevski/805126/ltcube_585100801_585360001_4FGL_J1337.6-1257_daily_bin1334.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/805126/ft2_4FGL_J1337.6-1257_daily_bin1334.fits
.....................!
real 14.49
user 14.13
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805126/ft1_filtered_4FGL_J1337.6-1257_daily_bin1334.fits evtable="EVENTS" scfile=/scratch/kocevski/805126/ft2_4FGL_J1337.6-1257_daily_bin1334.fits sctable="SC_DATA" expcube=/scratch/kocevski/805126/ltcube_585100801_585360001_4FGL_J1337.6-1257_daily_bin1334.fits outfile=/scratch/kocevski/805126/expmap_585100801_585360001_4FGL_J1337.6-1257_daily_bin1334.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/805126/ltcube_585100801_585360001_4FGL_J1337.6-1257_daily_bin1334.fits
.....................!
real 191.81
user 186.39
sys 5.01

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/805126/ft1_filtered_4FGL_J1337.6-1257_daily_bin1334.fits scfile=/scratch/kocevski/805126/ft2_4FGL_J1337.6-1257_daily_bin1334.fits outfile=/scratch/kocevski/805126/cmap_585100801_585360001_4FGL_J1337.6-1257_daily_bin1334.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/805126/ft1_filtered_4FGL_J1337.6-1257_daily_bin1334.fits scfile=/scratch/kocevski/805126/ft2_4FGL_J1337.6-1257_daily_bin1334.fits outfile=/scratch/kocevski/805126/cmap_HighResolution_585100801_585360001_4FGL_J1337.6-1257_daily_bin1334.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/805126/ft1_filtered_4FGL_J1337.6-1257_daily_bin1334.fits evtable="EVENTS" scfile=/scratch/kocevski/805126/ft2_4FGL_J1337.6-1257_daily_bin1334.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/805126/Model_4FGL_J1337.6-1257_daily_bin1334.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/805126/ft1_filtered_4FGL_J1337.6-1257_daily_bin1334.fits.....................!
real 73.95
user 72.52
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/805126/ft1_filtered_4FGL_J1337.6-1257_daily_bin1334.fits', '/scratch/kocevski/805126/ft2_4FGL_J1337.6-1257_daily_bin1334.fits', expMap='/scratch/kocevski/805126/expmap_585100801_585360001_4FGL_J1337.6-1257_daily_bin1334.fits', expCube='/scratch/kocevski/805126/ltcube_585100801_585360001_4FGL_J1337.6-1257_daily_bin1334.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/805126/Model_4FGL_J1337.6-1257_daily_bin1334.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/805126/ft1_filtered_4FGL_J1337.6-1257_daily_bin1334.fits
Spacecraft file(s): /scratch/kocevski/805126/ft2_4FGL_J1337.6-1257_daily_bin1334.fits
Exposure map: /scratch/kocevski/805126/expmap_585100801_585360001_4FGL_J1337.6-1257_daily_bin1334.fits
Exposure cube: /scratch/kocevski/805126/ltcube_585100801_585360001_4FGL_J1337.6-1257_daily_bin1334.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/805126/Model_4FGL_J1337.6-1257_daily_bin1334.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) = 9789.29856431

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .21176E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.4396       1.0000         .10000E-03   10000.    
     3 'norm      '    28.594       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.097       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.6586       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.8845       1.0000         .10000E-03   10000.    
     9 'norm      '    4.2920       1.0000         .10000E-03   10000.    
    10 'norm      '    20.249       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.1369       1.0000         .10000E-03   10000.    
    12 'Prefactor '    40.498       1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.2226       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.646       1.0000         .10000E-03   10000.    
    18 'norm      '    6.2013       1.0000         .10000E-03   10000.    
    19 'norm      '    6.1144       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2065       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .99254       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=   9789.293     FROM MIGRAD    STATUS=CONVERGED    504 CALLS     2528 TOTAL
                     EDM=   .47E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.2445        .43571E-06** at limit **
   2  norm          3.4396        2.1930       -.77098E-08   -.15753E-04
   3  norm          28.595        11.599        .16652E-07   -.18606E-05
   4  norm          .10000E-03    3.4937       -.54111E-06** at limit **
   5  Prefactor     11.097        7.6554        .41199E-08   -.38270E-04
   6  Prefactor     8.6589        6.4226       -.15792E-08   -.22697E-04
   7  Prefactor     .10000E-03    5.6435        .38606E-05** at limit **
   8  norm          1.8845        1.2897        .89510E-08   -.21790E-04
   9  norm          4.2925        2.5910       -.39971E-07   -.26418E-03
  10  norm          20.249        6.9925        .17519E-07   -.11551E-03
  11  Prefactor     6.1390        9.6766       -.12109E-06    .79534E-04
  12  Prefactor     40.499        27.220        .12018E-05    .32361E-04
  13  norm          .10000E-03    23.352       -.68691E-06** at limit **
  14  Prefactor     .10000E-03    4.6822       -.34969E-05** at limit **
  15  norm          .10000E-03    2.6133        .19142E-06** at limit **
  16  Prefactor     2.2230        .85618        .88214E-08   -.72062E-03
  17  Prefactor     12.646        34.601        .45903E-06   -.22801E-05
  18  norm          6.2014        5.8298        .21178E-07   -.12827E-03
  19  norm          6.1145        2.2986        .46683E-08   -.79026E-04
  20  norm          .10000E-03    3.9169        .17184E-05** at limit **
  21  Prefactor     .10000E-03    7.2715       -.22055E-05** at limit **
  22  Normalizat    1.2065        .20819       -.24035E-06   -.51627E-04
  23  Prefactor     .99255        .10992       -.16445E-06   -.65518E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100003
  norm       = 3.43958
  norm       = 28.5945
  norm       = 0.0001
  Prefactor  = 11.0974
  Prefactor  = 8.65889
  Prefactor  = 0.0001
  norm       = 1.88455
  norm       = 4.29254
  norm       = 20.2493
  Prefactor  = 6.13901
  Prefactor  = 40.499
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.22301
  Prefactor  = 12.6465
  norm       = 6.20142
  norm       = 6.11447
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.2065
  Prefactor  = 0.992548
 **********
 **   18 **HESSE 
 **********

 FCN=   9789.293     FROM HESSE     STATUS=OK           378 CALLS     2906 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    13.405        .34234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.4396        2.1971        .11360E-03   -1.5337    
   3  norm          28.595        11.609        .74922E-04   -1.4638    
   4  norm          .10000E-03    3.5001        .18059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.097        7.6559        .12027E-03   -1.5042    
   6  Prefactor     8.6589        6.4358        .13622E-03   -1.5119    
   7  Prefactor     .10000E-03    5.6639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.8845        1.2837        .88009E-04   -1.5433    
   9  norm          4.2925        2.5886        .11656E-03   -1.5294    
  10  norm          20.249        7.0411        .89009E-04   -1.4808    
  11  Prefactor     6.1390        9.6602        .16206E-03   -1.5212    
  12  Prefactor     40.499        27.281        .62988E-04   -1.4434    
  13  norm          .10000E-03    23.458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.6939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.6558        .15610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.2230        4.4660        .13519E-02   -1.5410    
  17  Prefactor     12.646        34.632        .11264E-03   -1.4997    
  18  norm          6.2014        5.8582        .80603E-03   -1.5210    
  19  norm          6.1145        2.2990        .88900E-04   -1.5213    
  20  norm          .10000E-03    3.9569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.2894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2065        .24495        .34882E-03   -.86402    
  23  Prefactor     .99255        .12906        .20633E-03   -.92978    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.37433e-10
Minuit parameter uncertainties:
  1  0.000427913
  2  2.19711
  3  11.6101
  4  7.47564e-07
  5  7.65656
  6  6.43635
  7  1.60119e-06
  8  1.2837
  9  2.58871
  10  7.04138
  11  9.66265
  12  27.2892
  13  5.33116e-06
  14  3.77583e-06
  15  1.2584e-06
  16  4.4667
  17  34.6874
  18  5.85872
  19  2.29905
  20  1.94358e-06
  21  2.53303e-06
  22  0.24518
  23  0.129104
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  2.025e+01  7.041e+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.925e-01  1.291e-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.207e+00  2.452e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 28.47
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 1.23e-07 +/- 4.28e-08
Energy Flux (Fixed Index): 4.44e-05 +/- 1.55e-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) = 9788.48418548
delta logL = 0.808794308292

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9788.41198924
delta logL = 0.880990547155

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    21.147       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8034       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2553       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97914       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=   9788.412     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      216 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.143        8.5456        .21775E-02   -.74243E-05
   2  alpha         1.8023        .36383        .32759       -.19171E-04
   3  Normalizat    1.2557        .20098        .77530E-01    .19011E-04
   4  Prefactor     .97902        .10840        .46006E-01    .60789E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 21.1425
  alpha      = 1.80227
  Normalizat = 1.25565
  Prefactor  = 0.979017
 **********
 **   18 **HESSE 
 **********

 FCN=   9788.412     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.143        7.8826        .87099E-04   -1.4788    
   2  alpha         1.8023        .37446        .12862E-01   -.28285    
   3  Normalizat    1.2557        .23375        .34316E-03   -.84900    
   4  Prefactor     .97902        .12660        .20767E-03   -.93432    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44584e-10
Minuit parameter uncertainties:
  1  7.88294
  2  0.375992
  3  0.233949
  4  0.126635
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805126': 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) = 9788.41198426
delta logL = 0.88099552104

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  2.114e+01  7.883e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.802e+00  3.760e-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.790e-01  1.266e-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.256e+00  2.339e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 30.34
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 1.80 +/- 0.38
Photon Flux (Free Index): 7.82e-08 +/- 4.14e-08
Energy Flux (Free Index): 5.60e-05 +/- 2.49e-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/805126/cmap_HighResolution_585100801_585360001_4FGL_J1337.6-1257_daily_bin1334.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.23e-07', energy_flux2='5.60e-05', photon_flux_error='4.28e-08', dlogl='8.81e-01', energy_flux='4.44e-05', photon_flux2='7.82e-08', job_status='DONE', time_completed='2021-09-08 05:12:04.382285', photon_index_error2='0.38', photon_index2='1.80', ts='28.47', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='2.49e-05', EG='1.21', time_epoch_completed='1631103124.38', return_code='0', job_id='805126', GAL2='0.98', EG2='1.26', return_code2='0', energy_flux_error='1.55e-05', photon_flux_error2='4.14e-08', ts2='30.34', photon_index='2.30' WHERE bin_id='1334' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:12:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0174>
Subject: Job 805126: <4FGL_J1337.6-1257_daily_bin1334> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin1334> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 04:55:37 2021
Job was executed on host(s) <bullet0174>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:57:10 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 04:57:10 2021
Terminated at Wed Sep  8 05:12:05 2021
Results reported at Wed Sep  8 05:12:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1334 204.424 -12.9517 585100801 585360001 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 :                                   732.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             308.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   39 MB
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   897 sec.
    Turnaround time :                            988 sec.

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

