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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1506
RA = 204.424, Dec = -12.9517
tmin = 629683201, tmax = 629942401
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='805375', job_status='RUN', time_executed='2021-09-08 04:58:49.465451', time_epoch_executed='1631102329.47' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1506'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805375

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805375/ft1_4FGL_J1337.6-1257_daily_bin1506.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805375/ft2_4FGL_J1337.6-1257_daily_bin1506.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805375/ft1_4FGL_J1337.6-1257_daily_bin1506.fits outfile=/scratch/kocevski/805375/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1506.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=629683201.0 tmax=629942401.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.65
user 3.38
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/805375/ft1_filtered_4FGL_J1337.6-1257_daily_bin1506.fits" evtable="EVENTS" scfile=/scratch/kocevski/805375/ft2_4FGL_J1337.6-1257_daily_bin1506.fits sctable="SC_DATA" outfile=/scratch/kocevski/805375/ltcube_629683201_629942401_4FGL_J1337.6-1257_daily_bin1506.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/805375/ft2_4FGL_J1337.6-1257_daily_bin1506.fits
.....................!
real 18.09
user 17.62
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805375/ft1_filtered_4FGL_J1337.6-1257_daily_bin1506.fits evtable="EVENTS" scfile=/scratch/kocevski/805375/ft2_4FGL_J1337.6-1257_daily_bin1506.fits sctable="SC_DATA" expcube=/scratch/kocevski/805375/ltcube_629683201_629942401_4FGL_J1337.6-1257_daily_bin1506.fits outfile=/scratch/kocevski/805375/expmap_629683201_629942401_4FGL_J1337.6-1257_daily_bin1506.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/805375/ltcube_629683201_629942401_4FGL_J1337.6-1257_daily_bin1506.fits
.....................!
real 193.34
user 187.93
sys 4.91

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/805375/ft1_filtered_4FGL_J1337.6-1257_daily_bin1506.fits scfile=/scratch/kocevski/805375/ft2_4FGL_J1337.6-1257_daily_bin1506.fits outfile=/scratch/kocevski/805375/cmap_629683201_629942401_4FGL_J1337.6-1257_daily_bin1506.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.59
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/805375/ft1_filtered_4FGL_J1337.6-1257_daily_bin1506.fits scfile=/scratch/kocevski/805375/ft2_4FGL_J1337.6-1257_daily_bin1506.fits outfile=/scratch/kocevski/805375/cmap_HighResolution_629683201_629942401_4FGL_J1337.6-1257_daily_bin1506.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.58
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/805375/ft1_filtered_4FGL_J1337.6-1257_daily_bin1506.fits evtable="EVENTS" scfile=/scratch/kocevski/805375/ft2_4FGL_J1337.6-1257_daily_bin1506.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/805375/Model_4FGL_J1337.6-1257_daily_bin1506.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/805375/ft1_filtered_4FGL_J1337.6-1257_daily_bin1506.fits.....................!
real 56.68
user 55.20
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .68374       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.112       1.0000         .10000E-03   10000.    
     7 'Prefactor '    44.657       1.0000         .10000E-03   10000.    
     8 'norm      '    2.1675       1.0000         .10000E-03   10000.    
     9 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .36809E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.098       1.0000         .10000E-03   10000.    
    13 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .36747E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    14.552       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    28.463       1.0000         .10000E-03   10000.    
    18 'norm      '    10.738       1.0000         .10000E-03   10000.    
    19 'norm      '    29.815       1.0000         .10000E-03   10000.    
    20 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .45572       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2814       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=   7141.300     FROM MIGRAD    STATUS=CONVERGED    512 CALLS     2939 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.7706       -.12669E-06** at limit **
   2  norm          .68337        2.0460       -.17367E-05    .43786E-03
   3  norm          .10000E-03    8.8147       -.10444E-05** at limit **
   4  norm          .10000E-03    3.8659        .23110E-06** at limit **
   5  Prefactor     .10000E-03    3.4518       -.24581E-06** at limit **
   6  Prefactor     10.111        10.432       -.14131E-06    .76353E-04
   7  Prefactor     44.663        19.611       -.12920E-06   -.14818E-04
   8  norm          2.1671        1.5619       -.13771E-06    .11466E-03
   9  norm          .10000E-03    2.1511       -.45648E-06** at limit **
  10  norm          .10002E-03    3.7674       -.36261E-05** at limit **
  11  Prefactor     .10000E-03    4.7931       -.90165E-06** at limit **
  12  Prefactor     16.091        29.663        .11480E-05    .19278E-03
  13  norm          .10000E-03    9.2746       -.34011E-06** at limit **
  14  Prefactor     .10002E-03    96.637       -.46351E-04** at limit **
  15  norm          14.551        6.2883       -.22891E-06   -.50059E-04
  16  Prefactor     .10000E-03    5.3422        .21633E-06** at limit **
  17  Prefactor     28.443        53.231        .50363E-05    .19720E-03
  18  norm          10.739        6.9430       -.77047E-07   -.49303E-03
  19  norm          29.814        5.1761       -.29781E-07   -.14497E-02
  20  norm          .10000E-03    13.081        .24241E-05** at limit **
  21  Prefactor     .10000E-03    16.452       -.29640E-05** at limit **
  22  Normalizat    .45577        .29589        .25243E-05    .12812E-03
  23  Prefactor     1.2814        .15447       -.63486E-06    .37333E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.683366
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.1115
  Prefactor  = 44.6633
  norm       = 2.16709
  norm       = 0.0001
  norm       = 0.00010002
  Prefactor  = 0.0001
  Prefactor  = 16.0908
  norm       = 0.0001
  Prefactor  = 0.000100018
  norm       = 14.5514
  Prefactor  = 0.000100001
  Prefactor  = 28.4434
  norm       = 10.7394
  norm       = 29.8139
  norm       = 0.0001
  Prefactor  = 0.000100004
  Normalizat = 0.455767
  Prefactor  = 1.28141
 **********
 **   18 **HESSE 
 **********

 FCN=   7141.300     FROM HESSE     STATUS=OK           370 CALLS     3309 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.7773        .13737E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .68337        2.0594        .20708E-03   -1.5543    
   3  norm          .10000E-03    8.9632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.8709        .16230E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.4577        .15332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.111        10.343        .12601E-03   -1.5072    
   7  Prefactor     44.663        19.223        .59995E-04   -1.4370    
   8  norm          2.1671        1.5451        .84036E-04   -1.5414    
   9  norm          .10000E-03    2.1664        .12045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10002E-03    15.240        .29759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.8149        .18089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.091        29.779        .99823E-04   -1.4905    
  13  norm          .10000E-03    9.2771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10002E-03    8.5147        .66697E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          14.551        6.2900        .10499E-03   -1.4945    
  16  Prefactor     .10000E-03    5.4760        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     28.443        53.695        .75094E-04   -1.4641    
  18  norm          10.739        6.9267        .12226E-03   -1.5052    
  19  norm          29.814        5.1469        .73376E-04   -1.4615    
  20  norm          .10000E-03    13.468        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .45577        .28536        .53943E-03   -1.1451    
  23  Prefactor     1.2814        .15317        .18579E-03   -.83861    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.72022e-09
Minuit parameter uncertainties:
  1  3.48688e-06
  2  2.0596
  3  7.94521e-05
  4  2.17357e-05
  5  8.61601e-06
  6  10.345
  7  19.2252
  8  1.5451
  9  1.60249e-05
  10  0.00109623
  11  7.82528e-05
  12  29.8064
  13  4.38041e-05
  14  0.000780586
  15  6.29028
  16  0.000105945
  17  53.7864
  18  6.92719
  19  5.14693
  20  0.000115388
  21  0.000485653
  22  0.286276
  23  0.153221
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.000e-04  1.096e-03  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.281e+00  1.532e-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:  4.558e-01  2.863e-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: 7.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.70e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/805375/likelihoodResults_629683201_629942401_4FGL_J1337.6-1257_daily_bin1506.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) = 7141.29998477
delta logL = -0.000308635898364

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7141.29967569
delta logL = 4.50088009529e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14214E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2049       1.0000          .0000       5.0000    
     3 'Normalizat'    .45569       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2815       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7141.300     FROM MIGRAD    STATUS=FAILED       110 CALLS      272 TOTAL
                     EDM=   .26E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10341E-03    32.922        .55362E-01** at limit **
   2  alpha         1.6978        2.9819        .16608E-01   -.11188E-05
   3  Normalizat    .45577        .18717E-01    .53942E-03    .42362E-04
   4  Prefactor     1.2814        .10484E-01    .18579E-03   -.24416E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7141.299     FROM SIMPLEX   STATUS=PROGRESS     119 CALLS      391 TOTAL
                     EDM=   .45E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13383        32.922        .54326E-03   -.22541E-02
   2  alpha         1.6961        2.9819        .61404E-04   -.11188E-05
   3  Normalizat    .45573        .18717E-01    .25802E-05    .42362E-04
   4  Prefactor     1.2813        .10484E-01    .28922E-05   -.24416E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7141.299     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      476 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13198        20.849         .0000        .29172E-02
   2  alpha         1.7239        2.9389         .0000       -.41481E-05
   3  Normalizat    .45611        .26338         .0000       -.10538E-06
   4  Prefactor     1.2810        .14819         .0000       -.55072E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.131982
  alpha      = 1.72395
  Normalizat = 0.456107
  Prefactor  = 1.28102
 **********
 **   18 **HESSE 
 **********

 FCN=   7141.299     FROM HESSE     STATUS=OK            27 CALLS      503 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .13198        21.208        .61400E-03    17.286    
   2  alpha         1.7239        2.9478        .66432E-02   -.31564    
   3  Normalizat    .45611        .26341        .43154E-05   -1.1449    
   4  Prefactor     1.2810        .14813        .74316E-05   -.83873    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1568e-10
Minuit parameter uncertainties:
  1  3.34605
  2  4.97526
  3  0.264129
  4  0.148179
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805375': 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) = 7141.29887443
delta logL = 0.000801711168606

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.320e-01  3.346e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.724e+00  4.975e+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.281e+00  1.482e-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:  4.561e-01  2.641e-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/805375/cmap_HighResolution_629683201_629942401_4FGL_J1337.6-1257_daily_bin1506.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.70e-05', job_status='DONE', photon_flux_upper_limit='7.50e-08', time_completed='2021-09-08 05:12:03.943225', job_id='805375', GAL2='1.28', fit_tolerance='1e-08', EG2='0.46', EG='0.46', time_epoch_completed='1631103123.94', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.28', dlogl='8.02e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='1506' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:12:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 805375: <4FGL_J1337.6-1257_daily_bin1506> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin1506> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 04:55:52 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:57:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 04:57:35 2021
Terminated at Wed Sep  8 05:12:04 2021
Results reported at Wed Sep  8 05:12:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1506 204.424 -12.9517 629683201 629942401 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 :                                   739.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            972 sec.

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

