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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin959
RA = 204.424, Dec = -12.9517
tmin = 487900801, tmax = 488160001
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='803485', job_status='RUN', time_executed='2021-09-08 04:56:28.659549', time_epoch_executed='1631102188.66' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='959'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/803485

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/803485/ft1_4FGL_J1337.6-1257_daily_bin959.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/803485/ft2_4FGL_J1337.6-1257_daily_bin959.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/803485/ft1_4FGL_J1337.6-1257_daily_bin959.fits outfile=/scratch/kocevski/803485/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin959.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=487900801.0 tmax=488160001.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 5.02
user 4.74
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/803485/ft1_filtered_4FGL_J1337.6-1257_daily_bin959.fits" evtable="EVENTS" scfile=/scratch/kocevski/803485/ft2_4FGL_J1337.6-1257_daily_bin959.fits sctable="SC_DATA" outfile=/scratch/kocevski/803485/ltcube_487900801_488160001_4FGL_J1337.6-1257_daily_bin959.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/803485/ft2_4FGL_J1337.6-1257_daily_bin959.fits
.....................!
real 10.58
user 10.27
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/803485/ft1_filtered_4FGL_J1337.6-1257_daily_bin959.fits evtable="EVENTS" scfile=/scratch/kocevski/803485/ft2_4FGL_J1337.6-1257_daily_bin959.fits sctable="SC_DATA" expcube=/scratch/kocevski/803485/ltcube_487900801_488160001_4FGL_J1337.6-1257_daily_bin959.fits outfile=/scratch/kocevski/803485/expmap_487900801_488160001_4FGL_J1337.6-1257_daily_bin959.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/803485/ltcube_487900801_488160001_4FGL_J1337.6-1257_daily_bin959.fits
.....................!
real 156.96
user 152.00
sys 4.22

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/803485/ft1_filtered_4FGL_J1337.6-1257_daily_bin959.fits scfile=/scratch/kocevski/803485/ft2_4FGL_J1337.6-1257_daily_bin959.fits outfile=/scratch/kocevski/803485/cmap_487900801_488160001_4FGL_J1337.6-1257_daily_bin959.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.49
user 0.31
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/803485/ft1_filtered_4FGL_J1337.6-1257_daily_bin959.fits scfile=/scratch/kocevski/803485/ft2_4FGL_J1337.6-1257_daily_bin959.fits outfile=/scratch/kocevski/803485/cmap_HighResolution_487900801_488160001_4FGL_J1337.6-1257_daily_bin959.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.49
user 0.33
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/803485/ft1_filtered_4FGL_J1337.6-1257_daily_bin959.fits evtable="EVENTS" scfile=/scratch/kocevski/803485/ft2_4FGL_J1337.6-1257_daily_bin959.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/803485/Model_4FGL_J1337.6-1257_daily_bin959.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/803485/ft1_filtered_4FGL_J1337.6-1257_daily_bin959.fits.....................!
real 56.25
user 54.87
sys 1.07

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    3.3706       1.0000         .10000E-03   10000.    
     3 'norm      '    1.7944       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.0226       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    28.892       1.0000         .10000E-03   10000.    
    10 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10222E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.9818       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.240       1.0000         .10000E-03   10000.    
    15 'norm      '    .14238E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .71510       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0943       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0403       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=   8864.891     FROM MIGRAD    STATUS=CONVERGED    519 CALLS     2210 TOTAL
                     EDM=   .47E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.2964       -.74253E-07** at limit **
   2  norm          3.3706        2.2277        .12812E-08    .77698E-05
   3  norm          1.7944        .71767        .14440E-07   -.45308E-03
   4  norm          .10000E-03    12.151       -.12258E-05** at limit **
   5  Prefactor     7.0239        11.141       -.16144E-06   -.18082E-04
   6  Prefactor     .10000E-03    18.254        .18027E-05** at limit **
   7  Prefactor     .10000E-03    47.493       -.56024E-06** at limit **
   8  norm          .10000E-03    .74565       -.53422E-08** at limit **
   9  norm          28.892        5.9499        .17085E-07   -.59521E-04
  10  norm          .10000E-03    2.5919       -.30306E-07** at limit **
  11  Prefactor     .10000E-03    12.780       -.34177E-05** at limit **
  12  Prefactor     8.9814        21.694       -.51375E-06    .40311E-05
  13  norm          .10000E-03    8.3969       -.11405E-05** at limit **
  14  Prefactor     17.239        10.565        .32335E-07    .74684E-04
  15  norm          .10000E-03    2.4431        .41038E-06** at limit **
  16  Prefactor     .10000E-03    3.2373       -.23387E-08** at limit **
  17  Prefactor     .10000E-03    10.566        .50959E-05** at limit **
  18  norm          .10000E-03    2.5697        .10979E-07** at limit **
  19  norm          .71512        .81633        .52173E-08    .13390E-04
  20  norm          .10000E-03    1.2688        .50567E-08** at limit **
  21  Prefactor     .10000E-03    8.1544       -.18123E-05** at limit **
  22  Normalizat    1.0943        .20394       -.79608E-08   -.23793E-04
  23  Prefactor     1.0403        .10731        .44628E-08   -.42240E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 3.37059
  norm       = 1.79437
  norm       = 0.0001
  Prefactor  = 7.0239
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 28.8919
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.98141
  norm       = 0.0001
  Prefactor  = 17.2388
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.715116
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.0943
  Prefactor  = 1.04032
 **********
 **   18 **HESSE 
 **********

 FCN=   8864.891     FROM HESSE     STATUS=OK           364 CALLS     2574 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.3232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.3706        2.2318        .11123E-03   -1.5341    
   3  norm          1.7944        4.7559        .15609E-02   -1.5440    
   4  norm          .10000E-03    12.488        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.0239        11.126        .15138E-03   -1.5178    
   6  Prefactor     .10000E-03    18.759        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    47.800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .77955        .15846E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          28.892        5.9198        .74536E-04   -1.4632    
  10  norm          .10000E-03    2.5968        .14791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.977        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.9814        21.695        .13374E-03   -1.5108    
  13  norm          .10000E-03    8.4007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     17.239        10.533        .96461E-04   -1.4877    
  15  norm          .10000E-03    7.1527        .28123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.3013        .16524E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.5912        .14736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .71512        .80631        .88489E-04   -1.5539    
  20  norm          .10000E-03    1.2707        .10357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.1797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0943        .23276        .35460E-03   -.89935    
  23  Prefactor     1.0403        .12292        .19234E-03   -.91397    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.68511e-10
Minuit parameter uncertainties:
  1  1.72683e-07
  2  2.23187
  3  4.7569
  4  1.1269e-05
  5  11.1288
  6  2.01094e-05
  7  1.22893e-05
  8  1.51903e-07
  9  5.91993
  10  5.08738e-07
  11  2.71084e-05
  12  21.7139
  13  1.5975e-07
  14  10.5337
  15  0.00022238
  16  8.62398e-07
  17  1.17051e-06
  18  1.85289e-07
  19  0.806321
  20  6.18875e-08
  21  1.19792e-06
  22  0.232982
  23  0.12295
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.000e-04  5.087e-07  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.040e+00  1.229e-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.094e+00  2.330e-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: 7.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.63e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/803485/likelihoodResults_487900801_488160001_4FGL_J1337.6-1257_daily_bin959.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) = 8864.89297922
delta logL = -0.00183052312968

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8864.89115115
delta logL = -2.44783404924e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3004       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0944       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0402       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=   8864.891     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      230 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    610.85        .14802E-02** at limit **
   2  alpha         2.1500        2.7649        .16527       -.40309E-07
   3  Normalizat    1.0943        .17561        .35460E-03    .51233E-04
   4  Prefactor     1.0403        .93785E-01    .19234E-03    .10197E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.15
  Normalizat = 1.0943
  Prefactor  = 1.04032
 **********
 **   18 **HESSE 
 **********

 FCN=   8864.891     FROM HESSE     STATUS=OK            23 CALLS      253 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.6329        .29604E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1500        2.9076        .66110E-02   -.14046    
   3  Normalizat    1.0943        .22844        .14184E-04   -.89935    
   4  Prefactor     1.0403        .12203        .38469E-04   -.91397    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69289e-11
Minuit parameter uncertainties:
  1  5.6519e-06
  2  210.085
  3  0.228648
  4  0.122066
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/803485': 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) = 8864.89114844
delta logL = 2.61854438577e-07

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.000e-04  5.652e-06  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.150e+00  2.101e+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:  1.040e+00  1.221e-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.094e+00  2.286e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/803485/cmap_HighResolution_487900801_488160001_4FGL_J1337.6-1257_daily_bin959.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.63e-05', job_status='DONE', photon_flux_upper_limit='7.30e-08', time_completed='2021-09-08 05:06:55.823051', job_id='803485', GAL2='1.04', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1631102815.82', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='2.62e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='959' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:06:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 803485: <4FGL_J1337.6-1257_daily_bin959> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin959 204.424 -12.9517 487900801 488160001 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 :                                   618.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             256.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   753 sec.
    Turnaround time :                            984 sec.

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

