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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1241
RA = 204.424, Dec = -12.9517
tmin = 560995201, tmax = 561254401
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='804995', job_status='RUN', time_executed='2021-09-08 04:59:59.484735', time_epoch_executed='1631102399.48' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1241'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/804995

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/804995/ft1_4FGL_J1337.6-1257_daily_bin1241.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/804995/ft2_4FGL_J1337.6-1257_daily_bin1241.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/804995/ft1_4FGL_J1337.6-1257_daily_bin1241.fits outfile=/scratch/kocevski/804995/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1241.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=560995201.0 tmax=561254401.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.80
user 3.53
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/804995/ft1_filtered_4FGL_J1337.6-1257_daily_bin1241.fits" evtable="EVENTS" scfile=/scratch/kocevski/804995/ft2_4FGL_J1337.6-1257_daily_bin1241.fits sctable="SC_DATA" outfile=/scratch/kocevski/804995/ltcube_560995201_561254401_4FGL_J1337.6-1257_daily_bin1241.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/804995/ft2_4FGL_J1337.6-1257_daily_bin1241.fits
.....................!
real 14.11
user 13.77
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/804995/ft1_filtered_4FGL_J1337.6-1257_daily_bin1241.fits evtable="EVENTS" scfile=/scratch/kocevski/804995/ft2_4FGL_J1337.6-1257_daily_bin1241.fits sctable="SC_DATA" expcube=/scratch/kocevski/804995/ltcube_560995201_561254401_4FGL_J1337.6-1257_daily_bin1241.fits outfile=/scratch/kocevski/804995/expmap_560995201_561254401_4FGL_J1337.6-1257_daily_bin1241.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/804995/ltcube_560995201_561254401_4FGL_J1337.6-1257_daily_bin1241.fits
.....................!
real 194.11
user 188.20
sys 5.39

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/804995/ft1_filtered_4FGL_J1337.6-1257_daily_bin1241.fits scfile=/scratch/kocevski/804995/ft2_4FGL_J1337.6-1257_daily_bin1241.fits outfile=/scratch/kocevski/804995/cmap_560995201_561254401_4FGL_J1337.6-1257_daily_bin1241.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.57
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/804995/ft1_filtered_4FGL_J1337.6-1257_daily_bin1241.fits scfile=/scratch/kocevski/804995/ft2_4FGL_J1337.6-1257_daily_bin1241.fits outfile=/scratch/kocevski/804995/cmap_HighResolution_560995201_561254401_4FGL_J1337.6-1257_daily_bin1241.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/804995/ft1_filtered_4FGL_J1337.6-1257_daily_bin1241.fits evtable="EVENTS" scfile=/scratch/kocevski/804995/ft2_4FGL_J1337.6-1257_daily_bin1241.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/804995/Model_4FGL_J1337.6-1257_daily_bin1241.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/804995/ft1_filtered_4FGL_J1337.6-1257_daily_bin1241.fits.....................!
real 37.09
user 35.80
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.759       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    27.421       1.0000         .10000E-03   10000.    
     4 'norm      '    109.78       1.0000         .10000E-03   10000.    
     5 'Prefactor '    43.596       1.0000         .10000E-03   10000.    
     6 'Prefactor '    55.920       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10298E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .30932E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .12072E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .95615       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.000       1.0000         .10000E-03   10000.    
    13 'norm      '    .10257E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.6022       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    120.67       1.0000         .10000E-03   10000.    
    18 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    27.233       1.0000         .10000E-03   10000.    
    20 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12838E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1267       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0058       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=   3350.048     FROM MIGRAD    STATUS=CONVERGED    503 CALLS     2571 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.761        14.661       -.27213E-06   -.78179E-04
   2  norm          .10000E-03    .81715        .37383E-07** at limit **
   3  norm          27.418        40.616       -.15942E-07   -.60793E-05
   4  norm          109.75        65.810        .18907E-06    .79191E-04
   5  Prefactor     43.574        32.039       -.62591E-06   -.48716E-03
   6  Prefactor     55.881        41.972        .20356E-06   -.23515E-03
   7  Prefactor     .10000E-03    29.002        .89035E-06** at limit **
   8  norm          .10000E-03    5.9348        .17898E-05** at limit **
   9  norm          .10001E-03    15.443        .63496E-05** at limit **
  10  norm          .10000E-03    28.644        .26584E-05** at limit **
  11  Prefactor     1.0334        155.29       -.25910E-04    .75180E-04
  12  Prefactor     13.018        33.490       -.42483E-06   -.40703E-04
  13  norm          .10002E-03    94.295       -.16449E-05** at limit **
  14  Prefactor     .10000E-03    9.0352        .43887E-08** at limit **
  15  norm          3.6058        11.514       -.37407E-06   -.17503E-03
  16  Prefactor     .10000E-03    5.3463        .59421E-06** at limit **
  17  Prefactor     120.62        103.77       -.93699E-07    .68703E-05
  18  norm          .10000E-03    7.5542        .34026E-06** at limit **
  19  norm          27.232        12.471        .26361E-06    .34958E-03
  20  norm          .10000E-03    19.326        .26602E-06** at limit **
  21  Prefactor     .10006E-03    130.25        .46149E-05** at limit **
  22  Normalizat    1.1280        .43890       -.67449E-05   -.20255E-03
  23  Prefactor     1.0053        .20303        .36908E-05   -.11491E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.761
  norm       = 0.0001
  norm       = 27.4179
  norm       = 109.749
  Prefactor  = 43.5742
  Prefactor  = 55.8814
  Prefactor  = 0.000100001
  norm       = 0.000100004
  norm       = 0.000100005
  norm       = 0.000100003
  Prefactor  = 1.03342
  Prefactor  = 13.0178
  norm       = 0.000100015
  Prefactor  = 0.0001
  norm       = 3.60576
  Prefactor  = 0.0001
  Prefactor  = 120.625
  norm       = 0.0001
  norm       = 27.2319
  norm       = 0.0001
  Prefactor  = 0.000100065
  Normalizat = 1.12801
  Prefactor  = 1.00526
 **********
 **   18 **HESSE 
 **********

 FCN=   3350.048     FROM HESSE     STATUS=OK           362 CALLS     2933 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.761        14.684        .11214E-03   -1.4993    
   2  norm          .10000E-03    .81944        .51110E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          27.418        40.614        .76505E-04   -1.4660    
   4  norm          109.75        65.906        .19195E-03   -1.3609    
   5  Prefactor     43.574        31.926        .60718E-04   -1.4387    
   6  Prefactor     55.881        42.000        .53643E-04   -1.4211    
   7  Prefactor     .10000E-03    29.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.2229        .13996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10001E-03    15.837        .28728E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    29.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.0334        167.95        .45243E-02   -1.5505    
  12  Prefactor     13.018        33.469        .11110E-03   -1.4986    
  13  norm          .10002E-03    95.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.0721        .16983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.6058        11.434        .21290E-03   -1.5328    
  16  Prefactor     .10000E-03    5.3803        .13093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     120.62        103.53        .18318E-03   -1.3507    
  18  norm          .10000E-03    7.5751        .15544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          27.232        12.508        .76767E-04   -1.4664    
  20  norm          .10000E-03    19.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10006E-03    133.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1280        .52261        .41865E-03   -.88857    
  23  Prefactor     1.0053        .23801        .20171E-03   -.92555    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.82332e-09
Minuit parameter uncertainties:
  1  14.6883
  2  2.42358e-07
  3  40.6553
  4  65.9495
  5  31.9381
  6  42.0222
  7  0.000241743
  8  0.000334633
  9  0.000566699
  10  0.000623975
  11  26.4232
  12  33.517
  13  0.00241395
  14  4.77699e-06
  15  11.4406
  16  8.71437e-05
  17  103.682
  18  5.65286e-05
  19  12.5094
  20  2.491e-05
  21  0.00588832
  22  0.525037
  23  0.238256
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.000e-04  6.240e-04  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.005e+00  2.383e-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.128e+00  5.250e-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: 2.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.62e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/804995/likelihoodResults_560995201_561254401_4FGL_J1337.6-1257_daily_bin1241.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) = 3350.04840937
delta logL = -0.000163101045928

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3350.04824561
delta logL = 6.59521447233e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8248       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1280       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0053       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3350.048     FROM MIGRAD    STATUS=FAILED        93 CALLS      272 TOTAL
                     EDM=   .87E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10071E-03    1871.5        .35778E-02** at limit **
   2  alpha         2.7225        3.4840        .16640        .59144E-06
   3  Normalizat    1.1280        .67832E-01    .41864E-03   -.11176E-03
   4  Prefactor     1.0053        .31266E-01    .20171E-03   -.26059E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3350.048     FROM SIMPLEX   STATUS=UNCHANGED    152 CALLS      424 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10071E-03    1871.5        .13988E-02** at limit **
   2  alpha         2.7225        3.4840        .24175E-04    .59144E-06
   3  Normalizat    1.1280        .67832E-01    .11806E-05   -.11176E-03
   4  Prefactor     1.0053        .31266E-01    .24794E-06   -.26059E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3350.048     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      452 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10044E-03    57.995        .71557E-03** at limit **
   2  alpha         2.7296        3.4498        .66558E-02    .79067E-06
   3  Normalizat    1.1280        .49592        .16746E-04   -.10971E-03
   4  Prefactor     1.0053        .22940        .40343E-04   -.25664E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100442
  alpha      = 2.72959
  Normalizat = 1.12803
  Prefactor  = 1.00525
 **********
 **   18 **HESSE 
 **********

 FCN=   3350.048     FROM HESSE     STATUS=OK            23 CALLS      475 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10044E-03    52.099        .14311E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.7296        3.3340        .13312E-02    .91964E-01
   3  Normalizat    1.1280        .49618        .33491E-05   -.88857    
   4  Prefactor     1.0053        .22951        .80685E-05   -.92555    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63589e-08
Minuit parameter uncertainties:
  1  0.00960055
  2  295.274
  3  0.498253
  4  0.229729
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/804995': 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) = 3350.04824553
delta logL = 7.43058080843e-07

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.004e-04  9.601e-03  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.730e+00  2.953e+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.005e+00  2.297e-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.128e+00  4.983e-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/804995/cmap_HighResolution_560995201_561254401_4FGL_J1337.6-1257_daily_bin1241.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.62e-05', job_status='DONE', photon_flux_upper_limit='2.12e-07', time_completed='2021-09-08 05:09:45.750822', job_id='804995', GAL2='1.01', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1631102985.75', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='7.43e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='1241' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:09:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 804995: <4FGL_J1337.6-1257_daily_bin1241> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin1241> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 04:55:30 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:56:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 04:56:54 2021
Terminated at Wed Sep  8 05:09:46 2021
Results reported at Wed Sep  8 05:09:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1241 204.424 -12.9517 560995201 561254401 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 :                                   497.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   772 sec.
    Turnaround time :                            856 sec.

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

