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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1253
RA = 204.424, Dec = -12.9517
tmin = 564105601, tmax = 564364801
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='805012', job_status='RUN', time_executed='2021-09-08 04:57:54.556145', time_epoch_executed='1631102274.56' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1253'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805012

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805012/ft1_4FGL_J1337.6-1257_daily_bin1253.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805012/ft2_4FGL_J1337.6-1257_daily_bin1253.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805012/ft1_4FGL_J1337.6-1257_daily_bin1253.fits outfile=/scratch/kocevski/805012/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1253.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=564105601.0 tmax=564364801.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.52
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/805012/ft2_4FGL_J1337.6-1257_daily_bin1253.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/805012/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1253.fits evtable="EVENTS" outfile="/scratch/kocevski/805012/ft1_filtered_4FGL_J1337.6-1257_daily_bin1253.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.46
user 0.29
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/805012/ft1_filtered_4FGL_J1337.6-1257_daily_bin1253.fits" evtable="EVENTS" scfile=/scratch/kocevski/805012/ft2_4FGL_J1337.6-1257_daily_bin1253.fits sctable="SC_DATA" outfile=/scratch/kocevski/805012/ltcube_564105601_564364801_4FGL_J1337.6-1257_daily_bin1253.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/805012/ft2_4FGL_J1337.6-1257_daily_bin1253.fits
.....................!
real 10.70
user 10.40
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805012/ft1_filtered_4FGL_J1337.6-1257_daily_bin1253.fits evtable="EVENTS" scfile=/scratch/kocevski/805012/ft2_4FGL_J1337.6-1257_daily_bin1253.fits sctable="SC_DATA" expcube=/scratch/kocevski/805012/ltcube_564105601_564364801_4FGL_J1337.6-1257_daily_bin1253.fits outfile=/scratch/kocevski/805012/expmap_564105601_564364801_4FGL_J1337.6-1257_daily_bin1253.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/805012/ltcube_564105601_564364801_4FGL_J1337.6-1257_daily_bin1253.fits
.....................!
real 156.81
user 152.68
sys 3.84

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/805012/ft1_filtered_4FGL_J1337.6-1257_daily_bin1253.fits scfile=/scratch/kocevski/805012/ft2_4FGL_J1337.6-1257_daily_bin1253.fits outfile=/scratch/kocevski/805012/cmap_564105601_564364801_4FGL_J1337.6-1257_daily_bin1253.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.46
user 0.32
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/805012/ft1_filtered_4FGL_J1337.6-1257_daily_bin1253.fits scfile=/scratch/kocevski/805012/ft2_4FGL_J1337.6-1257_daily_bin1253.fits outfile=/scratch/kocevski/805012/cmap_HighResolution_564105601_564364801_4FGL_J1337.6-1257_daily_bin1253.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.48
user 0.32
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/805012/ft1_filtered_4FGL_J1337.6-1257_daily_bin1253.fits evtable="EVENTS" scfile=/scratch/kocevski/805012/ft2_4FGL_J1337.6-1257_daily_bin1253.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/805012/Model_4FGL_J1337.6-1257_daily_bin1253.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/805012/ft1_filtered_4FGL_J1337.6-1257_daily_bin1253.fits.....................!
real 21.34
user 20.24
sys 1.00

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    40.035       1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .32809E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10296E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    36.657       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    205.87       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10619E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.5586       1.0000         .10000E-03   10000.    
    16 'Prefactor '    29.661       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10714E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.1335       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .32719       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2206       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=   1855.561     FROM MIGRAD    STATUS=CONVERGED    502 CALLS     2543 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    19.009        .50360E-05** at limit **
   2  norm          .10000E-03    4.4603        .89645E-07** at limit **
   3  norm          40.032        25.412        .22229E-05    .74572E-04
   4  norm          .10000E-03    7.5541       -.41361E-07** at limit **
   5  Prefactor     .10000E-03    32.433        .38722E-05** at limit **
   6  Prefactor     .10000E-03    20.269       -.64143E-05** at limit **
   7  Prefactor     .10000E-03    148.35        .87303E-04** at limit **
   8  norm          .10000E-03    2.3767        .17103E-06** at limit **
   9  norm          .10000E-03    6.1607       -.21557E-06** at limit **
  10  norm          36.651        26.452        .72221E-06   -.38003E-03
  11  Prefactor     .10000E-03    19.485        .63815E-06** at limit **
  12  Prefactor     205.84        157.40       -.20592E-04    .76641E-05
  13  norm          .10000E-03    21.975       -.60248E-05** at limit **
  14  Prefactor     .10000E-03    24.383        .75069E-05** at limit **
  15  norm          4.5466        21.787        .10858E-04   -.68758E-04
  16  Prefactor     29.644        20.262        .64554E-05   -.90462E-04
  17  Prefactor     .10000E-03    295.09       -.33189E-04** at limit **
  18  norm          .10000E-03    11.389       -.45698E-06** at limit **
  19  norm          5.1316        6.2407        .38723E-05    .24281E-04
  20  norm          .10000E-03    9.2956       -.25990E-06** at limit **
  21  Prefactor     .10000E-03    40.837       -.86494E-05** at limit **
  22  Normalizat    .32713        .54315       -.28039E-04   -.22247E-03
  23  Prefactor     1.2206        .31020        .34509E-05   -.13737E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  norm       = 40.032
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.0001
  norm       = 0.0001
  norm       = 36.651
  Prefactor  = 0.0001
  Prefactor  = 205.839
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.54662
  Prefactor  = 29.6438
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 5.13159
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.327135
  Prefactor  = 1.22062
 **********
 **   18 **HESSE 
 **********

 FCN=   1855.561     FROM HESSE     STATUS=OK           356 CALLS     2899 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    19.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.4926        .88840E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          40.032        25.207        .63350E-04   -1.4442    
   4  norm          .10000E-03    7.5548        .11565E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    32.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    147.22        .21352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.4491        .12904E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    6.1679        .10433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          36.651        26.340        .66194E-04   -1.4496    
  11  Prefactor     .10000E-03    19.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     205.84        156.76        .14085E-03   -1.2829    
  13  norm          .10000E-03    21.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    24.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.5466        21.608        .18854E-03   -1.5281    
  16  Prefactor     29.644        20.210        .73566E-04   -1.4619    
  17  Prefactor     .10000E-03    295.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    11.405        .14197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.1316        6.2332        .11298E-03   -1.5255    
  20  norm          .10000E-03    9.3053        .12828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    40.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .32713        .48866        .59706E-03   -1.2125    
  23  Prefactor     1.2206        .28584        .18705E-03   -.85699    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.11124e-09
Minuit parameter uncertainties:
  1  5.72426e-05
  2  1.18904e-05
  3  25.214
  4  3.76192e-06
  5  8.79006e-05
  6  6.43794e-05
  7  0.00139888
  8  3.66031e-05
  9  3.85852e-05
  10  26.3485
  11  4.74062e-06
  12  157.079
  13  7.76068e-06
  14  5.32073e-05
  15  19.8348
  16  20.2148
  17  0.00149275
  18  0.000112597
  19  6.23402
  20  2.51149e-05
  21  1.99854e-05
  22  0.495231
  23  0.286205
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  3.665e+01  2.635e+01  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.221e+00  2.862e-01  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  3.271e-01  4.952e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.34
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 2.23e-07 +/- 1.60e-07
Energy Flux (Fixed Index): 8.04e-05 +/- 5.78e-05

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) = 1855.4768437
delta logL = 0.083803431987

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1855.4759236
delta logL = 0.0847235281956

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    41.280       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9688       1.0000          .0000       5.0000    
     3 'Normalizat'    .38144       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1978       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=   1855.476     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      230 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          41.445        54.081        .15598E-02    .30837E-04
   2  alpha         1.9677        1.2393        .27698       -.12024E-05
   3  Normalizat    .38179        .57652        .12505        .16810E-04
   4  Prefactor     1.1977        .32852        .34683E-01   -.27148E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 41.4454
  alpha      = 1.96771
  Normalizat = 0.381787
  Prefactor  = 1.1977
 **********
 **   18 **HESSE 
 **********

 FCN=   1855.476     FROM HESSE     STATUS=OK            33 CALLS      263 TOTAL
                     EDM=   .35E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          41.445        29.425        .31196E-03   -1.4420    
   2  alpha         1.9677        .73638        .11027E-01   -.21456    
   3  Normalizat    .38179        .48759        .55425E-03   -1.1825    
   4  Prefactor     1.1977        .28607        .18849E-03   -.86402    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.5184e-12
Minuit parameter uncertainties:
  1  29.4351
  2  0.748015
  3  0.493166
  4  0.286445
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805012': 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) = 1855.47590614
delta logL = 0.0847409897826

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  4.145e+01  2.944e+01  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.968e+00  7.480e-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:  1.198e+00  2.864e-01  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  3.818e-01  4.932e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.54
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 1.97 +/- 0.75
Photon Flux (Free Index): 1.77e-07 +/- 1.60e-07
Energy Flux (Free Index): 9.71e-05 +/- 8.54e-05

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/805012/cmap_HighResolution_564105601_564364801_4FGL_J1337.6-1257_daily_bin1253.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.23e-07', energy_flux2='9.71e-05', photon_flux_error='1.60e-07', dlogl='8.47e-02', energy_flux='8.04e-05', photon_flux2='1.77e-07', job_status='DONE', time_completed='2021-09-08 05:04:03.163311', photon_index_error2='0.75', photon_index2='1.97', ts='4.34', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', energy_flux_error2='8.54e-05', EG='0.33', time_epoch_completed='1631102643.16', return_code='0', job_id='805012', GAL2='1.20', EG2='0.38', return_code2='0', energy_flux_error='5.78e-05', photon_flux_error2='1.60e-07', ts2='4.54', photon_index='2.30' WHERE bin_id='1253' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:04:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 805012: <4FGL_J1337.6-1257_daily_bin1253> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1253 204.424 -12.9517 564105601 564364801 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 :                                   322.48 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             340.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   428 sec.
    Turnaround time :                            512 sec.

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

