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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin382
RA = 204.424, Dec = -12.9517
tmin = 338342401, tmax = 338601601
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='799121', job_status='RUN', time_executed='2021-09-08 04:40:39.014528', time_epoch_executed='1631101239.01' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='382'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/799121

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/799121/ft1_4FGL_J1337.6-1257_daily_bin382.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/799121/ft2_4FGL_J1337.6-1257_daily_bin382.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/799121/ft1_4FGL_J1337.6-1257_daily_bin382.fits outfile=/scratch/kocevski/799121/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin382.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=338342401.0 tmax=338601601.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 6.64
user 6.35
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/799121/ft1_filtered_4FGL_J1337.6-1257_daily_bin382.fits" evtable="EVENTS" scfile=/scratch/kocevski/799121/ft2_4FGL_J1337.6-1257_daily_bin382.fits sctable="SC_DATA" outfile=/scratch/kocevski/799121/ltcube_338342401_338601601_4FGL_J1337.6-1257_daily_bin382.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/799121/ft2_4FGL_J1337.6-1257_daily_bin382.fits
.....................!
real 14.93
user 14.53
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/799121/ft1_filtered_4FGL_J1337.6-1257_daily_bin382.fits evtable="EVENTS" scfile=/scratch/kocevski/799121/ft2_4FGL_J1337.6-1257_daily_bin382.fits sctable="SC_DATA" expcube=/scratch/kocevski/799121/ltcube_338342401_338601601_4FGL_J1337.6-1257_daily_bin382.fits outfile=/scratch/kocevski/799121/expmap_338342401_338601601_4FGL_J1337.6-1257_daily_bin382.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/799121/ltcube_338342401_338601601_4FGL_J1337.6-1257_daily_bin382.fits
.....................!
real 192.05
user 186.56
sys 4.95

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/799121/ft1_filtered_4FGL_J1337.6-1257_daily_bin382.fits scfile=/scratch/kocevski/799121/ft2_4FGL_J1337.6-1257_daily_bin382.fits outfile=/scratch/kocevski/799121/cmap_338342401_338601601_4FGL_J1337.6-1257_daily_bin382.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.58
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/799121/ft1_filtered_4FGL_J1337.6-1257_daily_bin382.fits scfile=/scratch/kocevski/799121/ft2_4FGL_J1337.6-1257_daily_bin382.fits outfile=/scratch/kocevski/799121/cmap_HighResolution_338342401_338601601_4FGL_J1337.6-1257_daily_bin382.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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/799121/ft1_filtered_4FGL_J1337.6-1257_daily_bin382.fits evtable="EVENTS" scfile=/scratch/kocevski/799121/ft2_4FGL_J1337.6-1257_daily_bin382.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/799121/Model_4FGL_J1337.6-1257_daily_bin382.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/799121/ft1_filtered_4FGL_J1337.6-1257_daily_bin382.fits.....................!
real 66.84
user 65.37
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0296       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.3257       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .16007       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.5321       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.7690       1.0000         .10000E-03   10000.    
     8 'norm      '    3.2665       1.0000         .10000E-03   10000.    
     9 'norm      '    2.7914       1.0000         .10000E-03   10000.    
    10 'norm      '    3.2681       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.180       1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.920       1.0000         .10000E-03   10000.    
    13 'norm      '    8.9270       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .84698E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .12611E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.6783       1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.641       1.0000         .10000E-03   10000.    
    18 'norm      '    3.1913       1.0000         .10000E-03   10000.    
    19 'norm      '    3.8630       1.0000         .10000E-03   10000.    
    20 'norm      '    11.295       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2923       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .86404       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=   8813.855     FROM MIGRAD    STATUS=CONVERGED    933 CALLS     3039 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0298        4.4606        .23314E-03   -.28771E-04
   2  norm          .10000E-03    .53833        .67049E-03** at limit **
   3  norm          1.3254        5.5883        .38177E-03   -.51756E-04
   4  norm          .10000E-03    3.2178        .16441E-02** at limit **
   5  Prefactor     .21962        90.169        .40543E-02   -.46237E-03
   6  Prefactor     9.5243        9.3738        .12980E-03   -.26941E-03
   7  Prefactor     1.7311        116.43        .31488E-03   -.52496E-04
   8  norm          3.2669        1.7246        .84215E-04   -.87477E-04
   9  norm          2.7976        5.9161        .92654E-03   -.14334E-02
  10  norm          3.2684        5.9457        .11200E-02   -.11092E-02
  11  Prefactor     10.190        12.303        .12559E-03   -.98492E-04
  12  Prefactor     25.923        22.674        .78684E-04   -.23696E-04
  13  norm          8.9247        22.204        .13415E-03   -.28814E-05
  14  Prefactor     .10000E-03    10.023        .60631E-01** at limit **
  15  norm          .10000E-03    3.9426        .25459E-02** at limit **
  16  Prefactor     6.6792        4.4124        .14850E-03    .19338E-03
  17  Prefactor     15.640        25.183        .10127E-03    .40413E-05
  18  norm          3.1914        4.6664        .22682E-03    .29772E-04
  19  norm          3.8634        2.5391        .11495E-03   -.75362E-04
  20  norm          11.295        5.8809        .11921E-03    .28420E-04
  21  Prefactor     .10000E-03    13.425        .18142E-02** at limit **
  22  Normalizat    1.2923        .24936        .31469E-03    .68425E-04
  23  Prefactor     .86399        .12075        .19923E-03   -.22145E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.0298
  norm       = 0.0001
  norm       = 1.32539
  norm       = 0.0001
  Prefactor  = 0.219618
  Prefactor  = 9.52429
  Prefactor  = 1.73105
  norm       = 3.26695
  norm       = 2.79761
  norm       = 3.2684
  Prefactor  = 10.1903
  Prefactor  = 25.9233
  norm       = 8.92472
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 6.67922
  Prefactor  = 15.6402
  norm       = 3.19143
  norm       = 3.8634
  norm       = 11.2946
  Prefactor  = 0.0001
  Normalizat = 1.29227
  Prefactor  = 0.863989
 **********
 **   18 **HESSE 
 **********

 FCN=   8813.855     FROM HESSE     STATUS=OK           358 CALLS     3397 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0298        4.4604        .93255E-05   -1.5360    
   2  norm          .10000E-03    .53835        .13410E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.3254        5.5874        .15271E-04   -1.5478    
   4  norm          .10000E-03    3.2178        .32882E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .21962        90.089        .16217E-03   -1.5614    
   6  Prefactor     9.5243        9.3408        .51920E-05   -1.5091    
   7  Prefactor     1.7311        112.34        .12595E-04   -1.5445    
   8  norm          3.2669        1.7238        .33686E-05   -1.5346    
   9  norm          2.7976        5.8270        .37061E-04   -1.5373    
  10  norm          3.2684        5.9254        .44801E-04   -1.5346    
  11  Prefactor     10.190        12.259        .50234E-05   -1.5069    
  12  Prefactor     25.923        22.673        .31473E-05   -1.4689    
  13  norm          8.9247        22.202        .53660E-05   -1.5110    
  14  Prefactor     .10000E-03    8.7616        .65699E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.9585        .50918E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.6792        4.4106        .59401E-05   -1.5191    
  17  Prefactor     15.640        25.186        .40509E-05   -1.4917    
  18  norm          3.1914        4.6657        .90730E-05   -1.5351    
  19  norm          3.8634        2.5385        .45980E-05   -1.5315    
  20  norm          11.295        5.8807        .47682E-05   -1.5036    
  21  Prefactor     .10000E-03    13.431        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2923        .24888        .12587E-04   -.83797    
  23  Prefactor     .86399        .12081        .39846E-04   -.97411    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17915e-08
Minuit parameter uncertainties:
  1  4.46093
  2  5.57158e-07
  3  5.44327
  4  1.18318e-07
  5  8.90758
  6  9.34225
  7  27.9443
  8  1.72384
  9  5.82814
  10  5.9265
  11  12.2622
  12  22.6801
  13  22.2223
  14  0.000264533
  15  5.41144e-05
  16  4.41077
  17  25.2032
  18  4.66619
  19  2.53854
  20  5.88096
  21  1.43557e-05
  22  0.249106
  23  0.120851
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  3.268e+00  5.927e+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

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  8.640e-01  1.209e-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.292e+00  2.491e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.54
Ra Dec: 204.424 -12.952
Photon Flux Upper Limit: 9.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.50e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/799121/likelihoodResults_338342401_338601601_4FGL_J1337.6-1257_daily_bin382.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) = 8813.10133187
delta logL = 0.75330265622

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8813.06530957
delta logL = 0.789324956135

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .23623       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1900       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90001       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=   8813.065     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      374 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .23598        4.7870        .72133E-02    .28965E-02
   2  alpha         5.0000        4.7036        .46268    ** at limit **
   3  Normalizat    1.1902        .89502E-01    .73589E-01    .26922E-04
   4  Prefactor     .90006        .45262E-01    .45005E-01    .22030E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.23598
  alpha      = 5
  Normalizat = 1.19023
  Prefactor  = 0.900063
 **********
 **   18 **HESSE 
 **********

 FCN=   8813.065     FROM HESSE     STATUS=OK            37 CALLS      411 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .23598        .22764        .32730E-03   -1.5611    
   2  alpha         5.0000        3.1516        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1902        .23574        .32566E-03   -.86905    
   4  Prefactor     .90006        .12068        .19565E-03   -.96139    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.85814e-09
Minuit parameter uncertainties:
  1  0.227638
  2  3.13337e-05
  3  0.235948
  4  0.120711
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/799121': 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) = 8813.06530502
delta logL = 0.7893295006

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  2.360e-01  2.276e-01  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  5.000e+00  3.133e-05  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:  9.001e-01  1.207e-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.190e+00  2.359e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.32
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 9.34e-08 +/- 8.97e-08
Energy Flux (Free Index): 1.29e-05 +/- 1.24e-05

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/799121/cmap_HighResolution_338342401_338601601_4FGL_J1337.6-1257_daily_bin382.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.50e-05', comment='SUCCESS', energy_flux2='1.29e-05', dlogl='7.89e-01', photon_flux2='9.34e-08', job_status='DONE', time_completed='2021-09-08 04:55:04.617756', photon_index_error2='0.00', photon_index2='5.00', ts='0.54', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='9.70e-08', energy_flux_error2='1.24e-05', EG='1.29', time_epoch_completed='1631102104.62', return_code='0', job_id='799121', GAL2='0.90', EG2='1.19', return_code2='0', photon_flux_error2='8.97e-08', ts2='2.32', photon_index='2.30' WHERE bin_id='382' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:55:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 799121: <4FGL_J1337.6-1257_daily_bin382> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin382 204.424 -12.9517 338342401 338601601 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 :                                   861.24 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             302.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            881 sec.

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

