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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin303
RA = 204.424, Dec = -12.9517
tmin = 317865601, tmax = 318124801
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='797722', job_status='RUN', time_executed='2021-09-08 04:39:15.768754', time_epoch_executed='1631101155.77' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='303'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/797722

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/797722/ft1_4FGL_J1337.6-1257_daily_bin303.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/797722/ft2_4FGL_J1337.6-1257_daily_bin303.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/797722/ft1_4FGL_J1337.6-1257_daily_bin303.fits outfile=/scratch/kocevski/797722/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin303.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=317865601.0 tmax=318124801.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.34
user 3.12
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/797722/ft1_filtered_4FGL_J1337.6-1257_daily_bin303.fits" evtable="EVENTS" scfile=/scratch/kocevski/797722/ft2_4FGL_J1337.6-1257_daily_bin303.fits sctable="SC_DATA" outfile=/scratch/kocevski/797722/ltcube_317865601_318124801_4FGL_J1337.6-1257_daily_bin303.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/797722/ft2_4FGL_J1337.6-1257_daily_bin303.fits
.....................!
real 15.95
user 15.54
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/797722/ft1_filtered_4FGL_J1337.6-1257_daily_bin303.fits evtable="EVENTS" scfile=/scratch/kocevski/797722/ft2_4FGL_J1337.6-1257_daily_bin303.fits sctable="SC_DATA" expcube=/scratch/kocevski/797722/ltcube_317865601_318124801_4FGL_J1337.6-1257_daily_bin303.fits outfile=/scratch/kocevski/797722/expmap_317865601_318124801_4FGL_J1337.6-1257_daily_bin303.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/797722/ltcube_317865601_318124801_4FGL_J1337.6-1257_daily_bin303.fits
.....................!
real 192.48
user 186.86
sys 5.12

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/797722/ft1_filtered_4FGL_J1337.6-1257_daily_bin303.fits scfile=/scratch/kocevski/797722/ft2_4FGL_J1337.6-1257_daily_bin303.fits outfile=/scratch/kocevski/797722/cmap_317865601_318124801_4FGL_J1337.6-1257_daily_bin303.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/797722/ft1_filtered_4FGL_J1337.6-1257_daily_bin303.fits scfile=/scratch/kocevski/797722/ft2_4FGL_J1337.6-1257_daily_bin303.fits outfile=/scratch/kocevski/797722/cmap_HighResolution_317865601_318124801_4FGL_J1337.6-1257_daily_bin303.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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/797722/ft1_filtered_4FGL_J1337.6-1257_daily_bin303.fits evtable="EVENTS" scfile=/scratch/kocevski/797722/ft2_4FGL_J1337.6-1257_daily_bin303.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/797722/Model_4FGL_J1337.6-1257_daily_bin303.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/797722/ft1_filtered_4FGL_J1337.6-1257_daily_bin303.fits.....................!
real 50.87
user 49.25
sys 1.37

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3830       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .33343E-01   1.0000         .10000E-03   10000.    
     4 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.9519       1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.258       1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.044       1.0000         .10000E-03   10000.    
     8 'norm      '    4.5264       1.0000         .10000E-03   10000.    
     9 'norm      '    2.1917       1.0000         .10000E-03   10000.    
    10 'norm      '    .42381E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.960       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.9875       1.0000         .10000E-03   10000.    
    13 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.7257       1.0000         .10000E-03   10000.    
    15 'norm      '    8.1845       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.5503       1.0000         .10000E-03   10000.    
    17 'Prefactor '    24.877       1.0000         .10000E-03   10000.    
    18 'norm      '    4.6094       1.0000         .10000E-03   10000.    
    19 'norm      '    1.7399       1.0000         .10000E-03   10000.    
    20 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2491       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .77004       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=   5700.238     FROM MIGRAD    STATUS=CONVERGED    515 CALLS     2564 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3824        8.8843        .41566E-05   -.19791E-03
   2  norm          .10000E-03    .86284        .20303E-07** at limit **
   3  norm          .10039E-03    5.6434        .62349E-06** at limit **
   4  norm          .10000E-03    4.7518        .12007E-07** at limit **
   5  Prefactor     5.9553        8.9603       -.83617E-07    .35906E-04
   6  Prefactor     21.259        10.912        .93887E-07    .31698E-04
   7  Prefactor     27.988        35.076        .61506E-05   -.63082E-05
   8  norm          4.5261        2.0967        .43466E-07   -.53735E-04
   9  norm          2.1972        8.4875       -.42178E-05   -.34313E-03
  10  norm          .10000E-03    8.7108        .50550E-06** at limit **
  11  Prefactor     23.956        22.653       -.12822E-06    .42165E-05
  12  Prefactor     5.9824        23.066        .10274E-05   -.17627E-04
  13  norm          .10000E-03    11.875       -.26525E-11** at limit **
  14  Prefactor     1.7284        44.485        .63594E-06   -.87483E-05
  15  norm          8.1845        5.4061       -.29548E-07   -.69306E-04
  16  Prefactor     6.5487        6.9586        .27138E-06   -.41884E-04
  17  Prefactor     24.836        62.027        .48551E-05   -.84793E-04
  18  norm          4.6095        8.4314        .15944E-06   -.43462E-04
  19  norm          1.7399        1.6225        .11976E-07   -.14393E-04
  20  norm          .10000E-03    3.8637        .19503E-07** at limit **
  21  Prefactor     .10000E-03    18.301        .19652E-07** at limit **
  22  Normalizat    1.2490        .25900       -.41274E-06    .37003E-04
  23  Prefactor     .77008        .13160       -.40283E-06    .69299E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.38241
  norm       = 0.0001
  norm       = 0.000100388
  norm       = 0.0001
  Prefactor  = 5.9553
  Prefactor  = 21.2588
  Prefactor  = 27.988
  norm       = 4.52612
  norm       = 2.19718
  norm       = 0.0001
  Prefactor  = 23.9558
  Prefactor  = 5.98238
  norm       = 0.0001
  Prefactor  = 1.72835
  norm       = 8.18455
  Prefactor  = 6.54871
  Prefactor  = 24.8357
  norm       = 4.60949
  norm       = 1.73986
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.24905
  Prefactor  = 0.770077
 **********
 **   18 **HESSE 
 **********

 FCN=   5700.238     FROM HESSE     STATUS=OK           388 CALLS     2952 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3824        8.8279        .13267E-02   -1.5399    
   2  norm          .10000E-03    .86509        .68485E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10039E-03    7.7433        .65788E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.7644        .16074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.9553        8.9465        .16459E-03   -1.5220    
   6  Prefactor     21.259        10.948        .86873E-04   -1.4785    
   7  Prefactor     27.988        35.001        .75652E-04   -1.4649    
   8  norm          4.5261        2.1103        .69570E-04   -1.5282    
   9  norm          2.1972        7.7918        .22416E-03   -1.5412    
  10  norm          .10000E-03    19.758        .36683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     23.956        21.518        .81834E-04   -1.4729    
  12  Prefactor     5.9824        22.993        .82048E-03   -1.5219    
  13  norm          .10000E-03    11.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.7284        39.754        .31967E-03   -1.5445    
  15  norm          8.1845        5.4024        .13609E-03   -1.5136    
  16  Prefactor     6.5487        6.8698        .15680E-03   -1.5196    
  17  Prefactor     24.836        60.671        .80313E-04   -1.4711    
  18  norm          4.6095        8.3785        .18747E-03   -1.5279    
  19  norm          1.7399        1.6149        .90265E-04   -1.5444    
  20  norm          .10000E-03    3.9190        .14492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    18.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2490        .30498        .32197E-03   -.85100    
  23  Prefactor     .77008        .15502        .20615E-03   -1.0084    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.40467e-10
Minuit parameter uncertainties:
  1  8.83275
  2  2.38221e-07
  3  0.00346879
  4  6.01797e-07
  5  8.94846
  6  10.9491
  7  35.0268
  8  2.11034
  9  7.79535
  10  0.000170262
  11  21.5249
  12  23.0267
  13  1.19035e-06
  14  16.5901
  15  5.40272
  16  6.8706
  17  60.8218
  18  8.38061
  19  1.61499
  20  1.53852e-06
  21  5.42621e-06
  22  0.305419
  23  0.155111
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.000e-04  1.703e-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:  7.701e-01  1.551e-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.249e+00  3.054e-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.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.14e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/797722/likelihoodResults_317865601_318124801_4FGL_J1337.6-1257_daily_bin303.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) = 5700.23843366
delta logL = -0.000240609365392

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5700.23819313
delta logL = -7.92260834714e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10108E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3691       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2488       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77021       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5700.238     FROM MIGRAD    STATUS=FAILED       102 CALLS      270 TOTAL
                     EDM=   .31E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10882E-03    1901.8        .34929E-02** at limit **
   2  alpha         2.7198        3.1650        .16489       -.14325E-05
   3  Normalizat    1.2490        .43008E-01    .32197E-03    .35557E-04
   4  Prefactor     .77008        .22297E-01    .20615E-03    .43401E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5700.238     FROM SIMPLEX   STATUS=UNCHANGED    135 CALLS      405 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10882E-03    1901.8        .12813E-02** at limit **
   2  alpha         2.7198        3.1650        .13485E-04   -.14325E-05
   3  Normalizat    1.2490        .43008E-01    .53642E-06    .35557E-04
   4  Prefactor     .77008        .22297E-01    .18819E-06    .43401E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5700.238     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      454 TOTAL
                     EDM=   .22E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8243.6        .13971E-02** at limit **
   2  alpha         2.7482        3.4771        .65957E-01    .15513E-08
   3  Normalizat    1.2490        .11367        .12879E-04   -.30367E-04
   4  Prefactor     .77008        .58773E-01    .82460E-05   -.55147E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.74816
  Normalizat = 1.24905
  Prefactor  = 0.770076
 **********
 **   18 **HESSE 
 **********

 FCN=   5700.238     FROM HESSE     STATUS=OK            23 CALLS      477 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    52.755        .27943E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.7482        3.0944        .26383E-02    .99427E-01
   3  Normalizat    1.2490        .28465        .25757E-05   -.85100    
   4  Prefactor     .77008        .14779        .16492E-05   -1.0084    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38582e-12
Minuit parameter uncertainties:
  1  6.10936e-06
  2  228.411
  3  0.285008
  4  0.147865
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/797722': 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) = 5700.23819148
delta logL = 1.57037175086e-06

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.000e-04  6.109e-06  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.748e+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:  7.701e-01  1.479e-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.249e+00  2.850e-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/797722/cmap_HighResolution_317865601_318124801_4FGL_J1337.6-1257_daily_bin303.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.14e-05', job_status='DONE', photon_flux_upper_limit='1.15e-07', time_completed='2021-09-08 04:49:34.624264', job_id='797722', GAL2='0.77', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1631101774.62', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='1.57e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='303' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:49:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 797722: <4FGL_J1337.6-1257_daily_bin303> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin303 204.424 -12.9517 317865601 318124801 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.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            850 sec.

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

