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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin192
RA = 204.424, Dec = -12.9517
tmin = 289094401, tmax = 289353601
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='796306', job_status='RUN', time_executed='2021-09-08 04:32:24.435633', time_epoch_executed='1631100744.44' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='192'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/796306

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/796306/ft1_4FGL_J1337.6-1257_daily_bin192.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/796306/ft2_4FGL_J1337.6-1257_daily_bin192.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/796306/ft1_4FGL_J1337.6-1257_daily_bin192.fits outfile=/scratch/kocevski/796306/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin192.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=289094401.0 tmax=289353601.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.62
user 3.39
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/796306/ft1_filtered_4FGL_J1337.6-1257_daily_bin192.fits" evtable="EVENTS" scfile=/scratch/kocevski/796306/ft2_4FGL_J1337.6-1257_daily_bin192.fits sctable="SC_DATA" outfile=/scratch/kocevski/796306/ltcube_289094401_289353601_4FGL_J1337.6-1257_daily_bin192.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/796306/ft2_4FGL_J1337.6-1257_daily_bin192.fits
.....................!
real 15.08
user 14.70
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/796306/ft1_filtered_4FGL_J1337.6-1257_daily_bin192.fits evtable="EVENTS" scfile=/scratch/kocevski/796306/ft2_4FGL_J1337.6-1257_daily_bin192.fits sctable="SC_DATA" expcube=/scratch/kocevski/796306/ltcube_289094401_289353601_4FGL_J1337.6-1257_daily_bin192.fits outfile=/scratch/kocevski/796306/expmap_289094401_289353601_4FGL_J1337.6-1257_daily_bin192.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/796306/ltcube_289094401_289353601_4FGL_J1337.6-1257_daily_bin192.fits
.....................!
real 190.61
user 185.65
sys 4.58

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/796306/ft1_filtered_4FGL_J1337.6-1257_daily_bin192.fits scfile=/scratch/kocevski/796306/ft2_4FGL_J1337.6-1257_daily_bin192.fits outfile=/scratch/kocevski/796306/cmap_289094401_289353601_4FGL_J1337.6-1257_daily_bin192.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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/796306/ft1_filtered_4FGL_J1337.6-1257_daily_bin192.fits scfile=/scratch/kocevski/796306/ft2_4FGL_J1337.6-1257_daily_bin192.fits outfile=/scratch/kocevski/796306/cmap_HighResolution_289094401_289353601_4FGL_J1337.6-1257_daily_bin192.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.57
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/796306/ft1_filtered_4FGL_J1337.6-1257_daily_bin192.fits evtable="EVENTS" scfile=/scratch/kocevski/796306/ft2_4FGL_J1337.6-1257_daily_bin192.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/796306/Model_4FGL_J1337.6-1257_daily_bin192.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/796306/ft1_filtered_4FGL_J1337.6-1257_daily_bin192.fits.....................!
real 67.11
user 65.82
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.0895       1.0000         .10000E-03   10000.    
     3 'norm      '    1.8729       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.3834       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.5261       1.0000         .10000E-03   10000.    
     7 'Prefactor '    58.771       1.0000         .10000E-03   10000.    
     8 'norm      '    5.3263       1.0000         .10000E-03   10000.    
     9 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.0608       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.2410       1.0000         .10000E-03   10000.    
    13 'norm      '    27.208       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.778       1.0000         .10000E-03   10000.    
    15 'norm      '    5.3287       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.9451       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.6378       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .82331       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=   8510.045     FROM MIGRAD    STATUS=CONVERGED    486 CALLS     2643 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.1339       -.30538E-08** at limit **
   2  norm          2.0895        1.8419        .82667E-08    .19736E-04
   3  norm          1.8731        5.7994        .57146E-06   -.16866E-03
   4  norm          .10000E-03    3.3219        .10314E-05** at limit **
   5  Prefactor     5.3833        8.8826       -.69818E-07   -.34895E-04
   6  Prefactor     5.5260        5.9627       -.50411E-07   -.15682E-04
   7  Prefactor     58.775        21.443        .98905E-06    .55931E-03
   8  norm          5.3263        1.7786        .20807E-07   -.50155E-04
   9  norm          .10000E-03    3.1222       -.98633E-06** at limit **
  10  norm          2.0594        7.7413       -.75568E-07   -.10712E-03
  11  Prefactor     .10000E-03    8.4856        .26959E-06** at limit **
  12  Prefactor     4.2407        22.159        .52135E-05   -.22887E-03
  13  norm          27.208        31.671        .25661E-07   -.29616E-05
  14  Prefactor     12.776        10.916       -.21866E-06   -.59081E-04
  15  norm          5.3287        3.7536       -.40630E-07   -.39479E-04
  16  Prefactor     .10000E-03    2.4906       -.30826E-08** at limit **
  17  Prefactor     .10000E-03    10.094       -.15252E-05** at limit **
  18  norm          1.9450        3.9464        .28021E-06   -.14607E-03
  19  norm          .10000E-03    1.0799        .98560E-08** at limit **
  20  norm          .10000E-03    11.815        .24300E-05** at limit **
  21  Prefactor     .10000E-03    15.706       -.11264E-05** at limit **
  22  Normalizat    1.6377        .22749       -.80492E-06    .24769E-04
  23  Prefactor     .82333        .11304        .64907E-07   -.64452E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.08952
  norm       = 1.87313
  norm       = 0.0001
  Prefactor  = 5.38328
  Prefactor  = 5.52597
  Prefactor  = 58.7747
  norm       = 5.32629
  norm       = 0.0001
  norm       = 2.05943
  Prefactor  = 0.0001
  Prefactor  = 4.24075
  norm       = 27.2079
  Prefactor  = 12.7765
  norm       = 5.32868
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.945
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.63775
  Prefactor  = 0.823333
 **********
 **   18 **HESSE 
 **********

 FCN=   8510.045     FROM HESSE     STATUS=OK           372 CALLS     3015 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.1421        .13160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.0895        1.8500        .11421E-03   -1.5419    
   3  norm          1.8731        5.8432        .30431E-03   -1.5434    
   4  norm          .10000E-03    3.3718        .16531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.3833        8.8969        .17320E-03   -1.5244    
   6  Prefactor     5.5260        5.9690        .17091E-03   -1.5238    
   7  Prefactor     58.775        22.540        .52333E-04   -1.4173    
   8  norm          5.3263        1.7879        .67897E-04   -1.5246    
   9  norm          .10000E-03    3.3488        .32552E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.0594        7.8307        .28786E-03   -1.5421    
  11  Prefactor     .10000E-03    8.5153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.2407        28.768        .97831E-03   -1.5296    
  13  norm          27.208        31.676        .76803E-04   -1.4664    
  14  Prefactor     12.776        10.916        .11206E-03   -1.4993    
  15  norm          5.3287        3.7558        .14521E-03   -1.5246    
  16  Prefactor     .10000E-03    2.5237        .14204E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.9450        3.9308        .25419E-03   -1.5429    
  19  norm          .10000E-03    1.0943        .93563E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    12.386        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    15.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.6377        .26706        .31435E-03   -.73978    
  23  Prefactor     .82333        .13264        .21838E-03   -.98874    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33387e-09
Minuit parameter uncertainties:
  1  1.96215e-07
  2  1.85009
  3  5.84501
  4  4.81907e-05
  5  8.89905
  6  5.96966
  7  22.5428
  8  1.78796
  9  8.02866e-05
  10  7.83464
  11  2.26223e-05
  12  22.1056
  13  31.6957
  14  10.918
  15  3.75592
  16  1.40732e-07
  17  0.000123919
  18  3.93128
  19  4.17613e-07
  20  0.000176318
  21  0.00011118
  22  0.267295
  23  0.132693
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  2.059e+00  7.835e+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.233e-01  1.327e-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.638e+00  2.673e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/796306/likelihoodResults_289094401_289353601_4FGL_J1337.6-1257_daily_bin192.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) = 8508.04261806
delta logL = 2.00241160929

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8508.02895173
delta logL = 2.01607794166

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .42629       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4680       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87817       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=   8508.029     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      354 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .42599        5.5334        .69447E-02    .18500E-02
   2  alpha         5.0000        3.6763        .46267    ** at limit **
   3  Normalizat    1.4683        .13293        .73996E-01    .19431E-03
   4  Prefactor     .87786        .64041E-01    .44726E-01    .33707E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.425988
  alpha      = 5
  Normalizat = 1.4683
  Prefactor  = 0.877862
 **********
 **   18 **HESSE 
 **********

 FCN=   8508.029     FROM HESSE     STATUS=OK            33 CALLS      387 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .42599        .27487        .31264E-04   -1.5577    
   2  alpha         5.0000        .56695        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.4683        .26770        .32743E-03   -.78673    
   4  Prefactor     .87786        .13384        .21197E-03   -.96919    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.13699e-11
Minuit parameter uncertainties:
  1  0.274874
  2  1.72818e-06
  3  0.267955
  4  0.133887
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/796306': 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) = 8508.02894393
delta logL = 2.01608573733

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  4.260e-01  2.749e-01  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  5.000e+00  1.728e-06  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.779e-01  1.339e-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.468e+00  2.680e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.58
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.69e-07 +/- 1.08e-07
Energy Flux (Free Index): 2.32e-05 +/- 1.50e-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/796306/cmap_HighResolution_289094401_289353601_4FGL_J1337.6-1257_daily_bin192.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.10e-05', comment='SUCCESS', energy_flux2='2.32e-05', dlogl='2.02e+00', photon_flux2='1.69e-07', job_status='DONE', time_completed='2021-09-08 04:45:36.638110', photon_index_error2='0.00', photon_index2='5.00', ts='0.09', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='1.50e-05', EG='1.64', time_epoch_completed='1631101536.64', return_code='0', job_id='796306', GAL2='0.88', EG2='1.47', return_code2='0', photon_flux_error2='1.08e-07', ts2='4.58', photon_index='2.30' WHERE bin_id='192' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:45:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 796306: <4FGL_J1337.6-1257_daily_bin192> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin192> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 04:30:43 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:32:09 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:32:09 2021
Terminated at Wed Sep  8 04:45:37 2021
Results reported at Wed Sep  8 04:45:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin192 204.424 -12.9517 289094401 289353601 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 :                                   784.05 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            894 sec.

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

