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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin443
RA = 204.424, Dec = -12.9517
tmin = 354153601, tmax = 354412801
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='799222', job_status='RUN', time_executed='2021-09-08 04:43:54.355309', time_epoch_executed='1631101434.36' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='443'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/799222

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/799222/ft1_4FGL_J1337.6-1257_daily_bin443.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/799222/ft2_4FGL_J1337.6-1257_daily_bin443.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/799222/ft1_4FGL_J1337.6-1257_daily_bin443.fits outfile=/scratch/kocevski/799222/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin443.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=354153601.0 tmax=354412801.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.99
user 3.73
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/799222/ft1_filtered_4FGL_J1337.6-1257_daily_bin443.fits" evtable="EVENTS" scfile=/scratch/kocevski/799222/ft2_4FGL_J1337.6-1257_daily_bin443.fits sctable="SC_DATA" outfile=/scratch/kocevski/799222/ltcube_354153601_354412801_4FGL_J1337.6-1257_daily_bin443.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/799222/ft2_4FGL_J1337.6-1257_daily_bin443.fits
.....................!
real 15.86
user 15.46
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/799222/ft1_filtered_4FGL_J1337.6-1257_daily_bin443.fits evtable="EVENTS" scfile=/scratch/kocevski/799222/ft2_4FGL_J1337.6-1257_daily_bin443.fits sctable="SC_DATA" expcube=/scratch/kocevski/799222/ltcube_354153601_354412801_4FGL_J1337.6-1257_daily_bin443.fits outfile=/scratch/kocevski/799222/expmap_354153601_354412801_4FGL_J1337.6-1257_daily_bin443.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/799222/ltcube_354153601_354412801_4FGL_J1337.6-1257_daily_bin443.fits
.....................!
real 192.62
user 186.73
sys 5.30

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/799222/ft1_filtered_4FGL_J1337.6-1257_daily_bin443.fits scfile=/scratch/kocevski/799222/ft2_4FGL_J1337.6-1257_daily_bin443.fits outfile=/scratch/kocevski/799222/cmap_354153601_354412801_4FGL_J1337.6-1257_daily_bin443.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.57
user 0.37
sys 0.17

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/799222/ft1_filtered_4FGL_J1337.6-1257_daily_bin443.fits evtable="EVENTS" scfile=/scratch/kocevski/799222/ft2_4FGL_J1337.6-1257_daily_bin443.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/799222/Model_4FGL_J1337.6-1257_daily_bin443.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/799222/ft1_filtered_4FGL_J1337.6-1257_daily_bin443.fits.....................!
real 56.30
user 54.83
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.790       1.0000         .10000E-03   10000.    
     2 'norm      '    1.1672       1.0000         .10000E-03   10000.    
     3 'norm      '    2.5504       1.0000         .10000E-03   10000.    
     4 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.568       1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.729       1.0000         .10000E-03   10000.    
     8 'norm      '    1.3791       1.0000         .10000E-03   10000.    
     9 'norm      '    .11070E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .30640       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15065       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.834       1.0000         .10000E-03   10000.    
    15 'norm      '    .10381E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.2372       1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.806       1.0000         .10000E-03   10000.    
    18 'norm      '    7.6990       1.0000         .10000E-03   10000.    
    19 'norm      '    2.5030       1.0000         .10000E-03   10000.    
    20 'norm      '    .98562       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.5373       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .93807       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0984       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=   6864.572     FROM MIGRAD    STATUS=CONVERGED    937 CALLS     3039 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.791        9.3375        .11667E-03    .13252E-04
   2  norm          1.1654        2.3862        .18006E-03    .32327E-04
   3  norm          2.5473        18.446        .25568E-03   -.24011E-05
   4  norm          .10000E-03    3.8106        .15790E-02** at limit **
   5  Prefactor     .10000E-03    4.8854        .17856E-02** at limit **
   6  Prefactor     12.569        11.276        .11299E-03   -.11772E-04
   7  Prefactor     17.671        24.835        .95121E-04    .10852E-03
   8  norm          1.3782        1.3868        .93692E-04   -.10435E-04
   9  norm          .10000E-03    2.0329        .11480E-02** at limit **
  10  norm          .32015        34.700        .37068E-02    .11098E-03
  11  Prefactor     .19051        41.149        .83159E-01    .17801E-03
  12  Prefactor     .10000E-03    16.586        .18142E-02** at limit **
  13  norm          .10000E-03    9.7211        .18142E-02** at limit **
  14  Prefactor     23.830        18.199        .82050E-04   -.26603E-04
  15  norm          .10000E-03    3.8721        .15838E-02** at limit **
  16  Prefactor     5.2325        6.0226        .17564E-03   -.22913E-04
  17  Prefactor     25.903        61.187        .78858E-04    .82262E-04
  18  norm          7.6978        7.4620        .14452E-03   -.15261E-04
  19  norm          2.5051        2.3770        .59416E-03    .19786E-03
  20  norm          1.0135        18.423        .41941E-02    .15178E-03
  21  Prefactor     4.5584        18.919        .18899E-03    .45717E-05
  22  Normalizat    .93792        .30219        .38729E-03    .10753E-03
  23  Prefactor     1.0985        .15098        .19104E-03   -.10800E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 11.7909
  norm       = 1.16539
  norm       = 2.54731
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.5688
  Prefactor  = 17.6714
  norm       = 1.37818
  norm       = 0.0001
  norm       = 0.320149
  Prefactor  = 0.190513
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 23.83
  norm       = 0.0001
  Prefactor  = 5.23246
  Prefactor  = 25.9032
  norm       = 7.69781
  norm       = 2.50513
  norm       = 1.01352
  Prefactor  = 4.55838
  Normalizat = 0.93792
  Prefactor  = 1.09852
 **********
 **   18 **HESSE 
 **********

 FCN=   6864.572     FROM HESSE     STATUS=OK           362 CALLS     3401 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.791        9.3360        .46668E-05   -1.5021    
   2  norm          1.1654        2.3860        .72024E-05   -1.5492    
   3  norm          2.5473        18.430        .10227E-04   -1.5389    
   4  norm          .10000E-03    3.8107        .31580E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.8859        .35712E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.569        11.274        .45197E-05   -1.4999    
   7  Prefactor     17.671        24.208        .38048E-05   -1.4867    
   8  norm          1.3782        1.3865        .37477E-05   -1.5473    
   9  norm          .10000E-03    2.0329        .22961E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .32015        32.967        .14827E-03   -1.5595    
  11  Prefactor     .19051        32.478        .92817E-01   -1.5621    
  12  Prefactor     .10000E-03    16.588        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    9.7211        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     23.830        17.775        .32820E-05   -1.4731    
  15  norm          .10000E-03    3.8732        .31677E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.2325        6.0113        .70258E-05   -1.5250    
  17  Prefactor     25.903        61.173        .15772E-04   -1.4690    
  18  norm          7.6978        7.4609        .57809E-05   -1.5153    
  19  norm          2.5051        2.3736        .23766E-04   -1.5391    
  20  norm          1.0135        18.313        .16776E-03   -1.5507    
  21  Prefactor     4.5584        18.868        .75598E-05   -1.5281    
  22  Normalizat    .93792        .30200        .15492E-04   -.95140    
  23  Prefactor     1.0985        .15105        .38209E-04   -.89514    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.69291e-10
Minuit parameter uncertainties:
  1  9.33714
  2  2.3862
  3  13.7094
  4  4.93237e-07
  5  2.12691e-07
  6  11.2757
  7  24.221
  8  1.38658
  9  3.47872e-06
  10  6.50018
  11  4.97635
  12  6.80121e-06
  13  3.06372e-06
  14  17.7793
  15  1.06365e-05
  16  6.01195
  17  61.3221
  18  7.46183
  19  2.37367
  20  8.61911
  21  18.5581
  22  0.302553
  23  0.151105
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  3.201e-01  6.500e+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.099e+00  1.511e-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.379e-01  3.026e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/799222/likelihoodResults_354153601_354412801_4FGL_J1337.6-1257_daily_bin443.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) = 6862.98103509
delta logL = 1.59098875697

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6862.89993074
delta logL = 1.6720931014

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .88645       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.5272       1.0000          .0000       5.0000    
     3 'Normalizat'    .77946       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1434       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=   6862.900     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      296 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .89216        16.563        .46891E-04   -.84927E-02
   2  alpha         4.5229        4.3072        .23033E-01   -.17445E-03
   3  Normalizat    .77971        .26499        .42002E-03   -.27660E-03
   4  Prefactor     1.1434        .13975        .18743E-03   -.55297E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.892158
  alpha      = 4.5229
  Normalizat = 0.779712
  Prefactor  = 1.14337
 **********
 **   18 **HESSE 
 **********

 FCN=   6862.900     FROM HESSE     STATUS=OK            23 CALLS      319 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .89216        2.1107        .18757E-05   -1.5519    
   2  alpha         4.5229        1.1785        .92133E-03    .94272    
   3  Normalizat    .77971        .28476        .16801E-04   -1.0083    
   4  Prefactor     1.1434        .14809        .37487E-04   -.88092    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63395e-09
Minuit parameter uncertainties:
  1  2.11087
  2  1.36773
  3  0.285301
  4  0.148142
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/799222': 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) = 6862.89992355
delta logL = 1.67210029487

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  8.922e-01  2.111e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  4.523e+00  1.368e+00  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.143e+00  1.481e-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:  7.797e-01  2.853e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.69
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 4.52 +/- 1.37
Photon Flux (Free Index): 1.55e-07 +/- 9.86e-08
Energy Flux (Free Index): 2.26e-05 +/- 1.47e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/799222/cmap_HighResolution_354153601_354412801_4FGL_J1337.6-1257_daily_bin443.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.92e-05', comment='SUCCESS', energy_flux2='2.26e-05', dlogl='1.67e+00', photon_flux2='1.55e-07', job_status='DONE', time_completed='2021-09-08 04:55:49.689799', photon_index_error2='1.37', photon_index2='4.52', ts='0.00', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='1.09e-07', energy_flux_error2='1.47e-05', EG='0.94', time_epoch_completed='1631102149.69', return_code='0', job_id='799222', GAL2='1.14', EG2='0.78', return_code2='0', photon_flux_error2='9.86e-08', ts2='3.69', photon_index='2.30' WHERE bin_id='443' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:55:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 799222: <4FGL_J1337.6-1257_daily_bin443> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin443> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 04:40:32 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:40:40 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:40:40 2021
Terminated at Wed Sep  8 04:55:50 2021
Results reported at Wed Sep  8 04:55:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin443 204.424 -12.9517 354153601 354412801 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 :                                   711.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            918 sec.

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

