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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin334
RA = 204.424, Dec = -12.9517
tmin = 325900801, tmax = 326160001
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='797767', job_status='RUN', time_executed='2021-09-08 04:39:58.329184', time_epoch_executed='1631101198.33' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='334'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/797767

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/797767/ft1_4FGL_J1337.6-1257_daily_bin334.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/797767/ft2_4FGL_J1337.6-1257_daily_bin334.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/797767/ft1_4FGL_J1337.6-1257_daily_bin334.fits outfile=/scratch/kocevski/797767/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin334.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=325900801.0 tmax=326160001.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.50
user 3.25
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/797767/ft2_4FGL_J1337.6-1257_daily_bin334.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/797767/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin334.fits evtable="EVENTS" outfile="/scratch/kocevski/797767/ft1_filtered_4FGL_J1337.6-1257_daily_bin334.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/797767/ft1_filtered_4FGL_J1337.6-1257_daily_bin334.fits" evtable="EVENTS" scfile=/scratch/kocevski/797767/ft2_4FGL_J1337.6-1257_daily_bin334.fits sctable="SC_DATA" outfile=/scratch/kocevski/797767/ltcube_325900801_326160001_4FGL_J1337.6-1257_daily_bin334.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/797767/ft2_4FGL_J1337.6-1257_daily_bin334.fits
.....................!
real 14.46
user 13.84
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/797767/ft1_filtered_4FGL_J1337.6-1257_daily_bin334.fits evtable="EVENTS" scfile=/scratch/kocevski/797767/ft2_4FGL_J1337.6-1257_daily_bin334.fits sctable="SC_DATA" expcube=/scratch/kocevski/797767/ltcube_325900801_326160001_4FGL_J1337.6-1257_daily_bin334.fits outfile=/scratch/kocevski/797767/expmap_325900801_326160001_4FGL_J1337.6-1257_daily_bin334.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/797767/ltcube_325900801_326160001_4FGL_J1337.6-1257_daily_bin334.fits
.....................!
real 191.72
user 185.99
sys 4.96

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/797767/ft1_filtered_4FGL_J1337.6-1257_daily_bin334.fits scfile=/scratch/kocevski/797767/ft2_4FGL_J1337.6-1257_daily_bin334.fits outfile=/scratch/kocevski/797767/cmap_325900801_326160001_4FGL_J1337.6-1257_daily_bin334.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=204.424 yref=-12.9517 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.57
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/797767/ft1_filtered_4FGL_J1337.6-1257_daily_bin334.fits scfile=/scratch/kocevski/797767/ft2_4FGL_J1337.6-1257_daily_bin334.fits outfile=/scratch/kocevski/797767/cmap_HighResolution_325900801_326160001_4FGL_J1337.6-1257_daily_bin334.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.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/797767/ft1_filtered_4FGL_J1337.6-1257_daily_bin334.fits evtable="EVENTS" scfile=/scratch/kocevski/797767/ft2_4FGL_J1337.6-1257_daily_bin334.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/797767/Model_4FGL_J1337.6-1257_daily_bin334.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/797767/ft1_filtered_4FGL_J1337.6-1257_daily_bin334.fits.....................!
real 67.85
user 66.45
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.2734       1.0000         .10000E-03   10000.    
     2 'norm      '    2.2984       1.0000         .10000E-03   10000.    
     3 'norm      '    .15112E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.9552       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .43118E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.7408       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.8062       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.2479       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.8021       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4393       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .95059       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=   8516.918     FROM MIGRAD    STATUS=CONVERGED    488 CALLS     2172 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.2735        7.7021       -.67494E-06   -.19129E-03
   2  norm          2.2983        1.8163       -.91074E-07   -.46953E-04
   3  norm          .10000E-03    13.601        .45010E-06** at limit **
   4  norm          .10000E-03    3.0206       -.29975E-06** at limit **
   5  Prefactor     .10000E-03    6.5768       -.44919E-05** at limit **
   6  Prefactor     6.9555        6.7121       -.28968E-06   -.12012E-03
   7  Prefactor     .10000E-03    6.2170        .64828E-05** at limit **
   8  norm          .10000E-03    .49694       -.82899E-07** at limit **
   9  norm          .10000E-03    1.2636        .64523E-07** at limit **
  10  norm          2.7405        4.0633       -.72629E-06   -.71869E-03
  11  Prefactor     .10000E-03    2.4772        .27541E-06** at limit **
  12  Prefactor     2.7886        20.428       -.36702E-04   -.79116E-04
  13  norm          .10000E-03    12.215        .29493E-05** at limit **
  14  Prefactor     .10000E-03    2.1658       -.79598E-07** at limit **
  15  norm          .10000E-03    1.2385        .31932E-07** at limit **
  16  Prefactor     2.2484        4.1797       -.12231E-05   -.90284E-03
  17  Prefactor     .10000E-03    14.124       -.45223E-06** at limit **
  18  norm          .10000E-03    6.4595       -.27658E-05** at limit **
  19  norm          .10000E-03    .81646       -.43088E-08** at limit **
  20  norm          2.8023        4.3520       -.49411E-06   -.36621E-03
  21  Prefactor     .10000E-03    11.179       -.99344E-06** at limit **
  22  Normalizat    1.4391        .20389        .14382E-06    .23716E-03
  23  Prefactor     .95067        .10791        .15315E-05    .14838E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.27352
  norm       = 2.2983
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.95554
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.74049
  Prefactor  = 0.0001
  Prefactor  = 2.78856
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.24838
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.80233
  Prefactor  = 0.0001
  Normalizat = 1.43913
  Prefactor  = 0.950673
 **********
 **   18 **HESSE 
 **********

 FCN=   8516.918     FROM HESSE     STATUS=OK           370 CALLS     2542 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.2735        7.7045        .17503E-03   -1.5249    
   2  norm          2.2983        1.8171        .10750E-03   -1.5405    
   3  norm          .10000E-03    13.950        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.0243        .15664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.6647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.9555        6.7266        .15212E-03   -1.5180    
   7  Prefactor     .10000E-03    6.2238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .78108        .23863E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.2844        .10114E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.7405        4.0534        .21895E-03   -1.5377    
  11  Prefactor     .10000E-03    2.4803        .14185E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.7886        20.738        .24284E-03   -1.5374    
  13  norm          .10000E-03    12.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.1714        .13263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.2440        .10029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.2484        4.1886        .24526E-03   -1.5408    
  17  Prefactor     .10000E-03    14.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    6.5975        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .82617        .81407E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.8023        4.3422        .23393E-03   -1.5373    
  21  Prefactor     .10000E-03    11.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.4391        .23931        .31008E-03   -.79503    
  23  Prefactor     .95067        .12676        .19866E-03   -.94392    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42865e-09
Minuit parameter uncertainties:
  1  7.70592
  2  1.81712
  3  3.86513e-05
  4  1.31537e-06
  5  3.32239e-07
  6  6.72733
  7  4.7944e-06
  8  3.06975e-06
  9  3.87879e-07
  10  4.05377
  11  3.4158e-06
  12  15.2162
  13  4.07222e-06
  14  7.04753e-06
  15  1.04988e-06
  16  4.1891
  17  4.80116e-06
  18  4.18775e-05
  19  1.41185e-06
  20  4.34271
  21  1.11614e-05
  22  0.2395
  23  0.126804
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  2.740e+00  4.054e+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

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  9.507e-01  1.268e-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.439e+00  2.395e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.61
Ra Dec: 204.424 -12.952
Photon Flux Upper Limit: 8.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.89e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/797767/likelihoodResults_325900801_326160001_4FGL_J1337.6-1257_daily_bin334.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8516.70575343
delta logL = 0.212245865998

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8516.67709562
delta logL = 0.240903681652

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.7607       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6610       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4493       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94572       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=   8516.677     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      212 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7595        6.1999        .52047E-02    .39231E-03
   2  alpha         1.6608        .93482        .44549       -.24372E-04
   3  Normalizat    1.4494        .19936        .69876E-01    .92318E-05
   4  Prefactor     .94571        .10722        .45585E-01    .61451E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.75951
  alpha      = 1.66077
  Normalizat = 1.44936
  Prefactor  = 0.945706
 **********
 **   18 **HESSE 
 **********

 FCN=   8516.677     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.7595        4.4742        .20589E-03   -1.5320    
   2  alpha         1.6608        .78791        .26293E-01   -.34234    
   3  Normalizat    1.4494        .23255        .30915E-03   -.79211    
   4  Prefactor     .94571        .12520        .19907E-03   -.94562    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75728e-12
Minuit parameter uncertainties:
  1  4.47456
  2  0.803408
  3  0.232717
  4  0.125238
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/797767': 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) = 8516.67709552
delta logL = 0.240903781338

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  3.760e+00  4.475e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.661e+00  8.034e-01  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:  9.457e-01  1.252e-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.449e+00  2.327e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.09
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 1.66 +/- 0.80
Photon Flux (Free Index): 1.26e-08 +/- 1.70e-08
Energy Flux (Free Index): 1.16e-05 +/- 1.72e-05

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/797767/cmap_HighResolution_325900801_326160001_4FGL_J1337.6-1257_daily_bin334.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.89e-05', comment='SUCCESS', energy_flux2='1.16e-05', dlogl='2.41e-01', photon_flux2='1.26e-08', job_status='DONE', time_completed='2021-09-08 04:52:05.399369', photon_index_error2='0.80', photon_index2='1.66', ts='0.61', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='8.02e-08', energy_flux_error2='1.72e-05', EG='1.44', time_epoch_completed='1631101925.4', return_code='0', job_id='797767', GAL2='0.95', EG2='1.45', return_code2='0', photon_flux_error2='1.70e-08', ts2='1.09', photon_index='2.30' WHERE bin_id='334' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:52:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 797767: <4FGL_J1337.6-1257_daily_bin334> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin334> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 04:35:27 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:37:01 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:37:01 2021
Terminated at Wed Sep  8 04:52:06 2021
Results reported at Wed Sep  8 04:52:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin334 204.424 -12.9517 325900801 326160001 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 :                                   725.44 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             270.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            999 sec.

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

