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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin322
RA = 204.424, Dec = -12.9517
tmin = 322790401, tmax = 323049601
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='797750', job_status='RUN', time_executed='2021-09-08 04:39:52.515128', time_epoch_executed='1631101192.52' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='322'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/797750

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/797750/ft1_4FGL_J1337.6-1257_daily_bin322.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/797750/ft2_4FGL_J1337.6-1257_daily_bin322.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/797750/ft1_4FGL_J1337.6-1257_daily_bin322.fits outfile=/scratch/kocevski/797750/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin322.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=322790401.0 tmax=323049601.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 12.11
user 11.67
sys 0.34

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/797750/ft1_filtered_4FGL_J1337.6-1257_daily_bin322.fits" evtable="EVENTS" scfile=/scratch/kocevski/797750/ft2_4FGL_J1337.6-1257_daily_bin322.fits sctable="SC_DATA" outfile=/scratch/kocevski/797750/ltcube_322790401_323049601_4FGL_J1337.6-1257_daily_bin322.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/797750/ft2_4FGL_J1337.6-1257_daily_bin322.fits
.....................!
real 13.73
user 12.97
sys 0.44

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/797750/ft1_filtered_4FGL_J1337.6-1257_daily_bin322.fits evtable="EVENTS" scfile=/scratch/kocevski/797750/ft2_4FGL_J1337.6-1257_daily_bin322.fits sctable="SC_DATA" expcube=/scratch/kocevski/797750/ltcube_322790401_323049601_4FGL_J1337.6-1257_daily_bin322.fits outfile=/scratch/kocevski/797750/expmap_322790401_323049601_4FGL_J1337.6-1257_daily_bin322.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/797750/ltcube_322790401_323049601_4FGL_J1337.6-1257_daily_bin322.fits
.....................!
real 191.71
user 186.66
sys 4.43

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/797750/ft1_filtered_4FGL_J1337.6-1257_daily_bin322.fits scfile=/scratch/kocevski/797750/ft2_4FGL_J1337.6-1257_daily_bin322.fits outfile=/scratch/kocevski/797750/cmap_322790401_323049601_4FGL_J1337.6-1257_daily_bin322.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.64
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/797750/ft1_filtered_4FGL_J1337.6-1257_daily_bin322.fits scfile=/scratch/kocevski/797750/ft2_4FGL_J1337.6-1257_daily_bin322.fits outfile=/scratch/kocevski/797750/cmap_HighResolution_322790401_323049601_4FGL_J1337.6-1257_daily_bin322.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.62
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/797750/ft1_filtered_4FGL_J1337.6-1257_daily_bin322.fits evtable="EVENTS" scfile=/scratch/kocevski/797750/ft2_4FGL_J1337.6-1257_daily_bin322.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/797750/Model_4FGL_J1337.6-1257_daily_bin322.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/797750/ft1_filtered_4FGL_J1337.6-1257_daily_bin322.fits.....................!
real 36.24
user 34.85
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.5367       1.0000         .10000E-03   10000.    
     2 'norm      '    1.3315       1.0000         .10000E-03   10000.    
     3 'norm      '    7.5358       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.745       1.0000         .10000E-03   10000.    
     7 'Prefactor '    58.555       1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10223E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    49.825       1.0000         .10000E-03   10000.    
    12 'Prefactor '    80.876       1.0000         .10000E-03   10000.    
    13 'norm      '    31.701       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.8020       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .63687E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .84969       1.0000         .10000E-03   10000.    
    20 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .30247E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .82821       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2237       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=   3578.107     FROM MIGRAD    STATUS=CONVERGED    514 CALLS     2555 TOTAL
                     EDM=   .92E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.5383        14.628        .17671E-06    .11933E-04
   2  norm          1.3312        5.5938       -.12590E-05   -.10053E-04
   3  norm          7.5380        16.453        .26619E-06    .10132E-04
   4  norm          .10000E-03    4.5019       -.32149E-06** at limit **
   5  Prefactor     .10000E-03    4.1834        .22521E-06** at limit **
   6  Prefactor     13.747        13.531        .91081E-07   -.27109E-04
   7  Prefactor     58.547        34.655        .49085E-06   -.32823E-04
   8  norm          .10000E-03    .69044        .18619E-06** at limit **
   9  norm          .10000E-03    3.2443        .69563E-06** at limit **
  10  norm          .10000E-03    4.6868        .67082E-06** at limit **
  11  Prefactor     49.833        32.621        .76030E-06   -.10027E-03
  12  Prefactor     80.884        62.514        .26336E-06   -.51119E-04
  13  norm          31.700        35.922        .15026E-06    .77425E-05
  14  Prefactor     .10009E-03    22.230        .50446E-06** at limit **
  15  norm          1.8019        10.652       -.11610E-05   -.22159E-04
  16  Prefactor     .10000E-03    53.672        .16075E-05** at limit **
  17  Prefactor     .10000E-03    32.834        .58495E-06** at limit **
  18  norm          .10000E-03    3.6580        .66417E-07** at limit **
  19  norm          .85079        2.4288        .62553E-06    .16000E-03
  20  norm          .10000E-03    6.3157        .45000E-07** at limit **
  21  Prefactor     .10000E-03    159.06        .14585E-05** at limit **
  22  Normalizat    .82786        .34775       -.38589E-05   -.52277E-04
  23  Prefactor     1.2238        .19218        .72083E-06   -.16078E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.53834
  norm       = 1.33118
  norm       = 7.53803
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.7466
  Prefactor  = 58.5468
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 49.8329
  Prefactor  = 80.8842
  norm       = 31.6997
  Prefactor  = 0.000100085
  norm       = 1.80191
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.850788
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.827858
  Prefactor  = 1.22379
 **********
 **   18 **HESSE 
 **********

 FCN=   3578.107     FROM HESSE     STATUS=OK           368 CALLS     2923 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.5383        14.635        .13720E-03   -1.5123    
   2  norm          1.3312        5.6490        .27102E-03   -1.5477    
   3  norm          7.5380        16.457        .14609E-03   -1.5159    
   4  norm          .10000E-03    4.5751        .12496E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.1895        .11956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.747        13.552        .10804E-03   -1.4966    
   7  Prefactor     58.547        34.288        .52429E-04   -1.4176    
   8  norm          .10000E-03    .70491        .48639E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.2251        .10455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    4.7329        .12688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     49.833        31.836        .56813E-04   -1.4295    
  12  Prefactor     80.884        62.312        .22330E-03   -1.3907    
  13  norm          31.700        35.930        .71165E-04   -1.4581    
  14  Prefactor     .10009E-03    124.03        .46210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.8019        10.726        .31138E-03   -1.5439    
  16  Prefactor     .10000E-03    54.605        .25880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    32.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.6645        .11172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .85079        2.3773        .15991E-02   -1.5523    
  20  norm          .10000E-03    6.3837        .14681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    165.95        .42773E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .82786        .37284        .40208E-03   -.99044    
  23  Prefactor     1.2238        .21086        .19102E-03   -.85602    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.1474e-10
Minuit parameter uncertainties:
  1  14.6407
  2  5.48513
  3  16.4669
  4  3.34305e-05
  5  9.7083e-06
  6  13.5555
  7  34.2997
  8  1.85052e-06
  9  6.11066e-07
  10  2.85708e-05
  11  31.8469
  12  62.3625
  13  35.9549
  14  0.00651455
  15  8.79451
  16  0.00058638
  17  0.000116337
  18  8.02522e-07
  19  2.37752
  20  1.33786e-06
  21  7.31363e-05
  22  0.374
  23  0.211004
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.000e-04  2.857e-05  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.224e+00  2.110e-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.279e-01  3.740e-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.25e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.50e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/797750/likelihoodResults_322790401_323049601_4FGL_J1337.6-1257_daily_bin322.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) = 3578.10817064
delta logL = -0.000996798957658

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3578.10717376
delta logL = 8.12165126263e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3208       1.0000          .0000       5.0000    
     3 'Normalizat'    .82791       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2238       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=   3578.107     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      193 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.6695        .90712E-02** at limit **
   2  alpha         2.3373        3.5600        .41286       -.17686E-04
   3  Normalizat    .82785        .31855        .90771E-01   -.25606E-04
   4  Prefactor     1.2238        .18172        .34092E-01    .38322E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 2.33734
  Normalizat = 0.827855
  Prefactor  = 1.22379
 **********
 **   18 **HESSE 
 **********

 FCN=   3578.107     FROM HESSE     STATUS=OK            29 CALLS      222 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.8328        .12824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3373        3.5125        .16514       -.65111E-01
   3  Normalizat    .82785        .34896        .40208E-03   -.99044    
   4  Prefactor     1.2238        .19971        .19102E-03   -.85602    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.59969e-10
Minuit parameter uncertainties:
  1  0.000160481
  2  2.49599
  3  0.349914
  4  0.199836
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/797750': 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) = 3578.10717361
delta logL = 2.27867985814e-07

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.000e-04  1.605e-04  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.337e+00  2.496e+00  0.000e+00  5.000e+00 ( 1.000e+00)
265         beta:  1.384e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
266           Eb:  7.541e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  1.224e+00  1.998e-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.279e-01  3.499e-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/797750/cmap_HighResolution_322790401_323049601_4FGL_J1337.6-1257_daily_bin322.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.50e-05', job_status='DONE', photon_flux_upper_limit='1.25e-07', time_completed='2021-09-08 04:49:00.301738', job_id='797750', GAL2='1.22', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1631101740.3', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='2.28e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='322' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:49:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 797750: <4FGL_J1337.6-1257_daily_bin322> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin322 204.424 -12.9517 322790401 323049601 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 :                                   541.11 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             270.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   722 sec.
    Turnaround time :                            815 sec.

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

