/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 129 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 = 7409
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1338.9+1153_daily_bin46
RA = 204.732, Dec = 11.8956
tmin = 251251201, tmax = 251510401
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='838887', job_status='RUN', time_executed='2021-09-08 06:48:08.719216', time_epoch_executed='1631108888.72' WHERE source_name='4FGL J1338.9+1153' and cadence='daily' and bin_id='46'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/838887

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/838887/ft1_4FGL_J1338.9+1153_daily_bin46.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/838887/ft2_4FGL_J1338.9+1153_daily_bin46.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/838887/ft1_4FGL_J1338.9+1153_daily_bin46.fits outfile=/scratch/kocevski/838887/ft1_filteredMKT_4FGL_J1338.9+1153_daily_bin46.fits ra=204.732 dec=11.8956 rad=12.0 tmin=251251201.0 tmax=251510401.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 1.51
user 1.29
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/838887/ft1_filtered_4FGL_J1338.9+1153_daily_bin46.fits" evtable="EVENTS" scfile=/scratch/kocevski/838887/ft2_4FGL_J1338.9+1153_daily_bin46.fits sctable="SC_DATA" outfile=/scratch/kocevski/838887/ltcube_251251201_251510401_4FGL_J1338.9+1153_daily_bin46.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/838887/ft2_4FGL_J1338.9+1153_daily_bin46.fits
.....................!
real 17.91
user 17.50
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/838887/ft1_filtered_4FGL_J1338.9+1153_daily_bin46.fits evtable="EVENTS" scfile=/scratch/kocevski/838887/ft2_4FGL_J1338.9+1153_daily_bin46.fits sctable="SC_DATA" expcube=/scratch/kocevski/838887/ltcube_251251201_251510401_4FGL_J1338.9+1153_daily_bin46.fits outfile=/scratch/kocevski/838887/expmap_251251201_251510401_4FGL_J1338.9+1153_daily_bin46.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/838887/ltcube_251251201_251510401_4FGL_J1338.9+1153_daily_bin46.fits
.....................!
real 192.76
user 186.70
sys 4.93

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/838887/ft1_filtered_4FGL_J1338.9+1153_daily_bin46.fits scfile=/scratch/kocevski/838887/ft2_4FGL_J1338.9+1153_daily_bin46.fits outfile=/scratch/kocevski/838887/cmap_251251201_251510401_4FGL_J1338.9+1153_daily_bin46.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.60
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/838887/ft1_filtered_4FGL_J1338.9+1153_daily_bin46.fits scfile=/scratch/kocevski/838887/ft2_4FGL_J1338.9+1153_daily_bin46.fits outfile=/scratch/kocevski/838887/cmap_HighResolution_251251201_251510401_4FGL_J1338.9+1153_daily_bin46.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.57
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/838887/ft1_filtered_4FGL_J1338.9+1153_daily_bin46.fits', '/scratch/kocevski/838887/ft2_4FGL_J1338.9+1153_daily_bin46.fits', expMap='/scratch/kocevski/838887/expmap_251251201_251510401_4FGL_J1338.9+1153_daily_bin46.fits', expCube='/scratch/kocevski/838887/ltcube_251251201_251510401_4FGL_J1338.9+1153_daily_bin46.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/838887/Model_4FGL_J1338.9+1153_daily_bin46.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/838887/ft1_filtered_4FGL_J1338.9+1153_daily_bin46.fits
Spacecraft file(s): /scratch/kocevski/838887/ft2_4FGL_J1338.9+1153_daily_bin46.fits
Exposure map: /scratch/kocevski/838887/expmap_251251201_251510401_4FGL_J1338.9+1153_daily_bin46.fits
Exposure cube: /scratch/kocevski/838887/ltcube_251251201_251510401_4FGL_J1338.9+1153_daily_bin46.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/838887/Model_4FGL_J1338.9+1153_daily_bin46.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) = 9039.28788616

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.2687       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.0696       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.555       1.0000         .10000E-03   10000.    
     7 'norm      '    6.5384       1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.779       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.359       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.6007       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1410       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .97201       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9039.284     FROM MIGRAD    STATUS=CONVERGED    389 CALLS     1871 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    40.290         .0000    ** at limit **
   2  Prefactor     1.2685        12.062         .0000        .16625E-01
   3  Prefactor     .10000E-03    5.7680         .0000    ** at limit **
   4  norm          1.0715        3.5083         .0000        .14190E-02
   5  Prefactor     .10000E-03    5.6225         .0000    ** at limit **
   6  Prefactor     23.556        30.470         .0000       -.20918E-03
   7  norm          6.5365        5.5165         .0000        .45620E-03
   8  Prefactor     19.780        21.109         .0000       -.50071E-04
   9  Prefactor     .10000E-03    1.1189         .0000    ** at limit **
  10  Prefactor     .10000E-03    7.1786         .0000    ** at limit **
  11  Prefactor     .10000E-03    1.0653         .0000    ** at limit **
  12  Prefactor     12.360        11.098         .0000       -.10489E-03
  13  Prefactor     .10000E-03    16.100         .0000    ** at limit **
  14  Prefactor     1.6009        5.7690         .0000        .18949E-01
  15  Prefactor     .10006E-03    42.339         .0000    ** at limit **
  16  Prefactor     .10001E-03    51.385         .0000    ** at limit **
  17  Prefactor     .10000E-03    2.2334         .0000    ** at limit **
  18  Normalizat    1.1409        .15280         .0000        .12998E-04
  19  Prefactor     .97205        .12122         .0000        .10934E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100028
  Prefactor  = 1.26849
  Prefactor  = 0.0001
  norm       = 1.07152
  Prefactor  = 0.0001
  Prefactor  = 23.556
  norm       = 6.53655
  Prefactor  = 19.7798
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.3602
  Prefactor  = 0.0001
  Prefactor  = 1.60088
  Prefactor  = 0.000100057
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Normalizat = 1.14089
  Prefactor  = 0.972049
 **********
 **   18 **HESSE 
 **********

 FCN=   9039.284     FROM HESSE     STATUS=OK           264 CALLS     2135 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    40.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.2685        12.305        .19759E-02   -1.5483    
   3  Prefactor     .10000E-03    5.8228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.0715        3.4170        .30257E-03   -1.5501    
   5  Prefactor     .10000E-03    5.6833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     23.556        30.481        .82533E-04   -1.4737    
   7  norm          6.5365        5.4661        .15695E-03   -1.5197    
   8  Prefactor     19.780        21.111        .90058E-04   -1.4818    
   9  Prefactor     .10000E-03    1.1284        .98167E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.1897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.0707        .95819E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.360        11.105        .11394E-03   -1.5005    
  13  Prefactor     .10000E-03    16.607        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.6009        5.7390        .16754E-02   -1.5455    
  15  Prefactor     .10006E-03    43.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    52.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.2493        .13875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1409        .18518        .24931E-03   -.88449    
  19  Prefactor     .97205        .14711        .21511E-03   -.93667    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.80152e-09
Minuit parameter uncertainties:
  1  0.00211941
  2  7.90336
  3  4.43879e-06
  4  3.41763
  5  3.1732e-06
  6  30.5013
  7  5.46654
  8  21.1191
  9  2.25489e-08
  10  1.17172e-06
  11  1.73703e-07
  12  11.1071
  13  2.98214e-06
  14  5.74093
  15  0.00313745
  16  0.00108855
  17  9.12269e-08
  18  0.185281
  19  0.147171
Done.

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

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  1.978e+01  2.112e+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.720e-01  1.472e-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.141e+00  1.853e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.96
Ra Dec: 204.732 11.896
Photon Index (Fixed Index): 2.04 +/- 0.00
Photon Flux (Fixed Index): 1.12e-08 +/- 1.19e-08
Energy Flux (Fixed Index): 7.11e-06 +/- 7.59e-06

TS (Fixed Index): 2.96
Ra Dec: 204.732 11.896
Photon Flux Upper Limit: 4.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/838887/likelihoodResults_251251201_251510401_4FGL_J1338.9+1153_daily_bin46.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) = 9039.06469049
delta logL = 0.219124867486

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9039.05775897
delta logL = 0.226056385143

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.554       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5084       1.0000          .0000       10.000    
     3 'Normalizat'    1.1467       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97029       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9039.058     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      299 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.551        26.237        .80839E-04    .13919E-02
   2  Index         1.5083        .71541        .14559E-01    .46194E-03
   3  Normalizat    1.1469        .18165        .24873E-03   -.49495E-03
   4  Prefactor     .97019        .14672        .21528E-03   -.56374E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.5513
  Index      = 1.50835
  Normalizat = 1.14687
  Prefactor  = 0.970192
 **********
 **   18 **HESSE 
 **********

 FCN=   9039.058     FROM HESSE     STATUS=OK            23 CALLS      322 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.551        26.299        .16168E-04   -1.4717    
   2  Index         1.5083        .71731        .58236E-03   -.77306    
   3  Normalizat    1.1469        .18182        .49747E-04   -.88261    
   4  Prefactor     .97019        .14686        .43056E-04   -.93730    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57076e-08
Minuit parameter uncertainties:
  1  26.3119
  2  0.722202
  3  0.181918
  4  0.146924
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/838887': 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) = 9039.05775859
delta logL = 0.226056764041

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  2.455e+01  2.631e+01  1.000e-04  1.000e+04 ( 1.000e-14)
310        Index:  1.508e+00  7.222e-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.702e-01  1.469e-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.147e+00  1.819e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.41
Ra Dec: 204.732 11.896
Photon Index (Free Index): 1.51 +/- 0.72
Photon Flux (Free Index): 5.27e-09 +/- 8.02e-09
Energy Flux (Free Index): 1.62e-05 +/- 2.78e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/838887/cmap_HighResolution_251251201_251510401_4FGL_J1338.9+1153_daily_bin46.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.75e-03', comment='SUCCESS', photon_flux='1.12e-08', energy_flux2='1.62e-05', photon_flux_error='1.19e-08', dlogl='2.26e-01', energy_flux='7.11e-06', photon_flux2='5.27e-09', job_status='DONE', time_completed='2021-09-08 06:59:08.181147', photon_index_error2='0.72', photon_index2='1.51', ts='2.96', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='4.99e-08', energy_flux_error2='2.78e-05', EG='1.14', time_epoch_completed='1631109548.18', return_code='0', job_id='838887', GAL2='0.97', EG2='1.15', return_code2='0', energy_flux_error='7.59e-06', photon_flux_error2='8.02e-09', ts2='3.41', photon_index='2.04' WHERE bin_id='46' AND source_name='4FGL J1338.9+1153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 06:59:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 838887: <4FGL_J1338.9+1153_daily_bin46> in cluster <slac> Done

Job <4FGL_J1338.9+1153_daily_bin46> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 06:45:20 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 06:45:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 06:45:49 2021
Terminated at Wed Sep  8 06:59:09 2021
Results reported at Wed Sep  8 06:59:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1338.9+1153_daily_bin46 204.732 11.8956 251251201 251510401 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 :                                   657.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            829 sec.

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

