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


Performing analysis on: 4FGL_J1338.9+1153_daily_bin1126
RA = 204.732, Dec = 11.8956
tmin = 531187201, tmax = 531446401
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='847685', job_status='RUN', time_executed='2021-09-08 07:11:21.224829', time_epoch_executed='1631110281.22' WHERE source_name='4FGL J1338.9+1153' and cadence='daily' and bin_id='1126'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/847685

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/847685/ft1_4FGL_J1338.9+1153_daily_bin1126.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/847685/ft2_4FGL_J1338.9+1153_daily_bin1126.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/847685/ft1_4FGL_J1338.9+1153_daily_bin1126.fits outfile=/scratch/kocevski/847685/ft1_filteredMKT_4FGL_J1338.9+1153_daily_bin1126.fits ra=204.732 dec=11.8956 rad=12.0 tmin=531187201.0 tmax=531446401.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 4.03
user 3.78
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/847685/ft2_4FGL_J1338.9+1153_daily_bin1126.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/847685/ft2_4FGL_J1338.9+1153_daily_bin1126.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/847685/ft1_filteredMKT_4FGL_J1338.9+1153_daily_bin1126.fits evtable="EVENTS" outfile="/scratch/kocevski/847685/ft1_filtered_4FGL_J1338.9+1153_daily_bin1126.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.53
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/847685/ft1_filtered_4FGL_J1338.9+1153_daily_bin1126.fits" evtable="EVENTS" scfile=/scratch/kocevski/847685/ft2_4FGL_J1338.9+1153_daily_bin1126.fits sctable="SC_DATA" outfile=/scratch/kocevski/847685/ltcube_531187201_531446401_4FGL_J1338.9+1153_daily_bin1126.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/847685/ft2_4FGL_J1338.9+1153_daily_bin1126.fits
.....................!
real 17.92
user 17.10
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/847685/ft1_filtered_4FGL_J1338.9+1153_daily_bin1126.fits evtable="EVENTS" scfile=/scratch/kocevski/847685/ft2_4FGL_J1338.9+1153_daily_bin1126.fits sctable="SC_DATA" expcube=/scratch/kocevski/847685/ltcube_531187201_531446401_4FGL_J1338.9+1153_daily_bin1126.fits outfile=/scratch/kocevski/847685/expmap_531187201_531446401_4FGL_J1338.9+1153_daily_bin1126.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/847685/ltcube_531187201_531446401_4FGL_J1338.9+1153_daily_bin1126.fits
.....................!
real 192.75
user 186.87
sys 5.04

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 159 point sources and 0 extended sources

Setting source of interest to:
4FGL J1338.9+1153 @ 204.732 11.8956

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/847685/ft1_filtered_4FGL_J1338.9+1153_daily_bin1126.fits scfile=/scratch/kocevski/847685/ft2_4FGL_J1338.9+1153_daily_bin1126.fits outfile=/scratch/kocevski/847685/cmap_531187201_531446401_4FGL_J1338.9+1153_daily_bin1126.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.732 yref=11.8956 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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/847685/ft1_filtered_4FGL_J1338.9+1153_daily_bin1126.fits scfile=/scratch/kocevski/847685/ft2_4FGL_J1338.9+1153_daily_bin1126.fits outfile=/scratch/kocevski/847685/cmap_HighResolution_531187201_531446401_4FGL_J1338.9+1153_daily_bin1126.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.732 yref=11.8956 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.65
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/847685/ft1_filtered_4FGL_J1338.9+1153_daily_bin1126.fits evtable="EVENTS" scfile=/scratch/kocevski/847685/ft2_4FGL_J1338.9+1153_daily_bin1126.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/847685/Model_4FGL_J1338.9+1153_daily_bin1126.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/847685/ft1_filtered_4FGL_J1338.9+1153_daily_bin1126.fits.....................!
real 52.07
user 50.67
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/847685/ft1_filtered_4FGL_J1338.9+1153_daily_bin1126.fits', '/scratch/kocevski/847685/ft2_4FGL_J1338.9+1153_daily_bin1126.fits', expMap='/scratch/kocevski/847685/expmap_531187201_531446401_4FGL_J1338.9+1153_daily_bin1126.fits', expCube='/scratch/kocevski/847685/ltcube_531187201_531446401_4FGL_J1338.9+1153_daily_bin1126.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/847685/Model_4FGL_J1338.9+1153_daily_bin1126.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1338.9+1153'

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  8.644e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
310        Index:  2.035e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
311        Scale:  2.291e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/847685/ft1_filtered_4FGL_J1338.9+1153_daily_bin1126.fits
Spacecraft file(s): /scratch/kocevski/847685/ft2_4FGL_J1338.9+1153_daily_bin1126.fits
Exposure map: /scratch/kocevski/847685/expmap_531187201_531446401_4FGL_J1338.9+1153_daily_bin1126.fits
Exposure cube: /scratch/kocevski/847685/ltcube_531187201_531446401_4FGL_J1338.9+1153_daily_bin1126.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/847685/Model_4FGL_J1338.9+1153_daily_bin1126.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) = 6440.77400945

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.8572       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.5865       1.0000         .10000E-03   10000.    
     4 'norm      '    18.160       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.012       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.238       1.0000         .10000E-03   10000.    
     7 'norm      '    2.4027       1.0000         .10000E-03   10000.    
     8 'Prefactor '    96.116       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12294E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .87985E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    40.485       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11408E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.0758       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1394       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .92425       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6440.773     FROM MIGRAD    STATUS=CONVERGED    373 CALLS     1875 TOTAL
                     EDM=   .49E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    55.827       -.62332E-06** at limit **
   2  Prefactor     5.8575        10.563        .42074E-05   -.59930E-04
   3  Prefactor     7.5881        14.319       -.61087E-06   -.24508E-04
   4  norm          18.161        8.9533       -.22392E-06   -.13804E-03
   5  Prefactor     15.013        12.733        .14861E-06   -.14218E-04
   6  Prefactor     12.206        30.299       -.39737E-07   -.56595E-04
   7  norm          2.4063        8.5411        .10134E-05   -.45433E-04
   8  Prefactor     96.190        73.451        .62923E-06    .83920E-04
   9  Prefactor     .10000E-03    3.9232        .40005E-06** at limit **
  10  Prefactor     .10000E-03    31.847       -.15766E-07** at limit **
  11  Prefactor     .10000E-03    4.9900        .11151E-05** at limit **
  12  Prefactor     .10000E-03    9.5233        .32070E-06** at limit **
  13  Prefactor     .10000E-03    3.4670       -.14213E-07** at limit **
  14  Prefactor     .10000E-03    3.7437       -.21239E-08** at limit **
  15  Prefactor     40.480        38.220        .15669E-06   -.24149E-04
  16  Prefactor     .10000E-03    15.388       -.25437E-07** at limit **
  17  Prefactor     7.0790        9.1542        .19251E-06   -.55125E-05
  18  Normalizat    1.1395        .19519       -.74388E-06   -.79751E-04
  19  Prefactor     .92417        .15128       -.37413E-06   -.11858E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.85746
  Prefactor  = 7.58815
  norm       = 18.161
  Prefactor  = 15.0132
  Prefactor  = 12.2059
  norm       = 2.4063
  Prefactor  = 96.19
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.4803
  Prefactor  = 0.0001
  Prefactor  = 7.07895
  Normalizat = 1.13948
  Prefactor  = 0.924172
 **********
 **   18 **HESSE 
 **********

 FCN=   6440.773     FROM HESSE     STATUS=OK           272 CALLS     2147 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    56.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.8575        10.543        .82969E-03   -1.5224    
   3  Prefactor     7.5881        14.303        .14560E-03   -1.5157    
   4  norm          18.161        8.8689        .93986E-04   -1.4855    
   5  Prefactor     15.013        12.737        .10337E-03   -1.4933    
   6  Prefactor     12.206        30.300        .11451E-03   -1.5009    
   7  norm          2.4063        8.4574        .26415E-03   -1.5398    
   8  Prefactor     96.190        73.311        .20499E-03   -1.3743    
   9  Prefactor     .10000E-03    4.1013        .31032E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    32.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.1373        .34972E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    56.937        .47454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.4735        .14593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.7484        .15165E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     40.480        38.203        .62998E-04   -1.4435    
  16  Prefactor     .10000E-03    15.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.0790        9.1402        .15081E-03   -1.5176    
  18  Normalizat    1.1395        .23630        .26345E-03   -.88494    
  19  Prefactor     .92417        .18288        .22662E-03   -.95301    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.90255e-11
Minuit parameter uncertainties:
  1  0.000203945
  2  10.5459
  3  14.3095
  4  8.86959
  5  12.739
  6  30.3385
  7  8.46164
  8  73.3802
  9  6.18874e-06
  10  4.07324e-05
  11  5.70227e-06
  12  4.34261e-05
  13  2.41e-06
  14  1.98398e-06
  15  38.2263
  16  6.34528e-06
  17  9.142
  18  0.236521
  19  0.182999
Done.

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

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  9.619e+01  7.338e+01  1.000e-04  1.000e+04 ( 1.000e-14)
310        Index:  2.035e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
311        Scale:  2.291e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  9.242e-01  1.830e-01  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  1.139e+00  2.365e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.40
Ra Dec: 204.732 11.896
Photon Index (Fixed Index): 2.04 +/- 0.00
Photon Flux (Fixed Index): 5.44e-08 +/- 4.15e-08
Energy Flux (Fixed Index): 3.46e-05 +/- 2.64e-05

TS (Fixed Index): 2.40
Ra Dec: 204.732 11.896
Photon Flux Upper Limit: 1.39e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.04e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/847685/likelihoodResults_531187201_531446401_4FGL_J1338.9+1153_daily_bin1126.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) = 6439.68848271
delta logL = 1.08420264555

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6439.66846276
delta logL = 1.10422259553

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.944       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7640       1.0000          .0000       10.000    
     3 'Normalizat'    1.0753       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95164       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6439.668     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      285 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.003        333.49        .16948E-02    .90357E-04
   2  Index         2.7636        2.1305        .85780E-01    .24021E-03
   3  Normalizat    1.0745        .81629E-01    .61051E-01    .21823E-03
   4  Prefactor     .95229        .57575E-01    .45660E-01    .85569E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.0026
  Index      = 2.76358
  Normalizat = 1.07449
  Prefactor  = 0.952295
 **********
 **   18 **HESSE 
 **********

 FCN=   6439.668     FROM HESSE     STATUS=OK            33 CALLS      318 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.003        58.887        .67792E-04   -1.4524    
   2  Index         2.7636        .69926        .32942E-02   -.46373    
   3  Normalizat    1.0745        .23838        .27002E-03   -.90575    
   4  Prefactor     .95229        .18447        .22337E-03   -.94337    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33236e-10
Minuit parameter uncertainties:
  1  58.9849
  2  0.702138
  3  0.238618
  4  0.18459
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/847685': 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) = 6439.66845464
delta logL = 1.10423071984

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  3.500e+01  5.898e+01  1.000e-04  1.000e+04 ( 1.000e-14)
310        Index:  2.764e+00  7.021e-01  0.000e+00  1.000e+01 (-1.000e+00)
311        Scale:  2.291e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  9.523e-01  1.846e-01  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  1.074e+00  2.386e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.65
Ra Dec: 204.732 11.896
Photon Index (Free Index): 2.76 +/- 0.70
Photon Flux (Free Index): 1.14e-07 +/- 6.76e-08
Energy Flux (Free Index): 2.62e-05 +/- 1.63e-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/847685/cmap_HighResolution_531187201_531446401_4FGL_J1338.9+1153_daily_bin1126.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', comment='SUCCESS', photon_flux='5.44e-08', energy_flux2='2.62e-05', photon_flux_error='4.15e-08', dlogl='1.10e+00', energy_flux='3.46e-05', photon_flux2='1.14e-07', job_status='DONE', time_completed='2021-09-08 07:20:53.294383', photon_index_error2='0.70', photon_index2='2.76', ts='2.40', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.39e-07', energy_flux_error2='1.63e-05', EG='1.14', time_epoch_completed='1631110853.29', return_code='0', job_id='847685', GAL2='0.95', EG2='1.07', return_code2='0', energy_flux_error='2.64e-05', photon_flux_error2='6.76e-08', ts2='4.65', photon_index='2.04' WHERE bin_id='1126' AND source_name='4FGL J1338.9+1153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 07:20:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0162>
Subject: Job 847685: <4FGL_J1338.9+1153_daily_bin1126> in cluster <slac> Done

Job <4FGL_J1338.9+1153_daily_bin1126> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep  8 07:10:27 2021
Job was executed on host(s) <bullet0162>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 07:11:11 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 07:11:11 2021
Terminated at Wed Sep  8 07:20:53 2021
Results reported at Wed Sep  8 07:20:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1338.9+1153_daily_bin1126 204.732 11.8956 531187201 531446401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1338.9+1153 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   564.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   582 sec.
    Turnaround time :                            626 sec.

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

