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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1077
RA = 204.424, Dec = -12.9517
tmin = 518486401, tmax = 518745601
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='803675', job_status='RUN', time_executed='2021-09-08 04:56:08.466017', time_epoch_executed='1631102168.47' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1077'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/803675

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/803675/ft1_4FGL_J1337.6-1257_daily_bin1077.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/803675/ft2_4FGL_J1337.6-1257_daily_bin1077.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/803675/ft1_4FGL_J1337.6-1257_daily_bin1077.fits outfile=/scratch/kocevski/803675/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1077.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=518486401.0 tmax=518745601.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 6.85
user 6.56
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/803675/ft2_4FGL_J1337.6-1257_daily_bin1077.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/803675/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1077.fits evtable="EVENTS" outfile="/scratch/kocevski/803675/ft1_filtered_4FGL_J1337.6-1257_daily_bin1077.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 1.51
user 0.36
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/803675/ft1_filtered_4FGL_J1337.6-1257_daily_bin1077.fits" evtable="EVENTS" scfile=/scratch/kocevski/803675/ft2_4FGL_J1337.6-1257_daily_bin1077.fits sctable="SC_DATA" outfile=/scratch/kocevski/803675/ltcube_518486401_518745601_4FGL_J1337.6-1257_daily_bin1077.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/803675/ft2_4FGL_J1337.6-1257_daily_bin1077.fits
.....................!
real 14.86
user 14.34
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/803675/ft1_filtered_4FGL_J1337.6-1257_daily_bin1077.fits evtable="EVENTS" scfile=/scratch/kocevski/803675/ft2_4FGL_J1337.6-1257_daily_bin1077.fits sctable="SC_DATA" expcube=/scratch/kocevski/803675/ltcube_518486401_518745601_4FGL_J1337.6-1257_daily_bin1077.fits outfile=/scratch/kocevski/803675/expmap_518486401_518745601_4FGL_J1337.6-1257_daily_bin1077.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/803675/ltcube_518486401_518745601_4FGL_J1337.6-1257_daily_bin1077.fits
.....................!
real 193.35
user 188.02
sys 4.76

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/803675/ft1_filtered_4FGL_J1337.6-1257_daily_bin1077.fits scfile=/scratch/kocevski/803675/ft2_4FGL_J1337.6-1257_daily_bin1077.fits outfile=/scratch/kocevski/803675/cmap_518486401_518745601_4FGL_J1337.6-1257_daily_bin1077.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/803675/ft1_filtered_4FGL_J1337.6-1257_daily_bin1077.fits scfile=/scratch/kocevski/803675/ft2_4FGL_J1337.6-1257_daily_bin1077.fits outfile=/scratch/kocevski/803675/cmap_HighResolution_518486401_518745601_4FGL_J1337.6-1257_daily_bin1077.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/803675/ft1_filtered_4FGL_J1337.6-1257_daily_bin1077.fits evtable="EVENTS" scfile=/scratch/kocevski/803675/ft2_4FGL_J1337.6-1257_daily_bin1077.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/803675/Model_4FGL_J1337.6-1257_daily_bin1077.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/803675/ft1_filtered_4FGL_J1337.6-1257_daily_bin1077.fits.....................!
real 47.20
user 45.52
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.0090       1.0000         .10000E-03   10000.    
     2 'norm      '    4.2656       1.0000         .10000E-03   10000.    
     3 'norm      '    21.477       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.668       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10683E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    59.751       1.0000         .10000E-03   10000.    
     8 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10171E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    17.251       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.395       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.804       1.0000         .10000E-03   10000.    
    15 'norm      '    6.2227       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.7848       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10128E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    13.733       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4658       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .49880       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=   5294.390     FROM MIGRAD    STATUS=CONVERGED    515 CALLS     2515 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.0085        6.9494        .44937E-06   -.86363E-04
   2  norm          4.2656        2.1319        .27406E-07    .17194E-03
   3  norm          21.475        11.432        .95405E-06   -.71371E-04
   4  norm          .10000E-03    4.1328        .27899E-06** at limit **
   5  Prefactor     12.667        10.254       -.12171E-05   -.16154E-03
   6  Prefactor     .10000E-03    19.005        .10046E-04** at limit **
   7  Prefactor     59.729        24.594        .96340E-05   -.35228E-04
   8  norm          .10000E-03    .74107        .14472E-06** at limit **
   9  norm          .10000E-03    3.4798       -.90740E-06** at limit **
  10  norm          17.248        9.0596       -.19579E-05   -.88848E-05
  11  Prefactor     .10000E-03    4.8742        .12617E-06** at limit **
  12  Prefactor     20.303        35.400       -.17965E-04   -.33046E-04
  13  norm          .10000E-03    15.239        .13676E-04** at limit **
  14  Prefactor     13.807        11.894        .74637E-05   -.60621E-05
  15  norm          6.2229        5.2094       -.72880E-06   -.11684E-03
  16  Prefactor     3.7839        4.3527        .11456E-07   -.24369E-03
  17  Prefactor     .10000E-03    16.912       -.24477E-04** at limit **
  18  norm          .10000E-03    4.3607       -.31502E-06** at limit **
  19  norm          .10000E-03    1.2841        .15048E-06** at limit **
  20  norm          13.732        8.4407        .12505E-06   -.41241E-04
  21  Prefactor     .10000E-03    9.0251       -.46961E-06** at limit **
  22  Normalizat    1.4662        .23569       -.35344E-05   -.71927E-04
  23  Prefactor     .49864        .11593        .76520E-06   -.28488E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.00848
  norm       = 4.26564
  norm       = 21.4753
  norm       = 0.0001
  Prefactor  = 12.6667
  Prefactor  = 0.000100001
  Prefactor  = 59.7292
  norm       = 0.0001
  norm       = 0.000100003
  norm       = 17.2482
  Prefactor  = 0.0001
  Prefactor  = 20.3027
  norm       = 0.0001
  Prefactor  = 13.8066
  norm       = 6.22287
  Prefactor  = 3.78395
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 13.7323
  Prefactor  = 0.0001
  Normalizat = 1.46615
  Prefactor  = 0.498642
 **********
 **   18 **HESSE 
 **********

 FCN=   5294.390     FROM HESSE     STATUS=OK           372 CALLS     2887 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.0085        6.9477        .15153E-03   -1.5178    
   2  norm          4.2656        2.1352        .73279E-04   -1.5295    
   3  norm          21.475        11.438        .86428E-04   -1.4781    
   4  norm          .10000E-03    4.1347        .14447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.667        10.258        .11255E-03   -1.4996    
   6  Prefactor     .10000E-03    19.405        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     59.729        24.626        .51904E-04   -1.4161    
   8  norm          .10000E-03    1.2261        .12104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.5230        .13204E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          17.248        9.0419        .96430E-04   -1.4877    
  11  Prefactor     .10000E-03    4.8791        .15683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     20.303        35.426        .88689E-04   -1.4806    
  13  norm          .10000E-03    15.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.807        11.876        .10781E-03   -1.4965    
  15  norm          6.2229        5.2074        .14571E-03   -1.5209    
  16  Prefactor     3.7839        4.3482        .15561E-03   -1.5319    
  17  Prefactor     .10000E-03    16.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.4111        .14827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.9800        .15978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          13.732        8.4308        .10809E-03   -1.4967    
  21  Prefactor     .10000E-03    9.0379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.4662        .26932        .26790E-03   -.78734    
  23  Prefactor     .49864        .13274        .22229E-03   -1.1204    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11894e-09
Minuit parameter uncertainties:
  1  6.94851
  2  2.13522
  3  11.4395
  4  1.13463e-06
  5  10.2592
  6  0.000285291
  7  24.6306
  8  1.84961e-06
  9  0.00019834
  10  9.04265
  11  3.49712e-05
  12  35.4625
  13  2.3922e-06
  14  11.8785
  15  5.20773
  16  4.34859
  17  1.48938e-06
  18  5.09e-06
  19  1.73189e-05
  20  8.43156
  21  8.20988e-06
  22  0.269583
  23  0.132826
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.725e+01  9.043e+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:  4.986e-01  1.328e-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.466e+00  2.696e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.30
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 1.05e-07 +/- 5.50e-08
Energy Flux (Fixed Index): 3.78e-05 +/- 1.98e-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) = 5294.26593336
delta logL = 0.124523753552

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5294.26022885
delta logL = 0.130228255535

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.927       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0219       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4890       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .49236       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5294.260     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      241 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.927        9.3712        .94594E-04   -.55609E-03
   2  alpha         2.0220        .55468        .13206E-01   -.65955E-04
   3  Normalizat    1.4890        .25985        .26645E-03    .41729E-04
   4  Prefactor     .49236        .13150        .22367E-03    .45796E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 17.9274
  alpha      = 2.02199
  Normalizat = 1.48903
  Prefactor  = 0.492357
 **********
 **   18 **HESSE 
 **********

 FCN=   5294.260     FROM HESSE     STATUS=OK            23 CALLS      264 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.927        9.3887        .18919E-04   -1.4861    
   2  alpha         2.0220        .55543        .52823E-03   -.19239    
   3  Normalizat    1.4890        .25999        .10658E-04   -.78087    
   4  Prefactor     .49236        .13158        .89468E-05   -1.1233    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.32796e-10
Minuit parameter uncertainties:
  1  9.38948
  2  0.560286
  3  0.260223
  4  0.131662
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/803675': 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) = 5294.26022884
delta logL = 0.130228268176

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.793e+01  9.389e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.022e+00  5.603e-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:  4.924e-01  1.317e-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.489e+00  2.602e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.64
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 2.02 +/- 0.56
Photon Flux (Free Index): 8.05e-08 +/- 6.34e-08
Energy Flux (Free Index): 4.09e-05 +/- 2.28e-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/803675/cmap_HighResolution_518486401_518745601_4FGL_J1337.6-1257_daily_bin1077.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.05e-07', energy_flux2='4.09e-05', photon_flux_error='5.50e-08', dlogl='1.30e-01', energy_flux='3.78e-05', photon_flux2='8.05e-08', job_status='DONE', time_completed='2021-09-08 05:05:42.948729', photon_index_error2='0.56', photon_index2='2.02', ts='9.30', fit_tolerance='1e-08', GAL='0.50', photon_index_error='0.00', energy_flux_error2='2.28e-05', EG='1.47', time_epoch_completed='1631102742.95', return_code='0', job_id='803675', GAL2='0.49', EG2='1.49', return_code2='0', energy_flux_error='1.98e-05', photon_flux_error2='6.34e-08', ts2='9.64', photon_index='2.30' WHERE bin_id='1077' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:05:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 803675: <4FGL_J1337.6-1257_daily_bin1077> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin1077> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 04:50:47 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:55:43 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:55:43 2021
Terminated at Wed Sep  8 05:05:43 2021
Results reported at Wed Sep  8 05:05:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1077 204.424 -12.9517 518486401 518745601 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 :                                   564.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   602 sec.
    Turnaround time :                            896 sec.

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

