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


Performing analysis on: 4FGL_J1238.3-1959_daily_bin1348
RA = 189.594, Dec = -19.9945
tmin = 588729601, tmax = 588988801
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='853258', job_status='RUN', time_executed='2021-09-06 02:24:18.603868', time_epoch_executed='1630920258.6' WHERE source_name='4FGL J1238.3-1959' and cadence='daily' and bin_id='1348'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/853258

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/853258/ft1_4FGL_J1238.3-1959_daily_bin1348.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/853258/ft2_4FGL_J1238.3-1959_daily_bin1348.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/853258/ft1_4FGL_J1238.3-1959_daily_bin1348.fits outfile=/scratch/kocevski/853258/ft1_filteredMKT_4FGL_J1238.3-1959_daily_bin1348.fits ra=189.594 dec=-19.9945 rad=12.0 tmin=588729601.0 tmax=588988801.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.17
user 2.92
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/853258/ft2_4FGL_J1238.3-1959_daily_bin1348.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/853258/ft1_filteredMKT_4FGL_J1238.3-1959_daily_bin1348.fits evtable="EVENTS" outfile="/scratch/kocevski/853258/ft1_filtered_4FGL_J1238.3-1959_daily_bin1348.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.51
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/853258/ft1_filtered_4FGL_J1238.3-1959_daily_bin1348.fits" evtable="EVENTS" scfile=/scratch/kocevski/853258/ft2_4FGL_J1238.3-1959_daily_bin1348.fits sctable="SC_DATA" outfile=/scratch/kocevski/853258/ltcube_588729601_588988801_4FGL_J1238.3-1959_daily_bin1348.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/853258/ft2_4FGL_J1238.3-1959_daily_bin1348.fits
.....................!
real 17.08
user 16.71
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/853258/ft1_filtered_4FGL_J1238.3-1959_daily_bin1348.fits evtable="EVENTS" scfile=/scratch/kocevski/853258/ft2_4FGL_J1238.3-1959_daily_bin1348.fits sctable="SC_DATA" expcube=/scratch/kocevski/853258/ltcube_588729601_588988801_4FGL_J1238.3-1959_daily_bin1348.fits outfile=/scratch/kocevski/853258/expmap_588729601_588988801_4FGL_J1238.3-1959_daily_bin1348.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/853258/ltcube_588729601_588988801_4FGL_J1238.3-1959_daily_bin1348.fits
.....................!
real 192.81
user 187.67
sys 4.42

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/853258/ft1_filtered_4FGL_J1238.3-1959_daily_bin1348.fits scfile=/scratch/kocevski/853258/ft2_4FGL_J1238.3-1959_daily_bin1348.fits outfile=/scratch/kocevski/853258/cmap_588729601_588988801_4FGL_J1238.3-1959_daily_bin1348.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.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/853258/ft1_filtered_4FGL_J1238.3-1959_daily_bin1348.fits scfile=/scratch/kocevski/853258/ft2_4FGL_J1238.3-1959_daily_bin1348.fits outfile=/scratch/kocevski/853258/cmap_HighResolution_588729601_588988801_4FGL_J1238.3-1959_daily_bin1348.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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/853258/ft1_filtered_4FGL_J1238.3-1959_daily_bin1348.fits evtable="EVENTS" scfile=/scratch/kocevski/853258/ft2_4FGL_J1238.3-1959_daily_bin1348.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/853258/Model_4FGL_J1238.3-1959_daily_bin1348.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/853258/ft1_filtered_4FGL_J1238.3-1959_daily_bin1348.fits.....................!
real 62.63
user 61.05
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/853258/ft1_filtered_4FGL_J1238.3-1959_daily_bin1348.fits', '/scratch/kocevski/853258/ft2_4FGL_J1238.3-1959_daily_bin1348.fits', expMap='/scratch/kocevski/853258/expmap_588729601_588988801_4FGL_J1238.3-1959_daily_bin1348.fits', expCube='/scratch/kocevski/853258/ltcube_588729601_588988801_4FGL_J1238.3-1959_daily_bin1348.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/853258/Model_4FGL_J1238.3-1959_daily_bin1348.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/853258/ft1_filtered_4FGL_J1238.3-1959_daily_bin1348.fits
Spacecraft file(s): /scratch/kocevski/853258/ft2_4FGL_J1238.3-1959_daily_bin1348.fits
Exposure map: /scratch/kocevski/853258/expmap_588729601_588988801_4FGL_J1238.3-1959_daily_bin1348.fits
Exposure cube: /scratch/kocevski/853258/ltcube_588729601_588988801_4FGL_J1238.3-1959_daily_bin1348.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/853258/Model_4FGL_J1238.3-1959_daily_bin1348.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) = 7621.43012425

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    8.8608       1.0000         .10000E-03   10000.    
     3 'norm      '    2.9495       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.3621       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.2936       1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.581       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.7214       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.3350       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.1803       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10355E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.1640       1.0000         .10000E-03   10000.    
    15 'Prefactor '    53.430       1.0000         .10000E-03   10000.    
    16 'norm      '    17.896       1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .68930       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2019       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .97899       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=   7621.430     FROM MIGRAD    STATUS=CONVERGED    453 CALLS     2746 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.536       -.10814E-05** at limit **
   2  Prefactor     8.8520        21.714       -.64770E-06   -.22026E-04
   3  norm          2.9518        6.7388        .18294E-07   -.16354E-03
   4  Prefactor     5.3635        4.9834       -.56572E-07   -.37084E-04
   5  Prefactor     .10000E-03    67.577        .40481E-06** at limit **
   6  Prefactor     1.2934        28.982        .51593E-05   -.46691E-03
   7  Prefactor     28.565        24.514       -.30831E-05   -.96381E-04
   8  Prefactor     .10000E-03    42.504        .75510E-06** at limit **
   9  Prefactor     .10000E-03    5.5709       -.39620E-07** at limit **
  10  Prefactor     7.7204        7.7047       -.22223E-05   -.20990E-03
  11  Prefactor     3.3349        2.2812        .32184E-06   -.76310E-04
  12  Prefactor     7.1811        9.8820        .20710E-06   -.92217E-06
  13  Prefactor     .10000E-03    20.451        .75734E-06** at limit **
  14  norm          2.1640        .94251        .17472E-07   -.34195E-04
  15  Prefactor     53.412        55.308       -.14392E-04   -.18504E-03
  16  norm          17.897        10.145        .14406E-06    .39777E-05
  17  norm          .10000E-03    2.6027        .10886E-06** at limit **
  18  Prefactor     .69940        4.8113        .16821E-05   -.25647E-03
  19  norm          .10000E-03    1.2959        .11997E-08** at limit **
  20  Normalizat    1.2017        .23811        .70005E-06   -.36064E-04
  21  Prefactor     .97898        .11579        .40838E-06   -.82825E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.85196
  norm       = 2.95179
  Prefactor  = 5.36347
  Prefactor  = 0.0001
  Prefactor  = 1.29344
  Prefactor  = 28.565
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.72035
  Prefactor  = 3.33487
  Prefactor  = 7.1811
  Prefactor  = 0.0001
  norm       = 2.16398
  Prefactor  = 53.4119
  norm       = 17.8973
  norm       = 0.0001
  Prefactor  = 0.699403
  norm       = 0.0001
  Normalizat = 1.20172
  Prefactor  = 0.978979
 **********
 **   18 **HESSE 
 **********

 FCN=   7621.430     FROM HESSE     STATUS=OK           317 CALLS     3063 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.8520        20.891        .13465E-03   -1.5113    
   3  norm          2.9518        6.4779        .23393E-03   -1.5364    
   4  Prefactor     5.3635        5.0891        .17355E-03   -1.5245    
   5  Prefactor     .10000E-03    67.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.2934        112.01        .19455E-02   -1.5481    
   7  Prefactor     28.565        24.503        .74939E-04   -1.4639    
   8  Prefactor     .10000E-03    42.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.5743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.7204        7.7331        .14431E-03   -1.5152    
  11  Prefactor     3.3349        2.2832        .10087E-03   -1.5343    
  12  Prefactor     7.1811        9.8806        .14970E-03   -1.5172    
  13  Prefactor     .10000E-03    20.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.1640        .94101        .53707E-04   -1.5414    
  15  Prefactor     53.412        55.544        .54872E-04   -1.4245    
  16  norm          17.897        10.153        .94676E-04   -1.4862    
  17  norm          .10000E-03    2.6155        .13717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .69940        5.0099        .36484E-03   -1.5541    
  19  norm          .10000E-03    1.3270        .97007E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2017        .28273        .35603E-03   -.86550    
  21  Prefactor     .97898        .13828        .18943E-03   -.93434    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00951e-08
Minuit parameter uncertainties:
  1  3.83097e-05
  2  20.9084
  3  6.47945
  4  5.08954
  5  0.000263265
  6  24.1189
  7  24.5118
  8  0.000209683
  9  2.67579e-06
  10  7.73408
  11  2.28327
  12  9.88286
  13  4.62536e-05
  14  0.94102
  15  55.5976
  16  10.1538
  17  3.21073e-05
  18  3.74395
  19  9.2473e-07
  20  0.283094
  21  0.138326
Done.

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

Extracting fit parameters...

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  7.181e+00  9.883e+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

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  9.790e-01  1.383e-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.202e+00  2.831e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.90
Ra Dec: 189.594 -19.994
Photon Flux Upper Limit: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/853258/likelihoodResults_588729601_588988801_4FGL_J1238.3-1959_daily_bin1348.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) = 7621.08090304
delta logL = 0.349081596977

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7621.07925221
delta logL = 0.350732430311

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.5853       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4483       1.0000          .0000       10.000    
     3 'Normalizat'    1.2146       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97656       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=   7621.079     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      207 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.5853        11.442        .36402E-02    .62815E-03
   2  Index         1.4482        .68454        .30426       -.48861E-04
   3  Normalizat    1.2146        .23443        .80041E-01    .17091E-04
   4  Prefactor     .97655        .11408        .45973E-01    .41468E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.58533
  Index      = 1.44824
  Normalizat = 1.21462
  Prefactor  = 0.976553
 **********
 **   18 **HESSE 
 **********

 FCN=   7621.079     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.5853        10.518        .14561E-03   -1.5157    
   2  Index         1.4482        .76546        .13508E-01   -.79000    
   3  Normalizat    1.2146        .27772        .35432E-03   -.86152    
   4  Prefactor     .97655        .13592        .18960E-03   -.93515    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46975e-09
Minuit parameter uncertainties:
  1  10.5202
  2  0.771626
  3  0.278062
  4  0.135972
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/853258': 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) = 7621.0792522
delta logL = 0.350732437938

Extracting fit parameters...

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  7.585e+00  1.052e+01  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  1.448e+00  7.716e-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.766e-01  1.360e-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.215e+00  2.781e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.60
Ra Dec: 189.594 -19.994
Photon Index (Free Index): 1.45 +/- 0.77
Photon Flux (Free Index): 8.18e-09 +/- 1.44e-08
Energy Flux (Free Index): 3.08e-05 +/- 5.56e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/853258/cmap_HighResolution_588729601_588988801_4FGL_J1238.3-1959_daily_bin1348.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.85e-03', comment='SUCCESS', energy_flux2='3.08e-05', dlogl='3.51e-01', photon_flux2='8.18e-09', job_status='DONE', time_completed='2021-09-06 02:37:06.337564', photon_index_error2='0.77', photon_index2='1.45', ts='0.90', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.03e-07', energy_flux_error2='5.56e-05', EG='1.20', time_epoch_completed='1630921026.34', return_code='0', job_id='853258', GAL2='0.98', EG2='1.21', return_code2='0', photon_flux_error2='1.44e-08', ts2='1.60', photon_index='2.15' WHERE bin_id='1348' AND source_name='4FGL J1238.3-1959' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 02:37:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 853258: <4FGL_J1238.3-1959_daily_bin1348> in cluster <slac> Done

Job <4FGL_J1238.3-1959_daily_bin1348> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 02:21:06 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 02:23:43 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:23:43 2021
Terminated at Mon Sep  6 02:37:07 2021
Results reported at Mon Sep  6 02:37:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.3-1959_daily_bin1348 189.594 -19.9945 588729601 588988801 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 :                                   762.41 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             298.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            961 sec.

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

