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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1291
RA = 204.424, Dec = -12.9517
tmin = 573955201, tmax = 574214401
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='805066', job_status='RUN', time_executed='2021-09-08 04:57:27.122158', time_epoch_executed='1631102247.12' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1291'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805066

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805066/ft1_4FGL_J1337.6-1257_daily_bin1291.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805066/ft2_4FGL_J1337.6-1257_daily_bin1291.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805066/ft1_4FGL_J1337.6-1257_daily_bin1291.fits outfile=/scratch/kocevski/805066/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1291.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=573955201.0 tmax=574214401.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.38
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/805066/ft2_4FGL_J1337.6-1257_daily_bin1291.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/805066/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1291.fits evtable="EVENTS" outfile="/scratch/kocevski/805066/ft1_filtered_4FGL_J1337.6-1257_daily_bin1291.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.52
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/805066/ft1_filtered_4FGL_J1337.6-1257_daily_bin1291.fits" evtable="EVENTS" scfile=/scratch/kocevski/805066/ft2_4FGL_J1337.6-1257_daily_bin1291.fits sctable="SC_DATA" outfile=/scratch/kocevski/805066/ltcube_573955201_574214401_4FGL_J1337.6-1257_daily_bin1291.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/805066/ft2_4FGL_J1337.6-1257_daily_bin1291.fits
.....................!
real 13.78
user 13.33
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805066/ft1_filtered_4FGL_J1337.6-1257_daily_bin1291.fits evtable="EVENTS" scfile=/scratch/kocevski/805066/ft2_4FGL_J1337.6-1257_daily_bin1291.fits sctable="SC_DATA" expcube=/scratch/kocevski/805066/ltcube_573955201_574214401_4FGL_J1337.6-1257_daily_bin1291.fits outfile=/scratch/kocevski/805066/expmap_573955201_574214401_4FGL_J1337.6-1257_daily_bin1291.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/805066/ltcube_573955201_574214401_4FGL_J1337.6-1257_daily_bin1291.fits
.....................!
real 192.49
user 186.79
sys 4.97

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/805066/ft1_filtered_4FGL_J1337.6-1257_daily_bin1291.fits scfile=/scratch/kocevski/805066/ft2_4FGL_J1337.6-1257_daily_bin1291.fits outfile=/scratch/kocevski/805066/cmap_573955201_574214401_4FGL_J1337.6-1257_daily_bin1291.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/805066/ft1_filtered_4FGL_J1337.6-1257_daily_bin1291.fits scfile=/scratch/kocevski/805066/ft2_4FGL_J1337.6-1257_daily_bin1291.fits outfile=/scratch/kocevski/805066/cmap_HighResolution_573955201_574214401_4FGL_J1337.6-1257_daily_bin1291.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.55
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/805066/ft1_filtered_4FGL_J1337.6-1257_daily_bin1291.fits evtable="EVENTS" scfile=/scratch/kocevski/805066/ft2_4FGL_J1337.6-1257_daily_bin1291.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/805066/Model_4FGL_J1337.6-1257_daily_bin1291.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/805066/ft1_filtered_4FGL_J1337.6-1257_daily_bin1291.fits.....................!
real 63.80
user 61.70
sys 1.39

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    12.728       1.0000         .10000E-03   10000.    
     4 'norm      '    2.2732       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.7433       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .16756E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    22.063       1.0000         .10000E-03   10000.    
    10 'norm      '    11.472       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    50.318       1.0000         .10000E-03   10000.    
    13 'norm      '    15.418       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.9432       1.0000         .10000E-03   10000.    
    15 'norm      '    7.0123       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.2939       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10180E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    13.535       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .68433       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .82744       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1840       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=   8149.079     FROM MIGRAD    STATUS=CONVERGED    917 CALLS     2959 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.9273        .17407E-02** at limit **
   2  norm          .10000E-03    1.3495        .20145E-03** at limit **
   3  norm          12.727        9.3950        .11228E-03    .15695E-04
   4  norm          2.2726        6.4768        .13618E-02    .30821E-04
   5  Prefactor     2.7397        9.7008        .12290E-02    .42245E-04
   6  Prefactor     .10004E-03    85.473        .40906E-02** at limit **
   7  Prefactor     .10000E-03    19.306        .18142E-02** at limit **
   8  norm          .10000E-03    .38658        .54322E-03** at limit **
   9  norm          22.063        6.3181        .85275E-04   -.39329E-04
  10  norm          11.472        8.6289        .11828E-03   -.49982E-05
  11  Prefactor     .10000E-03    5.7669        .18142E-02** at limit **
  12  Prefactor     50.309        31.700        .56535E-04   -.20109E-06
  13  norm          15.392        29.512        .10200E-03    .94736E-05
  14  Prefactor     5.9408        10.820        .16472E-03    .97870E-04
  15  norm          7.0111        4.9931        .15150E-03    .73692E-04
  16  Prefactor     4.2937        3.9259        .16447E-03   -.18456E-04
  17  Prefactor     .10000E-03    32.910        .18142E-02** at limit **
  18  norm          .10000E-03    2.3725        .13555E-02** at limit **
  19  norm          .10000E-03    1.9042        .18713E-02** at limit **
  20  norm          13.543        7.8150        .10887E-03   -.22137E-03
  21  Prefactor     .42137        151.89        .61171E-02    .94117E-04
  22  Normalizat    .82743        .26123        .41800E-03   -.22955E-04
  23  Prefactor     1.1841        .14118        .19250E-03   -.48870E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  norm       = 12.7267
  norm       = 2.2726
  Prefactor  = 2.73971
  Prefactor  = 0.000100039
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 22.0633
  norm       = 11.4721
  Prefactor  = 0.0001
  Prefactor  = 50.3087
  norm       = 15.3919
  Prefactor  = 5.94082
  norm       = 7.01108
  Prefactor  = 4.29375
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 13.5428
  Prefactor  = 0.421369
  Normalizat = 0.827429
  Prefactor  = 1.18414
 **********
 **   18 **HESSE 
 **********

 FCN=   8149.079     FROM HESSE     STATUS=OK           352 CALLS     3311 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.9283        .34814E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.3495        .40289E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          12.727        9.3946        .44911E-05   -1.4994    
   4  norm          2.2726        6.4750        .54474E-04   -1.5406    
   5  Prefactor     2.7397        9.6863        .49161E-04   -1.5377    
   6  Prefactor     .10004E-03    88.669        .16362E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    19.308        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .38660        .10864E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          22.063        6.3148        .34110E-05   -1.4768    
  10  norm          11.472        8.6287        .47310E-05   -1.5030    
  11  Prefactor     .10000E-03    5.7673        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     50.309        31.680        .22614E-05   -1.4288    
  13  norm          15.392        29.502        .40801E-05   -1.4923    
  14  Prefactor     5.9408        10.816        .65886E-05   -1.5220    
  15  norm          7.0111        4.9926        .60598E-05   -1.5178    
  16  Prefactor     4.2937        3.9255        .65787E-05   -1.5294    
  17  Prefactor     .10000E-03    32.913        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.3726        .27109E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.9082        .37427E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          13.543        7.7986        .43549E-05   -1.4972    
  21  Prefactor     .42137        157.07        .24468E-03   -1.5578    
  22  Normalizat    .82743        .26098        .16720E-04   -.99059    
  23  Prefactor     1.1841        .14115        .38499E-04   -.86821    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17957e-09
Minuit parameter uncertainties:
  1  1.32501e-05
  2  7.12216e-06
  3  9.39568
  4  6.47699
  5  9.69188
  6  0.00373751
  7  0.000117578
  8  2.65679e-06
  9  6.31495
  10  8.62966
  11  5.95793e-06
  12  31.6902
  13  29.5299
  14  10.82
  15  4.99293
  16  3.92578
  17  5.05704e-05
  18  2.56602e-06
  19  4.56737e-06
  20  7.79923
  21  16.312
  22  0.261379
  23  0.141197
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.147e+01  8.630e+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.184e+00  1.412e-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.274e-01  2.614e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.71
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 6.98e-08 +/- 5.25e-08
Energy Flux (Fixed Index): 2.52e-05 +/- 1.89e-05

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

Saving results to:
/scratch/kocevski/805066/likelihoodResults_573955201_574214401_4FGL_J1337.6-1257_daily_bin1291.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) = 8149.07458089
delta logL = 0.00445334299457

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8149.0740852
delta logL = 0.0049490349711

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.693       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2460       1.0000          .0000       5.0000    
     3 'Normalizat'    .83055       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1832       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=   8149.074     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      199 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.693        217.75        .29289E-02    .15901E-03
   2  alpha         2.2460        3.1372        .41423       -.53232E-05
   3  Normalizat    .83055        .14974        .94196E-01    .66188E-05
   4  Prefactor     1.1832        .58035E-01    .35041E-01    .19952E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.6926
  alpha      = 2.24595
  Normalizat = 0.830548
  Prefactor  = 1.1832
 **********
 **   18 **HESSE 
 **********

 FCN=   8149.074     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.693        8.2657        .11715E-03   -1.5024    
   2  alpha         2.2460        .58884        .16219E-01   -.10180    
   3  Normalizat    .83055        .25756        .41732E-03   -.98945    
   4  Prefactor     1.1832        .13952        .19257E-03   -.86850    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.84571e-11
Minuit parameter uncertainties:
  1  8.26655
  2  0.59448
  3  0.257937
  4  0.139563
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805066': 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) = 8149.0740852
delta logL = 0.00494903511481

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.169e+01  8.267e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.246e+00  5.945e-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.183e+00  1.396e-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.305e-01  2.579e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.83
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 2.25 +/- 0.59
Photon Flux (Free Index): 6.65e-08 +/- 5.55e-08
Energy Flux (Free Index): 2.55e-05 +/- 1.80e-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/805066/cmap_HighResolution_573955201_574214401_4FGL_J1337.6-1257_daily_bin1291.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.14e-05', comment='SUCCESS', photon_flux='6.98e-08', energy_flux2='2.55e-05', photon_flux_error='5.25e-08', dlogl='4.95e-03', energy_flux='2.52e-05', photon_flux2='6.65e-08', job_status='DONE', time_completed='2021-09-08 05:10:26.251188', photon_index_error2='0.59', photon_index2='2.25', ts='3.71', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', photon_flux_upper_limit='1.70e-07', energy_flux_error2='1.80e-05', EG='0.83', time_epoch_completed='1631103026.25', return_code='0', job_id='805066', GAL2='1.18', EG2='0.83', return_code2='0', energy_flux_error='1.89e-05', photon_flux_error2='5.55e-08', ts2='3.83', photon_index='2.30' WHERE bin_id='1291' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:10:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 805066: <4FGL_J1337.6-1257_daily_bin1291> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin1291> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 04:55:34 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:57:03 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:57:03 2021
Terminated at Wed Sep  8 05:10:27 2021
Results reported at Wed Sep  8 05:10:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1291 204.424 -12.9517 573955201 574214401 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 :                                   765.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             322.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            893 sec.

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

