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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1171
RA = 204.424, Dec = -12.9517
tmin = 542851201, tmax = 543110401
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='803784', job_status='RUN', time_executed='2021-09-08 04:57:20.343966', time_epoch_executed='1631102240.34' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/803784

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

Retrieving the FT1 file...

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

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

Retrieving 4 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/803784/ft1_4FGL_J1337.6-1257_daily_bin1171.fits


Retrieving the FT1 file...

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

Retrieving 4 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/803784/ft2_4FGL_J1337.6-1257_daily_bin1171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/803784/ft1_4FGL_J1337.6-1257_daily_bin1171.fits outfile=/scratch/kocevski/803784/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1171.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=542851201.0 tmax=543110401.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 0.80
user 0.62
sys 0.14

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/803784/ft1_filtered_4FGL_J1337.6-1257_daily_bin1171.fits" evtable="EVENTS" scfile=/scratch/kocevski/803784/ft2_4FGL_J1337.6-1257_daily_bin1171.fits sctable="SC_DATA" outfile=/scratch/kocevski/803784/ltcube_542851201_543110401_4FGL_J1337.6-1257_daily_bin1171.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/803784/ft2_4FGL_J1337.6-1257_daily_bin1171.fits
.....................!
real 2.01
user 1.68
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/803784/ft1_filtered_4FGL_J1337.6-1257_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/803784/ft2_4FGL_J1337.6-1257_daily_bin1171.fits sctable="SC_DATA" expcube=/scratch/kocevski/803784/ltcube_542851201_543110401_4FGL_J1337.6-1257_daily_bin1171.fits outfile=/scratch/kocevski/803784/expmap_542851201_543110401_4FGL_J1337.6-1257_daily_bin1171.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/803784/ltcube_542851201_543110401_4FGL_J1337.6-1257_daily_bin1171.fits
.....................!
real 190.66
user 185.77
sys 4.33

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/803784/ft1_filtered_4FGL_J1337.6-1257_daily_bin1171.fits scfile=/scratch/kocevski/803784/ft2_4FGL_J1337.6-1257_daily_bin1171.fits outfile=/scratch/kocevski/803784/cmap_542851201_543110401_4FGL_J1337.6-1257_daily_bin1171.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.58
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/803784/ft1_filtered_4FGL_J1337.6-1257_daily_bin1171.fits scfile=/scratch/kocevski/803784/ft2_4FGL_J1337.6-1257_daily_bin1171.fits outfile=/scratch/kocevski/803784/cmap_HighResolution_542851201_543110401_4FGL_J1337.6-1257_daily_bin1171.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.54
user 0.36
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/803784/ft1_filtered_4FGL_J1337.6-1257_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/803784/ft2_4FGL_J1337.6-1257_daily_bin1171.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/803784/Model_4FGL_J1337.6-1257_daily_bin1171.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/803784/ft1_filtered_4FGL_J1337.6-1257_daily_bin1171.fits......................!
real 15.29
user 13.63
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12798E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10261E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    66.838       1.0000         .10000E-03   10000.    
     4 'norm      '    .10715E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11235E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10969E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14846E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .12709E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10594E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10802E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    58.858       1.0000         .10000E-03   10000.    
    13 'norm      '    .26112E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    59.946       1.0000         .10000E-03   10000.    
    16 'Prefactor '    63.994       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13401E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    9.9773       1.0000         .10000E-03   10000.    
    20 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10482E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    3.4624       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .17049       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=   226.5734     FROM MIGRAD    STATUS=CONVERGED    467 CALLS     2781 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    75.033       -.24695E-06** at limit **
   2  norm          .10000E-03    24.679       -.40430E-08** at limit **
   3  norm          66.551        188.89       -.25810E-04    .23351E-04
   4  norm          .10000E-03    105.84       -.15063E-06** at limit **
   5  Prefactor     .10000E-03    79.951        .31012E-07** at limit **
   6  Prefactor     .10000E-03    119.30       -.44092E-06** at limit **
   7  Prefactor     .10000E-03    96.756       -.14864E-07** at limit **
   8  norm          .10000E-03    8.0000       -.22402E-06** at limit **
   9  norm          .10000E-03    23.279       -.40346E-06** at limit **
  10  norm          .10000E-03    66.976       -.17721E-05** at limit **
  11  Prefactor     .10000E-03    85.817       -.53946E-06** at limit **
  12  Prefactor     58.319        590.72       -.17399E-04    .22540E-04
  13  norm          .10000E-03    237.38       -.13911E-06** at limit **
  14  Prefactor     .10000E-03    131.84       -.54146E-05** at limit **
  15  norm          59.950        72.903        .16561E-05    .27480E-03
  16  Prefactor     63.884        74.922       -.55567E-05    .19758E-03
  17  Prefactor     .10003E-03    440.05       -.31729E-05** at limit **
  18  norm          .10000E-03    49.741       -.47674E-06** at limit **
  19  norm          9.9620        29.093       -.69049E-05    .41314E-03
  20  norm          .10000E-03    48.676        .35864E-06** at limit **
  21  Prefactor     .10000E-03    151.52        .22314E-07** at limit **
  22  Normalizat    3.4617        2.1915        .12517E-03    .34471E-04
  23  Prefactor     .17196        1.1682       -.18174E-03   -.12668E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  norm       = 66.5515
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 58.3189
  norm       = 0.0001
  Prefactor  = 0.000100004
  norm       = 59.95
  Prefactor  = 63.8839
  Prefactor  = 0.000100028
  norm       = 0.0001
  norm       = 9.96196
  norm       = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 3.46171
  Prefactor  = 0.171957
 **********
 **   18 **HESSE 
 **********

 FCN=   226.5734     FROM HESSE     STATUS=OK           350 CALLS     3131 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    75.045        .12764E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    24.679        .73135E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          66.551        188.84        .24546E-03   -1.4075    
   4  norm          .10000E-03    105.91        .15170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    79.953        .13176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    119.42        .16107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    96.799        .14501E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    8.0052        .41627E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    23.283        .71026E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    67.016        .12056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    85.836        .13652E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     58.319        588.33        .26147E-03   -1.4179    
  13  norm          .10000E-03    237.38        .21447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    131.93        .16923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          59.950        72.722        .51820E-04   -1.4158    
  16  Prefactor     63.884        74.381        .25082E-03   -1.4108    
  17  Prefactor     .10003E-03    441.85        .20557E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    49.747        .10387E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          9.9620        28.976        .12202E-03   -1.5077    
  20  norm          .10000E-03    48.685        .10275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    151.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    3.4617        2.1943        .32899E-03   -.31411    
  23  Prefactor     .17196        1.1675        .54428E-03   -1.3078    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76662e-09
Minuit parameter uncertainties:
  1  0.000224782
  2  1.10297e-06
  3  190.585
  4  0.000628323
  5  0.000246008
  6  3.40425e-05
  7  0.000424703
  8  1.74329e-05
  9  4.335e-05
  10  0.000148055
  11  0.000244165
  12  375.344
  13  0.000303167
  14  0.00144358
  15  72.8296
  16  74.4897
  17  0.00708947
  18  0.000149206
  19  29.0169
  20  0.000185395
  21  0.000590639
  22  2.28091
  23  0.923349
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.000e-04  1.481e-04  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.720e-01  9.233e-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:  3.462e+00  2.281e+00  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.63e-06 ph cm-2 s-1
Energy Flux Upper Limit: 5.88e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/803784/likelihoodResults_542851201_543110401_4FGL_J1337.6-1257_daily_bin1171.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): 102
logL (Free Index) = 226.573470732
delta logL = -3.80199366532e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 226.538644221
delta logL = 0.034788491116

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .56012       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    3.2955       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .22103       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=   226.5386     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      290 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55953        3.7714        .96213E-02    .11960E-02
   2  alpha         5.0000        4.9096        .46400    ** at limit **
   3  Normalizat    3.2938        1.9955        .74936E-01   -.36475E-04
   4  Prefactor     .22133        .90919        .10945        .16778E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.559528
  alpha      = 5
  Normalizat = 3.29382
  Prefactor  = 0.221335
 **********
 **   18 **HESSE 
 **********

 FCN=   226.5386     FROM HESSE     STATUS=OK            27 CALLS      317 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55953        2.2942        .43024E-04   -1.5558    
   2  alpha         5.0000        4.2435        .31652E-01    1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    3.2938        1.9570        .33127E-03   -.34966    
   4  Prefactor     .22133        .86988        .48481E-03   -1.2721    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.7711e-09
Minuit parameter uncertainties:
  1  2.26592
  2  0.000241575
  3  2.01863
  4  0.901726
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/803784': 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) = 226.5386434
delta logL = 0.0347893117941

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  5.595e-01  2.266e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  5.000e+00  2.416e-04  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:  2.213e-01  9.017e-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:  3.294e+00  2.019e+00  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/803784/cmap_HighResolution_542851201_543110401_4FGL_J1337.6-1257_daily_bin1171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.88e-04', job_status='DONE', photon_flux_upper_limit='1.63e-06', time_completed='2021-09-08 05:02:20.936090', job_id='803784', GAL2='0.22', fit_tolerance='1e-08', EG2='3.29', EG='3.46', time_epoch_completed='1631102540.94', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.17', dlogl='3.48e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='1171' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:02:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 803784: <4FGL_J1337.6-1257_daily_bin1171> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin1171> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 04:50:58 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:56:39 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:56:39 2021
Terminated at Wed Sep  8 05:02:21 2021
Results reported at Wed Sep  8 05:02:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1171 204.424 -12.9517 542851201 543110401 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 :                                   302.81 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             252.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   344 sec.
    Turnaround time :                            683 sec.

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

