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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin211
RA = 204.424, Dec = -12.9517
tmin = 294019201, tmax = 294278401
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='796338', job_status='RUN', time_executed='2021-09-08 04:34:34.234606', time_epoch_executed='1631100874.23' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='211'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/796338

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/796338/ft1_4FGL_J1337.6-1257_daily_bin211.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/796338/ft2_4FGL_J1337.6-1257_daily_bin211.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/796338/ft1_4FGL_J1337.6-1257_daily_bin211.fits outfile=/scratch/kocevski/796338/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin211.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=294019201.0 tmax=294278401.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.17
user 2.96
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/796338/ft1_filtered_4FGL_J1337.6-1257_daily_bin211.fits" evtable="EVENTS" scfile=/scratch/kocevski/796338/ft2_4FGL_J1337.6-1257_daily_bin211.fits sctable="SC_DATA" outfile=/scratch/kocevski/796338/ltcube_294019201_294278401_4FGL_J1337.6-1257_daily_bin211.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/796338/ft2_4FGL_J1337.6-1257_daily_bin211.fits
.....................!
real 16.61
user 16.19
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/796338/ft1_filtered_4FGL_J1337.6-1257_daily_bin211.fits evtable="EVENTS" scfile=/scratch/kocevski/796338/ft2_4FGL_J1337.6-1257_daily_bin211.fits sctable="SC_DATA" expcube=/scratch/kocevski/796338/ltcube_294019201_294278401_4FGL_J1337.6-1257_daily_bin211.fits outfile=/scratch/kocevski/796338/expmap_294019201_294278401_4FGL_J1337.6-1257_daily_bin211.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/796338/ltcube_294019201_294278401_4FGL_J1337.6-1257_daily_bin211.fits
.....................!
real 192.61
user 187.29
sys 4.62

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/796338/ft1_filtered_4FGL_J1337.6-1257_daily_bin211.fits scfile=/scratch/kocevski/796338/ft2_4FGL_J1337.6-1257_daily_bin211.fits outfile=/scratch/kocevski/796338/cmap_294019201_294278401_4FGL_J1337.6-1257_daily_bin211.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/796338/ft1_filtered_4FGL_J1337.6-1257_daily_bin211.fits scfile=/scratch/kocevski/796338/ft2_4FGL_J1337.6-1257_daily_bin211.fits outfile=/scratch/kocevski/796338/cmap_HighResolution_294019201_294278401_4FGL_J1337.6-1257_daily_bin211.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.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/796338/ft1_filtered_4FGL_J1337.6-1257_daily_bin211.fits evtable="EVENTS" scfile=/scratch/kocevski/796338/ft2_4FGL_J1337.6-1257_daily_bin211.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/796338/Model_4FGL_J1337.6-1257_daily_bin211.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/796338/ft1_filtered_4FGL_J1337.6-1257_daily_bin211.fits.....................!
real 68.48
user 66.60
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.184       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    9.0829       1.0000         .10000E-03   10000.    
     4 'norm      '    6.4016       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.006       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.142       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.006       1.0000         .10000E-03   10000.    
     8 'norm      '    2.8541       1.0000         .10000E-03   10000.    
     9 'norm      '    4.8744       1.0000         .10000E-03   10000.    
    10 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.9981       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.9437       1.0000         .10000E-03   10000.    
    15 'norm      '    8.7077       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.1295       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.3972       1.0000         .10000E-03   10000.    
    19 'norm      '    2.1693       1.0000         .10000E-03   10000.    
    20 'norm      '    .29325E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.142       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2233       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0486       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=   8465.577     FROM MIGRAD    STATUS=CONVERGED    491 CALLS     2516 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.183        7.0517       -.18034E-06   -.10413E-04
   2  norm          .10000E-03    .85917       -.82114E-07** at limit **
   3  norm          9.0811        10.127        .78231E-07   -.67280E-04
   4  norm          6.4012        6.6896        .86080E-06    .12281E-02
   5  Prefactor     13.004        10.559        .10338E-05   -.25808E-04
   6  Prefactor     12.141        8.7282       -.14444E-06   -.53878E-04
   7  Prefactor     12.993        25.190       -.17080E-04   -.14612E-04
   8  norm          2.8536        1.7103       -.30379E-07   -.55074E-03
   9  norm          4.8712        4.9844        .40767E-05   -.35892E-03
  10  norm          .10000E-03    7.4028        .64396E-07** at limit **
  11  Prefactor     6.9992        17.876        .43731E-05   -.18317E-05
  12  Prefactor     .10000E-03    22.877       -.11896E-04** at limit **
  13  norm          .10000E-03    9.4538        .13425E-06** at limit **
  14  Prefactor     4.9339        11.664       -.37673E-05   -.14855E-03
  15  norm          8.7045        6.5449        .62467E-06   -.15397E-03
  16  Prefactor     3.1286        3.7738       -.20055E-05   -.48449E-03
  17  Prefactor     .10000E-03    26.361        .18836E-04** at limit **
  18  norm          3.3972        3.8325        .18157E-05    .13837E-03
  19  norm          2.1718        1.9301       -.68174E-07    .76480E-03
  20  norm          .10026E-03    4.7662       -.36152E-05** at limit **
  21  Prefactor     19.159        23.353        .16886E-04    .27339E-03
  22  Normalizat    1.2233        .24564        .20067E-05    .20796E-03
  23  Prefactor     1.0488        .12442       -.13529E-05    .65128E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.1829
  norm       = 0.0001
  norm       = 9.08108
  norm       = 6.40124
  Prefactor  = 13.0042
  Prefactor  = 12.1408
  Prefactor  = 12.9928
  norm       = 2.85365
  norm       = 4.87123
  norm       = 0.0001
  Prefactor  = 6.99922
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.93393
  norm       = 8.70454
  Prefactor  = 3.1286
  Prefactor  = 0.0001
  norm       = 3.39719
  norm       = 2.17181
  norm       = 0.000100256
  Prefactor  = 19.1594
  Normalizat = 1.22328
  Prefactor  = 1.0488
 **********
 **   18 **HESSE 
 **********

 FCN=   8465.577     FROM HESSE     STATUS=OK           376 CALLS     2892 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.183        7.0528        .12556E-03   -1.5070    
   2  norm          .10000E-03    .86814        .83271E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.0811        10.130        .13299E-03   -1.5105    
   4  norm          6.4012        6.7338        .79317E-03   -1.5202    
   5  Prefactor     13.004        10.554        .11107E-03   -1.4987    
   6  Prefactor     12.141        8.7374        .11496E-03   -1.5011    
   7  Prefactor     12.993        25.136        .11107E-03   -1.4987    
   8  norm          2.8536        1.7085        .88077E-04   -1.5370    
   9  norm          4.8712        4.9551        .14311E-03   -1.5267    
  10  norm          .10000E-03    7.5379        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.9992        17.549        .15165E-03   -1.5179    
  12  Prefactor     .10000E-03    22.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    9.4566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.9339        11.473        .18088E-03   -1.5264    
  15  norm          8.7045        6.5342        .13584E-03   -1.5118    
  16  Prefactor     3.1286        3.7770        .18776E-03   -1.5354    
  17  Prefactor     .10000E-03    26.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.3972        3.8301        .18436E-03   -1.5339    
  19  norm          2.1718        1.9201        .11570E-03   -1.5413    
  20  norm          .10026E-03    44.149        .37789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     19.159        23.254        .91544E-04   -1.4832    
  22  Normalizat    1.2233        .28610        .36442E-03   -.85886    
  23  Prefactor     1.0488        .14543        .20592E-03   -.91120    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.40978e-09
Minuit parameter uncertainties:
  1  7.05339
  2  9.53772e-07
  3  10.1324
  4  6.73458
  5  10.5559
  6  8.7383
  7  25.1569
  8  1.70857
  9  4.95548
  10  4.92485e-05
  11  17.5621
  12  7.03231e-05
  13  3.83254e-07
  14  11.4779
  15  6.53472
  16  3.77731
  17  8.84952e-06
  18  3.83038
  19  1.92015
  20  0.00672511
  21  23.2654
  22  0.286471
  23  0.145482
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.000e-04  4.925e-05  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.049e+00  1.455e-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.223e+00  2.865e-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: 8.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.17e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/796338/likelihoodResults_294019201_294278401_4FGL_J1337.6-1257_daily_bin211.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) = 8465.57757446
delta logL = -0.000633052724879

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8465.5769442
delta logL = -2.78775951301e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12179E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3302       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2228       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0490       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=   8465.577     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      241 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    718.12        .36285E-02** at limit **
   2  alpha         2.7915        3.3609        .16509        .49582E-08
   3  Normalizat    1.2233        .56072E-01    .36442E-03   -.72767E-03
   4  Prefactor     1.0488        .29764E-01    .20592E-03   -.13161E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.79146
  Normalizat = 1.22328
  Prefactor  = 1.0488
 **********
 **   18 **HESSE 
 **********

 FCN=   8465.577     FROM HESSE     STATUS=OK            23 CALLS      264 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.017        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.7915        3.8359        .66035E-02    .11685    
   3  Normalizat    1.2233        .26881        .72885E-04   -.85886    
   4  Prefactor     1.0488        .14297        .41183E-04   -.91120    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.89667e-10
Minuit parameter uncertainties:
  1  0.000125789
  2  253.033
  3  0.269119
  4  0.143022
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/796338': 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) = 8465.57693977
delta logL = 1.63577715284e-06

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.000e-04  1.258e-04  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.791e+00  2.530e+02  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.049e+00  1.430e-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.223e+00  2.691e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 204.424 -12.952

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/796338/cmap_HighResolution_294019201_294278401_4FGL_J1337.6-1257_daily_bin211.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.17e-05', job_status='DONE', photon_flux_upper_limit='8.79e-08', time_completed='2021-09-08 04:47:09.230030', job_id='796338', GAL2='1.05', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1631101629.23', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='1.64e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='211' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:47:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 796338: <4FGL_J1337.6-1257_daily_bin211> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin211 204.424 -12.9517 294019201 294278401 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 :                                   753.43 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             255.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            984 sec.

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

