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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin180
RA = 204.424, Dec = -12.9517
tmin = 285984001, tmax = 286243201
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='796287', job_status='RUN', time_executed='2021-09-08 04:33:17.587777', time_epoch_executed='1631100797.59' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='180'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/796287

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/796287/ft1_4FGL_J1337.6-1257_daily_bin180.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/796287/ft2_4FGL_J1337.6-1257_daily_bin180.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/796287/ft1_4FGL_J1337.6-1257_daily_bin180.fits outfile=/scratch/kocevski/796287/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin180.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=285984001.0 tmax=286243201.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.85
user 3.31
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/796287/ft1_filtered_4FGL_J1337.6-1257_daily_bin180.fits" evtable="EVENTS" scfile=/scratch/kocevski/796287/ft2_4FGL_J1337.6-1257_daily_bin180.fits sctable="SC_DATA" outfile=/scratch/kocevski/796287/ltcube_285984001_286243201_4FGL_J1337.6-1257_daily_bin180.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/796287/ft2_4FGL_J1337.6-1257_daily_bin180.fits
.....................!
real 19.89
user 17.98
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/796287/ft1_filtered_4FGL_J1337.6-1257_daily_bin180.fits evtable="EVENTS" scfile=/scratch/kocevski/796287/ft2_4FGL_J1337.6-1257_daily_bin180.fits sctable="SC_DATA" expcube=/scratch/kocevski/796287/ltcube_285984001_286243201_4FGL_J1337.6-1257_daily_bin180.fits outfile=/scratch/kocevski/796287/expmap_285984001_286243201_4FGL_J1337.6-1257_daily_bin180.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/796287/ltcube_285984001_286243201_4FGL_J1337.6-1257_daily_bin180.fits
.....................!
real 192.33
user 187.27
sys 4.50

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/796287/ft1_filtered_4FGL_J1337.6-1257_daily_bin180.fits scfile=/scratch/kocevski/796287/ft2_4FGL_J1337.6-1257_daily_bin180.fits outfile=/scratch/kocevski/796287/cmap_285984001_286243201_4FGL_J1337.6-1257_daily_bin180.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.56
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/796287/ft1_filtered_4FGL_J1337.6-1257_daily_bin180.fits scfile=/scratch/kocevski/796287/ft2_4FGL_J1337.6-1257_daily_bin180.fits outfile=/scratch/kocevski/796287/cmap_HighResolution_285984001_286243201_4FGL_J1337.6-1257_daily_bin180.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.58
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/796287/ft1_filtered_4FGL_J1337.6-1257_daily_bin180.fits evtable="EVENTS" scfile=/scratch/kocevski/796287/ft2_4FGL_J1337.6-1257_daily_bin180.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/796287/Model_4FGL_J1337.6-1257_daily_bin180.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/796287/ft1_filtered_4FGL_J1337.6-1257_daily_bin180.fits.....................!
real 53.92
user 52.38
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .16756E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    .92804       1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.400       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11919E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.5917       1.0000         .10000E-03   10000.    
     9 'norm      '    5.3468       1.0000         .10000E-03   10000.    
    10 'norm      '    11.011       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    22.259       1.0000         .10000E-03   10000.    
    14 'Prefactor '    32.820       1.0000         .10000E-03   10000.    
    15 'norm      '    12.273       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.4140       1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.667       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .95724       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0407       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=   5931.347     FROM MIGRAD    STATUS=CONVERGED    533 CALLS     2548 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    7.6554        .30630E-07** at limit **
   2  norm          .92791        2.6121        .24418E-06   -.30678E-03
   3  norm          .10000E-03    5.3330       -.63023E-07** at limit **
   4  norm          .10000E-03    6.6390       -.21439E-07** at limit **
   5  Prefactor     14.399        11.690       -.23224E-06    .11974E-04
   6  Prefactor     .10000E-03    6.0575       -.41807E-07** at limit **
   7  Prefactor     .10000E-03    43.286       -.18432E-05** at limit **
   8  norm          4.5913        2.0216        .21749E-07   -.38696E-04
   9  norm          5.3474        4.2826        .15146E-05   -.24804E-02
  10  norm          11.011        9.3996       -.44086E-06   -.40297E-03
  11  Prefactor     .10000E-03    14.853       -.72119E-07** at limit **
  12  Prefactor     .10000E-03    28.051       -.33779E-06** at limit **
  13  norm          22.221        35.526       -.86628E-05   -.35548E-03
  14  Prefactor     32.826        17.435       -.44845E-06   -.14203E-03
  15  norm          12.274        6.3445       -.94207E-06   -.72249E-03
  16  Prefactor     .10000E-03    2.4364       -.13279E-07** at limit **
  17  Prefactor     .10000E-03    24.420        .63835E-06** at limit **
  18  norm          .10000E-03    2.3753       -.17751E-07** at limit **
  19  norm          1.4142        3.1390        .18105E-06   -.30962E-03
  20  norm          .10000E-03    3.0817       -.24902E-07** at limit **
  21  Prefactor     11.662        20.392        .58387E-06    .45446E-04
  22  Normalizat    .95750        .26622       -.29762E-06    .35759E-04
  23  Prefactor     1.0406        .13899        .28754E-06    .13997E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100016
  norm       = 0.92791
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 14.3989
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 4.59134
  norm       = 5.34739
  norm       = 11.011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 22.221
  Prefactor  = 32.8255
  norm       = 12.2738
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.41422
  norm       = 0.0001
  Prefactor  = 11.6621
  Normalizat = 0.957502
  Prefactor  = 1.04059
 **********
 **   18 **HESSE 
 **********

 FCN=   5931.347     FROM HESSE     STATUS=OK           376 CALLS     2924 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    12.552        .64818E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .92791        2.5690        .20238E-03   -1.5515    
   3  norm          .10000E-03    5.3700        .17370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    6.6817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.399        11.701        .10555E-03   -1.4949    
   6  Prefactor     .10000E-03    6.1115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    44.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.5913        2.0339        .68089E-04   -1.5279    
   9  norm          5.3474        5.3810        .77198E-03   -1.5245    
  10  norm          11.011        9.4568        .60367E-03   -1.5044    
  11  Prefactor     .10000E-03    14.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    28.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          22.221        37.447        .84899E-04   -1.4765    
  14  Prefactor     32.826        17.471        .69945E-04   -1.4561    
  15  norm          12.274        6.4110        .11434E-03   -1.5007    
  16  Prefactor     .10000E-03    2.4518        .11734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    24.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.3804        .11591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.4142        3.1477        .19173E-03   -1.5470    
  20  norm          .10000E-03    3.0889        .13201E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.662        20.397        .11729E-03   -1.5025    
  22  Normalizat    .95750        .30556        .37614E-03   -.94468    
  23  Prefactor     1.0406        .16030        .19475E-03   -.91389    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.24188e-09
Minuit parameter uncertainties:
  1  0.000885433
  2  2.56929
  3  6.60522e-06
  4  4.64473e-06
  5  11.703
  6  8.43455e-06
  7  0.000337958
  8  2.0339
  9  5.3815
  10  9.45807
  11  2.65315e-05
  12  3.4619e-05
  13  37.4863
  14  17.4736
  15  6.41131
  16  2.21065e-06
  17  9.84711e-05
  18  1.80441e-06
  19  3.14811
  20  2.38874e-06
  21  20.4096
  22  0.306114
  23  0.160374
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.101e+01  9.458e+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.041e+00  1.604e-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:  9.575e-01  3.061e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.25
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 6.70e-08 +/- 5.76e-08
Energy Flux (Fixed Index): 2.42e-05 +/- 2.08e-05

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

Saving results to:
/scratch/kocevski/796287/likelihoodResults_285984001_286243201_4FGL_J1337.6-1257_daily_bin180.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) = 5931.13313934
delta logL = 0.213406375318

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5931.13247679
delta logL = 0.21406893014

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.4168       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9393       1.0000          .0000       5.0000    
     3 'Normalizat'    .89774       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0598       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=   5931.132     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      294 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.4165        10.326        .13656E-03   -.15135E-03
   2  alpha         2.9395        1.1106        .13196E-01   -.87556E-05
   3  Normalizat    .89779        .30870        .38679E-03   -.37710E-04
   4  Prefactor     1.0598        .16066        .19311E-03   -.15374E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.41646
  alpha      = 2.93954
  Normalizat = 0.897786
  Prefactor  = 1.05976
 **********
 **   18 **HESSE 
 **********

 FCN=   5931.132     FROM HESSE     STATUS=OK            25 CALLS      319 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.4165        8.9374        .54624E-05   -1.5128    
   2  alpha         2.9395        .96805        .52785E-03    .17673    
   3  Normalizat    .89779        .30525        .15472E-04   -.96538    
   4  Prefactor     1.0598        .15953        .38622E-04   -.90763    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.3288e-11
Minuit parameter uncertainties:
  1  8.93884
  2  0.994926
  3  0.305838
  4  0.159604
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/796287': 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) = 5931.13247667
delta logL = 0.214069052901

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  8.416e+00  8.939e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.940e+00  9.949e-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.060e+00  1.596e-01  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  8.978e-01  3.058e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.73
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 2.94 +/- 0.99
Photon Flux (Free Index): 1.18e-07 +/- 1.02e-07
Energy Flux (Free Index): 2.64e-05 +/- 1.72e-05

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/796287/cmap_HighResolution_285984001_286243201_4FGL_J1337.6-1257_daily_bin180.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.58e-05', comment='SUCCESS', photon_flux='6.70e-08', energy_flux2='2.64e-05', photon_flux_error='5.76e-08', dlogl='2.14e-01', energy_flux='2.42e-05', photon_flux2='1.18e-07', job_status='DONE', time_completed='2021-09-08 04:44:13.266463', photon_index_error2='0.99', photon_index2='2.94', ts='3.25', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.82e-07', energy_flux_error2='1.72e-05', EG='0.96', time_epoch_completed='1631101453.27', return_code='0', job_id='796287', GAL2='1.06', EG2='0.90', return_code2='0', energy_flux_error='2.08e-05', photon_flux_error2='1.02e-07', ts2='3.73', photon_index='2.30' WHERE bin_id='180' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:44:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0196>
Subject: Job 796287: <4FGL_J1337.6-1257_daily_bin180> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin180> 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) <bullet0196>, 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:44:14 2021
Results reported at Wed Sep  8 04:44:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin180 204.424 -12.9517 285984001 286243201 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 :                                   635.27 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             319.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   742 sec.
    Turnaround time :                            812 sec.

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

