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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin225
RA = 204.424, Dec = -12.9517
tmin = 297648001, tmax = 297907201
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='797608', job_status='RUN', time_executed='2021-09-08 04:38:54.679799', time_epoch_executed='1631101134.68' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='225'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/797608

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/797608/ft1_4FGL_J1337.6-1257_daily_bin225.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/797608/ft2_4FGL_J1337.6-1257_daily_bin225.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/797608/ft1_4FGL_J1337.6-1257_daily_bin225.fits outfile=/scratch/kocevski/797608/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin225.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=297648001.0 tmax=297907201.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.20
user 2.92
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/797608/ft1_filtered_4FGL_J1337.6-1257_daily_bin225.fits" evtable="EVENTS" scfile=/scratch/kocevski/797608/ft2_4FGL_J1337.6-1257_daily_bin225.fits sctable="SC_DATA" outfile=/scratch/kocevski/797608/ltcube_297648001_297907201_4FGL_J1337.6-1257_daily_bin225.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/797608/ft2_4FGL_J1337.6-1257_daily_bin225.fits
.....................!
real 13.04
user 12.73
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/797608/ft1_filtered_4FGL_J1337.6-1257_daily_bin225.fits evtable="EVENTS" scfile=/scratch/kocevski/797608/ft2_4FGL_J1337.6-1257_daily_bin225.fits sctable="SC_DATA" expcube=/scratch/kocevski/797608/ltcube_297648001_297907201_4FGL_J1337.6-1257_daily_bin225.fits outfile=/scratch/kocevski/797608/expmap_297648001_297907201_4FGL_J1337.6-1257_daily_bin225.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/797608/ltcube_297648001_297907201_4FGL_J1337.6-1257_daily_bin225.fits
.....................!
real 156.46
user 151.98
sys 3.78

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/797608/ft1_filtered_4FGL_J1337.6-1257_daily_bin225.fits scfile=/scratch/kocevski/797608/ft2_4FGL_J1337.6-1257_daily_bin225.fits outfile=/scratch/kocevski/797608/cmap_297648001_297907201_4FGL_J1337.6-1257_daily_bin225.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.49
user 0.33
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/797608/ft1_filtered_4FGL_J1337.6-1257_daily_bin225.fits evtable="EVENTS" scfile=/scratch/kocevski/797608/ft2_4FGL_J1337.6-1257_daily_bin225.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/797608/Model_4FGL_J1337.6-1257_daily_bin225.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/797608/ft1_filtered_4FGL_J1337.6-1257_daily_bin225.fits.....................!
real 63.92
user 62.48
sys 1.08

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .91014       1.0000         .10000E-03   10000.    
     3 'norm      '    .97184       1.0000         .10000E-03   10000.    
     4 'norm      '    3.5346       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.1003       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.6994       1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.107       1.0000         .10000E-03   10000.    
     8 'norm      '    3.1901       1.0000         .10000E-03   10000.    
     9 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.8906       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.5566       1.0000         .10000E-03   10000.    
    13 'norm      '    16.371       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.1505       1.0000         .10000E-03   10000.    
    15 'norm      '    9.1854       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    76.789       1.0000         .10000E-03   10000.    
    18 'norm      '    .80525       1.0000         .10000E-03   10000.    
    19 'norm      '    3.0750       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2393       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .89750       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=   10560.32     FROM MIGRAD    STATUS=CONVERGED    490 CALLS     2550 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.7252       -.77246E-06** at limit **
   2  norm          .91056        1.5709       -.17024E-06   -.12259E-03
   3  norm          .97179        4.4349        .14366E-06   -.37100E-03
   4  norm          3.5347        8.7153       -.20068E-06   -.60711E-04
   5  Prefactor     1.1020        9.0906        .78987E-06   -.22353E-03
   6  Prefactor     6.6990        6.3409        .13603E-06   -.25432E-04
   7  Prefactor     21.102        12.207       -.29064E-05   -.54281E-04
   8  norm          3.1902        1.4263       -.11306E-06    .91220E-04
   9  norm          .10000E-03    1.4406        .40576E-06** at limit **
  10  norm          5.8903        4.1231        .23848E-06    .38852E-04
  11  Prefactor     .10000E-03    5.3498        .45500E-06** at limit **
  12  Prefactor     2.5496        17.924       -.18313E-04   -.44383E-05
  13  norm          16.372        21.026        .75541E-06    .14509E-05
  14  Prefactor     6.1511        7.7235        .95586E-06    .91118E-04
  15  norm          9.1858        4.5722       -.22286E-07    .37800E-04
  16  Prefactor     .10000E-03    1.3537        .35279E-06** at limit **
  17  Prefactor     76.791        42.088        .18515E-05    .37947E-04
  18  norm          .81740        4.8542       -.73715E-05    .65968E-04
  19  norm          3.0749        1.7260        .26924E-07    .18800E-03
  20  norm          .10000E-03    1.9230       -.28207E-06** at limit **
  21  Prefactor     .10000E-03    12.227       -.14462E-06** at limit **
  22  Normalizat    1.2392        .18186        .11895E-05    .20890E-03
  23  Prefactor     .89748        .95401E-01    .40606E-06    .34035E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.910563
  norm       = 0.971787
  norm       = 3.53469
  Prefactor  = 1.102
  Prefactor  = 6.69903
  Prefactor  = 21.1018
  norm       = 3.19022
  norm       = 0.0001
  norm       = 5.89029
  Prefactor  = 0.0001
  Prefactor  = 2.54963
  norm       = 16.3715
  Prefactor  = 6.15107
  norm       = 9.18575
  Prefactor  = 0.0001
  Prefactor  = 76.7908
  norm       = 0.817402
  norm       = 3.07492
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.23924
  Prefactor  = 0.897483
 **********
 **   18 **HESSE 
 **********

 FCN=   10560.32     FROM HESSE     STATUS=OK           378 CALLS     2928 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.7793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .91056        1.4463        .16377E-02   -1.5517    
   3  norm          .97179        12.616        .26132E-02   -1.5511    
   4  norm          3.5347        8.7142        .10750E-02   -1.5332    
   5  Prefactor     1.1020        14.655        .22654E-02   -1.5498    
   6  Prefactor     6.6990        6.3507        .77514E-03   -1.5190    
   7  Prefactor     21.102        12.190        .87182E-04   -1.4789    
   8  norm          3.1902        1.4276        .77688E-04   -1.5351    
   9  norm          .10000E-03    1.4684        .23977E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.8903        4.1159        .16546E-03   -1.5223    
  11  Prefactor     .10000E-03    5.3664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.5496        17.950        .25534E-03   -1.5389    
  13  norm          16.372        21.025        .98988E-04   -1.4899    
  14  Prefactor     6.1511        7.7185        .16188E-03   -1.5212    
  15  norm          9.1858        4.5719        .13224E-03   -1.5102    
  16  Prefactor     .10000E-03    1.3790        .11670E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     76.791        42.123        .45824E-04   -1.3953    
  18  norm          .81740        4.9588        .43131E-03   -1.5527    
  19  norm          3.0749        1.7289        .48924E-03   -1.5357    
  20  norm          .10000E-03    1.9297        .13916E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2392        .21613        .31644E-03   -.85399    
  23  Prefactor     .89748        .11177        .19709E-03   -.96229    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36545e-08
Minuit parameter uncertainties:
  1  5.45015e-06
  2  1.44633
  3  7.00423
  4  8.71735
  5  8.03944
  6  6.35135
  7  12.1915
  8  1.42763
  9  3.17746e-05
  10  4.11612
  11  9.91255e-06
  12  13.5354
  13  21.0342
  14  7.71975
  15  4.57212
  16  3.51573e-05
  17  42.1395
  18  4.02684
  19  1.72898
  20  1.17204e-06
  21  1.32709e-05
  22  0.216284
  23  0.111803
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  5.890e+00  4.116e+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:  8.975e-01  1.118e-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.239e+00  2.163e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.09
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 3.59e-08 +/- 2.50e-08
Energy Flux (Fixed Index): 1.29e-05 +/- 9.03e-06

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) = 10559.8189478
delta logL = 0.497456857223

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10559.8075283
delta logL = 0.508876372793

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.5024       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6873       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2554       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89238       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=   10559.81     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      209 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.5039        5.6809        .39346E-02    .98407E-04
   2  alpha         1.6876        .58920        .44307       -.31490E-04
   3  Normalizat    1.2554        .17337        .71136E-01    .30478E-04
   4  Prefactor     .89238        .93849E-01    .44908E-01   -.46629E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.50392
  alpha      = 1.68763
  Normalizat = 1.25537
  Prefactor  = 0.892376
 **********
 **   18 **HESSE 
 **********

 FCN=   10559.81     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .39E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.5039        4.6836        .15738E-03   -1.5198    
   2  alpha         1.6876        .57101        .19944E-01   -.33095    
   3  Normalizat    1.2554        .20018        .31477E-03   -.84909    
   4  Prefactor     .89238        .10867        .19758E-03   -.96408    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.86729e-12
Minuit parameter uncertainties:
  1  4.68389
  2  0.576711
  3  0.2003
  4  0.108695
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/797608': 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) = 10559.8075281
delta logL = 0.508876564392

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  6.504e+00  4.684e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.688e+00  5.767e-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:  8.924e-01  1.087e-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.255e+00  2.003e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.10
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 1.69 +/- 0.58
Photon Flux (Free Index): 2.22e-08 +/- 2.00e-08
Energy Flux (Free Index): 1.95e-05 +/- 1.68e-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/797608/cmap_HighResolution_297648001_297907201_4FGL_J1337.6-1257_daily_bin225.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.59e-08', energy_flux2='1.95e-05', photon_flux_error='2.50e-08', dlogl='5.09e-01', energy_flux='1.29e-05', photon_flux2='2.22e-08', job_status='DONE', time_completed='2021-09-08 04:49:28.870199', photon_index_error2='0.58', photon_index2='1.69', ts='4.09', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='1.68e-05', EG='1.24', time_epoch_completed='1631101768.87', return_code='0', job_id='797608', GAL2='0.89', EG2='1.26', return_code2='0', energy_flux_error='9.03e-06', photon_flux_error2='2.00e-08', ts2='5.10', photon_index='2.30' WHERE bin_id='225' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:49:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 797608: <4FGL_J1337.6-1257_daily_bin225> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin225> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 04:35:17 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:35:20 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:20 2021
Terminated at Wed Sep  8 04:49:30 2021
Results reported at Wed Sep  8 04:49:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin225 204.424 -12.9517 297648001 297907201 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 :                                   630.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             258.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            853 sec.

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

