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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin231
RA = 204.424, Dec = -12.9517
tmin = 299203201, tmax = 299462401
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='797617', job_status='RUN', time_executed='2021-09-08 04:37:45.809766', time_epoch_executed='1631101065.81' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='231'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/797617

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/797617/ft1_4FGL_J1337.6-1257_daily_bin231.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/797617/ft2_4FGL_J1337.6-1257_daily_bin231.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/797617/ft1_4FGL_J1337.6-1257_daily_bin231.fits outfile=/scratch/kocevski/797617/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin231.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=299203201.0 tmax=299462401.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.91
user 2.70
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/797617/ft1_filtered_4FGL_J1337.6-1257_daily_bin231.fits" evtable="EVENTS" scfile=/scratch/kocevski/797617/ft2_4FGL_J1337.6-1257_daily_bin231.fits sctable="SC_DATA" outfile=/scratch/kocevski/797617/ltcube_299203201_299462401_4FGL_J1337.6-1257_daily_bin231.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/797617/ft2_4FGL_J1337.6-1257_daily_bin231.fits
.....................!
real 16.01
user 15.64
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/797617/ft1_filtered_4FGL_J1337.6-1257_daily_bin231.fits evtable="EVENTS" scfile=/scratch/kocevski/797617/ft2_4FGL_J1337.6-1257_daily_bin231.fits sctable="SC_DATA" expcube=/scratch/kocevski/797617/ltcube_299203201_299462401_4FGL_J1337.6-1257_daily_bin231.fits outfile=/scratch/kocevski/797617/expmap_299203201_299462401_4FGL_J1337.6-1257_daily_bin231.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/797617/ltcube_299203201_299462401_4FGL_J1337.6-1257_daily_bin231.fits
.....................!
real 156.87
user 152.57
sys 3.88

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/797617/ft1_filtered_4FGL_J1337.6-1257_daily_bin231.fits scfile=/scratch/kocevski/797617/ft2_4FGL_J1337.6-1257_daily_bin231.fits outfile=/scratch/kocevski/797617/cmap_299203201_299462401_4FGL_J1337.6-1257_daily_bin231.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.67
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/797617/ft1_filtered_4FGL_J1337.6-1257_daily_bin231.fits scfile=/scratch/kocevski/797617/ft2_4FGL_J1337.6-1257_daily_bin231.fits outfile=/scratch/kocevski/797617/cmap_HighResolution_299203201_299462401_4FGL_J1337.6-1257_daily_bin231.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.50
user 0.35
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/797617/ft1_filtered_4FGL_J1337.6-1257_daily_bin231.fits evtable="EVENTS" scfile=/scratch/kocevski/797617/ft2_4FGL_J1337.6-1257_daily_bin231.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/797617/Model_4FGL_J1337.6-1257_daily_bin231.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/797617/ft1_filtered_4FGL_J1337.6-1257_daily_bin231.fits....................!
real 48.83
user 45.56
sys 0.95

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .26147E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    1.7198       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.992       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1505       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    9.1207       1.0000         .10000E-03   10000.    
     9 'norm      '    .10369E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    17.563       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .39186E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    17.128       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .30926E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    10.934       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.8896       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.7377       1.0000         .10000E-03   10000.    
    19 'norm      '    .94847       1.0000         .10000E-03   10000.    
    20 'norm      '    1.5007       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.6925       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .41112       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.4090       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=   7038.560     FROM MIGRAD    STATUS=CONVERGED    557 CALLS     2658 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 14.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10016E-03    61.002        .25581E-04** at limit **
   2  norm          1.7199        1.9978       -.13366E-06   -.37819E-03
   3  norm          .10000E-03    2.9735       -.42736E-07** at limit **
   4  norm          .10000E-03    3.3986        .12169E-07** at limit **
   5  Prefactor     12.997        10.403       -.69548E-06   -.12194E-03
   6  Prefactor     1.1531        3.1560        .43621E-05   -.42233E-04
   7  Prefactor     .10000E-03    9.9465       -.29658E-06** at limit **
   8  norm          9.1216        2.3157       -.24212E-06   -.15858E-02
   9  norm          .10000E-03    2.0833       -.52453E-06** at limit **
  10  norm          17.583        9.4140        .41440E-07    .12106E-02
  11  Prefactor     .10012E-03    92.015       -.37305E-04** at limit **
  12  Prefactor     .10000E-03    32.550        .13917E-06** at limit **
  13  norm          17.197        34.454        .38795E-06   -.69888E-05
  14  Prefactor     .10003E-03    51.024        .68550E-05** at limit **
  15  norm          10.935        7.1410       -.46408E-06   -.49680E-03
  16  Prefactor     1.8912        4.8598       -.35910E-06   -.52682E-04
  17  Prefactor     .10000E-03    59.322       -.10307E-05** at limit **
  18  norm          2.7378        6.3846       -.57988E-06   -.31887E-03
  19  norm          .94928        2.5070       -.56182E-06   -.34873E-03
  20  norm          1.5008        8.2693        .66716E-07   -.12196E-04
  21  Prefactor     4.6970        22.935       -.14685E-05   -.87586E-04
  22  Normalizat    .41078        .30040        .45616E-05    .18874E-03
  23  Prefactor     1.4090        .16555       -.54106E-06    .69168E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100159
  norm       = 1.71986
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 12.9968
  Prefactor  = 1.15314
  Prefactor  = 0.0001
  norm       = 9.12164
  norm       = 0.0001
  norm       = 17.5828
  Prefactor  = 0.000100118
  Prefactor  = 0.0001
  norm       = 17.1965
  Prefactor  = 0.000100027
  norm       = 10.9352
  Prefactor  = 1.89117
  Prefactor  = 0.000100003
  norm       = 2.73779
  norm       = 0.949278
  norm       = 1.50079
  Prefactor  = 4.69701
  Normalizat = 0.410783
  Prefactor  = 1.40904
 **********
 **   18 **HESSE 
 **********

 FCN=   7038.560     FROM HESSE     STATUS=OK           392 CALLS     3050 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10016E-03    6.1494        .62348E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.7199        1.9910        .12438E-03   -1.5446    
   3  norm          .10000E-03    2.9765        .14129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.4008        .15105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.997        10.470        .11113E-03   -1.4987    
   6  Prefactor     1.1531        12.436        .21574E-02   -1.5493    
   7  Prefactor     .10000E-03    9.9789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          9.1216        2.3229        .60316E-04   -1.5104    
   9  norm          .10000E-03    7.3803        .21582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          17.583        8.9540        .95570E-04   -1.4869    
  11  Prefactor     .10012E-03    19.001        .86222E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    32.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          17.197        34.437        .96774E-04   -1.4878    
  14  Prefactor     .10003E-03    56.619        .48893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.935        7.1589        .12116E-03   -1.5046    
  16  Prefactor     1.8912        4.7839        .26863E-03   -1.5433    
  17  Prefactor     .10000E-03    59.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.7378        6.3222        .24608E-03   -1.5377    
  19  norm          .94928        2.4822        .20147E-03   -1.5513    
  20  norm          1.5008        8.1282        .34954E-03   -1.5463    
  21  Prefactor     4.6970        23.035        .18577E-03   -1.5274    
  22  Normalizat    .41078        .29850        .56463E-03   -1.1675    
  23  Prefactor     1.4090        .16445        .17852E-03   -.80120    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.44123e-09
Minuit parameter uncertainties:
  1  0.00198008
  2  1.99112
  3  3.35206e-06
  4  4.2534e-06
  5  10.4712
  6  7.57539
  7  9.66571e-05
  8  2.32288
  9  8.27647e-05
  10  8.95465
  11  0.00299052
  12  6.61433e-06
  13  34.4768
  14  0.00248198
  15  7.15945
  16  4.78487
  17  0.000911264
  18  6.32375
  19  2.48244
  20  6.98659
  21  20.8162
  22  0.299662
  23  0.16451
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.758e+01  8.955e+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.409e+00  1.645e-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:  4.108e-01  2.997e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.75
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 1.07e-07 +/- 5.45e-08
Energy Flux (Fixed Index): 3.86e-05 +/- 1.96e-05

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) = 7038.55670933
delta logL = 0.00286588277231

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7038.55613742
delta logL = 0.00343778559363

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.856       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2679       1.0000          .0000       5.0000    
     3 'Normalizat'    .41427       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4079       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.

 FCN=   7038.556     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      268 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.857        9.6579        .94783E-04    .28187E-04
   2  alpha         2.2678        .44700        .12003E-01    .12891E-03
   3  Normalizat    .41427        .28497        .56236E-03   -.82280E-05
   4  Prefactor     1.4079        .15947        .17858E-03    .29793E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 17.8572
  alpha      = 2.26783
  Normalizat = 0.414266
  Prefactor  = 1.40788
 **********
 **   18 **HESSE 
 **********

 FCN=   7038.556     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .65E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.857        9.5656        .37913E-05   -1.4863    
   2  alpha         2.2678        .44251        .24006E-02   -.93001E-01
   3  Normalizat    .41427        .28479        .22494E-04   -1.1657    
   4  Prefactor     1.4079        .15939        .71433E-05   -.80153    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.52029e-12
Minuit parameter uncertainties:
  1  9.56639
  2  0.444879
  3  0.285788
  4  0.159446
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/797617': 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) = 7038.55613738
delta logL = 0.00343782740492

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.786e+01  9.566e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.268e+00  4.449e-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.408e+00  1.594e-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:  4.143e-01  2.858e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.76
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 2.27 +/- 0.44
Photon Flux (Free Index): 1.04e-07 +/- 6.30e-08
Energy Flux (Free Index): 3.90e-05 +/- 2.06e-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/797617/cmap_HighResolution_299203201_299462401_4FGL_J1337.6-1257_daily_bin231.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.07e-07', energy_flux2='3.90e-05', photon_flux_error='5.45e-08', dlogl='3.44e-03', energy_flux='3.86e-05', photon_flux2='1.04e-07', job_status='DONE', time_completed='2021-09-08 04:46:32.596921', photon_index_error2='0.44', photon_index2='2.27', ts='8.75', fit_tolerance='1e-08', GAL='1.41', photon_index_error='0.00', energy_flux_error2='2.06e-05', EG='0.41', time_epoch_completed='1631101592.6', return_code='0', job_id='797617', GAL2='1.41', EG2='0.41', return_code2='0', energy_flux_error='1.96e-05', photon_flux_error2='6.30e-08', ts2='8.76', photon_index='2.30' WHERE bin_id='231' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:46:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 797617: <4FGL_J1337.6-1257_daily_bin231> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin231> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 04:35:19 2021
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:35:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 04:35:24 2021
Terminated at Wed Sep  8 04:46:33 2021
Results reported at Wed Sep  8 04:46:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin231 204.424 -12.9517 299203201 299462401 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 :                                   519.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   668 sec.
    Turnaround time :                            674 sec.

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

