/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 105 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1728
RA = 204.424, Dec = -12.9517
tmin = 687225601, tmax = 687484801
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='296484', job_status='RUN', time_executed='2022-10-15 00:14:14.140148', time_epoch_executed='1665818054.14' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1728'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/296484

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/296484/ft1_4FGL_J1337.6-1257_daily_bin1728.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/296484/ft2_4FGL_J1337.6-1257_daily_bin1728.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/296484/ft1_4FGL_J1337.6-1257_daily_bin1728.fits outfile=/scratch/kocevski/296484/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1728.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=687225601.0 tmax=687484801.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 2.78
user 2.58
sys 0.18

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

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

Number of photons that the gtmktime cut: 67

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/296484/ft1_filtered_4FGL_J1337.6-1257_daily_bin1728.fits" evtable="EVENTS" scfile=/scratch/kocevski/296484/ft2_4FGL_J1337.6-1257_daily_bin1728.fits sctable="SC_DATA" outfile=/scratch/kocevski/296484/ltcube_687225601_687484801_4FGL_J1337.6-1257_daily_bin1728.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/296484/ft2_4FGL_J1337.6-1257_daily_bin1728.fits
.....................!
real 24.60
user 24.11
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/296484/ft1_filtered_4FGL_J1337.6-1257_daily_bin1728.fits evtable="EVENTS" scfile=/scratch/kocevski/296484/ft2_4FGL_J1337.6-1257_daily_bin1728.fits sctable="SC_DATA" expcube=/scratch/kocevski/296484/ltcube_687225601_687484801_4FGL_J1337.6-1257_daily_bin1728.fits outfile=/scratch/kocevski/296484/expmap_687225601_687484801_4FGL_J1337.6-1257_daily_bin1728.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/296484/ltcube_687225601_687484801_4FGL_J1337.6-1257_daily_bin1728.fits
.....................!
real 192.00
user 185.76
sys 5.69

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/296484/ft1_filtered_4FGL_J1337.6-1257_daily_bin1728.fits scfile=/scratch/kocevski/296484/ft2_4FGL_J1337.6-1257_daily_bin1728.fits outfile=/scratch/kocevski/296484/cmap_687225601_687484801_4FGL_J1337.6-1257_daily_bin1728.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/296484/ft1_filtered_4FGL_J1337.6-1257_daily_bin1728.fits scfile=/scratch/kocevski/296484/ft2_4FGL_J1337.6-1257_daily_bin1728.fits outfile=/scratch/kocevski/296484/cmap_HighResolution_687225601_687484801_4FGL_J1337.6-1257_daily_bin1728.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/296484/ft1_filtered_4FGL_J1337.6-1257_daily_bin1728.fits evtable="EVENTS" scfile=/scratch/kocevski/296484/ft2_4FGL_J1337.6-1257_daily_bin1728.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/296484/Model_4FGL_J1337.6-1257_daily_bin1728.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/296484/ft1_filtered_4FGL_J1337.6-1257_daily_bin1728.fits.......................!
real 19.98
user 18.61
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/296484/ft1_filtered_4FGL_J1337.6-1257_daily_bin1728.fits', '/scratch/kocevski/296484/ft2_4FGL_J1337.6-1257_daily_bin1728.fits', expMap='/scratch/kocevski/296484/expmap_687225601_687484801_4FGL_J1337.6-1257_daily_bin1728.fits', expCube='/scratch/kocevski/296484/ltcube_687225601_687484801_4FGL_J1337.6-1257_daily_bin1728.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/296484/Model_4FGL_J1337.6-1257_daily_bin1728.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  0.000e+00  1.000e+06 ( 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 -5.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/296484/ft1_filtered_4FGL_J1337.6-1257_daily_bin1728.fits
Spacecraft file(s): /scratch/kocevski/296484/ft2_4FGL_J1337.6-1257_daily_bin1728.fits
Exposure map: /scratch/kocevski/296484/expmap_687225601_687484801_4FGL_J1337.6-1257_daily_bin1728.fits
Exposure cube: /scratch/kocevski/296484/ltcube_687225601_687484801_4FGL_J1337.6-1257_daily_bin1728.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/296484/Model_4FGL_J1337.6-1257_daily_bin1728.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) = 865.730947935

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1323       1.0000          .0000       .10000E+07
     2 'norm      '    1.9987       1.0000          .0000       .10000E+07
     3 'norm      '    .17413E-02   1.0000          .0000       .10000E+07
     4 'norm      '    40.614       1.0000          .0000       .10000E+07
     5 'Prefactor '    1.4240       1.0000          .0000       .10000E+07
     6 'Prefactor '    .15157E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    .35981E-01   1.0000          .0000       .10000E+07
     8 'norm      '    10.118       1.0000          .0000       .10000E+07
     9 'norm      '    .60412E-01   1.0000          .0000       .10000E+07
    10 'norm      '    .71665E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .78558       1.0000          .0000       .10000E+07
    12 'Prefactor '    .74651       1.0000          .0000       .10000E+07
    13 'norm      '    48.045       1.0000          .0000       .10000E+07
    14 'Prefactor '    .13875       1.0000          .0000       .10000E+07
    15 'norm      '    .93423E-01   1.0000          .0000       .10000E+07
    16 'Prefactor '    .98146E-05   1.0000          .0000       .10000E+07
    17 'norm      '    18.447       1.0000          .0000       .10000E+07
    18 'norm      '    13.850       1.0000          .0000       .10000E+07
    19 'norm      '    .97145E-07   1.0000          .0000       .10000E+07
    20 'Prefactor '    39.421       1.0000          .0000       .10000E+07
    21 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.3475       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   847.8710     FROM MIGRAD    STATUS=CONVERGED    449 CALLS     2017 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E+07    .84348E+06   -.90759E-06** at limit **
   2  norm          .10000E+07    .10050E+06    .10172E-04** at limit **
   3  norm          .27756E-09    47.361        .11166E-05** at limit **
   4  norm          44.932        59.691       -.94915E-07    .26409E-03
   5  Prefactor     .12657E-07    2425.1        .34224E-05** at limit **
   6  Prefactor      .0000        62.374        .20747E-07** at limit **
   7  Prefactor      .0000        185.97       -.35097E-07** at limit **
   8  norm          12.656        7.8094        .35006E-07   -.51510E-02
   9  norm          .55511E-10    40.848        .18964E-06** at limit **
  10  norm          .55511E-10    45.572        .25496E-06** at limit **
  11  Prefactor     .17764E-08    277.02        .88458E-06** at limit **
  12  Prefactor     .24425E-08    175.00       -.11913E-05** at limit **
  13  norm          63.104        77.574        .17446E-06    .85748E-03
  14  Prefactor      .0000        98.771       -.16889E-06** at limit **
  15  norm          .16653E-09    32.483        .63511E-07** at limit **
  16  Prefactor      .0000        22.689        .12459E-06** at limit **
  17  norm          21.242        32.672       -.63296E-07   -.77474E-04
  18  norm          16.964        9.8128       -.31590E-08   -.10060E-02
  19  norm           .0000        6.4087        .19028E-08** at limit **
  20  Prefactor     59.854        75.838        .36821E-06    .65055E-03
  21  Normalizat    .10000E-01    .54165        .30222E-04** at limit **
  22  Prefactor     1.0670        .27180        .23034E-05    .95260E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1e+06
  norm       = 1e+06
  norm       = 2.77556e-10
  norm       = 44.9323
  Prefactor  = 1.26565e-08
  Prefactor  = 0
  Prefactor  = 0
  norm       = 12.6564
  norm       = 5.55112e-11
  norm       = 5.55112e-11
  Prefactor  = 1.77636e-09
  Prefactor  = 2.44249e-09
  norm       = 63.1036
  Prefactor  = 0
  norm       = 1.66533e-10
  Prefactor  = 0
  norm       = 21.2424
  norm       = 16.9644
  norm       = 0
  Prefactor  = 59.854
  Normalizat = 0.01
  Prefactor  = 1.06697
 **********
 **   18 **HESSE 
 **********

 FCN=   847.8710     FROM HESSE     STATUS=OK           384 CALLS     2401 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E+07    .84147E+06    .49563E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E+07    .10020E+06    .73233E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .27756E-09    47.314        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          44.932        58.859        .15693E-03   -1.5574    
   5  Prefactor     .12657E-07    2265.3        .90578E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        61.989        .17379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        176.68        .16150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          12.656        7.9278        .31477E-03   -1.5779    
   9  norm          .55511E-10    38.014        .15147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .55511E-10    40.629        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .17764E-08    248.01        .54016E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .24425E-08    170.56        .57011E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          63.104        76.614        .14428E-03   -1.5549    
  14  Prefactor      .0000        98.470        .12987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .16653E-09    31.558        .14109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        22.637        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          21.242        31.044        .23291E-03   -1.5616    
  18  norm          16.964        9.6188        .26889E-03   -1.5626    
  19  norm           .0000        5.7863        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     59.854        75.002        .15929E-03   -1.5553    
  21  Normalizat    .10000E-01    .48331        .22888       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.0670        .28405        .31830E-01   -.90529    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.6102e-10
Minuit parameter uncertainties:
  1  0.568097
  2  0.280279
  3  0.000229929
  4  58.8599
  5  0.0107174
  6  6.64794e-05
  7  3.53875e-05
  8  7.92777
  9  0.000101252
  10  0.000103883
  11  0.00131861
  12  0.00128612
  13  76.6147
  14  4.87904e-05
  15  0.000141721
  16  7.88122e-06
  17  31.0443
  18  9.61884
  19  4.5455e-06
  20  75.0028
  21  2.35293e-06
  22  0.284455
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  5.551e-11  1.039e-04  0.000e+00  1.000e+06 ( 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 -5.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.067e+00  2.845e-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.000e-02  2.353e-06  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.47e-06 ph cm-2 s-1
Energy Flux Upper Limit: 5.30e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/296484/likelihoodResults_687225601_687484801_4FGL_J1337.6-1257_daily_bin1728.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) = 847.87146653
delta logL = -0.000445814158638

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 847.871021799
delta logL = -1.08387973796e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .79335E-04   1.0000          .0000       .10000E+07
     2 'alpha     '    1.1972       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0669       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   847.8710     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      248 TOTAL
                     EDM=   .45E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        22.382        .42118E-03** at limit **
   2  alpha         3.1215        1.2132        .12859E-03     .0000    
   3  Normalizat    .10000E-01    .25505        .12371E-03** at limit **
   4  Prefactor     1.0670        1.1739       -.45423E-05    .31488E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 3.12147
  Normalizat = 0.01
  Prefactor  = 1.06697
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   847.8710     FROM HESSE     STATUS=FAILED         7 CALLS      255 TOTAL
                     EDM=   .45E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        22.382        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8602        1.2132        .12859E-03    .25122    
   3  Normalizat    .10000E-01    .25505        .12371E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0670        1.1739       -.45423E-05   -.90529    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.52047e-12
Minuit parameter uncertainties:
  1  8.88029e-06
  2  1.27076
  3  8.80864e-07
  4  1.20424
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/296484': 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): 101
logL (Free Index) = 847.871020715
delta logL = 2.02362571144e-11

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  0.000e+00  8.880e-06  0.000e+00  1.000e+06 ( 1.000e-12)
264        alpha:  3.121e+00  1.271e+00  0.000e+00  5.000e+00 ( 1.000e+00)
265         beta:  1.384e-01  0.000e+00 -5.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.067e+00  1.204e+00  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.000e-02  8.809e-07  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/296484/cmap_HighResolution_687225601_687484801_4FGL_J1337.6-1257_daily_bin1728.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.30e-04', job_status='DONE', photon_flux_upper_limit='1.47e-06', time_completed='2022-10-15 00:20:47.521549', job_id='296484', GAL2='1.07', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1665818447.52', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='2.02e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='1728' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Oct 15 00:20:47 PDT 2022

'daily';

Database successfully updated.


Analysis Complete.


Sat Oct 15 00:18:12 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 296483: <4FGL_J1337.6-1257_daily_bin1728> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin1728> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Oct 15 00:07:35 2022
Job was executed on host(s) <bullet0128>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Oct 15 00:07:39 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Oct 15 00:07:39 2022
Terminated at Sat Oct 15 00:18:13 2022
Results reported at Sat Oct 15 00:18:13 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1728 204.424 -12.9517 687225601 687484801 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 :                                   360.59 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   634 sec.
    Turnaround time :                            638 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0129>
Subject: Job 296484: <4FGL_J1337.6-1257_daily_bin1728> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin1728> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Oct 15 00:07:35 2022
Job was executed on host(s) <bullet0129>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Oct 15 00:07:39 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Oct 15 00:07:39 2022
Terminated at Sat Oct 15 00:20:47 2022
Results reported at Sat Oct 15 00:20:47 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1728 204.424 -12.9517 687225601 687484801 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 :                                   372.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             226.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   788 sec.
    Turnaround time :                            792 sec.

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

