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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1015
RA = 204.424, Dec = -12.9517
tmin = 502416001, tmax = 502675201
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='803575', job_status='RUN', time_executed='2021-09-08 04:56:10.349521', time_epoch_executed='1631102170.35' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1015'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/803575

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/803575/ft1_4FGL_J1337.6-1257_daily_bin1015.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/803575/ft2_4FGL_J1337.6-1257_daily_bin1015.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/803575/ft1_4FGL_J1337.6-1257_daily_bin1015.fits outfile=/scratch/kocevski/803575/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1015.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=502416001.0 tmax=502675201.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.58
user 3.30
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/803575/ft1_filtered_4FGL_J1337.6-1257_daily_bin1015.fits" evtable="EVENTS" scfile=/scratch/kocevski/803575/ft2_4FGL_J1337.6-1257_daily_bin1015.fits sctable="SC_DATA" outfile=/scratch/kocevski/803575/ltcube_502416001_502675201_4FGL_J1337.6-1257_daily_bin1015.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/803575/ft2_4FGL_J1337.6-1257_daily_bin1015.fits
.....................!
real 13.63
user 13.22
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/803575/ft1_filtered_4FGL_J1337.6-1257_daily_bin1015.fits evtable="EVENTS" scfile=/scratch/kocevski/803575/ft2_4FGL_J1337.6-1257_daily_bin1015.fits sctable="SC_DATA" expcube=/scratch/kocevski/803575/ltcube_502416001_502675201_4FGL_J1337.6-1257_daily_bin1015.fits outfile=/scratch/kocevski/803575/expmap_502416001_502675201_4FGL_J1337.6-1257_daily_bin1015.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/803575/ltcube_502416001_502675201_4FGL_J1337.6-1257_daily_bin1015.fits
.....................!
real 192.09
user 186.62
sys 4.68

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/803575/ft1_filtered_4FGL_J1337.6-1257_daily_bin1015.fits scfile=/scratch/kocevski/803575/ft2_4FGL_J1337.6-1257_daily_bin1015.fits outfile=/scratch/kocevski/803575/cmap_502416001_502675201_4FGL_J1337.6-1257_daily_bin1015.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.41
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/803575/ft1_filtered_4FGL_J1337.6-1257_daily_bin1015.fits evtable="EVENTS" scfile=/scratch/kocevski/803575/ft2_4FGL_J1337.6-1257_daily_bin1015.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/803575/Model_4FGL_J1337.6-1257_daily_bin1015.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/803575/ft1_filtered_4FGL_J1337.6-1257_daily_bin1015.fits.....................!
real 61.19
user 59.00
sys 1.40

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .60214       1.0000         .10000E-03   10000.    
     3 'norm      '    25.229       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.4431       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.1425       1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    8.2716       1.0000         .10000E-03   10000.    
    10 'norm      '    .13605E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.585       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    58.228       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.0575       1.0000         .10000E-03   10000.    
    20 'norm      '    .34004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    23.873       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.6846       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .87847       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=   7328.158     FROM MIGRAD    STATUS=CONVERGED    494 CALLS     2193 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.6177       -.39958E-06** at limit **
   2  norm          .60206        1.8813        .52917E-06   -.12547E-03
   3  norm          25.232        13.548        .29828E-06    .87716E-04
   4  norm          .10000E-03    5.8877        .97898E-06** at limit **
   5  Prefactor     .10000E-03    4.3036       -.91407E-06** at limit **
   6  Prefactor     7.4435        9.7099        .25025E-05    .68119E-04
   7  Prefactor     3.1153        124.45        .12292E-05   -.11779E-03
   8  norm          .10000E-03    .56630        .31451E-07** at limit **
   9  norm          8.2692        8.9134       -.11297E-05   -.61106E-03
  10  norm          .10000E-03    13.263        .27014E-05** at limit **
  11  Prefactor     .10000E-03    4.9265       -.69645E-07** at limit **
  12  Prefactor     21.585        27.387       -.80861E-07   -.57328E-05
  13  norm          .10000E-03    11.918        .10613E-05** at limit **
  14  Prefactor     .10000E-03    8.3320       -.97513E-06** at limit **
  15  norm          .10000E-03    1.0662        .69228E-08** at limit **
  16  Prefactor     .10000E-03    1.5552        .26562E-07** at limit **
  17  Prefactor     58.219        42.675       -.28531E-05   -.17972E-03
  18  norm          .10000E-03    3.9576        .46524E-06** at limit **
  19  norm          4.0554        3.5745        .18886E-07    .54985E-03
  20  norm          .10045E-03    5.8704       -.22378E-05** at limit **
  21  Prefactor     23.862        24.870       -.37759E-05   -.16927E-03
  22  Normalizat    1.6847        .25766        .36383E-06    .20106E-04
  23  Prefactor     .87841        .13053       -.55942E-06    .69024E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.602057
  norm       = 25.2323
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.44348
  Prefactor  = 3.11535
  norm       = 0.0001
  norm       = 8.26919
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 21.5846
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 58.2193
  norm       = 0.0001
  norm       = 4.05543
  norm       = 0.000100447
  Prefactor  = 23.8617
  Normalizat = 1.68467
  Prefactor  = 0.87841
 **********
 **   18 **HESSE 
 **********

 FCN=   7328.158     FROM HESSE     STATUS=OK           368 CALLS     2561 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.7307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .60206        2.0978        .19922E-02   -1.5553    
   3  norm          25.232        13.564        .79752E-04   -1.4703    
   4  norm          .10000E-03    5.9377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.3155        .17343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.4435        9.8266        .73503E-03   -1.5162    
   7  Prefactor     3.1153        120.66        .22867E-03   -1.5355    
   8  norm          .10000E-03    .57785        .62847E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          8.2692        8.6933        .13392E-03   -1.5133    
  10  norm          .10000E-03    14.033        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.9354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     21.585        27.401        .86212E-04   -1.4778    
  13  norm          .10000E-03    11.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.4058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.0672        .86324E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.5613        .10424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     58.219        42.813        .52575E-04   -1.4180    
  18  norm          .10000E-03    3.9872        .16636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.0554        3.4826        .14031E-03   -1.5305    
  20  norm          .10045E-03    30.158        .36663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     23.862        25.015        .81983E-04   -1.4731    
  22  Normalizat    1.6847        .30837        .32408E-03   -.72713    
  23  Prefactor     .87841        .15517        .22155E-03   -.96900    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.09572e-08
Minuit parameter uncertainties:
  1  2.42524e-05
  2  2.09808
  3  13.5653
  4  3.64505e-05
  5  3.19089e-05
  6  9.82876
  7  38.8595
  8  1.04511e-06
  9  8.6946
  10  0.000296574
  11  7.38947e-08
  12  27.4166
  13  6.79378e-05
  14  4.52224e-05
  15  1.68906e-06
  16  2.78845e-06
  17  42.8353
  18  2.18037e-05
  19  3.48272
  20  0.00734545
  21  25.0261
  22  0.308724
  23  0.155248
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.000e-04  2.966e-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:  8.784e-01  1.552e-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.685e+00  3.087e-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.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.68e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/803575/likelihoodResults_502416001_502675201_4FGL_J1337.6-1257_daily_bin1015.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) = 7328.15811521
delta logL = -0.000340336615409

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7328.15777725
delta logL = -2.37599851971e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10850E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3859       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6840       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87875       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=   7328.158     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      268 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11893E-03    7.1762        .46552E-01** at limit **
   2  alpha         2.8862        2.8281        .16482        .60187E-06
   3  Normalizat    1.6847        .80920E-02    .32407E-03    .12386E-03
   4  Prefactor     .87841        .41984E-02    .22155E-03    .13722E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000118932
  alpha      = 2.88625
  Normalizat = 1.68467
  Prefactor  = 0.878409
 **********
 **   18 **HESSE 
 **********

 FCN=   7328.158     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      301 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .11893E-03    12.878        .46802E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.8862        2.8563        .65929E-02    .15512    
   3  Normalizat    1.6847        .10906E-01    .64815E-04   -.72713    
   4  Prefactor     .87841        .56578E-02    .88618E-05   -.96900    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.33923e-10
Minuit parameter uncertainties:
  1  0.0312358
  2  278.608
  3  0.0109061
  4  0.00565783
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/803575': 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) = 7328.15777115
delta logL = 3.71653459297e-06

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.189e-04  3.124e-02  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.886e+00  2.786e+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:  8.784e-01  5.658e-03  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.685e+00  1.091e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/803575/cmap_HighResolution_502416001_502675201_4FGL_J1337.6-1257_daily_bin1015.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.68e-05', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-09-08 05:07:17.717175', job_id='803575', GAL2='0.88', fit_tolerance='1e-08', EG2='1.68', EG='1.68', time_epoch_completed='1631102837.72', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='3.72e-06', ts2='0.00', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='1015' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:07:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 803575: <4FGL_J1337.6-1257_daily_bin1015> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1015 204.424 -12.9517 502416001 502675201 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 :                                   660.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             308.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   740 sec.
    Turnaround time :                            998 sec.

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

