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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1489
RA = 204.424, Dec = -12.9517
tmin = 625276801, tmax = 625536001
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='805358', job_status='RUN', time_executed='2021-09-08 04:58:08.376110', time_epoch_executed='1631102288.38' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1489'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805358

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805358/ft1_4FGL_J1337.6-1257_daily_bin1489.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805358/ft2_4FGL_J1337.6-1257_daily_bin1489.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805358/ft1_4FGL_J1337.6-1257_daily_bin1489.fits outfile=/scratch/kocevski/805358/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1489.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=625276801.0 tmax=625536001.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.54
user 3.33
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/805358/ft2_4FGL_J1337.6-1257_daily_bin1489.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/805358/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1489.fits evtable="EVENTS" outfile="/scratch/kocevski/805358/ft1_filtered_4FGL_J1337.6-1257_daily_bin1489.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.54
user 0.36
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/805358/ft1_filtered_4FGL_J1337.6-1257_daily_bin1489.fits" evtable="EVENTS" scfile=/scratch/kocevski/805358/ft2_4FGL_J1337.6-1257_daily_bin1489.fits sctable="SC_DATA" outfile=/scratch/kocevski/805358/ltcube_625276801_625536001_4FGL_J1337.6-1257_daily_bin1489.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/805358/ft2_4FGL_J1337.6-1257_daily_bin1489.fits
.....................!
real 15.27
user 14.91
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805358/ft1_filtered_4FGL_J1337.6-1257_daily_bin1489.fits evtable="EVENTS" scfile=/scratch/kocevski/805358/ft2_4FGL_J1337.6-1257_daily_bin1489.fits sctable="SC_DATA" expcube=/scratch/kocevski/805358/ltcube_625276801_625536001_4FGL_J1337.6-1257_daily_bin1489.fits outfile=/scratch/kocevski/805358/expmap_625276801_625536001_4FGL_J1337.6-1257_daily_bin1489.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/805358/ltcube_625276801_625536001_4FGL_J1337.6-1257_daily_bin1489.fits
.....................!
real 190.65
user 185.93
sys 4.08

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/805358/ft1_filtered_4FGL_J1337.6-1257_daily_bin1489.fits scfile=/scratch/kocevski/805358/ft2_4FGL_J1337.6-1257_daily_bin1489.fits outfile=/scratch/kocevski/805358/cmap_625276801_625536001_4FGL_J1337.6-1257_daily_bin1489.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/805358/ft1_filtered_4FGL_J1337.6-1257_daily_bin1489.fits scfile=/scratch/kocevski/805358/ft2_4FGL_J1337.6-1257_daily_bin1489.fits outfile=/scratch/kocevski/805358/cmap_HighResolution_625276801_625536001_4FGL_J1337.6-1257_daily_bin1489.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/805358/ft1_filtered_4FGL_J1337.6-1257_daily_bin1489.fits evtable="EVENTS" scfile=/scratch/kocevski/805358/ft2_4FGL_J1337.6-1257_daily_bin1489.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/805358/Model_4FGL_J1337.6-1257_daily_bin1489.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/805358/ft1_filtered_4FGL_J1337.6-1257_daily_bin1489.fits.....................!
real 56.99
user 55.46
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.8095       1.0000         .10000E-03   10000.    
     2 'norm      '    .15169E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    20.665       1.0000         .10000E-03   10000.    
     4 'norm      '    .51341       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.9185       1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.306       1.0000         .10000E-03   10000.    
     8 'norm      '    2.7927       1.0000         .10000E-03   10000.    
     9 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .15622E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10125E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.486       1.0000         .10000E-03   10000.    
    18 'norm      '    18.505       1.0000         .10000E-03   10000.    
    19 'norm      '    28.567       1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.2270       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0349       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.4275       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=   6871.723     FROM MIGRAD    STATUS=CONVERGED    538 CALLS     2610 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.8097        8.6563       -.44749E-06    .34484E-05
   2  norm          .10000E-03    2.4539        .12742E-06** at limit **
   3  norm          20.671        12.786        .12684E-06    .10461E-04
   4  norm          .51514        6.2590        .65333E-06    .76949E-04
   5  Prefactor     .10000E-03    10.146       -.90070E-06** at limit **
   6  Prefactor     7.9204        10.049       -.22027E-06    .34507E-04
   7  Prefactor     23.296        18.557       -.47107E-06    .63652E-04
   8  norm          2.7925        1.9526       -.20001E-06    .18280E-04
   9  norm          .10000E-03    1.9105       -.29583E-06** at limit **
  10  norm          .10000E-03    33.617       -.71699E-05** at limit **
  11  Prefactor     .10000E-03    25.255       -.23630E-05** at limit **
  12  Prefactor     .10000E-03    20.207       -.17418E-06** at limit **
  13  norm          .10000E-03    45.133       -.20421E-05** at limit **
  14  Prefactor     .10000E-03    5.8420       -.28623E-06** at limit **
  15  norm          .10000E-03    3.4881        .87681E-06** at limit **
  16  Prefactor     .10000E-03    3.7687        .40604E-06** at limit **
  17  Prefactor     25.437        60.662        .38585E-05    .21076E-04
  18  norm          18.507        12.348       -.14980E-06    .79064E-05
  19  norm          28.562        6.3640        .24491E-06    .21480E-03
  20  norm          .10000E-03    4.5686        .39935E-06** at limit **
  21  Prefactor     1.1276        200.19       -.13144E-04    .46843E-05
  22  Normalizat    1.0349        .31774        .12974E-05    .10161E-03
  23  Prefactor     1.4276        .16191       -.18190E-06    .33717E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.80974
  norm       = 0.000100001
  norm       = 20.6705
  norm       = 0.515141
  Prefactor  = 0.0001
  Prefactor  = 7.92039
  Prefactor  = 23.2962
  norm       = 2.79245
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.4366
  norm       = 18.507
  norm       = 28.5624
  norm       = 0.0001
  Prefactor  = 1.12761
  Normalizat = 1.03492
  Prefactor  = 1.42755
 **********
 **   18 **HESSE 
 **********

 FCN=   6871.723     FROM HESSE     STATUS=OK           374 CALLS     2984 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.8097        8.6634        .16663E-03   -1.5226    
   2  norm          .10000E-03    6.0431        .24668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          20.671        12.777        .88108E-04   -1.4798    
   4  norm          .51514        26.970        .39268E-02   -1.5564    
   5  Prefactor     .10000E-03    10.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.9204        10.055        .14249E-03   -1.5145    
   7  Prefactor     23.296        18.167        .82972E-04   -1.4742    
   8  norm          2.7925        1.9535        .91722E-04   -1.5374    
   9  norm          .10000E-03    1.9158        .11164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    34.042        .34335E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    25.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    20.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    45.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.8576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.4907        .15055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.7785        .15680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     25.437        60.911        .79350E-04   -1.4699    
  18  norm          18.507        12.333        .93106E-04   -1.4847    
  19  norm          28.562        6.3729        .74958E-04   -1.4639    
  20  norm          .10000E-03    4.5786        .17308E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.1276        207.25        .40640E-03   -1.5496    
  22  Normalizat    1.0349        .36016        .45566E-03   -.91870    
  23  Prefactor     1.4276        .18499        .21205E-03   -.79589    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.68687e-10
Minuit parameter uncertainties:
  1  8.6653
  2  0.000186449
  3  12.7785
  4  7.45754
  5  1.18e-06
  6  10.0567
  7  18.1711
  8  1.9535
  9  1.3905e-06
  10  0.000214776
  11  7.30145e-05
  12  1.47026e-07
  13  5.29942e-05
  14  6.20416e-06
  15  1.12538e-05
  16  6.58907e-06
  17  61.0602
  18  12.3352
  19  6.373
  20  4.86376e-06
  21  30.6817
  22  0.361008
  23  0.185074
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.000e-04  2.148e-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.428e+00  1.851e-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.035e+00  3.610e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/805358/likelihoodResults_625276801_625536001_4FGL_J1337.6-1257_daily_bin1489.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) = 6871.72343569
delta logL = -0.000138636615702

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6871.72329701
delta logL = 4.58931026515e-08

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 'alpha     '    2.2755       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0349       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4276       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=   6871.723     FROM MIGRAD    STATUS=FAILED        99 CALLS      261 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10062E-03    765.48        .35063E-02** at limit **
   2  alpha         2.1474        2.6232        .50000        .40029E-06
   3  Normalizat    1.0349        .35375E-01    .45565E-03   -.17191E-04
   4  Prefactor     1.4276        .19057E-01    .21205E-03   -.31472E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6871.723     FROM SIMPLEX   STATUS=UNCHANGED    148 CALLS      409 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10062E-03    765.48        .12665E-02** at limit **
   2  alpha         2.1474        2.6232        .14591E-04    .40029E-06
   3  Normalizat    1.0349        .35375E-01    .49194E-06   -.17191E-04
   4  Prefactor     1.4276        .19057E-01    .93158E-07   -.31472E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6871.723     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      451 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6576.3        .70127E-03** at limit **
   2  alpha         2.1315        2.8733        .50000       -.97561E-07
   3  Normalizat    1.0349        .82386E-01    .18226E-04    .47156E-04
   4  Prefactor     1.4276        .44386E-01    .84818E-05    .10508E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.13151
  Normalizat = 1.03492
  Prefactor  = 1.42755
 **********
 **   18 **HESSE 
 **********

 FCN=   6871.723     FROM HESSE     STATUS=OK            27 CALLS      478 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    175.88        .14025E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1315        3.8543        .50000       -.14793    
   3  Normalizat    1.0349        .33716        .36452E-05   -.91870    
   4  Prefactor     1.4276        .18192        .16964E-05   -.79589    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.58101e-10
Minuit parameter uncertainties:
  1  9.04711e-06
  2  540.413
  3  0.337862
  4  0.182001
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805358': 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) = 6871.7232969
delta logL = 1.49853804032e-07

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.000e-04  9.047e-06  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.132e+00  5.404e+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.428e+00  1.820e-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.035e+00  3.379e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/805358/cmap_HighResolution_625276801_625536001_4FGL_J1337.6-1257_daily_bin1489.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.46e-05', job_status='DONE', photon_flux_upper_limit='1.24e-07', time_completed='2021-09-08 05:10:32.098783', job_id='805358', GAL2='1.43', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1631103032.1', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.43', dlogl='1.50e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='1489' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:10:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 805358: <4FGL_J1337.6-1257_daily_bin1489> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin1489> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 04:55:51 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:57:32 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:32 2021
Terminated at Wed Sep  8 05:10:32 2021
Results reported at Wed Sep  8 05:10:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1489 204.424 -12.9517 625276801 625536001 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 :                                   690.24 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             284.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            881 sec.

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

