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


Performing analysis on: 4FGL_J1238.3-1959_daily_bin1049
RA = 189.594, Dec = -19.9945
tmin = 511228801, tmax = 511488001
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='851479', job_status='RUN', time_executed='2021-09-06 02:18:35.803750', time_epoch_executed='1630919915.8' WHERE source_name='4FGL J1238.3-1959' and cadence='daily' and bin_id='1049'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/851479

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/851479/ft1_4FGL_J1238.3-1959_daily_bin1049.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/851479/ft2_4FGL_J1238.3-1959_daily_bin1049.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/851479/ft1_4FGL_J1238.3-1959_daily_bin1049.fits outfile=/scratch/kocevski/851479/ft1_filteredMKT_4FGL_J1238.3-1959_daily_bin1049.fits ra=189.594 dec=-19.9945 rad=12.0 tmin=511228801.0 tmax=511488001.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.50
user 3.27
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/851479/ft2_4FGL_J1238.3-1959_daily_bin1049.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/851479/ft2_4FGL_J1238.3-1959_daily_bin1049.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/851479/ft1_filteredMKT_4FGL_J1238.3-1959_daily_bin1049.fits evtable="EVENTS" outfile="/scratch/kocevski/851479/ft1_filtered_4FGL_J1238.3-1959_daily_bin1049.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.53
user 0.35
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/851479/ft1_filtered_4FGL_J1238.3-1959_daily_bin1049.fits" evtable="EVENTS" scfile=/scratch/kocevski/851479/ft2_4FGL_J1238.3-1959_daily_bin1049.fits sctable="SC_DATA" outfile=/scratch/kocevski/851479/ltcube_511228801_511488001_4FGL_J1238.3-1959_daily_bin1049.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/851479/ft2_4FGL_J1238.3-1959_daily_bin1049.fits
.....................!
real 13.43
user 13.03
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/851479/ft1_filtered_4FGL_J1238.3-1959_daily_bin1049.fits evtable="EVENTS" scfile=/scratch/kocevski/851479/ft2_4FGL_J1238.3-1959_daily_bin1049.fits sctable="SC_DATA" expcube=/scratch/kocevski/851479/ltcube_511228801_511488001_4FGL_J1238.3-1959_daily_bin1049.fits outfile=/scratch/kocevski/851479/expmap_511228801_511488001_4FGL_J1238.3-1959_daily_bin1049.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/851479/ltcube_511228801_511488001_4FGL_J1238.3-1959_daily_bin1049.fits
.....................!
real 191.79
user 186.86
sys 4.38

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

Setting source of interest to:
4FGL J1238.3-1959 @ 189.594 -19.9945

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/851479/ft1_filtered_4FGL_J1238.3-1959_daily_bin1049.fits scfile=/scratch/kocevski/851479/ft2_4FGL_J1238.3-1959_daily_bin1049.fits outfile=/scratch/kocevski/851479/cmap_511228801_511488001_4FGL_J1238.3-1959_daily_bin1049.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=189.594 yref=-19.9945 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.64
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/851479/ft1_filtered_4FGL_J1238.3-1959_daily_bin1049.fits scfile=/scratch/kocevski/851479/ft2_4FGL_J1238.3-1959_daily_bin1049.fits outfile=/scratch/kocevski/851479/cmap_HighResolution_511228801_511488001_4FGL_J1238.3-1959_daily_bin1049.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=189.594 yref=-19.9945 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.69
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/851479/ft1_filtered_4FGL_J1238.3-1959_daily_bin1049.fits evtable="EVENTS" scfile=/scratch/kocevski/851479/ft2_4FGL_J1238.3-1959_daily_bin1049.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/851479/Model_4FGL_J1238.3-1959_daily_bin1049.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/851479/ft1_filtered_4FGL_J1238.3-1959_daily_bin1049.fits.....................!
real 55.10
user 53.27
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/851479/ft1_filtered_4FGL_J1238.3-1959_daily_bin1049.fits', '/scratch/kocevski/851479/ft2_4FGL_J1238.3-1959_daily_bin1049.fits', expMap='/scratch/kocevski/851479/expmap_511228801_511488001_4FGL_J1238.3-1959_daily_bin1049.fits', expCube='/scratch/kocevski/851479/ltcube_511228801_511488001_4FGL_J1238.3-1959_daily_bin1049.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/851479/Model_4FGL_J1238.3-1959_daily_bin1049.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1238.3-1959'

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  3.073e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.151e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
309        Scale:  1.503e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/851479/ft1_filtered_4FGL_J1238.3-1959_daily_bin1049.fits
Spacecraft file(s): /scratch/kocevski/851479/ft2_4FGL_J1238.3-1959_daily_bin1049.fits
Exposure map: /scratch/kocevski/851479/expmap_511228801_511488001_4FGL_J1238.3-1959_daily_bin1049.fits
Exposure cube: /scratch/kocevski/851479/ltcube_511228801_511488001_4FGL_J1238.3-1959_daily_bin1049.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/851479/Model_4FGL_J1238.3-1959_daily_bin1049.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) = 6321.17938391

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.4883       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.0282       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.551       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.6314       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.109       1.0000         .10000E-03   10000.    
    14 'norm      '    1.3017       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    10.031       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.8757       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.6299       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .91881       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6321.169     FROM MIGRAD    STATUS=CONVERGED    430 CALLS     2163 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.897       -.97852E-05** at limit **
   2  Prefactor     .10000E-03    36.750        .23311E-06** at limit **
   3  norm          3.4901        5.4685       -.22570E-05   -.62313E-03
   4  Prefactor     .10000E-03    3.6244       -.14786E-06** at limit **
   5  Prefactor     .10000E-03    37.530       -.16742E-05** at limit **
   6  Prefactor     7.0164        62.706       -.35287E-04   -.59219E-04
   7  Prefactor     .10003E-03    34.196        .63527E-05** at limit **
   8  Prefactor     15.607        110.24        .13374E-03   -.33521E-05
   9  Prefactor     .10000E-03    29.325        .10228E-04** at limit **
  10  Prefactor     .10000E-03    13.737        .16812E-05** at limit **
  11  Prefactor     6.6314        3.0360        .89146E-07   -.23799E-03
  12  Prefactor     .10000E-03    8.4084        .15769E-06** at limit **
  13  Prefactor     22.112        17.679        .17316E-05   -.98411E-04
  14  norm          1.3015        1.3526        .11020E-06   -.87118E-03
  15  Prefactor     .10000E-03    39.901       -.12419E-04** at limit **
  16  norm          .10000E-03    10.050       -.26990E-06** at limit **
  17  norm          10.030        5.9076        .53668E-06   -.15765E-05
  18  Prefactor     .10000E-03    1.9105        .42308E-07** at limit **
  19  norm          2.8754        2.6341        .14377E-06   -.21127E-03
  20  Normalizat    1.6296        .28785       -.61650E-05    .56624E-04
  21  Prefactor     .91897        .13184       -.78391E-06   -.23890E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 3.49006
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 7.01639
  Prefactor  = 0.000100031
  Prefactor  = 15.6073
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.63143
  Prefactor  = 0.0001
  Prefactor  = 22.1116
  norm       = 1.30148
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.0304
  Prefactor  = 0.0001
  norm       = 2.87541
  Normalizat = 1.62959
  Prefactor  = 0.918972
 **********
 **   18 **HESSE 
 **********

 FCN=   6321.169     FROM HESSE     STATUS=OK           313 CALLS     2476 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    37.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.4901        5.4636        .21649E-03   -1.5334    
   4  Prefactor     .10000E-03    3.6380        .14765E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    37.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.0164        63.099        .15132E-03   -1.5178    
   7  Prefactor     .10003E-03    34.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.607        109.86        .10157E-03   -1.4918    
   9  Prefactor     .10000E-03    29.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.116        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.6314        3.0287        .89881E-04   -1.5193    
  12  Prefactor     .10000E-03    8.4343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     22.112        17.903        .85186E-04   -1.4767    
  14  norm          1.3015        1.3331        .89003E-04   -1.5480    
  15  Prefactor     .10000E-03    39.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    10.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          10.030        5.9055        .12652E-03   -1.5074    
  18  Prefactor     .10000E-03    1.9145        .10729E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.8754        2.6297        .11968E-03   -1.5369    
  20  Normalizat    1.6296        .34161        .34299E-03   -.74199    
  21  Prefactor     .91897        .15647        .20798E-03   -.95481    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96672e-09
Minuit parameter uncertainties:
  1  9.97293e-06
  2  0.000594542
  3  5.46435
  4  2.91389e-05
  5  0.000555455
  6  42.141
  7  0.00204789
  8  83.0326
  9  0.000134556
  10  5.59241e-05
  11  3.0288
  12  1.86836e-06
  13  17.9075
  14  1.33314
  15  1.93766e-05
  16  7.24194e-05
  17  5.90585
  18  3.32382e-06
  19  2.62981
  20  0.342106
  21  0.156548
Done.

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

Extracting fit parameters...

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  1.000e-04  1.868e-06  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.151e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
309        Scale:  1.503e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  9.190e-01  1.565e-01  0.000e+00  1.000e+01 ( 1.000e+00)
601        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
602        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
599   Normalization:  1.630e+00  3.421e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 189.594 -19.994
Photon Flux Upper Limit: 9.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/851479/likelihoodResults_511228801_511488001_4FGL_J1238.3-1959_daily_bin1049.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) = 6321.16944824
delta logL = -0.000564684572964

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6321.16888407
delta logL = -5.14834937348e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6321.169     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      205 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    755.68        .90712E-02** at limit **
   2  Index         2.1746        8.1071        .50000       -.11597E-04
   3  Normalizat    1.6296        .78264E-01    .77509E-01    .22910E-04
   4  Prefactor     .91897        .37228E-01    .45248E-01    .28920E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.1746
  Normalizat = 1.62959
  Prefactor  = 0.918974
 **********
 **   18 **HESSE 
 **********

 FCN=   6321.169     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    166.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1746        8.7805        .50000       -.60053    
   3  Normalizat    1.6296        .31699        .34300E-03   -.74199    
   4  Prefactor     .91897        .15114        .20798E-03   -.95481    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22929e-09
Minuit parameter uncertainties:
  1  7.50953e-05
  2  18.3097
  3  0.317382
  4  0.151207
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/851479': 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) = 6321.16888349
delta logL = 6.46659827908e-08

Extracting fit parameters...

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  1.000e-04  7.510e-05  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.175e+00  1.831e+01  0.000e+00  1.000e+01 (-1.000e+00)
309        Scale:  1.503e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  9.190e-01  1.512e-01  0.000e+00  1.000e+01 ( 1.000e+00)
601        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
602        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
599   Normalization:  1.630e+00  3.174e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 189.594 -19.994

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/851479/cmap_HighResolution_511228801_511488001_4FGL_J1238.3-1959_daily_bin1049.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.13e-03', job_status='DONE', photon_flux_upper_limit='9.39e-08', time_completed='2021-09-06 02:29:06.222433', job_id='851479', GAL2='0.92', fit_tolerance='1e-08', EG2='1.63', EG='1.63', time_epoch_completed='1630920546.22', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='6.47e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1049' AND source_name='4FGL J1238.3-1959' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 02:29:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 851479: <4FGL_J1238.3-1959_daily_bin1049> in cluster <slac> Done

Job <4FGL_J1238.3-1959_daily_bin1049> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 02:15:40 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 02:16:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 02:16:24 2021
Terminated at Mon Sep  6 02:29:07 2021
Results reported at Mon Sep  6 02:29:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.3-1959_daily_bin1049 189.594 -19.9945 511228801 511488001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1238.3-1959 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   627.20 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             334.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            807 sec.

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

