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


Performing analysis on: 4FGL_J1338.9+1153_daily_bin430
RA = 204.732, Dec = 11.8956
tmin = 350784001, tmax = 351043201
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='842125', job_status='RUN', time_executed='2021-09-08 06:56:04.994849', time_epoch_executed='1631109364.99' WHERE source_name='4FGL J1338.9+1153' and cadence='daily' and bin_id='430'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/842125

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/842125/ft1_4FGL_J1338.9+1153_daily_bin430.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/842125/ft2_4FGL_J1338.9+1153_daily_bin430.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/842125/ft1_4FGL_J1338.9+1153_daily_bin430.fits outfile=/scratch/kocevski/842125/ft1_filteredMKT_4FGL_J1338.9+1153_daily_bin430.fits ra=204.732 dec=11.8956 rad=12.0 tmin=350784001.0 tmax=351043201.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.43
user 3.16
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/842125/ft1_filtered_4FGL_J1338.9+1153_daily_bin430.fits" evtable="EVENTS" scfile=/scratch/kocevski/842125/ft2_4FGL_J1338.9+1153_daily_bin430.fits sctable="SC_DATA" outfile=/scratch/kocevski/842125/ltcube_350784001_351043201_4FGL_J1338.9+1153_daily_bin430.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/842125/ft2_4FGL_J1338.9+1153_daily_bin430.fits
.....................!
real 16.03
user 15.65
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/842125/ft1_filtered_4FGL_J1338.9+1153_daily_bin430.fits evtable="EVENTS" scfile=/scratch/kocevski/842125/ft2_4FGL_J1338.9+1153_daily_bin430.fits sctable="SC_DATA" expcube=/scratch/kocevski/842125/ltcube_350784001_351043201_4FGL_J1338.9+1153_daily_bin430.fits outfile=/scratch/kocevski/842125/expmap_350784001_351043201_4FGL_J1338.9+1153_daily_bin430.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/842125/ltcube_350784001_351043201_4FGL_J1338.9+1153_daily_bin430.fits
.....................!
real 193.57
user 187.64
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 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/842125/ft1_filtered_4FGL_J1338.9+1153_daily_bin430.fits scfile=/scratch/kocevski/842125/ft2_4FGL_J1338.9+1153_daily_bin430.fits outfile=/scratch/kocevski/842125/cmap_350784001_351043201_4FGL_J1338.9+1153_daily_bin430.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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/842125/ft1_filtered_4FGL_J1338.9+1153_daily_bin430.fits scfile=/scratch/kocevski/842125/ft2_4FGL_J1338.9+1153_daily_bin430.fits outfile=/scratch/kocevski/842125/cmap_HighResolution_350784001_351043201_4FGL_J1338.9+1153_daily_bin430.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.58
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.766       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.1972       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .28581       1.0000         .10000E-03   10000.    
     4 'norm      '    7.1856       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    18.214       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.183       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.4377       1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.577       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.4385       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10731E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11601       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.4452       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.4790       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .65778       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=   6006.026     FROM MIGRAD    STATUS=CONVERGED    461 CALLS     2259 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.770        62.013       -.10660E-04   -.24850E-04
   2  Prefactor     7.2053        13.719       -.13904E-05   -.22548E-04
   3  Prefactor     .27564        9.6506       -.25311E-06    .20669E-03
   4  norm          7.1845        8.8012        .35734E-05    .77085E-04
   5  Prefactor     .10000E-03    16.112        .58450E-06** at limit **
   6  Prefactor     .10000E-03    13.995        .28418E-06** at limit **
   7  norm          18.216        10.827       -.27007E-05   -.93355E-04
   8  Prefactor     .10000E-03    15.153       -.85176E-06** at limit **
   9  Prefactor     .10000E-03    1.8109       -.78616E-07** at limit **
  10  Prefactor     18.197        27.575       -.37581E-05   -.23916E-04
  11  Prefactor     5.4374        3.6864        .75779E-09    .29897E-04
  12  Prefactor     20.569        15.684       -.10287E-05   -.15500E-04
  13  Prefactor     4.4379        8.8940       -.96423E-07   -.23362E-04
  14  Prefactor     .10000E-03    7.0244        .74715E-07** at limit **
  15  Prefactor     .10000E-03    10.382       -.37554E-07** at limit **
  16  Prefactor     .11501E-03    19.792       -.27713E-06** at limit **
  17  Prefactor     2.4440        2.2934        .50330E-06   -.20167E-02
  18  Normalizat    1.4792        .20159        .80347E-06    .78490E-05
  19  Prefactor     .65769        .15352        .34436E-07    .73876E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.7702
  Prefactor  = 7.20531
  Prefactor  = 0.275638
  norm       = 7.1845
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.2164
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.1969
  Prefactor  = 5.43741
  Prefactor  = 20.5687
  Prefactor  = 4.43785
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000115006
  Prefactor  = 2.44398
  Normalizat = 1.47924
  Prefactor  = 0.657695
 **********
 **   18 **HESSE 
 **********

 FCN=   6006.026     FROM HESSE     STATUS=OK           286 CALLS     2545 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.770        61.695        .82166E-04   -1.4732    
   2  Prefactor     7.2053        13.827        .14952E-03   -1.5171    
   3  Prefactor     .27564        179.04        .43995E-02   -1.5603    
   4  norm          7.1845        8.8113        .14964E-03   -1.5172    
   5  Prefactor     .10000E-03    16.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          18.216        10.844        .93847E-04   -1.4854    
   8  Prefactor     .10000E-03    15.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    22.941        .20036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.197        27.584        .93927E-04   -1.4855    
  11  Prefactor     5.4374        3.6871        .11887E-03   -1.5242    
  12  Prefactor     20.569        15.724        .88296E-04   -1.4801    
  13  Prefactor     4.4379        8.8881        .19114E-03   -1.5287    
  14  Prefactor     .10000E-03    7.0579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .11501E-03    23.712        .10576       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.4440        5.5674        .13081E-02   -1.5395    
  18  Normalizat    1.4792        .24496        .22735E-03   -.78363    
  19  Prefactor     .65769        .18447        .25551E-03   -1.0521    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.78836e-09
Minuit parameter uncertainties:
  1  61.8608
  2  13.8336
  3  14.0899
  4  8.81292
  5  1.75878e-05
  6  1.6543e-07
  7  10.8456
  8  1.11314e-05
  9  0.000175951
  10  27.6029
  11  3.68723
  12  15.7269
  13  8.89073
  14  1.40801e-05
  15  3.84177e-06
  16  0.0377421
  17  5.56857
  18  0.245152
  19  0.184637
Done.

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

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  1.113e-05  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:  6.577e-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.479e+00  2.452e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/842125/likelihoodResults_350784001_351043201_4FGL_J1338.9+1153_daily_bin430.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) = 6006.02638507
delta logL = -0.000313523297336

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6005.99371828
delta logL = 0.032353267894

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6006.026     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      313 TOTAL
                     EDM=   .91E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.118       -.17828E-05** at limit **
   2  Index         1.8965        .61427       -.34827E-06    .57958E-05
   3  Normalizat    1.4792        .23386       -.59808E-05   -.47112E-04
   4  Prefactor     .65769        .18480        .32140E-05   -.66423E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.89646
  Normalizat = 1.47924
  Prefactor  = 0.657693
 **********
 **   18 **HESSE 
 **********

 FCN=   6006.026     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      350 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6256.8        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8965        5.7067        .50000       -.66964    
   3  Normalizat    1.4792        .84120E-01    .51423E-01   -.78363    
   4  Prefactor     .65769        .66213E-01    .41939E-01   -1.0521    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.35901e-08
Minuit parameter uncertainties:
  1  0.00134439
  2  51.0583
  3  0.0841275
  4  0.0662212
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/842125': 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): 102
logL (Free Index) = 6006.02607131
delta logL = 2.4223481887e-07

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  1.344e-03  1.000e-04  1.000e+04 ( 1.000e-14)
310        Index:  1.896e+00  5.106e+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:  6.577e-01  6.622e-02  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.479e+00  8.413e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 204.732 11.896

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/842125/cmap_HighResolution_350784001_351043201_4FGL_J1338.9+1153_daily_bin430.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.34e-03', job_status='DONE', photon_flux_upper_limit='4.44e-08', time_completed='2021-09-08 07:05:54.013321', job_id='842125', GAL2='0.66', fit_tolerance='1e-08', EG2='1.48', EG='1.48', time_epoch_completed='1631109954.01', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='2.42e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.04' WHERE bin_id='430' AND source_name='4FGL J1338.9+1153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 07:05:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0293>
Subject: Job 842125: <4FGL_J1338.9+1153_daily_bin430> in cluster <slac> Done

Job <4FGL_J1338.9+1153_daily_bin430> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 06:55:26 2021
Job was executed on host(s) <bullet0293>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 06:55: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:55:49 2021
Terminated at Wed Sep  8 07:05:54 2021
Results reported at Wed Sep  8 07:05:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1338.9+1153_daily_bin430 204.732 11.8956 350784001 351043201 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 :                                   584.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             354.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   605 sec.
    Turnaround time :                            628 sec.

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

