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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1207
RA = 204.424, Dec = -12.9517
tmin = 552182401, tmax = 552441601
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='803825', job_status='RUN', time_executed='2021-09-08 04:57:50.761357', time_epoch_executed='1631102270.76' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1207'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/803825

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/803825/ft1_4FGL_J1337.6-1257_daily_bin1207.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/803825/ft2_4FGL_J1337.6-1257_daily_bin1207.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/803825/ft1_4FGL_J1337.6-1257_daily_bin1207.fits outfile=/scratch/kocevski/803825/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1207.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=552182401.0 tmax=552441601.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.80
user 3.47
sys 0.23

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/803825/ft1_filtered_4FGL_J1337.6-1257_daily_bin1207.fits" evtable="EVENTS" scfile=/scratch/kocevski/803825/ft2_4FGL_J1337.6-1257_daily_bin1207.fits sctable="SC_DATA" outfile=/scratch/kocevski/803825/ltcube_552182401_552441601_4FGL_J1337.6-1257_daily_bin1207.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/803825/ft2_4FGL_J1337.6-1257_daily_bin1207.fits
.....................!
real 16.20
user 15.77
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/803825/ft1_filtered_4FGL_J1337.6-1257_daily_bin1207.fits evtable="EVENTS" scfile=/scratch/kocevski/803825/ft2_4FGL_J1337.6-1257_daily_bin1207.fits sctable="SC_DATA" expcube=/scratch/kocevski/803825/ltcube_552182401_552441601_4FGL_J1337.6-1257_daily_bin1207.fits outfile=/scratch/kocevski/803825/expmap_552182401_552441601_4FGL_J1337.6-1257_daily_bin1207.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/803825/ltcube_552182401_552441601_4FGL_J1337.6-1257_daily_bin1207.fits
.....................!
real 191.96
user 186.19
sys 5.36

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/803825/ft1_filtered_4FGL_J1337.6-1257_daily_bin1207.fits scfile=/scratch/kocevski/803825/ft2_4FGL_J1337.6-1257_daily_bin1207.fits outfile=/scratch/kocevski/803825/cmap_552182401_552441601_4FGL_J1337.6-1257_daily_bin1207.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/803825/ft1_filtered_4FGL_J1337.6-1257_daily_bin1207.fits scfile=/scratch/kocevski/803825/ft2_4FGL_J1337.6-1257_daily_bin1207.fits outfile=/scratch/kocevski/803825/cmap_HighResolution_552182401_552441601_4FGL_J1337.6-1257_daily_bin1207.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.55
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/803825/ft1_filtered_4FGL_J1337.6-1257_daily_bin1207.fits evtable="EVENTS" scfile=/scratch/kocevski/803825/ft2_4FGL_J1337.6-1257_daily_bin1207.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/803825/Model_4FGL_J1337.6-1257_daily_bin1207.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/803825/ft1_filtered_4FGL_J1337.6-1257_daily_bin1207.fits.....................!
real 30.31
user 28.97
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11578E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.8430       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.782       1.0000         .10000E-03   10000.    
     8 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    18.220       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.1901       1.0000         .10000E-03   10000.    
    12 'Prefactor '    46.931       1.0000         .10000E-03   10000.    
    13 'norm      '    266.11       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.342       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12243E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.1483       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    12.469       1.0000         .10000E-03   10000.    
    20 'norm      '    15.335       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .73478       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1084       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.

 FCN=   2646.043     FROM MIGRAD    STATUS=CONVERGED    920 CALLS     3417 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.3823        .12677E-02** at limit **
   2  norm          .10000E-03    3.2273        .17771E-03** at limit **
   3  norm          .10000E-03    27.802        .18142E-02** at limit **
   4  norm          .10001E-03    89.144        .18142E-02** at limit **
   5  Prefactor     .10000E-03    53.023        .78823E-01** at limit **
   6  Prefactor     3.8518        55.257        .20587E-03    .15573E-04
   7  Prefactor     11.807        49.602        .11671E-03    .26447E-04
   8  norm          .10000E-03    2.7994        .83995E-03** at limit **
   9  norm          .10000E-03    5.5106        .11750E-02** at limit **
  10  norm          18.213        18.365        .93832E-04    .22960E-04
  11  Prefactor     6.1846        69.388        .16135E-03   -.89799E-04
  12  Prefactor     46.919        49.741        .58530E-04    .20978E-04
  13  norm          265.91        340.65        .12427E-03    .10045E-04
  14  Prefactor     15.344        30.594        .10226E-03    .22958E-04
  15  norm          .10000E-03    5.9504        .12208E-02** at limit **
  16  Prefactor     .10000E-03    14.850        .53464E-01** at limit **
  17  Prefactor     4.1108        484.42        .19790E-03   -.70085E-05
  18  norm          .10000E-03    9.9189        .15808E-02** at limit **
  19  norm          12.467        12.173        .11344E-03    .13129E-04
  20  norm          15.334        24.399        .10228E-03    .51687E-05
  21  Prefactor     .10000E-03    17.194        .18142E-02** at limit **
  22  Normalizat    .73449        .58204        .46512E-03   -.28195E-04
  23  Prefactor     1.1087        .24822        .17796E-03   -.14356E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 3.8518
  Prefactor  = 11.807
  norm       = 0.0001
  norm       = 0.0001
  norm       = 18.2129
  Prefactor  = 6.18455
  Prefactor  = 46.9194
  norm       = 265.91
  Prefactor  = 15.344
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 4.11076
  norm       = 0.0001
  norm       = 12.4668
  norm       = 15.3339
  Prefactor  = 0.0001
  Normalizat = 0.734492
  Prefactor  = 1.10865
 **********
 **   18 **HESSE 
 **********

 FCN=   2646.043     FROM HESSE     STATUS=OK           366 CALLS     3783 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.3826        .25354E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.2273        .35542E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    27.802        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10001E-03    89.176        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    46.103        .86097E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.8518        55.205        .82347E-05   -1.5315    
   7  Prefactor     11.807        49.554        .46684E-05   -1.5021    
   8  norm          .10000E-03    2.7994        .16799E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    5.5106        .23501E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          18.213        18.359        .37533E-05   -1.4854    
  11  Prefactor     6.1846        69.080        .64541E-05   -1.5211    
  12  Prefactor     46.919        49.736        .23412E-05   -1.4337    
  13  norm          265.91        340.65        .24854E-04   -1.2432    
  14  Prefactor     15.344        30.542        .40902E-05   -1.4924    
  15  norm          .10000E-03    5.9510        .24415E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.249        .55097E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.1108        484.21        .79160E-05   -1.5302    
  18  norm          .10000E-03    9.9194        .31616E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          12.467        12.173        .45376E-05   -1.5002    
  20  norm          15.334        24.397        .40911E-05   -1.4925    
  21  Prefactor     .10000E-03    17.194        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .73449        .58222        .18605E-04   -1.0255    
  23  Prefactor     1.1087        .24836        .35593E-04   -.89190    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.78e-10
Minuit parameter uncertainties:
  1  1.96817e-05
  2  2.13734e-05
  3  5.70524e-05
  4  0.00187272
  5  0.000193311
  6  29.1964
  7  48.4454
  8  4.33908e-05
  9  6.45819e-05
  10  18.3648
  11  41.3994
  12  49.7797
  13  343.244
  14  30.5733
  15  5.73791e-05
  16  0.000208031
  17  89.9837
  18  1.6856e-05
  19  12.175
  20  24.4129
  21  2.70852e-05
  22  0.587235
  23  0.248617
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.821e+01  1.836e+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.109e+00  2.486e-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:  7.345e-01  5.872e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.06
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 1.11e-07 +/- 1.12e-07
Energy Flux (Fixed Index): 4.00e-05 +/- 4.03e-05

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

Saving results to:
/scratch/kocevski/803825/likelihoodResults_552182401_552441601_4FGL_J1337.6-1257_daily_bin1207.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) = 2644.20996394
delta logL = 1.83330945273

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2643.663432
delta logL = 2.37984139846

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.9416       1.0000         .10000E-03   10000.    
     2 'alpha     '    .62076       1.0000          .0000       5.0000    
     3 'Normalizat'    .81474       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0947       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=   2643.663     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      213 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.9416        4.8344        .45231E-02    .30805E-02
   2  alpha         .62069        .41582        .23467       -.73684E-05
   3  Normalizat    .81460        .44842        .99906E-01    .10855E-04
   4  Prefactor     1.0948        .20865        .37791E-01    .36524E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 4.94161
  alpha      = 0.62069
  Normalizat = 0.814598
  Prefactor  = 1.09479
 **********
 **   18 **HESSE 
 **********

 FCN=   2643.663     FROM HESSE     STATUS=OK            29 CALLS      242 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.9416        7.3143        .89966E-04   -1.5263    
   2  alpha         .62069        .60967        .10547E-02   -.85067    
   3  Normalizat    .81460        .51752        .44275E-03   -.99529    
   4  Prefactor     1.0948        .24192        .17867E-03   -.89633    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07891e-08
Minuit parameter uncertainties:
  1  7.31557
  2  0.624493
  3  0.520698
  4  0.242159
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/803825': 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) = 2643.66343191
delta logL = 2.3798414874

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  4.942e+00  7.316e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  6.207e-01  6.245e-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.095e+00  2.422e-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:  8.146e-01  5.207e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.80
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 0.62 +/- 0.62
Photon Flux (Free Index): 2.14e-08 +/- 1.90e-08
Energy Flux (Free Index): 2.00e-04 +/- 2.39e-04

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/803825/cmap_HighResolution_552182401_552441601_4FGL_J1337.6-1257_daily_bin1207.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.24e-04', comment='SUCCESS', photon_flux='1.11e-07', energy_flux2='2.00e-04', photon_flux_error='1.12e-07', dlogl='2.38e+00', energy_flux='4.00e-05', photon_flux2='2.14e-08', job_status='DONE', time_completed='2021-09-08 05:06:28.415948', photon_index_error2='0.62', photon_index2='0.62', ts='2.06', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='3.43e-07', energy_flux_error2='2.39e-04', EG='0.73', time_epoch_completed='1631102788.42', return_code='0', job_id='803825', GAL2='1.09', EG2='0.81', return_code2='0', energy_flux_error='4.03e-05', photon_flux_error2='1.90e-08', ts2='6.80', photon_index='2.30' WHERE bin_id='1207' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:06:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0297>
Subject: Job 803825: <4FGL_J1337.6-1257_daily_bin1207> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin1207> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 04:51:02 2021
Job was executed on host(s) <bullet0297>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:56:44 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:44 2021
Terminated at Wed Sep  8 05:06:29 2021
Results reported at Wed Sep  8 05:06:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1207 204.424 -12.9517 552182401 552441601 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 :                                   475.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             300.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   584 sec.
    Turnaround time :                            927 sec.

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

