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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1600
RA = 204.424, Dec = -12.9517
tmin = 654048001, tmax = 654307201
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='260649', job_status='RUN', time_executed='2021-09-26 00:29:22.310580', time_epoch_executed='1632641362.31' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1600'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/260649

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/260649/ft1_4FGL_J1337.6-1257_daily_bin1600.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/260649/ft2_4FGL_J1337.6-1257_daily_bin1600.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/260649/ft1_4FGL_J1337.6-1257_daily_bin1600.fits outfile=/scratch/kocevski/260649/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1600.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=654048001.0 tmax=654307201.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.11
user 2.88
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/260649/ft1_filtered_4FGL_J1337.6-1257_daily_bin1600.fits" evtable="EVENTS" scfile=/scratch/kocevski/260649/ft2_4FGL_J1337.6-1257_daily_bin1600.fits sctable="SC_DATA" outfile=/scratch/kocevski/260649/ltcube_654048001_654307201_4FGL_J1337.6-1257_daily_bin1600.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/260649/ft2_4FGL_J1337.6-1257_daily_bin1600.fits
.....................!
real 14.81
user 14.43
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/260649/ft1_filtered_4FGL_J1337.6-1257_daily_bin1600.fits evtable="EVENTS" scfile=/scratch/kocevski/260649/ft2_4FGL_J1337.6-1257_daily_bin1600.fits sctable="SC_DATA" expcube=/scratch/kocevski/260649/ltcube_654048001_654307201_4FGL_J1337.6-1257_daily_bin1600.fits outfile=/scratch/kocevski/260649/expmap_654048001_654307201_4FGL_J1337.6-1257_daily_bin1600.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/260649/ltcube_654048001_654307201_4FGL_J1337.6-1257_daily_bin1600.fits
.....................!
real 158.09
user 153.08
sys 4.55

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/260649/ft1_filtered_4FGL_J1337.6-1257_daily_bin1600.fits scfile=/scratch/kocevski/260649/ft2_4FGL_J1337.6-1257_daily_bin1600.fits outfile=/scratch/kocevski/260649/cmap_654048001_654307201_4FGL_J1337.6-1257_daily_bin1600.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.51
user 0.33
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/260649/ft1_filtered_4FGL_J1337.6-1257_daily_bin1600.fits scfile=/scratch/kocevski/260649/ft2_4FGL_J1337.6-1257_daily_bin1600.fits outfile=/scratch/kocevski/260649/cmap_HighResolution_654048001_654307201_4FGL_J1337.6-1257_daily_bin1600.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.52
user 0.35
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/260649/ft1_filtered_4FGL_J1337.6-1257_daily_bin1600.fits evtable="EVENTS" scfile=/scratch/kocevski/260649/ft2_4FGL_J1337.6-1257_daily_bin1600.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/260649/Model_4FGL_J1337.6-1257_daily_bin1600.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/260649/ft1_filtered_4FGL_J1337.6-1257_daily_bin1600.fits.....................!
real 58.81
user 57.59
sys 1.04

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/260649/ft1_filtered_4FGL_J1337.6-1257_daily_bin1600.fits', '/scratch/kocevski/260649/ft2_4FGL_J1337.6-1257_daily_bin1600.fits', expMap='/scratch/kocevski/260649/expmap_654048001_654307201_4FGL_J1337.6-1257_daily_bin1600.fits', expCube='/scratch/kocevski/260649/ltcube_654048001_654307201_4FGL_J1337.6-1257_daily_bin1600.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/260649/Model_4FGL_J1337.6-1257_daily_bin1600.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/260649/ft1_filtered_4FGL_J1337.6-1257_daily_bin1600.fits
Spacecraft file(s): /scratch/kocevski/260649/ft2_4FGL_J1337.6-1257_daily_bin1600.fits
Exposure map: /scratch/kocevski/260649/expmap_654048001_654307201_4FGL_J1337.6-1257_daily_bin1600.fits
Exposure cube: /scratch/kocevski/260649/ltcube_654048001_654307201_4FGL_J1337.6-1257_daily_bin1600.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/260649/Model_4FGL_J1337.6-1257_daily_bin1600.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 9208.30612294

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10214E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .85121E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    17.807       1.0000         .10000E-03   10000.    
     4 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.323       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .47909       1.0000         .10000E-03   10000.    
     9 'norm      '    4.6583       1.0000         .10000E-03   10000.    
    10 'norm      '    8.1507       1.0000         .10000E-03   10000.    
    11 'Prefactor '    34.995       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    11.242       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .60570       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.6306       1.0000         .10000E-03   10000.    
    18 'norm      '    4.6141       1.0000         .10000E-03   10000.    
    19 'norm      '    6.3356       1.0000         .10000E-03   10000.    
    20 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    23.136       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4835       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .85933       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=   9208.106     FROM MIGRAD    STATUS=CONVERGED    552 CALLS     2268 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10004E-03    5.6931       -.14946E-05** at limit **
   2  norm          .10001E-03    1.1059       -.33588E-06** at limit **
   3  norm          17.808        11.895       -.15888E-07   -.58091E-04
   4  norm          .10000E-03    3.2423       -.86521E-08** at limit **
   5  Prefactor     .10000E-03    2.9455        .44631E-07** at limit **
   6  Prefactor     22.326        10.552        .53169E-08   -.21854E-03
   7  Prefactor     .10000E-03    12.709       -.48374E-06** at limit **
   8  norm          .48005        1.2718        .42438E-06   -.51103E-03
   9  norm          4.6579        3.2974        .34780E-06   -.98299E-04
  10  norm          8.1529        6.3253       -.91565E-06   -.15341E-02
  11  Prefactor     34.995        14.149        .12191E-06   -.35024E-04
  12  Prefactor     .10000E-03    35.641        .14811E-05** at limit **
  13  norm          .10000E-03    17.532        .16117E-05** at limit **
  14  Prefactor     .10000E-03    2.3707        .22681E-07** at limit **
  15  norm          11.242        5.3296        .50913E-07   -.16204E-03
  16  Prefactor     .58887        3.6391        .24907E-05   -.12599E-02
  17  Prefactor     1.5208        153.00       -.46713E-06   -.48010E-04
  18  norm          4.6198        5.5599       -.11511E-05   -.15147E-02
  19  norm          6.3363        2.7535        .97312E-06    .50656E-03
  20  norm          .10000E-03    5.6601       -.11059E-06** at limit **
  21  Prefactor     23.135        16.349       -.36338E-07   -.27336E-04
  22  Normalizat    1.4831        .22694       -.11908E-05   -.24057E-03
  23  Prefactor     .85955        .10946        .56706E-07   -.31062E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100043
  norm       = 0.000100012
  norm       = 17.8076
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.3256
  Prefactor  = 0.0001
  norm       = 0.480047
  norm       = 4.65792
  norm       = 8.15285
  Prefactor  = 34.9946
  Prefactor  = 0.000100002
  norm       = 0.000100003
  Prefactor  = 0.0001
  norm       = 11.2423
  Prefactor  = 0.588875
  Prefactor  = 1.52078
  norm       = 4.61982
  norm       = 6.33628
  norm       = 0.0001
  Prefactor  = 23.1353
  Normalizat = 1.48309
  Prefactor  = 0.859548
 **********
 **   18 **HESSE 
 **********

 FCN=   9208.106     FROM HESSE     STATUS=OK           378 CALLS     2646 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10004E-03    22.497        .40729E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10001E-03    9.0130        .19127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          17.808        11.886        .94912E-04   -1.4864    
   4  norm          .10000E-03    3.2440        .16875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.9564        .16082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     22.326        10.609        .84777E-04   -1.4763    
   7  Prefactor     .10000E-03    12.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .48005        1.5538        .16014E-02   -1.5569    
   9  norm          4.6579        3.3029        .13212E-03   -1.5276    
  10  norm          8.1529        6.4944        .14043E-03   -1.5137    
  11  Prefactor     34.995        14.147        .67742E-04   -1.4524    
  12  Prefactor     .10000E-03    37.033        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    17.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.3736        .14425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          11.242        5.3183        .11948E-03   -1.5037    
  16  Prefactor     .58887        7.4255        .25849E-02   -1.5554    
  17  Prefactor     1.5208        156.04        .33117E-03   -1.5461    
  18  norm          4.6198        5.7389        .18738E-03   -1.5278    
  19  norm          6.3363        2.8982        .52565E-03   -1.5204    
  20  norm          .10000E-03    5.7534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     23.135        16.343        .83276E-04   -1.4746    
  22  Normalizat    1.4831        .26097        .32737E-03   -.78254    
  23  Prefactor     .85955        .12709        .21563E-03   -.97569    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.02948e-08
Minuit parameter uncertainties:
  1  0.00197465
  2  0.000644139
  3  11.8874
  4  1.32754e-06
  5  3.89317e-06
  6  10.6101
  7  0.000115857
  8  1.55398
  9  3.30304
  10  6.49501
  11  14.1486
  12  0.000486237
  13  0.000435594
  14  1.37743e-06
  15  5.31853
  16  4.18247
  17  30.8909
  18  5.73956
  19  2.89829
  20  1.97699e-05
  21  16.3462
  22  0.261203
  23  0.127133
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  8.153e+00  6.495e+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.595e-01  1.271e-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.483e+00  2.612e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.41
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 4.96e-08 +/- 3.95e-08
Energy Flux (Fixed Index): 1.79e-05 +/- 1.43e-05

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

Saving results to:
/scratch/kocevski/260649/likelihoodResults_654048001_654307201_4FGL_J1337.6-1257_daily_bin1600.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) = 9207.93856083
delta logL = 0.167217157345

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9207.93368757
delta logL = 0.172090412729

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.1463       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7071       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4588       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86596       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9207.934     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      304 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.1424        6.1175        .75027E-03    .25786E-03
   2  alpha         2.7061        .71890        .15959E-01    .21819E-03
   3  Normalizat    1.4590        .24288        .32950E-03   -.13180E-04
   4  Prefactor     .86603        .12452        .21487E-03   -.26984E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.14243
  alpha      = 2.70607
  Normalizat = 1.45896
  Prefactor  = 0.866027
 **********
 **   18 **HESSE 
 **********

 FCN=   9207.934     FROM HESSE     STATUS=OK            27 CALLS      331 TOTAL
                     EDM=   .62E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.1424        5.8136        .15005E-03   -1.5173    
   2  alpha         2.7061        .68352        .31918E-02    .82522E-01
   3  Normalizat    1.4590        .24285        .13180E-04   -.78938    
   4  Prefactor     .86603        .12453        .85949E-05   -.97339    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.23517e-12
Minuit parameter uncertainties:
  1  5.81401
  2  0.692402
  3  0.243047
  4  0.124575
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/260649': 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) = 9207.93368379
delta logL = 0.172094201482

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  7.142e+00  5.814e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.706e+00  6.924e-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.660e-01  1.246e-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.459e+00  2.430e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.81
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 2.71 +/- 0.69
Photon Flux (Free Index): 7.22e-08 +/- 5.91e-08
Energy Flux (Free Index): 1.86e-05 +/- 1.25e-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/260649/cmap_HighResolution_654048001_654307201_4FGL_J1337.6-1257_daily_bin1600.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.71e-05', comment='SUCCESS', photon_flux='4.96e-08', energy_flux2='1.86e-05', photon_flux_error='3.95e-08', dlogl='1.72e-01', energy_flux='1.79e-05', photon_flux2='7.22e-08', job_status='DONE', time_completed='2021-09-26 00:40:20.941841', photon_index_error2='0.69', photon_index2='2.71', ts='3.41', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='1.31e-07', energy_flux_error2='1.25e-05', EG='1.48', time_epoch_completed='1632642020.94', return_code='0', job_id='260649', GAL2='0.87', EG2='1.46', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='5.91e-08', ts2='3.81', photon_index='2.30' WHERE bin_id='1600' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 00:40:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 260649: <4FGL_J1337.6-1257_daily_bin1600> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin1600> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 26 00:25:20 2021
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 00:25:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 00:25:40 2021
Terminated at Sun Sep 26 00:40:21 2021
Results reported at Sun Sep 26 00:40:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1600 204.424 -12.9517 654048001 654307201 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 :                                   660.48 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             251.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            901 sec.

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

