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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1279
RA = 204.424, Dec = -12.9517
tmin = 570844801, tmax = 571104001
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='805050', job_status='RUN', time_executed='2021-09-08 04:58:03.930805', time_epoch_executed='1631102283.93' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1279'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805050

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805050/ft1_4FGL_J1337.6-1257_daily_bin1279.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805050/ft2_4FGL_J1337.6-1257_daily_bin1279.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805050/ft1_4FGL_J1337.6-1257_daily_bin1279.fits outfile=/scratch/kocevski/805050/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1279.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=570844801.0 tmax=571104001.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.06
user 2.86
sys 0.17

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/805050/ft1_filtered_4FGL_J1337.6-1257_daily_bin1279.fits" evtable="EVENTS" scfile=/scratch/kocevski/805050/ft2_4FGL_J1337.6-1257_daily_bin1279.fits sctable="SC_DATA" outfile=/scratch/kocevski/805050/ltcube_570844801_571104001_4FGL_J1337.6-1257_daily_bin1279.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/805050/ft2_4FGL_J1337.6-1257_daily_bin1279.fits
.....................!
real 16.76
user 16.36
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805050/ft1_filtered_4FGL_J1337.6-1257_daily_bin1279.fits evtable="EVENTS" scfile=/scratch/kocevski/805050/ft2_4FGL_J1337.6-1257_daily_bin1279.fits sctable="SC_DATA" expcube=/scratch/kocevski/805050/ltcube_570844801_571104001_4FGL_J1337.6-1257_daily_bin1279.fits outfile=/scratch/kocevski/805050/expmap_570844801_571104001_4FGL_J1337.6-1257_daily_bin1279.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/805050/ltcube_570844801_571104001_4FGL_J1337.6-1257_daily_bin1279.fits
.....................!
real 193.68
user 188.36
sys 4.76

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

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/805050/ft1_filtered_4FGL_J1337.6-1257_daily_bin1279.fits scfile=/scratch/kocevski/805050/ft2_4FGL_J1337.6-1257_daily_bin1279.fits outfile=/scratch/kocevski/805050/cmap_HighResolution_570844801_571104001_4FGL_J1337.6-1257_daily_bin1279.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/805050/ft1_filtered_4FGL_J1337.6-1257_daily_bin1279.fits evtable="EVENTS" scfile=/scratch/kocevski/805050/ft2_4FGL_J1337.6-1257_daily_bin1279.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/805050/Model_4FGL_J1337.6-1257_daily_bin1279.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/805050/ft1_filtered_4FGL_J1337.6-1257_daily_bin1279.fits.....................!
real 60.48
user 59.07
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.0225       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10316E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.5383       1.0000         .10000E-03   10000.    
     9 'norm      '    12.761       1.0000         .10000E-03   10000.    
    10 'norm      '    .10190E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11965E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11234E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10125E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.443       1.0000         .10000E-03   10000.    
    15 'norm      '    4.8262       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.6991       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.2029       1.0000         .10000E-03   10000.    
    20 'norm      '    .16801E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.365       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .87333       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1699       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=   7611.976     FROM MIGRAD    STATUS=CONVERGED    951 CALLS     3028 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.0226        7.6188        .15138E-03    .44834E-04
   2  norm          .10000E-03    .85447        .78505E-03** at limit **
   3  norm          .10000E-03    14.771        .18142E-02** at limit **
   4  norm          .10000E-03    7.1552        .18142E-02** at limit **
   5  Prefactor     .10000E-03    3.6289        .16217E-02** at limit **
   6  Prefactor     .10000E-03    4.2587        .17530E-02** at limit **
   7  Prefactor     .10000E-03    74.001        .36285E-03** at limit **
   8  norm          1.5383        1.5388        .10279E-03   -.64146E-05
   9  norm          12.760        4.7578        .10983E-03    .16697E-03
  10  norm          .10000E-03    28.787        .31158E-02** at limit **
  11  Prefactor     .10006E-03    19.579        .79275E-01** at limit **
  12  Prefactor     .10000E-03    49.895        .18142E-02** at limit **
  13  norm          .10000E-03    18.155        .18142E-02** at limit **
  14  Prefactor     15.423        14.741        .10192E-03   -.38930E-04
  15  norm          4.8262        4.4424        .16943E-03   -.32811E-04
  16  Prefactor     3.7012        4.9647        .10499E-02    .44829E-04
  17  Prefactor     .10000E-03    46.282        .18142E-02** at limit **
  18  norm          .10000E-03    8.1169        .18142E-02** at limit **
  19  norm          3.2029        2.3910        .11092E-03    .15599E-03
  20  norm          .10000E-03    5.6170        .58284E-01** at limit **
  21  Prefactor     13.362        19.898        .10956E-03    .26875E-04
  22  Normalizat    .87335        .27273        .39369E-03    .85766E-04
  23  Prefactor     1.1699        .14156        .18547E-03    .24520E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.02264
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.53827
  norm       = 12.7601
  norm       = 0.000100002
  Prefactor  = 0.000100062
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.4232
  norm       = 4.82618
  Prefactor  = 3.70124
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.20294
  norm       = 0.0001
  Prefactor  = 13.3618
  Normalizat = 0.873346
  Prefactor  = 1.16988
 **********
 **   18 **HESSE 
 **********

 FCN=   7611.976     FROM HESSE     STATUS=OK           368 CALLS     3396 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.0226        7.6186        .60553E-05   -1.5178    
   2  norm          .10000E-03    .85451        .15701E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    14.776        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    7.1574        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.6291        .32434E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.2596        .35060E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    74.003        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.5383        1.5387        .41117E-05   -1.5460    
   9  norm          12.760        4.7514        .43930E-05   -1.4993    
  10  norm          .10000E-03    29.101        .62316E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10006E-03    18.016        .83341E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    49.915        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    18.156        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.423        14.707        .40767E-05   -1.4922    
  15  norm          4.8262        4.4423        .67773E-05   -1.5269    
  16  Prefactor     3.7012        4.9606        .41996E-04   -1.5323    
  17  Prefactor     .10000E-03    46.314        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    8.1234        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.2029        2.3909        .44369E-05   -1.5350    
  20  norm          .10000E-03    5.4496        .59589E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     13.362        19.900        .43825E-05   -1.4977    
  22  Normalizat    .87335        .27281        .15747E-04   -.97403    
  23  Prefactor     1.1699        .14162        .37094E-04   -.87263    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30409e-10
Minuit parameter uncertainties:
  1  7.61969
  2  7.11112e-07
  3  2.53001e-05
  4  4.45823e-06
  5  7.57685e-07
  6  3.00174e-06
  7  0.000457603
  8  1.53879
  9  4.75155
  10  0.000467372
  11  0.00211088
  12  0.0001081
  13  6.02112e-06
  14  14.7108
  15  4.44264
  16  4.96117
  17  1.43158e-05
  18  1.01677e-05
  19  2.39097
  20  4.97503e-05
  21  19.9099
  22  0.273246
  23  0.141669
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.000e-04  4.674e-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.170e+00  1.417e-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.733e-01  2.732e-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.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.68e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/805050/likelihoodResults_570844801_571104001_4FGL_J1337.6-1257_daily_bin1279.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) = 7611.97574353
delta logL = -0.000164537748788

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7611.97558307
delta logL = -4.08495361626e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .37669E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3959       1.0000          .0000       5.0000    
     3 'Normalizat'    .87341       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1700       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=   7611.961     FROM MIGRAD    STATUS=FAILED       253 CALLS      424 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .52739        411.28        .39122E-02   -.11074E-01
   2  alpha         3.3019        4.1506        .50000        .20795E-04
   3  Normalizat    .86246        .71225E-01    .39369E-03   -.71443E-04
   4  Prefactor     1.1721        .36309E-01    .18547E-03   -.12124E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7611.961     FROM SIMPLEX   STATUS=UNCHANGED     99 CALLS      523 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .52739        411.28        .24420E-03   -.11074E-01
   2  alpha         3.3019        4.1506        .78750E-02    .20795E-04
   3  Normalizat    .86246        .71225E-01    .18155E-03   -.71443E-04
   4  Prefactor     1.1721        .36309E-01    .23724E-04   -.12124E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7611.961     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      557 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .52744        19.056        .78243E-03    .54300E-03
   2  alpha         3.3019        4.0080        .69783E-01   -.20566E-04
   3  Normalizat    .86246        .26460        .15748E-04   -.15883E-05
   4  Prefactor     1.1721        .14019        .37095E-04    .19002E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.527441
  alpha      = 3.30191
  Normalizat = 0.862465
  Prefactor  = 1.17207
 **********
 **   18 **HESSE 
 **********

 FCN=   7611.961     FROM HESSE     STATUS=OK            25 CALLS      582 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .52744        7.3840        .31297E-04   -1.5853    
   2  alpha         3.3019        4.0431        .27913E-02    .32654    
   3  Normalizat    .86246        .26534        .31495E-05   -.97792    
   4  Prefactor     1.1721        .13993        .74189E-05   -.87195    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13965e-09
Minuit parameter uncertainties:
  1  3.94719
  2  3.50198
  3  0.265742
  4  0.139971
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805050': 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) = 7611.9613354
delta logL = 0.0142435836078

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  5.274e-01  3.947e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  3.302e+00  3.502e+00  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.172e+00  1.400e-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.625e-01  2.657e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/805050/cmap_HighResolution_570844801_571104001_4FGL_J1337.6-1257_daily_bin1279.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.68e-05', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-09-08 05:12:06.418380', job_id='805050', GAL2='1.17', fit_tolerance='1e-08', EG2='0.86', EG='0.87', time_epoch_completed='1631103126.42', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='1.42e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='1279' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:12:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 805050: <4FGL_J1337.6-1257_daily_bin1279> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin1279> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 04:55:33 2021
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:56:59 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:59 2021
Terminated at Wed Sep  8 05:12:06 2021
Results reported at Wed Sep  8 05:12:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1279 204.424 -12.9517 570844801 571104001 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 :                                   775.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            993 sec.

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

