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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin252
RA = 204.424, Dec = -12.9517
tmin = 304646401, tmax = 304905601
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='797647', job_status='RUN', time_executed='2021-09-08 04:37:43.965115', time_epoch_executed='1631101063.97' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='252'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/797647

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/797647/ft1_4FGL_J1337.6-1257_daily_bin252.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/797647/ft2_4FGL_J1337.6-1257_daily_bin252.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/797647/ft1_4FGL_J1337.6-1257_daily_bin252.fits outfile=/scratch/kocevski/797647/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin252.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=304646401.0 tmax=304905601.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.50
user 3.26
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/797647/ft1_filtered_4FGL_J1337.6-1257_daily_bin252.fits" evtable="EVENTS" scfile=/scratch/kocevski/797647/ft2_4FGL_J1337.6-1257_daily_bin252.fits sctable="SC_DATA" outfile=/scratch/kocevski/797647/ltcube_304646401_304905601_4FGL_J1337.6-1257_daily_bin252.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/797647/ft2_4FGL_J1337.6-1257_daily_bin252.fits
.....................!
real 17.78
user 17.02
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/797647/ft1_filtered_4FGL_J1337.6-1257_daily_bin252.fits evtable="EVENTS" scfile=/scratch/kocevski/797647/ft2_4FGL_J1337.6-1257_daily_bin252.fits sctable="SC_DATA" expcube=/scratch/kocevski/797647/ltcube_304646401_304905601_4FGL_J1337.6-1257_daily_bin252.fits outfile=/scratch/kocevski/797647/expmap_304646401_304905601_4FGL_J1337.6-1257_daily_bin252.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/797647/ltcube_304646401_304905601_4FGL_J1337.6-1257_daily_bin252.fits
.....................!
real 196.31
user 190.11
sys 5.44

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/797647/ft1_filtered_4FGL_J1337.6-1257_daily_bin252.fits scfile=/scratch/kocevski/797647/ft2_4FGL_J1337.6-1257_daily_bin252.fits outfile=/scratch/kocevski/797647/cmap_304646401_304905601_4FGL_J1337.6-1257_daily_bin252.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.59
user 0.42
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/797647/ft1_filtered_4FGL_J1337.6-1257_daily_bin252.fits scfile=/scratch/kocevski/797647/ft2_4FGL_J1337.6-1257_daily_bin252.fits outfile=/scratch/kocevski/797647/cmap_HighResolution_304646401_304905601_4FGL_J1337.6-1257_daily_bin252.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.60
user 0.42
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/797647/ft1_filtered_4FGL_J1337.6-1257_daily_bin252.fits evtable="EVENTS" scfile=/scratch/kocevski/797647/ft2_4FGL_J1337.6-1257_daily_bin252.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/797647/Model_4FGL_J1337.6-1257_daily_bin252.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/797647/ft1_filtered_4FGL_J1337.6-1257_daily_bin252.fits.....................!
real 55.07
user 53.56
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6955       1.0000         .10000E-03   10000.    
     2 'norm      '    2.2628       1.0000         .10000E-03   10000.    
     3 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.2191       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.7859       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.072       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.917       1.0000         .10000E-03   10000.    
    13 'norm      '    .24373E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10399E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.4239       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.9037       1.0000         .10000E-03   10000.    
    17 'Prefactor '    69.989       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.7878       1.0000         .10000E-03   10000.    
    20 'norm      '    2.6709       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .15512E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3947       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .78389       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=   6212.810     FROM MIGRAD    STATUS=CONVERGED    521 CALLS     2606 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6955        6.8483        .50284E-05   -.87362E-04
   2  norm          2.2630        2.8775        .74822E-07    .27460E-05
   3  norm          .10000E-03    36.277        .41115E-06** at limit **
   4  norm          .10000E-03    23.522       -.42713E-06** at limit **
   5  Prefactor     .10000E-03    2.9555       -.12095E-08** at limit **
   6  Prefactor     7.2203        7.9301        .79466E-07    .12056E-04
   7  Prefactor     .10000E-03    11.651       -.37954E-07** at limit **
   8  norm          5.7858        2.1187       -.11666E-07   -.21850E-03
   9  norm          .10000E-03    1.4385       -.11517E-07** at limit **
  10  norm          .10000E-03    4.6105        .30228E-07** at limit **
  11  Prefactor     21.078        17.939        .27656E-06    .28985E-04
  12  Prefactor     12.928        35.395       -.13280E-05   -.31240E-04
  13  norm          .10000E-03    97.183        .68077E-05** at limit **
  14  Prefactor     .10000E-03    8.9790        .15727E-06** at limit **
  15  norm          3.4241        3.7815        .59360E-06   -.55836E-05
  16  Prefactor     9.9033        6.6030        .96233E-07    .85050E-04
  17  Prefactor     69.999        61.207       -.11662E-05   -.30870E-04
  18  norm          .10000E-03    7.4910       -.45674E-07** at limit **
  19  norm          2.7876        2.6778        .77113E-06    .17779E-04
  20  norm          2.6695        5.4531        .10935E-05    .31704E-03
  21  Prefactor     .10000E-03    73.318       -.50135E-05** at limit **
  22  Normalizat    1.3946        .25500        .11357E-06    .10440E-03
  23  Prefactor     .78377        .12771       -.59853E-06    .14150E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.69554
  norm       = 2.26304
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.22027
  Prefactor  = 0.0001
  norm       = 5.78579
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 21.0778
  Prefactor  = 12.9277
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 3.4241
  Prefactor  = 9.90326
  Prefactor  = 69.9987
  norm       = 0.0001
  norm       = 2.78759
  norm       = 2.66948
  Prefactor  = 0.0001
  Normalizat = 1.39461
  Prefactor  = 0.783768
 **********
 **   18 **HESSE 
 **********

 FCN=   6212.810     FROM HESSE     STATUS=OK           370 CALLS     2976 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6955        6.8558        .12407E-02   -1.5380    
   2  norm          2.2630        2.8676        .14549E-03   -1.5407    
   3  norm          .10000E-03    37.693        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    23.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.9583        .13233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.2203        7.9509        .14929E-03   -1.5170    
   7  Prefactor     .10000E-03    11.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.7858        2.1299        .65692E-04   -1.5227    
   9  norm          .10000E-03    1.4496        .92285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    4.6478        .16519E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     21.078        17.936        .87255E-04   -1.4789    
  12  Prefactor     12.928        35.446        .11145E-03   -1.4989    
  13  norm          .10000E-03    98.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.0097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.4241        3.7729        .77633E-03   -1.5338    
  16  Prefactor     9.9033        6.6232        .12733E-03   -1.5078    
  17  Prefactor     69.999        61.282        .47982E-04   -1.4033    
  18  norm          .10000E-03    7.6359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.7876        2.6757        .60006E-03   -1.5374    
  20  norm          2.6695        5.4698        .24937E-03   -1.5381    
  21  Prefactor     .10000E-03    75.315        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3946        .30243        .31633E-03   -.80785    
  23  Prefactor     .78377        .15061        .20981E-03   -1.0033    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9364e-10
Minuit parameter uncertainties:
  1  6.85781
  2  2.86774
  3  0.000146738
  4  6.09862e-05
  5  1.49088e-06
  6  7.95211
  7  4.85685e-06
  8  2.12993
  9  6.0422e-07
  10  3.54743e-06
  11  17.9404
  12  35.5033
  13  0.000461729
  14  2.01224e-05
  15  3.77312
  16  6.62364
  17  61.3376
  18  3.95323e-06
  19  2.67586
  20  5.47085
  21  0.000122336
  22  0.302816
  23  0.15069
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.000e-04  3.547e-06  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:  7.838e-01  1.507e-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.395e+00  3.028e-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: 9.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.36e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/797647/likelihoodResults_304646401_304905601_4FGL_J1337.6-1257_daily_bin252.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) = 6212.81116965
delta logL = -0.00102501590027

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6212.81014471
delta logL = -7.42165866541e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10218E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3284       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3945       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78383       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=   6212.810     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      198 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.2894        .90712E-02** at limit **
   2  alpha         2.3524        3.5924        .41275       -.25687E-04
   3  Normalizat    1.3946        .23990        .71492E-01    .15009E-03
   4  Prefactor     .78377        .12399        .43506E-01    .23804E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100003
  alpha      = 2.35238
  Normalizat = 1.39461
  Prefactor  = 0.783769
 **********
 **   18 **HESSE 
 **********

 FCN=   6212.810     FROM HESSE     STATUS=OK            31 CALLS      229 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.9319        .16893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3524        3.5207        .50000       -.59082E-01
   3  Normalizat    1.3946        .27998        .31633E-03   -.80785    
   4  Prefactor     .78377        .14485        .20981E-03   -1.0033    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21934e-09
Minuit parameter uncertainties:
  1  0.000253202
  2  2.51453
  3  0.280285
  4  0.144919
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/797647': 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) = 6212.81014415
delta logL = 4.86047611048e-07

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.000e-04  2.532e-04  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.352e+00  2.515e+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:  7.838e-01  1.449e-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.395e+00  2.803e-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/797647/cmap_HighResolution_304646401_304905601_4FGL_J1337.6-1257_daily_bin252.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.36e-05', job_status='DONE', photon_flux_upper_limit='9.31e-08', time_completed='2021-09-08 04:48:52.377145', job_id='797647', GAL2='0.78', fit_tolerance='1e-08', EG2='1.39', EG='1.39', time_epoch_completed='1631101732.38', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='4.86e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='252' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:48:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 797647: <4FGL_J1337.6-1257_daily_bin252> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin252 204.424 -12.9517 304646401 304905601 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 :                                   663.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             274.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            813 sec.

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

