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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin305
RA = 204.424, Dec = -12.9517
tmin = 318384001, tmax = 318643201
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='797725', job_status='RUN', time_executed='2021-09-08 04:38:44.426532', time_epoch_executed='1631101124.43' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='305'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/797725

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/797725/ft1_4FGL_J1337.6-1257_daily_bin305.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/797725/ft2_4FGL_J1337.6-1257_daily_bin305.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/797725/ft1_4FGL_J1337.6-1257_daily_bin305.fits outfile=/scratch/kocevski/797725/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin305.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=318384001.0 tmax=318643201.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.31
user 3.09
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/797725/ft2_4FGL_J1337.6-1257_daily_bin305.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/797725/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin305.fits evtable="EVENTS" outfile="/scratch/kocevski/797725/ft1_filtered_4FGL_J1337.6-1257_daily_bin305.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/797725/ft1_filtered_4FGL_J1337.6-1257_daily_bin305.fits" evtable="EVENTS" scfile=/scratch/kocevski/797725/ft2_4FGL_J1337.6-1257_daily_bin305.fits sctable="SC_DATA" outfile=/scratch/kocevski/797725/ltcube_318384001_318643201_4FGL_J1337.6-1257_daily_bin305.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/797725/ft2_4FGL_J1337.6-1257_daily_bin305.fits
.....................!
real 17.47
user 17.08
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/797725/ft1_filtered_4FGL_J1337.6-1257_daily_bin305.fits evtable="EVENTS" scfile=/scratch/kocevski/797725/ft2_4FGL_J1337.6-1257_daily_bin305.fits sctable="SC_DATA" expcube=/scratch/kocevski/797725/ltcube_318384001_318643201_4FGL_J1337.6-1257_daily_bin305.fits outfile=/scratch/kocevski/797725/expmap_318384001_318643201_4FGL_J1337.6-1257_daily_bin305.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/797725/ltcube_318384001_318643201_4FGL_J1337.6-1257_daily_bin305.fits
.....................!
real 192.95
user 187.26
sys 5.13

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/797725/ft1_filtered_4FGL_J1337.6-1257_daily_bin305.fits scfile=/scratch/kocevski/797725/ft2_4FGL_J1337.6-1257_daily_bin305.fits outfile=/scratch/kocevski/797725/cmap_318384001_318643201_4FGL_J1337.6-1257_daily_bin305.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.57
user 0.39
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/797725/ft1_filtered_4FGL_J1337.6-1257_daily_bin305.fits evtable="EVENTS" scfile=/scratch/kocevski/797725/ft2_4FGL_J1337.6-1257_daily_bin305.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/797725/Model_4FGL_J1337.6-1257_daily_bin305.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/797725/ft1_filtered_4FGL_J1337.6-1257_daily_bin305.fits.....................!
real 52.34
user 50.66
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.1279       1.0000         .10000E-03   10000.    
     2 'norm      '    .10341E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.5559       1.0000         .10000E-03   10000.    
     4 'norm      '    11.549       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    32.565       1.0000         .10000E-03   10000.    
     7 'Prefactor '    34.679       1.0000         .10000E-03   10000.    
     8 'norm      '    2.3399       1.0000         .10000E-03   10000.    
     9 'norm      '    .13968E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .13066E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    37.838       1.0000         .10000E-03   10000.    
    13 'norm      '    19.724       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.3825       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.4884       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .88130       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1530       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=   6093.361     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2528 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.1278        8.3598       -.20783E-06    .21278E-04
   2  norm          .10000E-03    2.5476       -.88343E-06** at limit **
   3  norm          2.5527        16.582       -.25176E-05   -.14724E-03
   4  norm          11.550        13.451       -.36193E-06   -.14217E-04
   5  Prefactor     .10000E-03    5.8000       -.55296E-06** at limit **
   6  Prefactor     32.567        13.821        .72740E-06    .19711E-04
   7  Prefactor     34.662        20.855       -.71720E-05    .12920E-04
   8  norm          2.3402        1.7750       -.12267E-06   -.28985E-03
   9  norm          .10000E-03    4.2508       -.35098E-06** at limit **
  10  norm          .10000E-03    13.055        .66672E-06** at limit **
  11  Prefactor     .10000E-03    5.9643        .12901E-05** at limit **
  12  Prefactor     37.830        37.899       -.95638E-05   -.54449E-05
  13  norm          19.724        21.256       -.14043E-06    .52089E-05
  14  Prefactor     .10000E-03    4.5456        .25717E-05** at limit **
  15  norm          .10000E-03    3.6048        .36114E-08** at limit **
  16  Prefactor     2.3824        3.9702        .10498E-05   -.35190E-03
  17  Prefactor     .10000E-03    31.235        .16571E-05** at limit **
  18  norm          .10000E-03    2.0813       -.23225E-07** at limit **
  19  norm          5.4887        2.9416       -.14084E-06   -.79805E-04
  20  norm          .10000E-03    2.1003       -.56192E-07** at limit **
  21  Prefactor     .10000E-03    23.298       -.54177E-06** at limit **
  22  Normalizat    .88111        .28068        .18255E-05    .33841E-04
  23  Prefactor     1.1531        .14331        .10055E-05    .98335E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.12782
  norm       = 0.000100001
  norm       = 2.55268
  norm       = 11.5496
  Prefactor  = 0.0001
  Prefactor  = 32.5668
  Prefactor  = 34.6625
  norm       = 2.34025
  norm       = 0.000100003
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 37.8304
  norm       = 19.7238
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.38242
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.48871
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.881112
  Prefactor  = 1.15309
 **********
 **   18 **HESSE 
 **********

 FCN=   6093.361     FROM HESSE     STATUS=OK           370 CALLS     2898 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.1278        8.3589        .14063E-03   -1.5138    
   2  norm          .10000E-03    5.2153        .24001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.5527        16.794        .25538E-03   -1.5388    
   4  norm          11.550        13.443        .11788E-03   -1.5028    
   5  Prefactor     .10000E-03    5.8569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     32.567        13.859        .70217E-04   -1.4566    
   7  Prefactor     34.662        20.794        .68050E-04   -1.4530    
   8  norm          2.3402        1.7729        .85389E-04   -1.5402    
   9  norm          .10000E-03    4.3418        .31162E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    13.488        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.9761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     37.830        37.943        .65156E-04   -1.4477    
  13  norm          19.724        21.256        .90185E-04   -1.4819    
  14  Prefactor     .10000E-03    4.5590        .16264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.6661        .14469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.3824        3.9257        .19218E-03   -1.5399    
  17  Prefactor     .10000E-03    31.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.0842        .10996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.4887        2.9424        .94296E-04   -1.5239    
  20  norm          .10000E-03    2.1023        .11048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    23.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .88111        .31528        .40298E-03   -.97127    
  23  Prefactor     1.1531        .16126        .19167E-03   -.87787    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3539e-09
Minuit parameter uncertainties:
  1  8.36007
  2  0.000153825
  3  13.1
  4  13.4469
  5  1.3087e-05
  6  13.8607
  7  20.7984
  8  1.77295
  9  0.000233628
  10  0.000325047
  11  9.05436e-06
  12  37.9675
  13  21.2642
  14  1.33196e-05
  15  4.27847e-07
  16  3.92608
  17  1.05884e-05
  18  4.38229e-06
  19  2.9425
  20  1.30037e-06
  21  4.48328e-05
  22  0.315939
  23  0.161327
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.000e-04  3.250e-04  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:  1.153e+00  1.613e-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:  8.811e-01  3.159e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/797725/likelihoodResults_318384001_318643201_4FGL_J1337.6-1257_daily_bin305.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): 102
logL (Free Index) = 6093.36124099
delta logL = -0.000353833228473

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6093.36088696
delta logL = 2.02393493964e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10258E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2580       1.0000          .0000       5.0000    
     3 'Normalizat'    .88110       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1531       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=   6093.361     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      249 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1194.3        .36285E-02** at limit **
   2  alpha         1.9394        3.2427        .16559        .19786E-06
   3  Normalizat    .88111        .55878E-01    .40298E-03   -.96032E-04
   4  Prefactor     1.1531        .30220E-01    .19167E-03   -.30416E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 1.93939
  Normalizat = 0.881114
  Prefactor  = 1.15309
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    20.639        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9394        3.1155        .66237E-02   -.22617    
   3  Normalizat    .88111        .29241        .16119E-04   -.97127    
   4  Prefactor     1.1531        .15825        .38335E-04   -.87787    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.29003e-10
Minuit parameter uncertainties:
  1  0.000241558
  2  228.406
  3  0.292934
  4  0.158319
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/797725': 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) = 6093.36088589
delta logL = 1.26566646941e-06

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.000e-04  2.416e-04  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.939e+00  2.284e+02  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:  1.153e+00  1.583e-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:  8.811e-01  2.929e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 204.424 -12.952

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/797725/cmap_HighResolution_318384001_318643201_4FGL_J1337.6-1257_daily_bin305.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.20e-05', job_status='DONE', photon_flux_upper_limit='1.16e-07', time_completed='2021-09-08 04:49:18.162103', job_id='797725', GAL2='1.15', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1631101758.16', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='1.27e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='305' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:49:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0182>
Subject: Job 797725: <4FGL_J1337.6-1257_daily_bin305> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin305> 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) <bullet0182>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:36:49 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:49 2021
Terminated at Wed Sep  8 04:49:19 2021
Results reported at Wed Sep  8 04:49:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin305 204.424 -12.9517 318384001 318643201 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 :                                   632.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   749 sec.
    Turnaround time :                            834 sec.

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

