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


Performing analysis on: 4FGL_J1338.9+1153_daily_bin36
RA = 204.732, Dec = 11.8956
tmin = 248659201, tmax = 248918401
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='838873', job_status='RUN', time_executed='2021-09-08 06:49:32.653079', time_epoch_executed='1631108972.65' WHERE source_name='4FGL J1338.9+1153' and cadence='daily' and bin_id='36'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/838873

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/838873/ft1_4FGL_J1338.9+1153_daily_bin36.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/838873/ft2_4FGL_J1338.9+1153_daily_bin36.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/838873/ft1_4FGL_J1338.9+1153_daily_bin36.fits outfile=/scratch/kocevski/838873/ft1_filteredMKT_4FGL_J1338.9+1153_daily_bin36.fits ra=204.732 dec=11.8956 rad=12.0 tmin=248659201.0 tmax=248918401.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.43
user 1.24
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/838873/ft1_filtered_4FGL_J1338.9+1153_daily_bin36.fits evtable="EVENTS" scfile=/scratch/kocevski/838873/ft2_4FGL_J1338.9+1153_daily_bin36.fits sctable="SC_DATA" expcube=/scratch/kocevski/838873/ltcube_248659201_248918401_4FGL_J1338.9+1153_daily_bin36.fits outfile=/scratch/kocevski/838873/expmap_248659201_248918401_4FGL_J1338.9+1153_daily_bin36.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/838873/ltcube_248659201_248918401_4FGL_J1338.9+1153_daily_bin36.fits
.....................!
real 193.38
user 187.29
sys 5.68

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/838873/ft1_filtered_4FGL_J1338.9+1153_daily_bin36.fits scfile=/scratch/kocevski/838873/ft2_4FGL_J1338.9+1153_daily_bin36.fits outfile=/scratch/kocevski/838873/cmap_248659201_248918401_4FGL_J1338.9+1153_daily_bin36.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.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.044       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.818       1.0000         .10000E-03   10000.    
     4 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    41.881       1.0000         .10000E-03   10000.    
     7 'norm      '    .12959E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.712       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .39786E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.1269       1.0000         .10000E-03   10000.    
    15 'Prefactor '    27.224       1.0000         .10000E-03   10000.    
    16 'Prefactor '    27.088       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2127       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .94977       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=   5985.275     FROM MIGRAD    STATUS=CONVERGED    381 CALLS     1868 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10017E-03    86.614        .90712E-02** at limit **
   2  Prefactor     10.041        12.627        .31609E-02    .92256E-03
   3  Prefactor     11.821        13.920        .29132E-02    .47912E-03
   4  norm          .10000E-03    6.6574        .90712E-02** at limit **
   5  Prefactor     .10000E-03    9.0678        .90712E-02** at limit **
   6  Prefactor     41.883        31.505        .15486E-02   -.57861E-03
   7  norm          .10044E-03    5.3246        .90712E-01** at limit **
   8  Prefactor     .10000E-03    17.143        .90712E-02** at limit **
   9  Prefactor     .10000E-03    2.5153        .90712E-02** at limit **
  10  Prefactor     15.712        17.294        .25261E-02    .65761E-04
  11  Prefactor     .10000E-03    1.2196        .90712E-02** at limit **
  12  Prefactor     .10000E-03    3.4421        .90712E-02** at limit **
  13  Prefactor     .10271E-03    5.5276        .97505E-01** at limit **
  14  Prefactor     5.1276        7.6994        .44390E-02    .77435E-03
  15  Prefactor     27.225        21.291        .19195E-02   -.13024E-04
  16  Prefactor     27.090        29.380        .19243E-02   -.48419E-03
  17  Prefactor     .10000E-03    2.2308        .90712E-02** at limit **
  18  Normalizat    1.2126        .19550        .56523E-01    .39775E-03
  19  Prefactor     .94969        .15523        .45636E-01    .29220E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100174
  Prefactor  = 10.0412
  Prefactor  = 11.8206
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.8826
  norm       = 0.000100436
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.7124
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000102711
  Prefactor  = 5.1276
  Prefactor  = 27.2247
  Prefactor  = 27.0899
  Prefactor  = 0.0001
  Normalizat = 1.21262
  Prefactor  = 0.949695
 **********
 **   18 **HESSE 
 **********

 FCN=   5985.275     FROM HESSE     STATUS=OK           260 CALLS     2128 TOTAL
                     EDM=   .67E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10017E-03    87.019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.041        12.602        .12644E-03   -1.5074    
   3  Prefactor     11.821        13.906        .11653E-03   -1.5020    
   4  norm          .10000E-03    6.7651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.1735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     41.883        31.503        .61943E-04   -1.4413    
   7  norm          .10044E-03    40.044        .34177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    17.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.5667        .11973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.712        17.290        .10104E-03   -1.4915    
  11  Prefactor     .10000E-03    1.2240        .83433E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.4455        .14018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10271E-03    51.667        .34941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.1276        7.6901        .17756E-03   -1.5255    
  15  Prefactor     27.225        21.291        .76781E-04   -1.4664    
  16  Prefactor     27.090        29.370        .76973E-04   -1.4667    
  17  Prefactor     .10000E-03    2.2355        .11285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2126        .23336        .24995E-03   -.86214    
  19  Prefactor     .94969        .18756        .22487E-03   -.94426    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.68222e-08
Minuit parameter uncertainties:
  1  0.00780199
  2  12.6055
  3  13.9094
  4  2.02402e-05
  5  9.83701e-06
  6  31.5158
  7  0.00836666
  8  4.05348e-05
  9  2.84223e-06
  10  17.2956
  11  1.81173e-05
  12  1.07052e-05
  13  0.0236918
  14  7.69155
  15  21.2968
  16  29.3853
  17  9.02974e-06
  18  0.233559
  19  0.187691
Done.

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

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  4.053e-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:  9.497e-01  1.877e-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.213e+00  2.336e-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.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/838873/likelihoodResults_248659201_248918401_4FGL_J1338.9+1153_daily_bin36.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) = 5985.2755115
delta logL = -0.000277687079688

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5985.27523526
delta logL = -1.4509751054e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10950E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3393       1.0000          .0000       10.000    
     3 'Normalizat'    1.2126       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94970       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=   5985.275     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      272 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10167E-03    76.389        .18142E-02** at limit **
   2  Index         2.2788        6.0127        .50000        .18007E-04
   3  Normalizat    1.2126        .11520E-01    .24995E-03   -.81870E-06
   4  Prefactor     .94970        .93490E-02    .22487E-03   -.90496E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101674
  Index      = 2.27883
  Normalizat = 1.21262
  Prefactor  = 0.949696
 **********
 **   18 **HESSE 
 **********

 FCN=   5985.275     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      301 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10167E-03    358.87        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2788        8.8604        .50000       -.57548    
   3  Normalizat    1.2126        .25679E-01    .99981E-05   -.86214    
   4  Prefactor     .94970        .20838E-01    .89948E-05   -.94426    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.50524e-08
Minuit parameter uncertainties:
  1  0.0493195
  2  465.353
  3  0.0256798
  4  0.0208386
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/838873': 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) = 5985.27523467
delta logL = -8.63886270963e-07

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  1.017e-04  4.932e-02  1.000e-04  1.000e+04 ( 1.000e-14)
310        Index:  2.279e+00  4.654e+02  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.497e-01  2.084e-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.213e+00  2.568e-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/838873/cmap_HighResolution_248659201_248918401_4FGL_J1338.9+1153_daily_bin36.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.49e-03', job_status='DONE', photon_flux_upper_limit='4.64e-08', time_completed='2021-09-08 06:58:29.540048', job_id='838873', GAL2='0.95', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1631109509.54', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='-8.64e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.04' WHERE bin_id='36' AND source_name='4FGL J1338.9+1153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 06:58:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 838873: <4FGL_J1338.9+1153_daily_bin36> in cluster <slac> Done

Job <4FGL_J1338.9+1153_daily_bin36> 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) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 06:45:47 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:47 2021
Terminated at Wed Sep  8 06:58:30 2021
Results reported at Wed Sep  8 06:58:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1338.9+1153_daily_bin36 204.732 11.8956 248659201 248918401 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 :                                   537.22 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             233.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            790 sec.

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

