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


Performing analysis on: 4FGL_J1238.3-1959_daily_bin477
RA = 189.594, Dec = -19.9945
tmin = 362966401, tmax = 363225601
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='848120', job_status='RUN', time_executed='2021-09-06 02:09:24.130229', time_epoch_executed='1630919364.13' WHERE source_name='4FGL J1238.3-1959' and cadence='daily' and bin_id='477'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/848120

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/848120/ft1_4FGL_J1238.3-1959_daily_bin477.fits


Retrieving the FT1 file...

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

Retrieving 44 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/848120/ft2_4FGL_J1238.3-1959_daily_bin477.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/848120/ft1_4FGL_J1238.3-1959_daily_bin477.fits outfile=/scratch/kocevski/848120/ft1_filteredMKT_4FGL_J1238.3-1959_daily_bin477.fits ra=189.594 dec=-19.9945 rad=12.0 tmin=362966401.0 tmax=363225601.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 6.02
user 5.79
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/848120/ft2_4FGL_J1238.3-1959_daily_bin477.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/848120/ft1_filteredMKT_4FGL_J1238.3-1959_daily_bin477.fits evtable="EVENTS" outfile="/scratch/kocevski/848120/ft1_filtered_4FGL_J1238.3-1959_daily_bin477.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/848120/ft1_filtered_4FGL_J1238.3-1959_daily_bin477.fits" evtable="EVENTS" scfile=/scratch/kocevski/848120/ft2_4FGL_J1238.3-1959_daily_bin477.fits sctable="SC_DATA" outfile=/scratch/kocevski/848120/ltcube_362966401_363225601_4FGL_J1238.3-1959_daily_bin477.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/848120/ft2_4FGL_J1238.3-1959_daily_bin477.fits
.....................!
real 14.39
user 13.99
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/848120/ft1_filtered_4FGL_J1238.3-1959_daily_bin477.fits evtable="EVENTS" scfile=/scratch/kocevski/848120/ft2_4FGL_J1238.3-1959_daily_bin477.fits sctable="SC_DATA" expcube=/scratch/kocevski/848120/ltcube_362966401_363225601_4FGL_J1238.3-1959_daily_bin477.fits outfile=/scratch/kocevski/848120/expmap_362966401_363225601_4FGL_J1238.3-1959_daily_bin477.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/848120/ltcube_362966401_363225601_4FGL_J1238.3-1959_daily_bin477.fits
.....................!
real 191.44
user 186.54
sys 4.30

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/848120/ft1_filtered_4FGL_J1238.3-1959_daily_bin477.fits scfile=/scratch/kocevski/848120/ft2_4FGL_J1238.3-1959_daily_bin477.fits outfile=/scratch/kocevski/848120/cmap_362966401_363225601_4FGL_J1238.3-1959_daily_bin477.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.57
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/848120/ft1_filtered_4FGL_J1238.3-1959_daily_bin477.fits scfile=/scratch/kocevski/848120/ft2_4FGL_J1238.3-1959_daily_bin477.fits outfile=/scratch/kocevski/848120/cmap_HighResolution_362966401_363225601_4FGL_J1238.3-1959_daily_bin477.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/848120/ft1_filtered_4FGL_J1238.3-1959_daily_bin477.fits evtable="EVENTS" scfile=/scratch/kocevski/848120/ft2_4FGL_J1238.3-1959_daily_bin477.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/848120/Model_4FGL_J1238.3-1959_daily_bin477.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/848120/ft1_filtered_4FGL_J1238.3-1959_daily_bin477.fits.....................!
real 53.12
user 51.43
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11169E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.0185       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.2162       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.995       1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.931       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.929       1.0000         .10000E-03   10000.    
     8 'Prefactor '    46.752       1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.517       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .74537       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.0549       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10485E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.7386       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10622E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.4923       1.0000         .10000E-03   10000.    
    17 'norm      '    .10731E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .97970       1.0000         .10000E-03   10000.    
    19 'norm      '    1.2865       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1107       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .97377       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=   6144.723     FROM MIGRAD    STATUS=CONVERGED    476 CALLS     2297 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.919        .97732E-08** at limit **
   2  Prefactor     .10001E-03    11.330       -.15469E-05** at limit **
   3  norm          4.0221        3.7481        .44064E-07    .41528E-03
   4  Prefactor     5.2169        5.7395        .71476E-07    .71221E-04
   5  Prefactor     16.842        53.584        .17928E-05    .34333E-04
   6  Prefactor     17.933        24.528       -.23153E-07   -.20132E-04
   7  Prefactor     11.942        23.836       -.40615E-06   -.10054E-03
   8  Prefactor     46.768        54.484       -.20947E-06   -.60469E-04
   9  Prefactor     17.513        26.115        .13912E-06   -.17139E-04
  10  Prefactor     .74227        10.126       -.51392E-05    .25155E-05
  11  Prefactor     6.0534        2.8819        .25078E-06   -.48566E-03
  12  Prefactor     .10000E-03    3.3224        .11913E-07** at limit **
  13  Prefactor     .10000E-03    15.229        .25353E-08** at limit **
  14  norm          5.7386        1.5642        .53047E-08   -.89124E-03
  15  Prefactor     .10000E-03    91.938        .13889E-06** at limit **
  16  norm          2.4922        5.8759        .28082E-06    .20176E-03
  17  norm          .10001E-03    11.869        .63510E-05** at limit **
  18  Prefactor     .97888        4.3258       -.13370E-05   -.49857E-03
  19  norm          1.2865        1.3474       -.23050E-07   -.31329E-03
  20  Normalizat    1.1107        .25266       -.13106E-06   -.44156E-03
  21  Prefactor     .97375        .12448       -.27801E-06   -.84393E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  norm       = 4.02209
  Prefactor  = 5.21692
  Prefactor  = 16.8417
  Prefactor  = 17.9328
  Prefactor  = 11.9424
  Prefactor  = 46.7679
  Prefactor  = 17.5129
  Prefactor  = 0.74227
  Prefactor  = 6.05344
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.73865
  Prefactor  = 0.0001
  norm       = 2.49224
  norm       = 0.000100012
  Prefactor  = 0.978878
  norm       = 1.28651
  Normalizat = 1.11072
  Prefactor  = 0.973754
 **********
 **   18 **HESSE 
 **********

 FCN=   6144.723     FROM HESSE     STATUS=OK           323 CALLS     2620 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    11.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.0221        3.7498        .69471E-03   -1.5307    
   4  Prefactor     5.2169        5.7259        .17600E-03   -1.5251    
   5  Prefactor     16.842        53.808        .97155E-04   -1.4887    
   6  Prefactor     17.933        24.473        .94583E-04   -1.4861    
   7  Prefactor     11.942        23.788        .11598E-03   -1.5017    
   8  Prefactor     46.768        54.349        .58641E-04   -1.4339    
   9  Prefactor     17.513        26.112        .95694E-04   -1.4871    
  10  Prefactor     .74227        15.096        .28487E-02   -1.5536    
  11  Prefactor     6.0534        2.9539        .81948E-04   -1.5216    
  12  Prefactor     .10000E-03    3.3243        .13954E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.7386        1.5630        .48725E-04   -1.5229    
  15  Prefactor     .10000E-03    92.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.4922        5.8763        .25890E-03   -1.5392    
  17  norm          .10001E-03    20.877        .31997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .97888        4.5297        .31944E-03   -1.5510    
  19  norm          1.2865        1.3631        .90843E-04   -1.5481    
  20  Normalizat    1.1107        .29422        .34840E-03   -.89408    
  21  Prefactor     .97375        .14663        .18615E-03   -.93610    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.45675e-09
Minuit parameter uncertainties:
  1  4.39484e-05
  2  0.000652706
  3  3.75006
  4  5.72646
  5  53.9638
  6  24.4867
  7  23.8067
  8  54.4068
  9  26.1291
  10  6.69636
  11  2.95393
  12  3.4988e-06
  13  9.01502e-05
  14  1.56299
  15  1.97783e-05
  16  5.87767
  17  0.000997291
  18  4.21174
  19  1.36311
  20  0.294654
  21  0.146687
Done.

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

Extracting fit parameters...

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  1.000e-04  3.499e-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.738e-01  1.467e-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.111e+00  2.947e-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: 5.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.14e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/848120/likelihoodResults_362966401_363225601_4FGL_J1238.3-1959_daily_bin477.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) = 6144.72462125
delta logL = -0.00140754405493

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6144.7232155
delta logL = -1.7874290279e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1284       1.0000          .0000       10.000    
     3 'Normalizat'    1.1108       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97356       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6144.723     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      239 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10246E-03    3.5512        .14250E-01** at limit **
   2  Index         2.0484        7.0868        .50000        .46505E-04
   3  Normalizat    1.1107        .62798E-02    .34840E-03    .39843E-04
   4  Prefactor     .97375        .31847E-02    .18615E-03    .52157E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102458
  Index      = 2.04835
  Normalizat = 1.11073
  Prefactor  = 0.973755
 **********
 **   18 **HESSE 
 **********

 FCN=   6144.723     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      268 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10246E-03    47.680        .14599E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0484        7.7166        .50000       -.63147    
   3  Normalizat    1.1107        .23305E-01    .13936E-04   -.89408    
   4  Prefactor     .97375        .11819E-01    .37229E-04   -.93610    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.62808e-08
Minuit parameter uncertainties:
  1  0.02167
  2  265.804
  3  0.0233052
  4  0.011819
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/848120': 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) = 6144.72321274
delta logL = 9.69105713011e-07

Extracting fit parameters...

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  1.025e-04  2.167e-02  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.048e+00  2.658e+02  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.738e-01  1.182e-02  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.111e+00  2.331e-02  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/848120/cmap_HighResolution_362966401_363225601_4FGL_J1238.3-1959_daily_bin477.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.14e-03', job_status='DONE', photon_flux_upper_limit='5.45e-08', time_completed='2021-09-06 02:20:30.162800', job_id='848120', GAL2='0.97', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1630920030.16', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='9.69e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='477' AND source_name='4FGL J1238.3-1959' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 02:20:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 848120: <4FGL_J1238.3-1959_daily_bin477> in cluster <slac> Done

Job <4FGL_J1238.3-1959_daily_bin477> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 02:05:29 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 02:06:21 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:06:21 2021
Terminated at Mon Sep  6 02:20:30 2021
Results reported at Mon Sep  6 02:20:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.3-1959_daily_bin477 189.594 -19.9945 362966401 363225601 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 :                                   662.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             239.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            901 sec.

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

