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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1203
RA = 204.424, Dec = -12.9517
tmin = 551145601, tmax = 551404801
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='803818', job_status='RUN', time_executed='2021-09-08 04:56:57.534688', time_epoch_executed='1631102217.53' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1203'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/803818

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/803818/ft1_4FGL_J1337.6-1257_daily_bin1203.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/803818/ft2_4FGL_J1337.6-1257_daily_bin1203.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/803818/ft1_4FGL_J1337.6-1257_daily_bin1203.fits outfile=/scratch/kocevski/803818/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1203.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=551145601.0 tmax=551404801.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.71
user 3.40
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/803818/ft1_filtered_4FGL_J1337.6-1257_daily_bin1203.fits" evtable="EVENTS" scfile=/scratch/kocevski/803818/ft2_4FGL_J1337.6-1257_daily_bin1203.fits sctable="SC_DATA" outfile=/scratch/kocevski/803818/ltcube_551145601_551404801_4FGL_J1337.6-1257_daily_bin1203.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/803818/ft2_4FGL_J1337.6-1257_daily_bin1203.fits
.....................!
real 13.02
user 12.66
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/803818/ft1_filtered_4FGL_J1337.6-1257_daily_bin1203.fits evtable="EVENTS" scfile=/scratch/kocevski/803818/ft2_4FGL_J1337.6-1257_daily_bin1203.fits sctable="SC_DATA" expcube=/scratch/kocevski/803818/ltcube_551145601_551404801_4FGL_J1337.6-1257_daily_bin1203.fits outfile=/scratch/kocevski/803818/expmap_551145601_551404801_4FGL_J1337.6-1257_daily_bin1203.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/803818/ltcube_551145601_551404801_4FGL_J1337.6-1257_daily_bin1203.fits
.....................!
real 190.82
user 185.55
sys 4.65

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/803818/ft1_filtered_4FGL_J1337.6-1257_daily_bin1203.fits scfile=/scratch/kocevski/803818/ft2_4FGL_J1337.6-1257_daily_bin1203.fits outfile=/scratch/kocevski/803818/cmap_551145601_551404801_4FGL_J1337.6-1257_daily_bin1203.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/803818/ft1_filtered_4FGL_J1337.6-1257_daily_bin1203.fits scfile=/scratch/kocevski/803818/ft2_4FGL_J1337.6-1257_daily_bin1203.fits outfile=/scratch/kocevski/803818/cmap_HighResolution_551145601_551404801_4FGL_J1337.6-1257_daily_bin1203.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/803818/ft1_filtered_4FGL_J1337.6-1257_daily_bin1203.fits evtable="EVENTS" scfile=/scratch/kocevski/803818/ft2_4FGL_J1337.6-1257_daily_bin1203.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/803818/Model_4FGL_J1337.6-1257_daily_bin1203.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/803818/ft1_filtered_4FGL_J1337.6-1257_daily_bin1203.fits.....................!
real 53.91
user 52.38
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    11.318       1.0000         .10000E-03   10000.    
     3 'norm      '    .11685E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.0968       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.3963       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.323       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.8417       1.0000         .10000E-03   10000.    
     9 'norm      '    4.7018       1.0000         .10000E-03   10000.    
    10 'norm      '    7.6584       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10293       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    7.1086       1.0000         .10000E-03   10000.    
    20 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.956       1.0000         .10000E-03   10000.    
    22 'Normalizat'    2.4769       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .66181       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6303.955     FROM MIGRAD    STATUS=CONVERGED    120 CALLS     2164 TOTAL
                     EDM=   .44E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.3920        .21262E-05** at limit **
   2  norm          11.319        1.0056       -.15120E-07    .89755E-05
   3  norm          .10001E-03    36.017        .30716E-04** at limit **
   4  norm          5.0885        2.9428        .40081E-05   -.10030E-02
   5  Prefactor     5.3893        2.0200        .23280E-05   -.37421E-03
   6  Prefactor     13.322        1.3135       -.86501E-06    .84455E-03
   7  Prefactor     .10000E-03    12.938       -.16116E-04** at limit **
   8  norm          4.8406        2.3275        .70849E-06    .77874E-04
   9  norm          4.7030        4.7962       -.19984E-05   -.34790E-04
  10  norm          7.6581        1.7139        .17480E-06    .12969E-03
  11  Prefactor     .10000E-03    8.8464       -.15255E-06** at limit **
  12  Prefactor     .10001E-03    33.400       -.18852E-04** at limit **
  13  norm          .10000E-03    11.666        .14844E-04** at limit **
  14  Prefactor     .10000E-03    883.05       -.65187E-04** at limit **
  15  norm          .10000E-03    2.3363       -.16904E-05** at limit **
  16  Prefactor     .10000E-03    3.3359       -.51810E-05** at limit **
  17  Prefactor     .10000E-03    18.868       -.12806E-06** at limit **
  18  norm          .10000E-03    7.6440        .44831E-05** at limit **
  19  norm          7.1081        3.2682        .37628E-06   -.92616E-05
  20  norm          .10000E-03    6.6143        .23229E-05** at limit **
  21  Prefactor     16.955        1.6491       -.11914E-05    .17875E-02
  22  Normalizat    2.4770        .37369       -.96311E-05   -.46647E-04
  23  Prefactor     .66176        .18295        .40522E-05   -.52562E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 11.3189
  norm       = 0.00010001
  norm       = 5.08846
  Prefactor  = 5.38934
  Prefactor  = 13.3221
  Prefactor  = 0.0001
  norm       = 4.84055
  norm       = 4.70297
  norm       = 7.65814
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.10814
  norm       = 0.0001
  Prefactor  = 16.9553
  Normalizat = 2.47703
  Prefactor  = 0.661761
 **********
 **   18 **HESSE 
 **********

 FCN=   6303.955     FROM HESSE     STATUS=OK           424 CALLS     2588 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.4028        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          11.319        7.7652        .29770E-02   -1.5035    
   3  norm          .10001E-03    36.098        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.0885        16.226        .44523E-02   -1.5257    
   5  Prefactor     5.3893        14.410        .43248E-02   -1.5244    
   6  Prefactor     13.322        13.965        .27435E-02   -1.4978    
   7  Prefactor     .10000E-03    12.938        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.8406        2.3138        .45705E-02   -1.5268    
   9  norm          4.7030        5.7434        .46395E-02   -1.5274    
  10  norm          7.6581        11.285        .36227E-02   -1.5154    
  11  Prefactor     .10000E-03    8.8647        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    34.109        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    11.682        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    21.558        .11889       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.3261        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.3104        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    19.002        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    7.4977        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          7.1081        3.2722        .37614E-02   -1.5175    
  20  norm          .10000E-03    6.5629        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     16.955        30.088        .24317E-02   -1.4884    
  22  Normalizat    2.4770        .32572        .75941E-01   -.53066    
  23  Prefactor     .66176        .16054        .67302E-01   -1.0505    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.87623e-08
Minuit parameter uncertainties:
  1  1.61752e-05
  2  7.76591
  3  0.00120894
  4  16.2397
  5  14.4194
  6  13.9688
  7  7.38346e-05
  8  2.31388
  9  5.74406
  10  11.2881
  11  2.5615e-06
  12  0.000998987
  13  3.0555e-05
  14  0.000212355
  15  7.28656e-07
  16  4.41252e-06
  17  0.000192562
  18  1.61343e-05
  19  3.27231
  20  2.21025e-05
  21  30.115
  22  0.326029
  23  0.160652
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  7.658e+00  1.129e+01  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:  6.618e-01  1.607e-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:  2.477e+00  3.260e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/803818/likelihoodResults_551145601_551404801_4FGL_J1337.6-1257_daily_bin1203.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) = 6303.71941189
delta logL = 0.235174116411

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6303.71395742
delta logL = 0.240628586224

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.6560       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0127       1.0000          .0000       5.0000    
     3 'Normalizat'    2.4369       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67347       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=   6303.714     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      239 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.6732        156.29        .42227E-02    .32419E-03
   2  alpha         3.0111        3.6988        .42302        .42333E-04
   3  Normalizat    2.4371        .11004        .76347E-01   -.73852E-05
   4  Prefactor     .67332        .53440E-01    .66755E-01   -.87152E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.67324
  alpha      = 3.01112
  Normalizat = 2.43706
  Prefactor  = 0.673317
 **********
 **   18 **HESSE 
 **********

 FCN=   6303.714     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.6732        9.8313        .16891E-03   -1.5232    
   2  alpha         3.0111        1.2008        .18372E-01    .20590    
   3  Normalizat    2.4371        .36281        .33768E-03   -.53996    
   4  Prefactor     .67332        .18283        .29538E-03   -1.0458    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47395e-11
Minuit parameter uncertainties:
  1  9.83405
  2  1.25507
  3  0.363247
  4  0.182997
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/803818': 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) = 6303.71395513
delta logL = 0.240630869487

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  5.673e+00  9.834e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  3.011e+00  1.255e+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:  6.733e-01  1.830e-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:  2.437e+00  3.632e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.29
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 3.01 +/- 1.26
Photon Flux (Free Index): 8.79e-08 +/- 9.84e-08
Energy Flux (Free Index): 1.90e-05 +/- 2.00e-05

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/803818/cmap_HighResolution_551145601_551404801_4FGL_J1337.6-1257_daily_bin1203.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.67e-05', comment='SUCCESS', energy_flux2='1.90e-05', dlogl='2.41e-01', photon_flux2='8.79e-08', job_status='DONE', time_completed='2021-09-08 05:07:29.885167', photon_index_error2='1.26', photon_index2='3.01', ts='0.75', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', photon_flux_upper_limit='1.85e-07', energy_flux_error2='2.00e-05', EG='2.48', time_epoch_completed='1631102849.89', return_code='0', job_id='803818', GAL2='0.67', EG2='2.44', return_code2='0', photon_flux_error2='9.84e-08', ts2='1.29', photon_index='2.30' WHERE bin_id='1203' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:07:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 803818: <4FGL_J1337.6-1257_daily_bin1203> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin1203> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 04:51:02 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:56:44 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:56:44 2021
Terminated at Wed Sep  8 05:07:30 2021
Results reported at Wed Sep  8 05:07:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1203 204.424 -12.9517 551145601 551404801 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 :                                   615.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             359.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   646 sec.
    Turnaround time :                            988 sec.

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

