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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin179
RA = 204.424, Dec = -12.9517
tmin = 285724801, tmax = 285984001
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='796286', job_status='RUN', time_executed='2021-09-08 04:32:05.899936', time_epoch_executed='1631100725.9' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='179'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/796286

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/796286/ft1_4FGL_J1337.6-1257_daily_bin179.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/796286/ft2_4FGL_J1337.6-1257_daily_bin179.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/796286/ft1_4FGL_J1337.6-1257_daily_bin179.fits outfile=/scratch/kocevski/796286/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin179.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=285724801.0 tmax=285984001.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.47
user 3.25
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/796286/ft1_filtered_4FGL_J1337.6-1257_daily_bin179.fits" evtable="EVENTS" scfile=/scratch/kocevski/796286/ft2_4FGL_J1337.6-1257_daily_bin179.fits sctable="SC_DATA" outfile=/scratch/kocevski/796286/ltcube_285724801_285984001_4FGL_J1337.6-1257_daily_bin179.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/796286/ft2_4FGL_J1337.6-1257_daily_bin179.fits
.....................!
real 11.77
user 11.37
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/796286/ft1_filtered_4FGL_J1337.6-1257_daily_bin179.fits evtable="EVENTS" scfile=/scratch/kocevski/796286/ft2_4FGL_J1337.6-1257_daily_bin179.fits sctable="SC_DATA" expcube=/scratch/kocevski/796286/ltcube_285724801_285984001_4FGL_J1337.6-1257_daily_bin179.fits outfile=/scratch/kocevski/796286/expmap_285724801_285984001_4FGL_J1337.6-1257_daily_bin179.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/796286/ltcube_285724801_285984001_4FGL_J1337.6-1257_daily_bin179.fits
.....................!
real 158.89
user 152.97
sys 4.68

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/796286/ft1_filtered_4FGL_J1337.6-1257_daily_bin179.fits scfile=/scratch/kocevski/796286/ft2_4FGL_J1337.6-1257_daily_bin179.fits outfile=/scratch/kocevski/796286/cmap_285724801_285984001_4FGL_J1337.6-1257_daily_bin179.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.48
user 0.31
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/796286/ft1_filtered_4FGL_J1337.6-1257_daily_bin179.fits scfile=/scratch/kocevski/796286/ft2_4FGL_J1337.6-1257_daily_bin179.fits outfile=/scratch/kocevski/796286/cmap_HighResolution_285724801_285984001_4FGL_J1337.6-1257_daily_bin179.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.51
user 0.33
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/796286/ft1_filtered_4FGL_J1337.6-1257_daily_bin179.fits evtable="EVENTS" scfile=/scratch/kocevski/796286/ft2_4FGL_J1337.6-1257_daily_bin179.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/796286/Model_4FGL_J1337.6-1257_daily_bin179.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/796286/ft1_filtered_4FGL_J1337.6-1257_daily_bin179.fits.....................!
real 37.99
user 36.37
sys 1.05

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.4999       1.0000         .10000E-03   10000.    
     2 'norm      '    5.0615       1.0000         .10000E-03   10000.    
     3 'norm      '    .36143       1.0000         .10000E-03   10000.    
     4 'norm      '    .15853E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .81522       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.4330       1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10134E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11144E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    20.835       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.593       1.0000         .10000E-03   10000.    
    15 'norm      '    7.1400       1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.776       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .71956E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10373E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.7825       1.0000         .10000E-03   10000.    
    20 'norm      '    4.6672       1.0000         .10000E-03   10000.    
    21 'Prefactor '    29.827       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.6177       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .69882       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=   5180.051     FROM MIGRAD    STATUS=CONVERGED    533 CALLS     2564 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.5011        8.0046        .57344E-07   -.29457E-05
   2  norm          5.0587        3.6465       -.79393E-07   -.78549E-05
   3  norm          .25136        9.1570       -.48684E-07   -.18035E-03
   4  norm          .10003E-03    9.0250        .67946E-06** at limit **
   5  Prefactor     .10000E-03    5.1855        .67369E-07** at limit **
   6  Prefactor     .82753        8.6508       -.63636E-05    .55942E-03
   7  Prefactor     .10000E-03    15.863        .87582E-05** at limit **
   8  norm          1.4331        1.5449        .38304E-07    .18280E-03
   9  norm          .10000E-03    1.7734        .72366E-07** at limit **
  10  norm          .10000E-03    3.2474       -.35976E-07** at limit **
  11  Prefactor     .10000E-03    30.408       -.33342E-05** at limit **
  12  Prefactor     .10000E-03    15.348       -.78754E-05** at limit **
  13  norm          20.861        21.810       -.19056E-05    .64174E-05
  14  Prefactor     10.577        18.118        .49471E-05    .14455E-03
  15  norm          7.1297        6.7106        .10686E-05    .64875E-03
  16  Prefactor     18.769        8.4838        .39347E-06    .76213E-03
  17  Prefactor     .10004E-03    397.82       -.16340E-03** at limit **
  18  norm          .10000E-03    8.4926       -.60187E-06** at limit **
  19  norm          3.7826        2.9973        .14483E-06   -.25153E-04
  20  norm          4.6671        5.4641       -.45486E-05   -.46404E-05
  21  Prefactor     29.837        28.824        .56846E-06    .27353E-04
  22  Normalizat    1.6180        .28291        .10239E-05    .66572E-03
  23  Prefactor     .69867        .13807       -.29524E-06    .84630E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.50108
  norm       = 5.05873
  norm       = 0.251362
  norm       = 0.000100029
  Prefactor  = 0.0001
  Prefactor  = 0.827528
  Prefactor  = 0.0001
  norm       = 1.43309
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 20.8613
  Prefactor  = 10.5767
  norm       = 7.12967
  Prefactor  = 18.769
  Prefactor  = 0.000100038
  norm       = 0.0001
  norm       = 3.78264
  norm       = 4.66706
  Prefactor  = 29.8373
  Normalizat = 1.61799
  Prefactor  = 0.698667
 **********
 **   18 **HESSE 
 **********

 FCN=   5180.051     FROM HESSE     STATUS=OK           384 CALLS     2948 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.5011        8.0050        .13750E-03   -1.5125    
   2  norm          5.0587        3.6493        .11283E-03   -1.5258    
   3  norm          .25136        92.253        .41937E-02   -1.5608    
   4  norm          .10003E-03    10.949        .76057E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.1958        .16004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .82753        19.305        .39065E-02   -1.5526    
   7  Prefactor     .10000E-03    15.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.4331        1.5344        .88241E-04   -1.5469    
   9  norm          .10000E-03    1.7928        .93555E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.2573        .12664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    30.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          20.861        21.811        .87749E-04   -1.4794    
  14  Prefactor     10.577        18.108        .12310E-03   -1.5057    
  15  norm          7.1297        6.7265        .15012E-03   -1.5174    
  16  Prefactor     18.769        8.5112        .92431E-04   -1.4841    
  17  Prefactor     .10004E-03    401.93        .41928E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    8.5906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.7826        2.9977        .10653E-03   -1.5319    
  20  norm          4.6671        5.4693        .17719E-03   -1.5276    
  21  Prefactor     29.837        28.826        .73361E-04   -1.4615    
  22  Normalizat    1.6180        .32848        .30237E-03   -.74515    
  23  Prefactor     .69867        .15993        .22354E-03   -1.0358    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.80129e-09
Minuit parameter uncertainties:
  1  8.00599
  2  3.6495
  3  9.64408
  4  0.00112136
  5  1.38842e-05
  6  7.99624
  7  4.08203e-06
  8  1.53446
  9  9.47515e-07
  10  1.34334e-06
  11  0.000594253
  12  4.05919e-05
  13  21.8196
  14  18.1169
  15  6.72721
  16  8.51179
  17  0.00789853
  18  1.0579e-05
  19  2.99784
  20  5.4699
  21  28.8393
  22  0.328919
  23  0.160034
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.000e-04  1.343e-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:  6.987e-01  1.600e-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.618e+00  3.289e-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: 8.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.21e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/796286/likelihoodResults_285724801_285984001_4FGL_J1337.6-1257_daily_bin179.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) = 5180.05234345
delta logL = -0.00145497656649

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5179.84129253
delta logL = 0.209595943719

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13724       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5603       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71644       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5179.841     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      339 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13755        .23911        .43111E-03    .97450E-02
   2  alpha         5.0000        3.3198        .41126    ** at limit **
   3  Normalizat    1.5603        .31553        .30666E-03   -.13828E-04
   4  Prefactor     .71631        .15772        .22100E-03    .29322E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.13755
  alpha      = 5
  Normalizat = 1.56028
  Prefactor  = 0.716314
 **********
 **   18 **HESSE 
 **********

 FCN=   5179.841     FROM HESSE     STATUS=OK            27 CALLS      366 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .13755        .23281        .86222E-04   -1.5634    
   2  alpha         5.0000        3.3032        .82076E-01    1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.5603        .31424        .12266E-04   -.76098    
   4  Prefactor     .71631        .15754        .88400E-05   -1.0289    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69124e-09
Minuit parameter uncertainties:
  1  0.23281
  2  0.000187119
  3  0.314639
  4  0.157642
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/796286': 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) = 5179.84129046
delta logL = 0.209598017648

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.375e-01  2.328e-01  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  5.000e+00  1.871e-04  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.163e-01  1.576e-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.560e+00  3.146e-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/796286/cmap_HighResolution_285724801_285984001_4FGL_J1337.6-1257_daily_bin179.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.21e-05', job_status='DONE', photon_flux_upper_limit='8.92e-08', time_completed='2021-09-08 04:40:26.781407', job_id='796286', GAL2='0.72', fit_tolerance='1e-08', EG2='1.56', EG='1.62', time_epoch_completed='1631101226.78', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='2.10e-01', ts2='0.46', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='179' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:40:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 796286: <4FGL_J1337.6-1257_daily_bin179> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin179> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 04:30:42 2021
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:31:51 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:31:51 2021
Terminated at Wed Sep  8 04:40:27 2021
Results reported at Wed Sep  8 04:40:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin179 204.424 -12.9517 285724801 285984001 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 :                                   488.23 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             341.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   516 sec.
    Turnaround time :                            585 sec.

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

