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


Performing analysis on: 4FGL_J1338.9+1153_daily_bin535
RA = 204.732, Dec = 11.8956
tmin = 378000001, tmax = 378259201
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='843863', job_status='RUN', time_executed='2021-09-08 07:01:30.798738', time_epoch_executed='1631109690.8' WHERE source_name='4FGL J1338.9+1153' and cadence='daily' and bin_id='535'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/843863

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/843863/ft1_4FGL_J1338.9+1153_daily_bin535.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/843863/ft2_4FGL_J1338.9+1153_daily_bin535.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/843863/ft1_4FGL_J1338.9+1153_daily_bin535.fits outfile=/scratch/kocevski/843863/ft1_filteredMKT_4FGL_J1338.9+1153_daily_bin535.fits ra=204.732 dec=11.8956 rad=12.0 tmin=378000001.0 tmax=378259201.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.47
user 3.25
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/843863/ft1_filtered_4FGL_J1338.9+1153_daily_bin535.fits evtable="EVENTS" scfile=/scratch/kocevski/843863/ft2_4FGL_J1338.9+1153_daily_bin535.fits sctable="SC_DATA" expcube=/scratch/kocevski/843863/ltcube_378000001_378259201_4FGL_J1338.9+1153_daily_bin535.fits outfile=/scratch/kocevski/843863/expmap_378000001_378259201_4FGL_J1338.9+1153_daily_bin535.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/843863/ltcube_378000001_378259201_4FGL_J1338.9+1153_daily_bin535.fits
.....................!
real 191.27
user 185.82
sys 5.02

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/843863/ft1_filtered_4FGL_J1338.9+1153_daily_bin535.fits scfile=/scratch/kocevski/843863/ft2_4FGL_J1338.9+1153_daily_bin535.fits outfile=/scratch/kocevski/843863/cmap_378000001_378259201_4FGL_J1338.9+1153_daily_bin535.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/843863/ft1_filtered_4FGL_J1338.9+1153_daily_bin535.fits scfile=/scratch/kocevski/843863/ft2_4FGL_J1338.9+1153_daily_bin535.fits outfile=/scratch/kocevski/843863/cmap_HighResolution_378000001_378259201_4FGL_J1338.9+1153_daily_bin535.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.55
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.590       1.0000         .10000E-03   10000.    
     2 'Prefactor '    31.662       1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.230       1.0000         .10000E-03   10000.    
     4 'norm      '    14.189       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.236       1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.178       1.0000         .10000E-03   10000.    
     7 'norm      '    30.105       1.0000         .10000E-03   10000.    
     8 'Prefactor '    39.277       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10427E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.6613       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.2106       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.6819       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .40630       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .98793       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2014       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=   6478.156     FROM MIGRAD    STATUS=CONVERGED    367 CALLS     2171 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.543        69.291       -.98763E-04    .11905E-04
   2  Prefactor     31.645        20.652       -.98729E-05    .83826E-04
   3  Prefactor     20.232        18.552        .67755E-05    .83358E-04
   4  norm          14.186        9.8995       -.91002E-06   -.15741E-04
   5  Prefactor     11.236        10.565       -.11840E-05    .15508E-04
   6  Prefactor     16.165        25.921       -.25692E-04    .82060E-05
   7  norm          30.104        12.631       -.10720E-06    .47396E-04
   8  Prefactor     39.281        53.446        .56763E-05    .26637E-04
   9  Prefactor     .10000E-03    1.5298       -.45401E-06** at limit **
  10  Prefactor     .10000E-03    16.797       -.22831E-05** at limit **
  11  Prefactor     2.6612        2.5600       -.16424E-06    .24293E-03
  12  Prefactor     .10000E-03    5.4592        .70144E-06** at limit **
  13  Prefactor     3.2036        11.416       -.96502E-05   -.13126E-03
  14  Prefactor     4.6804        9.9451       -.19928E-05   -.98887E-04
  15  Prefactor     .10000E-03    15.617        .11411E-04** at limit **
  16  Prefactor     .10000E-03    12.484       -.44088E-05** at limit **
  17  Prefactor     .40299        7.3222       -.50442E-05    .66138E-03
  18  Normalizat    .98831        .20730        .68379E-05    .37194E-03
  19  Prefactor     1.2011        .16070        .11411E-05    .76032E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.543
  Prefactor  = 31.6446
  Prefactor  = 20.2324
  norm       = 14.1859
  Prefactor  = 11.2359
  Prefactor  = 16.1647
  norm       = 30.1045
  Prefactor  = 39.2812
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.66123
  Prefactor  = 0.0001
  Prefactor  = 3.2036
  Prefactor  = 4.6804
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.402985
  Normalizat = 0.988315
  Prefactor  = 1.20113
 **********
 **   18 **HESSE 
 **********

 FCN=   6478.156     FROM HESSE     STATUS=OK           276 CALLS     2447 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.543        69.308        .90492E-04   -1.4824    
   2  Prefactor     31.645        20.643        .71209E-04   -1.4582    
   3  Prefactor     20.232        18.602        .89050E-04   -1.4808    
   4  norm          14.186        9.9161        .10633E-03   -1.4955    
   5  Prefactor     11.236        10.574        .11952E-03   -1.5037    
   6  Prefactor     16.165        25.933        .99576E-04   -1.4904    
   7  norm          30.104        12.646        .73022E-04   -1.4610    
   8  Prefactor     39.281        53.469        .63956E-04   -1.4454    
   9  Prefactor     .10000E-03    3.0532        .19345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.6612        2.5703        .12295E-03   -1.5382    
  12  Prefactor     .10000E-03    5.4714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.2036        11.456        .22611E-03   -1.5350    
  14  Prefactor     4.6804        9.9377        .18598E-03   -1.5275    
  15  Prefactor     .10000E-03    15.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .40299        43.339        .41422E-02   -1.5581    
  18  Normalizat    .98831        .25036        .29266E-03   -.93423    
  19  Prefactor     1.2011        .19495        .21936E-03   -.86296    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.10729e-09
Minuit parameter uncertainties:
  1  69.5959
  2  20.6473
  3  18.6073
  4  9.91727
  5  10.5757
  6  25.9507
  7  12.6472
  8  53.5345
  9  6.98324e-05
  10  4.73108e-05
  11  2.57045
  12  1.98854e-05
  13  11.4642
  14  9.94125
  15  1.98513e-05
  16  3.22127e-05
  17  8.36338
  18  0.250657
  19  0.195071
Done.

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

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  3.928e+01  5.353e+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:  1.201e+00  1.951e-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:  9.883e-01  2.507e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/843863/likelihoodResults_378000001_378259201_4FGL_J1338.9+1153_daily_bin535.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) = 6477.79992668
delta logL = 0.356570234838

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6477.74711209
delta logL = 0.409384826756

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4050       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2292       1.0000          .0000       10.000    
     3 'Normalizat'    .93002       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2321       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=   6477.747     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      315 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3655        203.12        .16016E-03    .56047E-03
   2  Index         3.2319        6.5804        .46773E-02    .19628E-03
   3  Normalizat    .92993        .21869        .30075E-03    .15102E-03
   4  Prefactor     1.2322        .17230        .21696E-03    .15268E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.36552
  Index      = 3.23193
  Normalizat = 0.929929
  Prefactor  = 1.23216
 **********
 **   18 **HESSE 
 **********

 FCN=   6477.747     FROM HESSE     STATUS=OK            25 CALLS      340 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3655        92.230        .64066E-05   -1.5245    
   2  Index         3.2319        3.0184        .18709E-03   -.36143    
   3  Normalizat    .92993        .26090        .12030E-04   -.95416    
   4  Prefactor     1.2322        .20936        .43392E-04   -.85347    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57719e-10
Minuit parameter uncertainties:
  1  44.5713
  2  3.281
  3  0.261254
  4  0.209501
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/843863': 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) = 6477.74711139
delta logL = 0.409385525277

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  5.366e+00  4.457e+01  1.000e-04  1.000e+04 ( 1.000e-14)
310        Index:  3.232e+00  3.281e+00  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:  1.232e+00  2.095e-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:  9.299e-01  2.613e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.55
Ra Dec: 204.732 11.896
Photon Index (Free Index): 3.23 +/- 3.28
Photon Flux (Free Index): 5.99e-08 +/- 6.39e-08
Energy Flux (Free Index): 1.08e-05 +/- 1.21e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/843863/cmap_HighResolution_378000001_378259201_4FGL_J1338.9+1153_daily_bin535.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.96e-03', comment='SUCCESS', energy_flux2='1.08e-05', dlogl='4.09e-01', photon_flux2='5.99e-08', job_status='DONE', time_completed='2021-09-08 07:11:24.114296', photon_index_error2='3.28', photon_index2='3.23', ts='0.69', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', photon_flux_upper_limit='9.26e-08', energy_flux_error2='1.21e-05', EG='0.99', time_epoch_completed='1631110284.11', return_code='0', job_id='843863', GAL2='1.23', EG2='0.93', return_code2='0', photon_flux_error2='6.39e-08', ts2='1.55', photon_index='2.04' WHERE bin_id='535' AND source_name='4FGL J1338.9+1153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 07:11:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 843863: <4FGL_J1338.9+1153_daily_bin535> in cluster <slac> Done

Job <4FGL_J1338.9+1153_daily_bin535> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 07:00:33 2021
Job was executed on host(s) <bullet0295>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 07:01:14 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:01:14 2021
Terminated at Wed Sep  8 07:11:24 2021
Results reported at Wed Sep  8 07:11:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1338.9+1153_daily_bin535 204.732 11.8956 378000001 378259201 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 :                                   590.16 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             298.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   610 sec.
    Turnaround time :                            651 sec.

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

