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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin887
RA = 204.424, Dec = -12.9517
tmin = 469238401, tmax = 469497601
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='803323', job_status='RUN', time_executed='2021-09-08 04:56:14.629454', time_epoch_executed='1631102174.63' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='887'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/803323

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/803323/ft1_4FGL_J1337.6-1257_daily_bin887.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/803323/ft2_4FGL_J1337.6-1257_daily_bin887.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/803323/ft1_4FGL_J1337.6-1257_daily_bin887.fits outfile=/scratch/kocevski/803323/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin887.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=469238401.0 tmax=469497601.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 2.87
user 2.62
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/803323/ft1_filtered_4FGL_J1337.6-1257_daily_bin887.fits" evtable="EVENTS" scfile=/scratch/kocevski/803323/ft2_4FGL_J1337.6-1257_daily_bin887.fits sctable="SC_DATA" outfile=/scratch/kocevski/803323/ltcube_469238401_469497601_4FGL_J1337.6-1257_daily_bin887.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/803323/ft2_4FGL_J1337.6-1257_daily_bin887.fits
.....................!
real 10.70
user 10.36
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/803323/ft1_filtered_4FGL_J1337.6-1257_daily_bin887.fits evtable="EVENTS" scfile=/scratch/kocevski/803323/ft2_4FGL_J1337.6-1257_daily_bin887.fits sctable="SC_DATA" expcube=/scratch/kocevski/803323/ltcube_469238401_469497601_4FGL_J1337.6-1257_daily_bin887.fits outfile=/scratch/kocevski/803323/expmap_469238401_469497601_4FGL_J1337.6-1257_daily_bin887.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/803323/ltcube_469238401_469497601_4FGL_J1337.6-1257_daily_bin887.fits
.....................!
real 158.02
user 153.27
sys 4.27

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/803323/ft1_filtered_4FGL_J1337.6-1257_daily_bin887.fits scfile=/scratch/kocevski/803323/ft2_4FGL_J1337.6-1257_daily_bin887.fits outfile=/scratch/kocevski/803323/cmap_469238401_469497601_4FGL_J1337.6-1257_daily_bin887.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.33
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/803323/ft1_filtered_4FGL_J1337.6-1257_daily_bin887.fits scfile=/scratch/kocevski/803323/ft2_4FGL_J1337.6-1257_daily_bin887.fits outfile=/scratch/kocevski/803323/cmap_HighResolution_469238401_469497601_4FGL_J1337.6-1257_daily_bin887.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/803323/ft1_filtered_4FGL_J1337.6-1257_daily_bin887.fits evtable="EVENTS" scfile=/scratch/kocevski/803323/ft2_4FGL_J1337.6-1257_daily_bin887.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/803323/Model_4FGL_J1337.6-1257_daily_bin887.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/803323/ft1_filtered_4FGL_J1337.6-1257_daily_bin887.fits.....................!
real 52.20
user 50.72
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.0350       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .65662E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.8689       1.0000         .10000E-03   10000.    
     8 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10227E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.1239       1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.474       1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.855       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .54464E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    .70470       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.8271       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.1076       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    8.8645       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.0595       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4130       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0618       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=   7691.296     FROM MIGRAD    STATUS=CONVERGED    580 CALLS     2662 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.8663       -.12381E-06** at limit **
   2  norm          .10000E-03    .88611        .43666E-07** at limit **
   3  norm          .10000E-03    4.8573       -.33518E-06** at limit **
   4  norm          .10000E-03    3.2508       -.98299E-07** at limit **
   5  Prefactor     1.0196        9.5095        .26090E-05   -.57499E-03
   6  Prefactor     .10010E-03    7.2135       -.77622E-06** at limit **
   7  Prefactor     5.9074        21.802       -.30859E-05   -.10588E-03
   8  norm          .10000E-03    .77055       -.29857E-07** at limit **
   9  norm          .10000E-03    3.1730        .96613E-08** at limit **
  10  norm          7.1226        8.7758        .16118E-05   -.16900E-03
  11  Prefactor     19.460        18.510       -.43368E-05   -.43099E-03
  12  Prefactor     20.845        22.639        .16115E-05   -.11761E-03
  13  norm          .10000E-03    20.654        .16786E-05** at limit **
  14  Prefactor     .10002E-03    8.0610        .23235E-05** at limit **
  15  norm          .70488        6.2499        .68397E-06   -.41851E-04
  16  Prefactor     2.8268        3.4112       -.33803E-06    .56033E-05
  17  Prefactor     .10000E-03    14.359       -.13753E-05** at limit **
  18  norm          1.1061        .47363       -.65668E-07   -.21360E-03
  19  norm          .10000E-03    1.3437        .58838E-07** at limit **
  20  norm          8.8637        8.8471       -.21838E-05    .13415E-03
  21  Prefactor     1.0434        13.318        .72917E-06   -.14304E-05
  22  Normalizat    1.4136        .25074        .33261E-06   -.30838E-03
  23  Prefactor     1.0616        .12724        .20062E-06   -.52604E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.01957
  Prefactor  = 0.000100102
  Prefactor  = 5.90745
  norm       = 0.0001
  norm       = 0.0001
  norm       = 7.12258
  Prefactor  = 19.46
  Prefactor  = 20.8447
  norm       = 0.0001
  Prefactor  = 0.00010002
  norm       = 0.704877
  Prefactor  = 2.82685
  Prefactor  = 0.0001
  norm       = 1.10614
  norm       = 0.0001
  norm       = 8.86368
  Prefactor  = 1.0434
  Normalizat = 1.41358
  Prefactor  = 1.06165
 **********
 **   18 **HESSE 
 **********

 FCN=   7691.296     FROM HESSE     STATUS=OK           380 CALLS     3042 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.9340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .90705        .80609E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.8816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.2518        .15442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.0196        29.323        .46337E-02   -1.5506    
   6  Prefactor     .10010E-03    14.005        .61747E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.9074        21.172        .16577E-03   -1.5222    
   8  norm          .10000E-03    2.3811        .14529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.1870        .30139E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.1226        8.6150        .15029E-03   -1.5174    
  11  Prefactor     19.460        18.331        .90761E-04   -1.4825    
  12  Prefactor     20.845        22.484        .87707E-04   -1.4795    
  13  norm          .10000E-03    20.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10002E-03    46.102        .44055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .70488        6.3918        .41637E-03   -1.5540    
  16  Prefactor     2.8268        3.4346        .17154E-03   -1.5372    
  17  Prefactor     .10000E-03    14.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.1061        7.8298        .22479E-02   -1.5498    
  19  norm          .10000E-03    1.3900        .19843E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          8.8637        8.7720        .13462E-03   -1.5112    
  21  Prefactor     1.0434        158.54        .60216E-02   -1.5504    
  22  Normalizat    1.4136        .28832        .34223E-03   -.80237    
  23  Prefactor     1.0616        .14886        .20523E-03   -.90702    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57617e-08
Minuit parameter uncertainties:
  1  3.61347e-06
  2  5.36851e-07
  3  4.40361e-06
  4  7.36298e-07
  5  10.9409
  6  0.00239559
  7  21.1991
  8  8.80458e-06
  9  7.42054e-06
  10  8.61648
  11  18.3364
  12  22.4935
  13  6.4025e-05
  14  0.00190319
  15  4.2455
  16  3.43482
  17  3.66085e-05
  18  5.88669
  19  3.12235e-06
  20  8.77328
  21  25.7922
  22  0.288648
  23  0.148918
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  7.123e+00  8.616e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.305e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
265         beta:  1.384e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
266           Eb:  7.541e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  1.062e+00  1.489e-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.414e+00  2.886e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.19
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 4.34e-08 +/- 5.24e-08
Energy Flux (Fixed Index): 1.56e-05 +/- 1.89e-05

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

Saving results to:
/scratch/kocevski/803323/likelihoodResults_469238401_469497601_4FGL_J1337.6-1257_daily_bin887.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) = 7690.72033578
delta logL = 0.575275903552

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7690.71882243
delta logL = 0.576789250606

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.3107       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1138       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3613       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0753       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=   7690.719     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      236 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3075        77.648        .43601E-02    .61051E-03
   2  alpha         3.1155        4.0567        .39142        .72857E-04
   3  Normalizat    1.3613        .81314E-01    .78499E-01   -.74434E-05
   4  Prefactor     1.0752        .41892E-01    .38613E-01   -.68792E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.30747
  alpha      = 3.11553
  Normalizat = 1.36133
  Prefactor  = 1.07519
 **********
 **   18 **HESSE 
 **********

 FCN=   7690.719     FROM HESSE     STATUS=OK            31 CALLS      267 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3075        6.8031        .14253E-03   -1.5247    
   2  alpha         3.1155        .85371        .14346E-01    .24877    
   3  Normalizat    1.3613        .27735        .34744E-03   -.81754    
   4  Prefactor     1.0752        .14517        .20398E-03   -.90264    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.33392e-11
Minuit parameter uncertainties:
  1  6.80406
  2  0.872439
  3  0.277658
  4  0.145224
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/803323': 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) = 7690.71881782
delta logL = 0.576793860531

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  5.307e+00  6.804e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  3.116e+00  8.724e-01  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.075e+00  1.452e-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.361e+00  2.777e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.38
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 3.12 +/- 0.87
Photon Flux (Free Index): 9.58e-08 +/- 7.59e-08
Energy Flux (Free Index): 1.98e-05 +/- 1.51e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/803323/cmap_HighResolution_469238401_469497601_4FGL_J1337.6-1257_daily_bin887.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.20e-05', comment='SUCCESS', photon_flux='4.34e-08', energy_flux2='1.98e-05', photon_flux_error='5.24e-08', dlogl='5.77e-01', energy_flux='1.56e-05', photon_flux2='9.58e-08', job_status='DONE', time_completed='2021-09-08 05:06:27.840680', photon_index_error2='0.87', photon_index2='3.12', ts='1.19', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='1.44e-07', energy_flux_error2='1.51e-05', EG='1.41', time_epoch_completed='1631102787.84', return_code='0', job_id='803323', GAL2='1.08', EG2='1.36', return_code2='0', energy_flux_error='1.89e-05', photon_flux_error2='7.59e-08', ts2='2.38', photon_index='2.30' WHERE bin_id='887' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:06:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0026>
Subject: Job 803323: <4FGL_J1337.6-1257_daily_bin887> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin887> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 04:50:24 2021
Job was executed on host(s) <bullet0026>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:53:50 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:53:50 2021
Terminated at Wed Sep  8 05:06:28 2021
Results reported at Wed Sep  8 05:06:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin887 204.424 -12.9517 469238401 469497601 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 :                                   608.28 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             270.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            964 sec.

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

