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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin323
RA = 204.424, Dec = -12.9517
tmin = 323049601, tmax = 323308801
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='797751', job_status='RUN', time_executed='2021-09-08 04:40:21.316154', time_epoch_executed='1631101221.32' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='323'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/797751

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/797751/ft1_4FGL_J1337.6-1257_daily_bin323.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/797751/ft2_4FGL_J1337.6-1257_daily_bin323.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/797751/ft1_4FGL_J1337.6-1257_daily_bin323.fits outfile=/scratch/kocevski/797751/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin323.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=323049601.0 tmax=323308801.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.33
user 3.10
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/797751/ft1_filtered_4FGL_J1337.6-1257_daily_bin323.fits" evtable="EVENTS" scfile=/scratch/kocevski/797751/ft2_4FGL_J1337.6-1257_daily_bin323.fits sctable="SC_DATA" outfile=/scratch/kocevski/797751/ltcube_323049601_323308801_4FGL_J1337.6-1257_daily_bin323.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/797751/ft2_4FGL_J1337.6-1257_daily_bin323.fits
.....................!
real 14.11
user 13.73
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/797751/ft1_filtered_4FGL_J1337.6-1257_daily_bin323.fits evtable="EVENTS" scfile=/scratch/kocevski/797751/ft2_4FGL_J1337.6-1257_daily_bin323.fits sctable="SC_DATA" expcube=/scratch/kocevski/797751/ltcube_323049601_323308801_4FGL_J1337.6-1257_daily_bin323.fits outfile=/scratch/kocevski/797751/expmap_323049601_323308801_4FGL_J1337.6-1257_daily_bin323.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/797751/ltcube_323049601_323308801_4FGL_J1337.6-1257_daily_bin323.fits
.....................!
real 191.45
user 186.38
sys 4.58

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/797751/ft1_filtered_4FGL_J1337.6-1257_daily_bin323.fits scfile=/scratch/kocevski/797751/ft2_4FGL_J1337.6-1257_daily_bin323.fits outfile=/scratch/kocevski/797751/cmap_323049601_323308801_4FGL_J1337.6-1257_daily_bin323.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=204.424 yref=-12.9517 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/797751/ft1_filtered_4FGL_J1337.6-1257_daily_bin323.fits scfile=/scratch/kocevski/797751/ft2_4FGL_J1337.6-1257_daily_bin323.fits outfile=/scratch/kocevski/797751/cmap_HighResolution_323049601_323308801_4FGL_J1337.6-1257_daily_bin323.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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/797751/ft1_filtered_4FGL_J1337.6-1257_daily_bin323.fits evtable="EVENTS" scfile=/scratch/kocevski/797751/ft2_4FGL_J1337.6-1257_daily_bin323.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/797751/Model_4FGL_J1337.6-1257_daily_bin323.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/797751/ft1_filtered_4FGL_J1337.6-1257_daily_bin323.fits....................!
real 49.66
user 48.22
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.4400       1.0000         .10000E-03   10000.    
     3 'norm      '    13.383       1.0000         .10000E-03   10000.    
     4 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.6068       1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.440       1.0000         .10000E-03   10000.    
     7 'Prefactor '    30.426       1.0000         .10000E-03   10000.    
     8 'norm      '    3.3000       1.0000         .10000E-03   10000.    
     9 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .57994       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.329       1.0000         .10000E-03   10000.    
    13 'norm      '    21.271       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .98431E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    1.8113       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10538E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.8053       1.0000         .10000E-03   10000.    
    19 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.0739       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .97652       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .99780       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=   5816.982     FROM MIGRAD    STATUS=CONVERGED    556 CALLS     2646 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.0670       -.56769E-07** at limit **
   2  norm          4.4390        3.1471       -.10942E-07   -.10733E-04
   3  norm          13.383        11.548       -.51190E-07   -.60159E-04
   4  norm          .10000E-03    3.4516        .46246E-07** at limit **
   5  Prefactor     6.6045        14.424        .49813E-06    .29219E-03
   6  Prefactor     22.452        13.589        .37580E-06    .52318E-03
   7  Prefactor     30.519        25.339        .23705E-05    .38981E-03
   8  norm          3.3003        2.1539        .70660E-07    .44987E-04
   9  norm          .10000E-03    4.0996       -.24347E-05** at limit **
  10  norm          .52138        7.1404        .16230E-05   -.55991E-03
  11  Prefactor     .10000E-03    19.185       -.35280E-06** at limit **
  12  Prefactor     24.339        24.354        .13561E-07   -.50248E-04
  13  norm          21.286        25.342       -.33262E-07   -.31187E-05
  14  Prefactor     .16401        11.464        .19652E-05   -.54389E-03
  15  norm          1.8110        2.7998        .51613E-07   -.80189E-04
  16  Prefactor     .10000E-03    2.8595       -.26176E-07** at limit **
  17  Prefactor     .10000E-03    23.472        .11414E-06** at limit **
  18  norm          5.8070        6.8098        .21424E-06    .10034E-03
  19  norm          .10000E-03    1.3472       -.11889E-06** at limit **
  20  norm          .10000E-03    2.3253       -.43656E-07** at limit **
  21  Prefactor     9.0805        21.974       -.13477E-06   -.43953E-04
  22  Normalizat    .97620        .26886       -.11433E-05    .40462E-04
  23  Prefactor     .99794        .13272        .72908E-06   -.36077E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 4.43903
  norm       = 13.3832
  norm       = 0.0001
  Prefactor  = 6.6045
  Prefactor  = 22.4523
  Prefactor  = 30.5189
  norm       = 3.30026
  norm       = 0.000100002
  norm       = 0.521381
  Prefactor  = 0.0001
  Prefactor  = 24.3394
  norm       = 21.2864
  Prefactor  = 0.164015
  norm       = 1.81099
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.80698
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 9.08047
  Normalizat = 0.976198
  Prefactor  = 0.997937
 **********
 **   18 **HESSE 
 **********

 FCN=   5816.982     FROM HESSE     STATUS=OK           380 CALLS     3026 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.1252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.4390        3.1508        .11048E-03   -1.5287    
   3  norm          13.383        11.552        .10949E-03   -1.4976    
   4  norm          .10000E-03    3.4518        .13838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.6045        14.323        .15612E-03   -1.5194    
   6  Prefactor     22.452        13.605        .84556E-04   -1.4760    
   7  Prefactor     30.519        29.424        .72637E-04   -1.4603    
   8  norm          3.3003        2.1528        .83818E-04   -1.5345    
   9  norm          .10000E-03    6.4872        .26158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .52138        37.222        .31118E-02   -1.5564    
  11  Prefactor     .10000E-03    19.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     24.339        24.371        .81212E-04   -1.4721    
  13  norm          21.286        25.342        .86846E-04   -1.4785    
  14  Prefactor     .16401        17.136        .68036E-01   -1.5627    
  15  norm          1.8110        2.7746        .15415E-03   -1.5439    
  16  Prefactor     .10000E-03    2.8801        .12583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    23.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.8070        6.7935        .16669E-03   -1.5226    
  19  norm          .10000E-03    2.7651        .17118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.3272        .11357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.0805        22.005        .13305E-03   -1.5105    
  22  Normalizat    .97620        .31169        .36442E-03   -.93832    
  23  Prefactor     .99794        .15767        .19079E-03   -.92798    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.47579e-09
Minuit parameter uncertainties:
  1  5.23636e-06
  2  3.15091
  3  11.5536
  4  4.13789e-07
  5  14.3308
  6  13.607
  7  29.4381
  8  2.15284
  9  0.000202275
  10  8.81545
  11  0.000175073
  12  24.3811
  13  25.355
  14  3.3529
  15  2.7748
  16  9.97511e-06
  17  7.53668e-05
  18  6.79443
  19  1.5584e-05
  20  1.90656e-08
  21  22.0251
  22  0.312273
  23  0.157738
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  5.214e-01  8.815e+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:  9.979e-01  1.577e-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:  9.762e-01  3.123e-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.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.43e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/797751/likelihoodResults_323049601_323308801_4FGL_J1337.6-1257_daily_bin323.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): 102
logL (Free Index) = 5816.94615349
delta logL = 0.0356961036268

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5816.87978183
delta logL = 0.102067767281

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8576       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5139       1.0000          .0000       5.0000    
     3 'Normalizat'    .98630       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98921       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=   5816.880     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      223 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8575        7.8375        .60124E-02    .11020E-02
   2  alpha         1.5149        1.0473        .46182       -.31502E-04
   3  Normalizat    .98617        .24532        .81943E-01    .19048E-04
   4  Prefactor     .98926        .13126        .46132E-01    .16578E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.85752
  alpha      = 1.51487
  Normalizat = 0.986168
  Prefactor  = 0.989264
 **********
 **   18 **HESSE 
 **********

 FCN=   5816.880     FROM HESSE     STATUS=OK            33 CALLS      256 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8575        6.9387        .24050E-03   -1.5370    
   2  alpha         1.5149        1.1001        .30487E-01   -.40503    
   3  Normalizat    .98617        .28449        .36273E-03   -.93495    
   4  Prefactor     .98926        .15240        .19147E-03   -.93088    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.62909e-10
Minuit parameter uncertainties:
  1  6.94066
  2  1.1472
  3  0.28493
  4  0.152467
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/797751': 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) = 5816.8797814
delta logL = 0.102068201882

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  2.858e+00  6.941e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.515e+00  1.147e+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:  9.893e-01  1.525e-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:  9.862e-01  2.849e-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/797751/cmap_HighResolution_323049601_323308801_4FGL_J1337.6-1257_daily_bin323.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.43e-05', job_status='DONE', photon_flux_upper_limit='1.23e-07', time_completed='2021-09-08 04:50:41.874849', job_id='797751', GAL2='0.99', fit_tolerance='1e-08', EG2='0.99', EG='0.98', time_epoch_completed='1631101841.87', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.02e-01', ts2='0.21', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='323' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:50:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0136>
Subject: Job 797751: <4FGL_J1337.6-1257_daily_bin323> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin323> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 04:35:27 2021
Job was executed on host(s) <bullet0136>, 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:50:42 2021
Results reported at Wed Sep  8 04:50:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin323 204.424 -12.9517 323049601 323308801 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 :                                   619.00 sec.
    Max Memory :                                 1231 MB
    Average Memory :                             308.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   824 sec.
    Turnaround time :                            915 sec.

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

