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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin377
RA = 204.424, Dec = -12.9517
tmin = 337046401, tmax = 337305601
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='799112', job_status='RUN', time_executed='2021-09-08 04:43:39.935012', time_epoch_executed='1631101419.94' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='377'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/799112

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/799112/ft1_4FGL_J1337.6-1257_daily_bin377.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/799112/ft2_4FGL_J1337.6-1257_daily_bin377.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/799112/ft1_4FGL_J1337.6-1257_daily_bin377.fits outfile=/scratch/kocevski/799112/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin377.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=337046401.0 tmax=337305601.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 9.22
user 8.84
sys 0.32

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/799112/ft1_filtered_4FGL_J1337.6-1257_daily_bin377.fits" evtable="EVENTS" scfile=/scratch/kocevski/799112/ft2_4FGL_J1337.6-1257_daily_bin377.fits sctable="SC_DATA" outfile=/scratch/kocevski/799112/ltcube_337046401_337305601_4FGL_J1337.6-1257_daily_bin377.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/799112/ft2_4FGL_J1337.6-1257_daily_bin377.fits
.....................!
real 12.15
user 11.66
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/799112/ft1_filtered_4FGL_J1337.6-1257_daily_bin377.fits evtable="EVENTS" scfile=/scratch/kocevski/799112/ft2_4FGL_J1337.6-1257_daily_bin377.fits sctable="SC_DATA" expcube=/scratch/kocevski/799112/ltcube_337046401_337305601_4FGL_J1337.6-1257_daily_bin377.fits outfile=/scratch/kocevski/799112/expmap_337046401_337305601_4FGL_J1337.6-1257_daily_bin377.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/799112/ltcube_337046401_337305601_4FGL_J1337.6-1257_daily_bin377.fits
.....................!
real 159.53
user 152.96
sys 4.75

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/799112/ft1_filtered_4FGL_J1337.6-1257_daily_bin377.fits scfile=/scratch/kocevski/799112/ft2_4FGL_J1337.6-1257_daily_bin377.fits outfile=/scratch/kocevski/799112/cmap_337046401_337305601_4FGL_J1337.6-1257_daily_bin377.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.49
user 0.32
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/799112/ft1_filtered_4FGL_J1337.6-1257_daily_bin377.fits scfile=/scratch/kocevski/799112/ft2_4FGL_J1337.6-1257_daily_bin377.fits outfile=/scratch/kocevski/799112/cmap_HighResolution_337046401_337305601_4FGL_J1337.6-1257_daily_bin377.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.49
user 0.33
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/799112/ft1_filtered_4FGL_J1337.6-1257_daily_bin377.fits evtable="EVENTS" scfile=/scratch/kocevski/799112/ft2_4FGL_J1337.6-1257_daily_bin377.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/799112/Model_4FGL_J1337.6-1257_daily_bin377.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/799112/ft1_filtered_4FGL_J1337.6-1257_daily_bin377.fits.....................!
real 69.84
user 67.94
sys 1.09

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.2437       1.0000         .10000E-03   10000.    
     3 'norm      '    3.5506       1.0000         .10000E-03   10000.    
     4 'norm      '    .30148E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.4105       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.6902       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.0629       1.0000         .10000E-03   10000.    
    10 'norm      '    13.481       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.233       1.0000         .10000E-03   10000.    
    13 'norm      '    10.006       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.9744       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .31472E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    20.799       1.0000         .10000E-03   10000.    
    21 'Prefactor '    32.760       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.5407       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .88902       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=   11245.95     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2201 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.9288        .90712E-02** at limit **
   2  norm          1.2437        1.5378        .10043E-01    .32547E-03
   3  norm          3.5505        4.1754        .53626E-02    .60156E-03
   4  norm          .10000E-03    3.4602        .77934E-01** at limit **
   5  Prefactor     5.4114        6.5895        .43190E-02    .38299E-02
   6  Prefactor     9.6901        7.1366        .32183E-02    .53679E-03
   7  Prefactor     .10000E-03    24.035        .90712E-02** at limit **
   8  norm          .10000E-03    .35586        .25237E-01** at limit **
   9  norm          1.0637        3.4074        .11857E-01    .22119E-02
  10  norm          13.481        7.7569        .27273E-02    .21977E-03
  11  Prefactor     .10000E-03    3.2528        .90712E-02** at limit **
  12  Prefactor     11.233        19.220        .29884E-02   -.14122E-03
  13  norm          10.006        11.297        .31669E-02   -.27562E-03
  14  Prefactor     7.9769        9.3171        .35497E-02   -.96454E-03
  15  norm          .10000E-03    .93086        .90712E-02** at limit **
  16  Prefactor     .10000E-03    1.5081        .67808E-01** at limit **
  17  Prefactor     .10000E-03    47.078        .90712E-02** at limit **
  18  norm          .10000E-03    2.0663        .90712E-02** at limit **
  19  norm          .10000E-03    .37825        .90712E-02** at limit **
  20  norm          20.799        8.6922        .21956E-02   -.21784E-03
  21  Prefactor     32.760        20.863        .17502E-02    .39189E-03
  22  Normalizat    1.5407        .19029        .70806E-01    .94997E-04
  23  Prefactor     .88901        .99789E-01    .44865E-01    .14550E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.24371
  norm       = 3.55048
  norm       = 0.0001
  Prefactor  = 5.41135
  Prefactor  = 9.6901
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 1.06373
  norm       = 13.4811
  Prefactor  = 0.0001
  Prefactor  = 11.2335
  norm       = 10.0063
  Prefactor  = 7.97695
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 20.7989
  Prefactor  = 32.7597
  Normalizat = 1.54067
  Prefactor  = 0.889015
 **********
 **   18 **HESSE 
 **********

 FCN=   11245.95     FROM HESSE     STATUS=OK           376 CALLS     2577 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.9489        .17721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.2437        1.5205        .14192E-03   -1.5485    
   3  norm          3.5505        4.1714        .21450E-03   -1.5331    
   4  norm          .10000E-03    11.550        .38391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.4114        6.5698        .86380E-03   -1.5243    
   6  Prefactor     9.6901        7.1571        .12873E-03   -1.5085    
   7  Prefactor     .10000E-03    24.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .57275        .12229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.0637        3.2002        .27599E-03   -1.5502    
  10  norm          13.481        7.3352        .10909E-03   -1.4973    
  11  Prefactor     .10000E-03    3.2562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.233        19.226        .11954E-03   -1.5038    
  13  norm          10.006        11.298        .63337E-03   -1.5075    
  14  Prefactor     7.9769        9.3087        .14199E-03   -1.5143    
  15  norm          .10000E-03    .93287        .99908E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.1198        .24767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    47.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.0855        .14880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .38049        .63673E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          20.799        8.6892        .87826E-04   -1.4796    
  21  Prefactor     32.760        20.861        .70008E-04   -1.4563    
  22  Normalizat    1.5407        .22081        .31326E-03   -.76642    
  23  Prefactor     .88901        .11687        .21410E-03   -.96526    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86143e-09
Minuit parameter uncertainties:
  1  1.55346e-06
  2  1.52057
  3  4.17174
  4  6.47203e-05
  5  6.57069
  6  7.15777
  7  0.000284625
  8  2.69615e-06
  9  3.20072
  10  7.3357
  11  2.05732e-05
  12  19.2367
  13  11.3
  14  9.31041
  15  2.97616e-06
  16  3.60355e-05
  17  0.000206487
  18  8.32684e-06
  19  1.09999e-06
  20  8.68969
  21  20.866
  22  0.220945
  23  0.116902
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.348e+01  7.336e+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.890e-01  1.169e-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.541e+00  2.209e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.31
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 8.21e-08 +/- 4.46e-08
Energy Flux (Fixed Index): 2.96e-05 +/- 1.61e-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) = 11244.7973399
delta logL = 1.15151409511

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11244.7577619
delta logL = 1.19109208854

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.4042       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1804       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4343       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92341       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=   11244.76     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      248 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.3988        38.040        .34571E-02    .37977E-03
   2  alpha         3.1809        3.8635        .27032        .11683E-03
   3  Normalizat    1.4341        .91423E-01    .72830E-01    .26134E-05
   4  Prefactor     .92347        .40872E-01    .45303E-01   -.13801E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.39883
  alpha      = 3.18085
  Normalizat = 1.43415
  Prefactor  = 0.923473
 **********
 **   18 **HESSE 
 **********

 FCN=   11244.76     FROM HESSE     STATUS=OK            33 CALLS      281 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.3988        8.2848        .10794E-03   -1.5128    
   2  alpha         3.1809        .77285        .10732E-01    .27583    
   3  Normalizat    1.4341        .23004        .32226E-03   -.79646    
   4  Prefactor     .92347        .11980        .21049E-03   -.95326    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41628e-08
Minuit parameter uncertainties:
  1  8.28595
  2  0.786803
  3  0.230207
  4  0.119835
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/799112': 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) = 11244.7577613
delta logL = 1.19109269222

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  8.399e+00  8.286e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  3.181e+00  7.868e-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.235e-01  1.198e-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.434e+00  2.302e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.93
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 3.18 +/- 0.79
Photon Flux (Free Index): 1.67e-07 +/- 7.68e-08
Energy Flux (Free Index): 3.35e-05 +/- 1.28e-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/799112/cmap_HighResolution_337046401_337305601_4FGL_J1337.6-1257_daily_bin377.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.21e-08', energy_flux2='3.35e-05', photon_flux_error='4.46e-08', dlogl='1.19e+00', energy_flux='2.96e-05', photon_flux2='1.67e-07', job_status='DONE', time_completed='2021-09-08 04:54:39.322799', photon_index_error2='0.79', photon_index2='3.18', ts='8.31', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='1.28e-05', EG='1.54', time_epoch_completed='1631102079.32', return_code='0', job_id='799112', GAL2='0.92', EG2='1.43', return_code2='0', energy_flux_error='1.61e-05', photon_flux_error2='7.68e-08', ts2='10.93', photon_index='2.30' WHERE bin_id='377' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:54:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 799112: <4FGL_J1337.6-1257_daily_bin377> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin377> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 04:40:23 2021
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:40:28 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:40:28 2021
Terminated at Wed Sep  8 04:54:40 2021
Results reported at Wed Sep  8 04:54:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin377 204.424 -12.9517 337046401 337305601 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 :                                   649.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             250.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            857 sec.

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

