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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1556
RA = 204.424, Dec = -12.9517
tmin = 642643201, tmax = 642902401
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='806580', job_status='RUN', time_executed='2021-09-08 05:00:40.596633', time_epoch_executed='1631102440.6' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1556'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/806580

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/806580/ft1_4FGL_J1337.6-1257_daily_bin1556.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/806580/ft2_4FGL_J1337.6-1257_daily_bin1556.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/806580/ft1_4FGL_J1337.6-1257_daily_bin1556.fits outfile=/scratch/kocevski/806580/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1556.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=642643201.0 tmax=642902401.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.61
user 3.34
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/806580/ft1_filtered_4FGL_J1337.6-1257_daily_bin1556.fits" evtable="EVENTS" scfile=/scratch/kocevski/806580/ft2_4FGL_J1337.6-1257_daily_bin1556.fits sctable="SC_DATA" outfile=/scratch/kocevski/806580/ltcube_642643201_642902401_4FGL_J1337.6-1257_daily_bin1556.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/806580/ft2_4FGL_J1337.6-1257_daily_bin1556.fits
.....................!
real 14.61
user 14.23
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/806580/ft1_filtered_4FGL_J1337.6-1257_daily_bin1556.fits evtable="EVENTS" scfile=/scratch/kocevski/806580/ft2_4FGL_J1337.6-1257_daily_bin1556.fits sctable="SC_DATA" expcube=/scratch/kocevski/806580/ltcube_642643201_642902401_4FGL_J1337.6-1257_daily_bin1556.fits outfile=/scratch/kocevski/806580/expmap_642643201_642902401_4FGL_J1337.6-1257_daily_bin1556.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/806580/ltcube_642643201_642902401_4FGL_J1337.6-1257_daily_bin1556.fits
.....................!
real 192.22
user 186.78
sys 5.00

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/806580/ft1_filtered_4FGL_J1337.6-1257_daily_bin1556.fits scfile=/scratch/kocevski/806580/ft2_4FGL_J1337.6-1257_daily_bin1556.fits outfile=/scratch/kocevski/806580/cmap_642643201_642902401_4FGL_J1337.6-1257_daily_bin1556.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/806580/ft1_filtered_4FGL_J1337.6-1257_daily_bin1556.fits scfile=/scratch/kocevski/806580/ft2_4FGL_J1337.6-1257_daily_bin1556.fits outfile=/scratch/kocevski/806580/cmap_HighResolution_642643201_642902401_4FGL_J1337.6-1257_daily_bin1556.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.61
user 0.42
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/806580/ft1_filtered_4FGL_J1337.6-1257_daily_bin1556.fits evtable="EVENTS" scfile=/scratch/kocevski/806580/ft2_4FGL_J1337.6-1257_daily_bin1556.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/806580/Model_4FGL_J1337.6-1257_daily_bin1556.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/806580/ft1_filtered_4FGL_J1337.6-1257_daily_bin1556.fits.....................!
real 56.92
user 55.45
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    24.266       1.0000         .10000E-03   10000.    
     4 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.2700       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.1741       1.0000         .10000E-03   10000.    
     9 'norm      '    2.2657       1.0000         .10000E-03   10000.    
    10 'norm      '    1.8382       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11764E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.400       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.413       1.0000         .10000E-03   10000.    
    15 'norm      '    6.5121       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.6396       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    13.740       1.0000         .10000E-03   10000.    
    20 'norm      '    6.6199       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .84448       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1567       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=   6935.219     FROM MIGRAD    STATUS=CONVERGED    500 CALLS     2512 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.4844       -.60443E-07** at limit **
   2  norm          .10000E-03    1.0533       -.80442E-08** at limit **
   3  norm          24.266        14.201       -.44296E-07   -.12956E-04
   4  norm          .10000E-03    7.4225        .30906E-07** at limit **
   5  Prefactor     .10000E-03    4.9698       -.36340E-07** at limit **
   6  Prefactor     5.2711        13.380       -.11069E-05   -.25407E-04
   7  Prefactor     .10001E-03    18.199        .41362E-05** at limit **
   8  norm          3.1741        2.1726       -.97209E-07   -.31193E-03
   9  norm          2.2484        6.0026        .35881E-05   -.83946E-04
  10  norm          1.8728        18.183       -.10790E-04   -.36597E-03
  11  Prefactor     .10000E-03    25.064        .38881E-05** at limit **
  12  Prefactor     21.402        25.717       -.18427E-06   -.10497E-03
  13  norm          .10000E-03    10.126       -.15905E-06** at limit **
  14  Prefactor     15.422        15.194       -.14888E-05    .17460E-03
  15  norm          6.5108        5.8622        .41332E-06   -.31501E-03
  16  Prefactor     9.6372        6.6983        .62303E-06   -.15170E-03
  17  Prefactor     .10000E-03    69.512       -.21067E-05** at limit **
  18  norm          .10000E-03    3.5224        .10240E-07** at limit **
  19  norm          13.740        4.3258       -.32101E-06    .90506E-03
  20  norm          6.6218        10.592       -.30050E-06    .53423E-04
  21  Prefactor     .10002E-03    22.175       -.79421E-05** at limit **
  22  Normalizat    .84455        .28296        .16116E-05    .11687E-04
  23  Prefactor     1.1567        .13743        .35962E-07    .96186E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  norm       = 24.2661
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.27112
  Prefactor  = 0.000100006
  norm       = 3.17409
  norm       = 2.24837
  norm       = 1.87279
  Prefactor  = 0.000100004
  Prefactor  = 21.4016
  norm       = 0.0001
  Prefactor  = 15.4221
  norm       = 6.51076
  Prefactor  = 9.63724
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 13.7401
  norm       = 6.62179
  Prefactor  = 0.000100024
  Normalizat = 0.844551
  Prefactor  = 1.15666
 **********
 **   18 **HESSE 
 **********

 FCN=   6935.219     FROM HESSE     STATUS=OK           370 CALLS     2882 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.4935        .15180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.0628        .83454E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          24.266        14.201        .81317E-04   -1.4722    
   4  norm          .10000E-03    7.4585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.0130        .18127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.2711        13.444        .17509E-03   -1.5249    
   7  Prefactor     .10001E-03    17.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.1741        2.1729        .93259E-04   -1.5352    
   9  norm          2.2484        5.6895        .19505E-03   -1.5408    
  10  norm          1.8728        19.636        .30771E-03   -1.5434    
  11  Prefactor     .10000E-03    25.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     21.402        25.762        .43292E-03   -1.4782    
  13  norm          .10000E-03    10.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.422        15.115        .10202E-03   -1.4922    
  15  norm          6.5108        5.8451        .15727E-03   -1.5198    
  16  Prefactor     9.6372        6.6894        .12907E-03   -1.5087    
  17  Prefactor     .10000E-03    69.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.5307        .15249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          13.740        4.3139        .90690E-04   -1.4966    
  20  norm          6.6218        10.579        .15597E-03   -1.5193    
  21  Prefactor     .10002E-03    20.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .84455        .31482        .42207E-03   -.98437    
  23  Prefactor     1.1567        .15439        .19500E-03   -.87676    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76855e-09
Minuit parameter uncertainties:
  1  5.78766e-07
  2  8.17821e-07
  3  14.2031
  4  2.91499e-06
  5  4.72578e-06
  6  13.4517
  7  0.000636003
  8  2.17297
  9  5.6909
  10  12.133
  11  0.000598951
  12  25.7758
  13  1.89041e-05
  14  15.119
  15  5.8456
  16  6.68987
  17  0.000709094
  18  8.52638e-06
  19  4.31401
  20  10.5823
  21  0.00140265
  22  0.315505
  23  0.154448
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.873e+00  1.213e+01  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.157e+00  1.544e-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:  8.446e-01  3.155e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.07
Ra Dec: 204.424 -12.952
Photon Flux Upper Limit: 1.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.48e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/806580/likelihoodResults_642643201_642902401_4FGL_J1337.6-1257_daily_bin1556.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) = 6934.93947719
delta logL = 0.27945305259

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6934.92906523
delta logL = 0.289865016764

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9725       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4359       1.0000          .0000       5.0000    
     3 'Normalizat'    .79877       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1676       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=   6934.929     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      214 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9771        68.999        .73804E-02    .60565E-03
   2  alpha         3.4359        3.9459        .45567        .41831E-04
   3  Normalizat    .79888        .66627E-01    .97674E-01   -.18354E-03
   4  Prefactor     1.1677        .34943E-01    .35445E-01   -.22063E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.97708
  alpha      = 3.43588
  Normalizat = 0.798876
  Prefactor  = 1.16771
 **********
 **   18 **HESSE 
 **********

 FCN=   6934.929     FROM HESSE     STATUS=OK            31 CALLS      245 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9771        7.1006        .14867E-03   -1.5427    
   2  alpha         3.4359        1.9197        .23462E-01    .38370    
   3  Normalizat    .79888        .28797        .43281E-03   -1.0011    
   4  Prefactor     1.1677        .15135        .19411E-03   -.87331    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.32428e-08
Minuit parameter uncertainties:
  1  7.10358
  2  2.26192
  3  0.288517
  4  0.151408
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/806580': 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) = 6934.92906119
delta logL = 0.289869060813

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.977e+00  7.104e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  3.436e+00  2.262e+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:  1.168e+00  1.514e-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:  7.989e-01  2.885e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.07
Ra Dec: 204.424 -12.952

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/806580/cmap_HighResolution_642643201_642902401_4FGL_J1337.6-1257_daily_bin1556.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.48e-05', job_status='DONE', photon_flux_upper_limit='1.24e-07', time_completed='2021-09-08 05:11:49.968033', job_id='806580', GAL2='1.17', fit_tolerance='1e-08', EG2='0.80', EG='0.84', time_epoch_completed='1631103109.97', return_code2='0', ts='0.07', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='2.90e-01', ts2='0.68', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='1556' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:11:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 806580: <4FGL_J1337.6-1257_daily_bin1556> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin1556> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep  8 05:00:23 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 05:00:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 05:00:25 2021
Terminated at Wed Sep  8 05:11:50 2021
Results reported at Wed Sep  8 05:11:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1556 204.424 -12.9517 642643201 642902401 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.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             346.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   685 sec.
    Turnaround time :                            687 sec.

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

