/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 96 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 = 7393
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1337.6-1257_daily_bin307
RA = 204.424, Dec = -12.9517
tmin = 318902401, tmax = 319161601
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='797728', job_status='RUN', time_executed='2021-09-08 04:38:37.096845', time_epoch_executed='1631101117.1' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='307'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/797728

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/797728/ft1_4FGL_J1337.6-1257_daily_bin307.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/797728/ft2_4FGL_J1337.6-1257_daily_bin307.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/797728/ft1_4FGL_J1337.6-1257_daily_bin307.fits outfile=/scratch/kocevski/797728/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin307.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=318902401.0 tmax=319161601.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.43
user 3.18
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/797728/ft1_filtered_4FGL_J1337.6-1257_daily_bin307.fits" evtable="EVENTS" scfile=/scratch/kocevski/797728/ft2_4FGL_J1337.6-1257_daily_bin307.fits sctable="SC_DATA" outfile=/scratch/kocevski/797728/ltcube_318902401_319161601_4FGL_J1337.6-1257_daily_bin307.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/797728/ft2_4FGL_J1337.6-1257_daily_bin307.fits
.....................!
real 15.79
user 15.37
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/797728/ft1_filtered_4FGL_J1337.6-1257_daily_bin307.fits evtable="EVENTS" scfile=/scratch/kocevski/797728/ft2_4FGL_J1337.6-1257_daily_bin307.fits sctable="SC_DATA" expcube=/scratch/kocevski/797728/ltcube_318902401_319161601_4FGL_J1337.6-1257_daily_bin307.fits outfile=/scratch/kocevski/797728/expmap_318902401_319161601_4FGL_J1337.6-1257_daily_bin307.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/797728/ltcube_318902401_319161601_4FGL_J1337.6-1257_daily_bin307.fits
.....................!
real 193.75
user 188.31
sys 4.96

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/797728/ft1_filtered_4FGL_J1337.6-1257_daily_bin307.fits scfile=/scratch/kocevski/797728/ft2_4FGL_J1337.6-1257_daily_bin307.fits outfile=/scratch/kocevski/797728/cmap_318902401_319161601_4FGL_J1337.6-1257_daily_bin307.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/797728/ft1_filtered_4FGL_J1337.6-1257_daily_bin307.fits scfile=/scratch/kocevski/797728/ft2_4FGL_J1337.6-1257_daily_bin307.fits outfile=/scratch/kocevski/797728/cmap_HighResolution_318902401_319161601_4FGL_J1337.6-1257_daily_bin307.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.58
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/797728/ft1_filtered_4FGL_J1337.6-1257_daily_bin307.fits evtable="EVENTS" scfile=/scratch/kocevski/797728/ft2_4FGL_J1337.6-1257_daily_bin307.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/797728/Model_4FGL_J1337.6-1257_daily_bin307.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/797728/ft1_filtered_4FGL_J1337.6-1257_daily_bin307.fits.....................!
real 53.51
user 51.77
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13137E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    .97693       1.0000         .10000E-03   10000.    
     3 'norm      '    11.925       1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    39.046       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10316E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10796E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.9697       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10554E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.980       1.0000         .10000E-03   10000.    
    13 'norm      '    33.297       1.0000         .10000E-03   10000.    
    14 'Prefactor '    31.442       1.0000         .10000E-03   10000.    
    15 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3059       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .86869       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=   6243.792     FROM MIGRAD    STATUS=CONVERGED    538 CALLS     2241 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    70.043        .22690E-04** at limit **
   2  norm          .97692        2.5665        .42604E-06    .13385E-03
   3  norm          11.924        12.034        .18584E-06   -.36476E-04
   4  norm          .10000E-03    4.8444        .13841E-06** at limit **
   5  Prefactor     .10000E-03    3.3838        .18075E-06** at limit **
   6  Prefactor     39.045        13.868        .59272E-07    .11117E-03
   7  Prefactor     .10000E-03    9.2148        .20342E-06** at limit **
   8  norm          .10000E-03    .65390        .44705E-06** at limit **
   9  norm          .10000E-03    2.3470        .11649E-06** at limit **
  10  norm          1.9691        7.1533       -.41420E-05    .62955E-04
  11  Prefactor     .10000E-03    23.021        .14259E-05** at limit **
  12  Prefactor     14.977        20.931        .21539E-06    .23189E-05
  13  norm          33.296        30.472        .60674E-07   -.27393E-04
  14  Prefactor     31.446        16.878       -.51001E-06    .25059E-03
  15  norm          .10000E-03    6.3103        .88758E-06** at limit **
  16  Prefactor     .10000E-03    2.8319        .35135E-06** at limit **
  17  Prefactor     .10000E-03    88.943       -.15545E-05** at limit **
  18  norm          .10000E-03    2.5513        .20353E-06** at limit **
  19  norm          .10000E-03    2.3530        .79418E-06** at limit **
  20  norm          .10000E-03    3.4021        .24861E-06** at limit **
  21  Prefactor     .10000E-03    11.006        .34418E-06** at limit **
  22  Normalizat    1.3058        .24095       -.22352E-05   -.10637E-03
  23  Prefactor     .86879        .12481       -.70384E-06    .22556E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  norm       = 0.976921
  norm       = 11.924
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.0453
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 1.96907
  Prefactor  = 0.000100003
  Prefactor  = 14.9772
  norm       = 33.2956
  Prefactor  = 31.4458
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.3058
  Prefactor  = 0.868794
 **********
 **   18 **HESSE 
 **********

 FCN=   6243.792     FROM HESSE     STATUS=OK           364 CALLS     2605 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    68.216        .33900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .97692        2.5233        .19790E-03   -1.5510    
   3  norm          11.924        12.032        .11601E-03   -1.5017    
   4  norm          .10000E-03    4.8500        .16987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.3897        .14199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     39.045        13.930        .64144E-04   -1.4457    
   7  Prefactor     .10000E-03    9.2536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.7842        .12184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.4180        .23685E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.9691        7.1760        .14773E-02   -1.5427    
  11  Prefactor     .10000E-03    23.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.977        20.929        .10348E-03   -1.4934    
  13  norm          33.296        30.466        .69443E-04   -1.4553    
  14  Prefactor     31.446        16.814        .71457E-04   -1.4586    
  15  norm          .10000E-03    6.5050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.8717        .13002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    89.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.5610        .12331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.4629        .23788E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.4180        .14239E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3058        .28636        .32373E-03   -.83393    
  23  Prefactor     .86879        .14515        .20026E-03   -.97240    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42574e-09
Minuit parameter uncertainties:
  1  0.000800147
  2  2.5236
  3  12.0348
  4  8.61755e-06
  5  1.52445e-05
  6  13.9309
  7  7.1151e-05
  8  8.94945e-05
  9  6.75993e-05
  10  7.17909
  11  0.000514673
  12  20.9397
  13  30.4804
  14  16.8165
  15  0.000189114
  16  4.86272e-05
  17  0.000235936
  18  1.88484e-05
  19  4.48146e-05
  20  1.803e-05
  21  9.44485e-05
  22  0.286707
  23  0.145216
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.969e+00  7.179e+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:  8.688e-01  1.452e-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.306e+00  2.867e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 204.424 -12.952
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.21e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/797728/likelihoodResults_318902401_319161601_4FGL_J1337.6-1257_daily_bin307.txt

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) = 6243.2786048
delta logL = 0.512958964124

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6243.21493052
delta logL = 0.576633242915

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .54349       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.5064       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2182       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89557       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=   6243.215     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      263 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .54065        11.102        .11447E-01   -.29584E-03
   2  alpha         4.5095        2.9426        .50000       -.27863E-04
   3  Normalizat    1.2183        .66802E-01    .75292E-01   -.64606E-04
   4  Prefactor     .89552        .34761E-01    .44949E-01   -.10588E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.540646
  alpha      = 4.50947
  Normalizat = 1.21833
  Prefactor  = 0.895523
 **********
 **   18 **HESSE 
 **********

 FCN=   6243.215     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      296 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .54065        23.811        .54915E-03   -1.5561    
   2  alpha         4.5095        2.7245        .37442E-01    .93364    
   3  Normalizat    1.2183        .20826        .33322E-03   -.86038    
   4  Prefactor     .89552        .10813        .19750E-03   -.96298    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.85557e-08
Minuit parameter uncertainties:
  1  7.17819
  2  8.12554
  3  0.208405
  4  0.108153
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/797728': 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): 102
logL (Free Index) = 6243.21492955
delta logL = 0.576634209201

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  5.406e-01  7.178e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  4.509e+00  8.126e+00  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:  8.955e-01  1.082e-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.218e+00  2.084e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.41
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 4.51 +/- 8.13
Photon Flux (Free Index): 9.18e-08 +/- 9.85e-08
Energy Flux (Free Index): 1.34e-05 +/- 1.42e-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/797728/cmap_HighResolution_318902401_319161601_4FGL_J1337.6-1257_daily_bin307.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.21e-05', comment='SUCCESS', energy_flux2='1.34e-05', dlogl='5.77e-01', photon_flux2='9.18e-08', job_status='DONE', time_completed='2021-09-08 04:48:54.675029', photon_index_error2='8.13', photon_index2='4.51', ts='0.09', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='1.42e-05', EG='1.31', time_epoch_completed='1631101734.68', return_code='0', job_id='797728', GAL2='0.90', EG2='1.22', return_code2='102', photon_flux_error2='9.85e-08', ts2='1.41', photon_index='2.30' WHERE bin_id='307' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:48:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 797728: <4FGL_J1337.6-1257_daily_bin307> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin307> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 04:35:25 2021
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:36:51 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:36:51 2021
Terminated at Wed Sep  8 04:48:55 2021
Results reported at Wed Sep  8 04:48:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin307 204.424 -12.9517 318902401 319161601 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 :                                   617.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   723 sec.
    Turnaround time :                            810 sec.

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

